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.

Constructors

LeaderboardEntryArray ( ptr )
Signature
com.meta.horizon.platform.ovr.models.LeaderboardEntryArray.LeaderboardEntryArray(final long ptr)
Parameters
ptr: final long

Methods

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.
Signature
List<LeaderboardEntry> com.meta.horizon.platform.ovr.models.LeaderboardEntryArray.getElements()
Returns
List< LeaderboardEntry > LeaderboardEntry
getNextPage ()
Retrieves the next page of LeaderboardEntryArray. If there is no next page, this field will be empty.
Signature
Request<LeaderboardEntryArray> com.meta.horizon.platform.ovr.models.LeaderboardEntryArray.getNextPage()
Returns
Request< LeaderboardEntryArray >
getNextUrl ()
The url of the next page of leaderboard entries. It provides a link to the next set of entries in the leaderboard.
Signature
String com.meta.horizon.platform.ovr.models.LeaderboardEntryArray.getNextUrl()
Returns
String  String
getPreviousPage ()
Retrieves the previous page of LeaderboardEntryArray. If there is no previous page, this field will be empty.
Signature
Request<LeaderboardEntryArray> com.meta.horizon.platform.ovr.models.LeaderboardEntryArray.getPreviousPage()
Returns
Request< LeaderboardEntryArray >
getPreviousUrl ()
The url of the previous leaderboard entries. It provides a link to the previous set of entries in the leaderboard.
Signature
String com.meta.horizon.platform.ovr.models.LeaderboardEntryArray.getPreviousUrl()
Returns
String  String
getSize ()
The size of this leaderboard entry array in bytes. It provides information about the amount of data stored in the array.
Signature
long com.meta.horizon.platform.ovr.models.LeaderboardEntryArray.getSize()
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.
Signature
long com.meta.horizon.platform.ovr.models.LeaderboardEntryArray.getTotalCount()
Returns
long  long
hasNextPage ()
A boolean indicates whether this leaderboard entry array has next page.
Signature
boolean com.meta.horizon.platform.ovr.models.LeaderboardEntryArray.hasNextPage()
Returns
boolean  boolean
hasPreviousPage ()
A boolean indicates whether this leaderboard entry array has previous page.
Signature
boolean com.meta.horizon.platform.ovr.models.LeaderboardEntryArray.hasPreviousPage()
Returns
boolean  boolean