package com.proxerme.library.connection;

import android.support.annotation.IntRange;
import android.support.annotation.NonNull;

/**
 * Helper class, containing all the different Urls for accessing the API.
 *
 * @author Ruben Gees
 */
public class UrlHolder {

    public static final String LOGOUT = "/login?format=json&action=logout";
    private static final String HOST = "http://proxer.me";
    private static final String NEWS = "/notifications?format=json&s=news&p=";
    private static final String NEWS_IMAGE = "http://cdn.proxer.me/news/tmp/";
    private static final String LOGIN = "/login?format=json&action=login";

    @NonNull
    public static String getHost() {
        return HOST;
    }

    @NonNull
    public static String getNewsUrl(@IntRange(from = 1) int page) {
        return getHost() + NEWS + page;
    }

    @NonNull
    public static String getNewsImageUrl(@NonNull String newsId, @NonNull String imageId) {
        return NEWS_IMAGE + newsId + "_" + imageId + ".png";
    }

    @NonNull
    public static String getNewsPageUrl(@NonNull String categoryId, @NonNull String threadId) {
        return getHost() + "/forum/" + categoryId + "/" + threadId + "#top";
    }

    @NonNull
    public static String getDonateUrl() {
        return getHost() + "/donate";
    }

    @NonNull
    public static String getLoginUrl() {
        return getHost() + LOGIN;
    }

    @NonNull
    public static String getLogoutUrl() {
        return getHost() + LOGOUT;
    }

}

@@ -257,29 +257,30 @@
 der %7B%0A%0A    p
-ublic
+rivate
  static fina
@@ -624,16 +624,85 @@
 =login%22;
+%0A    private static final String USER_IMAGE = %22/images/comprofiler/%22;
 %0A%0A    @N
@@ -1179,24 +1179,24 @@
 threadId) %7B%0A
-
         retu
@@ -1259,32 +1259,170 @@
  %22#top%22;%0A    %7D%0A%0A
+    @NonNull%0A    public static String getUserImage(@NonNull String imageLink) %7B%0A        return getHost() + USER_IMAGE + imageLink;%0A    %7D%0A%0A
     @NonNull%0A   

Add user image retrieval method to UrlHolder