API reference
API reference
Select your platform
No SDKs available
No versions available

LeaderboardArray Class

Represents a paginated list of com.meta.horizon.platform.ovr.models.Leaderboard elements. It allows you to easily access and manipulate the elements in the paginated list, such as the size of the list and if there is a next page of elements available.

Constructors

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

Methods

getElements ()
Access the indexed element in this list. Note that the index is zero-based, so the first element has an index of 0.
Signature
List<Leaderboard> com.meta.horizon.platform.ovr.models.LeaderboardArray.getElements()
Returns
List< Leaderboard > Leaderboard
getNextPage ()
Retrieves the next page of LeaderboardArray. If there is no next page, this field will be empty.
Signature
Request<LeaderboardArray> com.meta.horizon.platform.ovr.models.LeaderboardArray.getNextPage()
getNextUrl ()
The URL to request the next paginated list of elements.
Signature
String com.meta.horizon.platform.ovr.models.LeaderboardArray.getNextUrl()
Returns
String  String
getSize ()
The number of elements contained within this list. This is not equal to the total number of elements across multiple pages.
Signature
long com.meta.horizon.platform.ovr.models.LeaderboardArray.getSize()
Returns
long  long
hasNextPage ()
Indicates whether there is a next page of elements that can be retrieved. If this value is true, you can use the next_url field to request the next page of elements.
Signature
boolean com.meta.horizon.platform.ovr.models.LeaderboardArray.hasNextPage()
Returns
boolean  boolean