package ch.hevs.aislab.magpie.debs.retrofit;


import ch.hevs.aislab.magpie.debs.model.MobileClient;
import retrofit.http.Body;
import retrofit.http.POST;

public interface UserSvcApi {

    String CLIENT_ID = "mobile";

    String SERVICE_URL = "https://10.0.2.2:8443";
    String TOKEN_PATH = "/oauth/token";

    String USER_SVC = "/user";
    String USER_GET_SVC = USER_SVC + "/getUser";

    @POST(USER_GET_SVC)
    MobileClient getUser(@Body String gcmToken);

}

@@ -40,16 +40,46 @@
 ofit;%0A%0A%0A
+import java.util.Collection;%0A%0A
 import c
@@ -172,20 +172,73 @@
 it.http.
-POST
+GET;%0Aimport retrofit.http.POST;%0Aimport retrofit.http.Path
 ;%0A%0Apubli
@@ -384,24 +384,56 @@
 th/token%22;%0A%0A
+    String USER_ID = %22userId%22;%0A%0A
     String U
@@ -504,79 +504,527 @@
 r%22;%0A
-%0A    @POST(USER_GET_SVC)%0A    MobileClient getUser(@Body String gcmToken
+    String USER_GET_CONTACTS_ACCEPTED_SVC = USER_SVC + %22/%7B%22 + USER_ID + %22%7D%22 + %22/getContactsAccepted%22;%0A    String USER_GET_CONTACTS_PENDING_SVC = USER_SVC + %22/%7B%22 + USER_ID + %22%7D%22 + %22/getContactsPending%22;%0A%0A%0A    @POST(USER_GET_SVC)%0A    MobileClient getUser(@Body String gcmToken);%0A%0A    @GET(USER_GET_CONTACTS_ACCEPTED_SVC)%0A    Collection%3CMobileClient%3E getContactsAccepted(@Path(USER_ID) long userId);%0A%0A    @GET(USER_GET_CONTACTS_PENDING_SVC)%0A    public Collection%3CMobileClient%3E getContactsPending(@Path(USER_ID) long userId
 );%0A%0A

Add methods to get contacts by their subscription status