Class LeaderboardAPI
- java.lang.Object
-
- com.cheetahdigital.corekit.models.module.Controller
-
- com.cheetahdigital.leaderboard.core.api.LeaderboardAPI
-
- All Implemented Interfaces:
com.cheetahdigital.corekit.rest.RestController
public class LeaderboardAPI extends com.cheetahdigital.corekit.models.module.Controller
Class for setting the query parameters of Leaderboard API.
-
-
Constructor Summary
Constructors Constructor Description LeaderboardAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getLeaderboardAroundMe(LeaderboardParams leaderboardParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<LeaderData>,LeaderData> listener)
Gets the list of members around the user's rank and removes responses from cachevoid
getLeaderboardFriendsRank(LeaderboardParams leaderboardParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<LeaderData>,LeaderData> listener)
Get the ranking of friends and remvoes responses from cachevoid
getLeaderboardMemberRank(LeaderboardParams leaderboardParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<MemberRankData>,MemberRankData> listener)
Gets the ranking of member and removes responses from cachevoid
getLeaderboards(LeaderboardParams leaderboardParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<BoardData>,BoardData> listener)
Get the list of leaderboardsvoid
getTopNLeaderboard(LeaderboardParams leaderboardParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<LeaderData>,LeaderData> listener)
Gets the list of top ranking members
-
-
-
Method Detail
-
getLeaderboards
public void getLeaderboards(LeaderboardParams leaderboardParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<BoardData>,BoardData> listener)
Get the list of leaderboards- Parameters:
leaderboardParams
- theLeaderboardParams
for Leaderboard APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
getTopNLeaderboard
public void getTopNLeaderboard(LeaderboardParams leaderboardParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<LeaderData>,LeaderData> listener)
Gets the list of top ranking members- Parameters:
leaderboardParams
- theLeaderboardParams
for Leaderboard APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
getLeaderboardAroundMe
public void getLeaderboardAroundMe(LeaderboardParams leaderboardParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<LeaderData>,LeaderData> listener)
Gets the list of members around the user's rank and removes responses from cache- Parameters:
leaderboardParams
- theLeaderboardParams
for Leaderboard APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
getLeaderboardMemberRank
public void getLeaderboardMemberRank(LeaderboardParams leaderboardParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<MemberRankData>,MemberRankData> listener)
Gets the ranking of member and removes responses from cache- Parameters:
leaderboardParams
- theLeaderboardParams
for Leaderboard APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
getLeaderboardFriendsRank
public void getLeaderboardFriendsRank(LeaderboardParams leaderboardParams, boolean clearCache, com.cheetahdigital.corekit.models.module.ListenerModel<com.cheetahdigital.corekit.models.BaseModel<LeaderData>,LeaderData> listener)
Get the ranking of friends and remvoes responses from cache- Parameters:
leaderboardParams
- theLeaderboardParams
for Leaderboard APIclearCache
- set totrue
to clear previously stored cachelistener
- callback to handle the results
-
-