Interface RankService
- All Known Implementing Classes:
AnonRankService,SuperUserRankService,UserRankService
public interface RankService
Queries and combines instances of
Leaderboard and Score to calculate player rank.-
Method Summary
Modifier and TypeMethodDescriptiongetRanksForFriends(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboard.getId()relative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfilegetRanksForFriendsRelative(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboard.getId()relative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfilegetRanksForGlobal(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboard.getId()getRanksForGlobalRelative(String leaderboardNameOrId, String profileId, int offset, int count, long leaderboardEpoch) getRanksForGlobalTabular(String leaderboardNameOrId, long leaderboardEpoch) Gets the global ranks for tabular data.getRanksForMutualFollowers(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboard.getId()relative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfilegetRanksForMutualFollowersRelative(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboardrelative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfile
-
Method Details
-
getRanksForGlobal
Pagination<Rank> getRanksForGlobal(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboard.getId()- Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()offset- the offsetcount- the countleaderboardEpoch- the epoch timestamp- Returns:
- the
Pagination<Rank>
-
getRanksForGlobalRelative
Pagination<Rank> getRanksForGlobalRelative(String leaderboardNameOrId, String profileId, int offset, int count, long leaderboardEpoch) - Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()profileId- the value ofProfile.getId()offset-count- the countleaderboardEpoch- the epoch timestamp- Returns:
- the
Pagination<Rank>
-
getRanksForFriends
Pagination<Rank> getRanksForFriends(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboard.getId()relative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfile- Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()offset- the offsetcount- the countleaderboardEpoch- the epoch timestamp- Returns:
- the
Pagination<Rank>
-
getRanksForFriendsRelative
Pagination<Rank> getRanksForFriendsRelative(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboard.getId()relative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfile- Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()offset- the offsetcount- the countleaderboardEpoch- the epoch timestamp- Returns:
- the
Pagination<Rank>
-
getRanksForMutualFollowers
Pagination<Rank> getRanksForMutualFollowers(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboard.getId()relative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfile- Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()offset- the offsetcount- the countleaderboardEpoch- the epoch timestamp- Returns:
- the
Pagination<Rank>
-
getRanksForMutualFollowersRelative
Pagination<Rank> getRanksForMutualFollowersRelative(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Gets allRankinstances for the suppliedLeaderboardrelative to theProfilewith the supplied id returning onlyRankinstances within the supplied friend list for the givenProfile- Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()offset- the offsetcount- the countleaderboardEpoch- the epoch timestamp- Returns:
- the
Pagination<Rank>
-
getRanksForGlobalTabular
Gets the global ranks for tabular data.- Returns:
- the tabular ranks
-