Class BadgesAPI
- java.lang.Object
-
- com.cheetahdigital.corekit.models.module.Controller
-
- com.cheetahdigital.badges.core.api.BadgesAPI
-
- All Implemented Interfaces:
com.cheetahdigital.corekit.rest.RestController
public class BadgesAPI extends com.cheetahdigital.corekit.models.module.Controller
Class for setting the query parameters of Badges API AllNullable
parameters mean you can remove the parameter by passingnull
value.
-
-
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, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Badge>,Badge> listener)
Get the Badge details using theid
from theBadgeParams
void
getBadges(BadgeParams badgeParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Metadata>,Metadata> listener)
Get all available/published badgesvoid
getMemberBadges(BadgeParams badgeParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<Badges>,Badges> listener)
Get all the badges awarded to a member
-
-
-
Method Detail
-
getBadge
public void getBadge(BadgeParams badgeParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.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, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.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, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.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
-
-