API reference

LeaderboardEntryArray Class

An array of paginated leaderboard entries. It can be retrieved using com.meta.horizon.platform.ovr.requests.Leaderboards#getEntries(String leaderboardName, int limit, LeaderboardFilterType filter, LeaderboardStartAt startAt). It provides information about the leaderboard entries, such as their size, whether there are next or previous pages, the URLs for those pages, and the total count of entries in the leaderboard.

Member Functions

LeaderboardEntryArray
( final long ptr )
List< LeaderboardEntry > getElements ( )
This field represents an individual com.meta.horizon.platform.ovr.models.LeaderboardEntry within the array. It contains information about the leaderboard entry, such as its rank, score, and player name.
Returns
boolean hasNextPage ( )
A boolean indicates whether this leaderboard entry array has next page.
Returns
boolean
Request< LeaderboardEntryArray > getNextPage ( )
Retrieves the next page of LeaderboardEntryArray. If there is no next page, this field will be empty.
boolean hasPreviousPage ( )
A boolean indicates whether this leaderboard entry array has previous page.
Returns
boolean
Request< LeaderboardEntryArray > getPreviousPage ( )
Retrieves the previous page of LeaderboardEntryArray. If there is no previous page, this field will be empty.
String getNextUrl ( )
The url of the next page of leaderboard entries. It provides a link to the next set of entries in the leaderboard.
Returns
String
String getPreviousUrl ( )
The url of the previous leaderboard entries. It provides a link to the previous set of entries in the leaderboard.
Returns
String
long getSize ( )
The size of this leaderboard entry array in bytes. It provides information about the amount of data stored in the array.
Returns
long
long getTotalCount ( )
The total count of this leaderboard entry array, ignoring the pagination. It provides information about the total number of entries in the leaderboard.
Returns
long