Package dev.getelements.elements.sdk.dao
Interface RankDao
- All Known Implementing Classes:
MongoRankDao
public interface RankDao
Provides access to
Rank
instances stored in the database, correlating and filtering data as necessary.-
Method Summary
Modifier and TypeMethodDescriptiongetRanksForFriends
(String leaderboardNameOrId, String profileId, int offset, int count, long leaderboardEpoch) Given theLeaderboard
name or ID, this will return allRank
instances sorted in order.getRanksForFriendsRelative
(String leaderboardNameOrId, String profileId, int offset, int count, long leaderboardEpoch) Given theLeaderboard
name or ID, this will return allRank
instances sorted in order.getRanksForGlobal
(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Given theLeaderboard
name or ID, this will return allRank
instances sorted in order.getRanksForGlobalRelative
(String leaderboardNameOrId, String profileId, int offset, int count, long leaderboardEpoch) Given theLeaderboard
name or ID, this will return allRank
instances sorted in order.getRanksForGlobalTabular
(String leaderboardNameOrId, long leaderboardEpoch) Gets the ranks for a leaderboard as a tabulation.getRanksForMutualFollowers
(String leaderboardNameOrId, String profileId, int offset, int count, long leaderboardEpoch) Given theLeaderboard
name or ID, this will return allRank
instances sorted in order.getRanksForMutualFollowersRelative
(String leaderboardNameOrId, String profileId, int offset, int count, long leaderboardEpoch) Given theLeaderboard
name or ID, this will return allRank
instances sorted in order.
-
Method Details
-
getRanksForGlobal
Pagination<Rank> getRanksForGlobal(String leaderboardNameOrId, int offset, int count, long leaderboardEpoch) Given theLeaderboard
name or ID, this will return allRank
instances sorted in order.- Parameters:
leaderboardNameOrId
- the value ofLeaderboard.getId()
orLeaderboard.getName()
offset
- the offset in the datasetcount
- the number of results to returnleaderboardEpoch
- the epoch timestamp- Returns:
- a
Pagination<Rank>
containing all ranks
-
getRanksForGlobalRelative
Pagination<Rank> getRanksForGlobalRelative(String leaderboardNameOrId, String profileId, int offset, int count, long leaderboardEpoch) Given theLeaderboard
name or ID, this will return allRank
instances sorted in order. This allows the the result set to be skipped forward to make the suppliedProfile
appear in= the result set.- Parameters:
leaderboardNameOrId
- the value ofLeaderboard.getId()
orLeaderboard.getName()
profileId
- the value ofProfile.getId()
count
- the number of results to returnleaderboardEpoch
- the epoch timestamp- Returns:
- a
Pagination<Rank>
containing all ranks
-
getRanksForFriends
Pagination<Rank> getRanksForFriends(String leaderboardNameOrId, String profileId, int offset, int count, long leaderboardEpoch) Given theLeaderboard
name or ID, this will return allRank
instances sorted in order. This allows the the result set to be skipped forward to make the suppliedProfile
appear int the result set.- Parameters:
leaderboardNameOrId
- the value ofLeaderboard.getId()
orLeaderboard.getName()
profileId
- the value ofProfile.getId()
offset
- the offset in the dataset, may be negativecount
- the number of results to returnleaderboardEpoch
- the epoch timestamp- Returns:
- a
Pagination<Rank>
containing all ranks
-
getRanksForFriendsRelative
Pagination<Rank> getRanksForFriendsRelative(String leaderboardNameOrId, String profileId, int offset, int count, long leaderboardEpoch) Given theLeaderboard
name or ID, this will return allRank
instances sorted in order. This allows the the result set to be skipped forward to make the suppliedProfile
appear int the result set.Additionally this will filter the results to only include friends of the supplied
Profile
.- Parameters:
leaderboardNameOrId
- the value ofLeaderboard.getId()
orLeaderboard.getName()
profileId
- the value ofProfile.getId()
offset
- the offset in the dataset, may be negativecount
- the number of results to return @return aPagination<Rank>
containing all ranksleaderboardEpoch
- the epoch timestamp
-
getRanksForMutualFollowers
Pagination<Rank> getRanksForMutualFollowers(String leaderboardNameOrId, String profileId, int offset, int count, long leaderboardEpoch) Given theLeaderboard
name or ID, this will return allRank
instances sorted in order. This allows the the result set to be skipped forward to make the suppliedProfile
appear int the result set.- Parameters:
leaderboardNameOrId
- the value ofLeaderboard.getId()
orLeaderboard.getName()
profileId
- the value ofProfile.getId()
offset
- the offset in the dataset, may be negativecount
- the number of results to returnleaderboardEpoch
- the epoch timestamp- Returns:
- a
Pagination<Rank>
containing all ranks
-
getRanksForMutualFollowersRelative
Pagination<Rank> getRanksForMutualFollowersRelative(String leaderboardNameOrId, String profileId, int offset, int count, long leaderboardEpoch) Given theLeaderboard
name or ID, this will return allRank
instances sorted in order. This allows the the result set to be skipped forward to make the suppliedProfile
appear int the result set.Additionally this will filter the results to only include friends of the supplied
Profile
.- Parameters:
leaderboardNameOrId
- the value ofLeaderboard.getId()
orLeaderboard.getName()
profileId
- the value ofProfile.getId()
offset
- the offset in the dataset, may be negativecount
- the number of results to return @return aPagination<Rank>
containing all ranksleaderboardEpoch
- the epoch timestamp
-
getRanksForGlobalTabular
Gets the ranks for a leaderboard as a tabulation.- Parameters:
leaderboardNameOrId
- the value ofLeaderboard.getId()
orLeaderboard.getName()
leaderboardEpoch
- the epoch timestamp- Returns:
- the tabular
-