AGHCourseDetailsProvider.java 文件源码

java
阅读 18 收藏 0 点赞 0 评论 0

项目:unitime 作者:
public static void main(String[] args) {
    try {
        BasicConfigurator.configure();
        Debug.info(" - Initializing Hibernate ... ");
        _RootDAO.initialize();

        ApplicationProperties.getConfigProperties().setProperty(
                ApplicationProperty.CustomizationDefaultCourseUrl.key(),
                "http://syllabuskrk.agh.edu.pl/:years/pl/magnesite/modules/:courseNbr");
        ApplicationProperties.getConfigProperties().setProperty("unitime.custom.default.course_api_url",
                "http://syllabuskrk.agh.edu.pl/api/:years/modules/:courseNbr");


        ApplicationProperties.getDefaultProperties()
                .setProperty(ApplicationProperty.CustomizationDefaultCourseDetailsDownload.key(), "true");

        System.out.println("URL:" + new AGHCourseDetailsProvider()
                .getCourseUrl(new AcademicSessionInfo(231379l, "2015", "Semestr zimowy", "AGH"), "BAND", "101"));

        System.out.println("Details:\n" + new AGHCourseDetailsProvider()
                .getDetails(new AcademicSessionInfo(231379l, "2015", "Semestr zimowy", "AGH"), "BAND", "101"));

    } catch (Exception e) {
        e.printStackTrace();
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号