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. AllNullable
parameters means you can remove the parameter by passing anull
value.
-
-
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 void
getFriends(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
- theFriendsParams
for Friends APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
-