API reference

ChallengeArray Class

This is a paginated array of com.meta.horizon.platform.ovr.models.Challenges that can be retrieved using the com.meta.horizon.platform.ovr.requests.Challenges#getList(ChallengeOptions challengeOptions, int limit) request. The array contains elements of type com.meta.horizon.platform.ovr.models.Challenge, which represent individual challenges. See more details of Challenges in here.

Constructors

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

Methods

getElements ()
This field represents an individual element within the challenge array. Each element is of type com.meta.horizon.platform.ovr.models.Challenge, which contains detailed information about a specific challenge.
Signature
List<Challenge> com.meta.horizon.platform.ovr.models.ChallengeArray.getElements()
Returns
List< Challenge > Challenge
getNextPage ()
Retrieves the next page of ChallengeArray. If there is no next page, this field will be empty.
Signature
Request<ChallengeArray> com.meta.horizon.platform.ovr.models.ChallengeArray.getNextPage()
Returns
Request< ChallengeArray >
getNextUrl ()
This field contains the URL of the next page of challenges. If there is no next page, this field will be empty.
Signature
String com.meta.horizon.platform.ovr.models.ChallengeArray.getNextUrl()
Returns
String  String
getPreviousPage ()
Retrieves the previous page of ChallengeArray. If there is no previous page, this field will be empty.
Signature
Request<ChallengeArray> com.meta.horizon.platform.ovr.models.ChallengeArray.getPreviousPage()
Returns
Request< ChallengeArray >
getPreviousUrl ()
The URL of the previous page of challenges. If has_previous_page is true, this field provides the URL that the client can use to request the previous page of results.
Signature
String com.meta.horizon.platform.ovr.models.ChallengeArray.getPreviousUrl()
Returns
String  String
getSize ()
This field indicates the total size of the challenge array in bytes.
Signature
long com.meta.horizon.platform.ovr.models.ChallengeArray.getSize()
Returns
long  long
getTotalCount ()
The total count of challenges contained in the array, across all pages. This field provides the total number of challenges that match the search criteria, regardless of the current page or pagination settings.
Signature
long com.meta.horizon.platform.ovr.models.ChallengeArray.getTotalCount()
Returns
long  long
hasNextPage ()
This field indicates whether there is a next page of challenges available in the array. If this value is true, it means that there are more challenges to retrieve beyond the current page.
Signature
boolean com.meta.horizon.platform.ovr.models.ChallengeArray.hasNextPage()
Returns
boolean  boolean
hasPreviousPage ()
This field indicates whether there is a previous page of challenges available in the array. If this value is true, it means that there are more challenges to retrieve before the current page.
Signature
boolean com.meta.horizon.platform.ovr.models.ChallengeArray.hasPreviousPage()
Returns
boolean  boolean