Class BadgesAPI
- java.lang.Object
-
- com.cheetahdigital.corekit.models.module.Controller
-
- com.cheetahdigital.badges.core.api.BadgesAPI
-
- All Implemented Interfaces:
RestController
public class BadgesAPI extends Controller
Class for setting the query parameters of Badges API AllNullableparameters mean you can remove the parameter by passingnullvalue.
-
-
Field Summary
-
Fields inherited from class com.cheetahdigital.corekit.models.module.Controller
STANDARD_DATE_FORMAT, TIMEZONE_DATE_FORMAT
-
-
Constructor Summary
Constructors Constructor Description BadgesAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetBadge(BadgeParams badgeParams, boolean clearCache, ListenerModel<BaseModel<Badge>,Badge> listener)Get the Badge details using theidfrom theBadgeParamsvoidgetBadges(BadgeParams badgeParams, boolean clearCache, ListenerModel<BaseModel<Metadata>,Metadata> listener)Get all available/published badgesvoidgetMemberBadges(BadgeParams badgeParams, boolean clearCache, ListenerModel<BaseModel<Badges>,Badges> listener)Get all the badges awarded to a member-
Methods inherited from class com.cheetahdigital.corekit.models.module.Controller
createCache, createHttpClient, createRetrofitInterface, evictAllCache, getGsonConfiguration, getRestAdapter, getTimeoutConnectionInSeconds, getTimeoutSocketInSeconds, initialize, removeResponsesFromCache
-
-
-
-
Method Detail
-
getBadge
public void getBadge(BadgeParams badgeParams, boolean clearCache, ListenerModel<BaseModel<Badge>,Badge> listener)
Get the Badge details using theidfrom theBadgeParams- Parameters:
badgeParams-BadgeParamsquery parametersclearCache-trueto clear cache, otherwisefalselistener- callback for the API
-
getBadges
public void getBadges(BadgeParams badgeParams, boolean clearCache, ListenerModel<BaseModel<Metadata>,Metadata> listener)
Get all available/published badges- Parameters:
badgeParams-BadgeParamsquery parametersclearCache-booleantrueto clear cache, otherwisefalselistener- callback for the API
-
getMemberBadges
public void getMemberBadges(BadgeParams badgeParams, boolean clearCache, ListenerModel<BaseModel<Badges>,Badges> listener)
Get all the badges awarded to a member- Parameters:
badgeParams-BadgeParamsquery parametersclearCache-booleantrueto clear cache, otherwisefalselistener- callback for the API
-
-