Skip to content

Commit 9108a3a

Browse files
committed
Update to the new Gradle plugin; Add a method for a single conference
1 parent 20e8482 commit 9108a3a

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:1.5.0'
8+
classpath 'com.android.tools.build:gradle:2.0.0-alpha1'
99
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
1010
}
1111
}

library/src/main/java/com/proxerme/library/connection/UrlHolder.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class UrlHolder {
1717
private static final String LOGIN = "/login?format=json&action=login";
1818
private static final String USER_IMAGE = "/images/comprofiler/";
1919
private static final String CONFERENCES = "/messages?format=json&json=conferences&p=";
20+
private static final String CONFERENCE = "/messages?id=";
2021

2122
/**
2223
* Returns the host of the API.
@@ -50,7 +51,8 @@ public static String getNewsImageUrl(@NonNull String newsId, @NonNull String ima
5051
}
5152

5253
/**
53-
* Returns the url to a single newspage.
54+
* Returns the url to a single newspage. This is not part of the REST-Api, but the link to the
55+
* webpage.
5456
* @param categoryId The id of the category of the news.
5557
* @param threadId The id of the thred.
5658
* @return The url.
@@ -107,4 +109,16 @@ public static String getConferencesUrl(@IntRange(from = 1) int page) {
107109
return getHost() + CONFERENCES + page;
108110
}
109111

112+
/**
113+
* Returns the url to a single conference. This is not part of the REST-Api, but the link to the
114+
* webpage.
115+
*
116+
* @param id The id.
117+
* @return The url.
118+
*/
119+
@NonNull
120+
public static String getConferenceUrl(@NonNull String id) {
121+
return getHost() + CONFERENCE + "#top";
122+
}
123+
110124
}

0 commit comments

Comments
 (0)