Class GroupsAPI
- java.lang.Object
-
- com.cheetahdigital.corekit.models.module.Controller
-
- com.cheetahdigital.groups.core.api.GroupsAPI
-
- All Implemented Interfaces:
RestController
public class GroupsAPI extends Controller
Cheetah Loyalty Groups Module AGroups
represents one group of users.
-
-
Field Summary
-
Fields inherited from class com.cheetahdigital.corekit.models.module.Controller
STANDARD_DATE_FORMAT, TIMEZONE_DATE_FORMAT
-
-
Constructor Summary
Constructors Constructor Description GroupsAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getGroupClasses(GroupsParams groupsParams, boolean clearCache, ListenerModel<BaseModel<GroupClasses>,GroupClasses> listener)
Get the list of group classesvoid
getGroupMembers(GroupsParams groupsParams, boolean clearCache, ListenerModel<BaseModel<GroupMembers>,GroupMembers> listener)
Get the list of members in the groupvoid
getGroups(GroupsParams groupsParams, boolean clearCache, ListenerModel<BaseModel<Groups>,Groups> listener)
Get the list of groupsvoid
getJoinedGroups(GroupsParams groupsParams, boolean clearCache, ListenerModel<BaseModel<Groups>,Groups> listener)
Get the list of joined groupsvoid
joinGroup(GroupsParams groupsParams, ListenerModel<BaseModel<GroupJoinLeaveResponse>,GroupJoinLeaveResponse> listener)
Join groupvoid
leaveGroup(GroupsParams groupsParams, ListenerModel<BaseModel<GroupJoinLeaveResponse>,GroupJoinLeaveResponse> listener)
Leave group-
Methods inherited from class com.cheetahdigital.corekit.models.module.Controller
createCache, createHttpClient, createRetrofitInterface, evictAllCache, getGsonConfiguration, getRestAdapter, getTimeoutConnectionInSeconds, getTimeoutSocketInSeconds, initialize, removeResponsesFromCache
-
-
-
-
Method Detail
-
getGroups
public void getGroups(GroupsParams groupsParams, boolean clearCache, ListenerModel<BaseModel<Groups>,Groups> listener)
Get the list of groups- Parameters:
groupsParams
- theGroupsParams
for Groups APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
getJoinedGroups
public void getJoinedGroups(GroupsParams groupsParams, boolean clearCache, ListenerModel<BaseModel<Groups>,Groups> listener)
Get the list of joined groups- Parameters:
groupsParams
- theGroupsParams
for Groups APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
getGroupMembers
public void getGroupMembers(GroupsParams groupsParams, boolean clearCache, ListenerModel<BaseModel<GroupMembers>,GroupMembers> listener)
Get the list of members in the group- Parameters:
groupsParams
- theGroupsParams
for Groups APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
getGroupClasses
public void getGroupClasses(GroupsParams groupsParams, boolean clearCache, ListenerModel<BaseModel<GroupClasses>,GroupClasses> listener)
Get the list of group classes- Parameters:
groupsParams
- theGroupsParams
for Groups APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
joinGroup
public void joinGroup(GroupsParams groupsParams, ListenerModel<BaseModel<GroupJoinLeaveResponse>,GroupJoinLeaveResponse> listener)
Join group- Parameters:
groupsParams
- theGroupsParams
for Groups APIlistener
- callback to handle the results
-
leaveGroup
public void leaveGroup(GroupsParams groupsParams, ListenerModel<BaseModel<GroupJoinLeaveResponse>,GroupJoinLeaveResponse> listener)
Leave group- Parameters:
groupsParams
- theGroupsParams
for Groups APIlistener
- callback to handle the results
-
-