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 AllNullable
parameters mean you can remove the parameter by passingnull
value.
-
-
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 void
getBadge(BadgeParams badgeParams, boolean clearCache, ListenerModel<BaseModel<Badge>,Badge> listener)
Get the Badge details using theid
from theBadgeParams
void
getBadges(BadgeParams badgeParams, boolean clearCache, ListenerModel<BaseModel<Metadata>,Metadata> listener)
Get all available/published badgesvoid
getMemberBadges(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 theid
from theBadgeParams
- Parameters:
badgeParams
-BadgeParams
query parametersclearCache
-true
to clear cache, otherwisefalse
listener
- callback for the API
-
getBadges
public void getBadges(BadgeParams badgeParams, boolean clearCache, ListenerModel<BaseModel<Metadata>,Metadata> listener)
Get all available/published badges- Parameters:
badgeParams
-BadgeParams
query parametersclearCache
-boolean
true
to clear cache, otherwisefalse
listener
- 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
-BadgeParams
query parametersclearCache
-boolean
true
to clear cache, otherwisefalse
listener
- callback for the API
-
-