Class FriendsAPI
- java.lang.Object
-
- com.cheetahdigital.corekit.models.module.Controller
-
- com.cheetahdigital.friends.core.api.FriendsAPI
-
- All Implemented Interfaces:
RestController
public class FriendsAPI extends Controller
Class for setting the query parameters of Friends API. AllNullableparameters means you can remove the parameter by passing anullvalue.
-
-
Field Summary
-
Fields inherited from class com.cheetahdigital.corekit.models.module.Controller
STANDARD_DATE_FORMAT, TIMEZONE_DATE_FORMAT
-
-
Constructor Summary
Constructors Constructor Description FriendsAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetFriends(FriendsParams friendsParams, boolean clearCache, ListenerModel<BaseModel<java.util.List<Friend>>,java.util.List<Friend>> listener)Method to get a list ofFriend-
Methods inherited from class com.cheetahdigital.corekit.models.module.Controller
createCache, createHttpClient, createRetrofitInterface, evictAllCache, getGsonConfiguration, getRestAdapter, getTimeoutConnectionInSeconds, getTimeoutSocketInSeconds, initialize, removeResponsesFromCache
-
-
-
-
Method Detail
-
getFriends
public void getFriends(FriendsParams friendsParams, boolean clearCache, ListenerModel<BaseModel<java.util.List<Friend>>,java.util.List<Friend>> listener)
Method to get a list ofFriend- Parameters:
friendsParams- theFriendsParamsfor Friends APIclearCache- set totrueto clear previously stored cachelistener- callback to handle the results
-
-