API reference

ChallengeEntry Class

A challenge entry object contains information about an individual entry within a challenge such as the user who made the entry, the score achieved, and other relevant details. It's the array element type of com.meta.horizon.platform.ovr.models.ChallengeEntryArray and can be retrieved using com.meta.horizon.platform.ovr.requests.Challenges#getEntries(long challengeID, int limit, LeaderboardFilterType filter, LeaderboardStartAt startAt).

Constructors

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

Methods

getDisplayScore ()
A displayable score for this challenge entry. The score is formatted with thousands separators and the relevant units are appended based on the associated leaderboard's score type.
Signature
String com.meta.horizon.platform.ovr.models.ChallengeEntry.getDisplayScore()
Returns
String  String
getExtraData ()
A 2KB custom data field that is associated with the challenge entry.
Signature
byte [] com.meta.horizon.platform.ovr.models.ChallengeEntry.getExtraData()
Returns
byte []  byte[]
getID ()
The unique identifier of this challenge entry which can be used by [com.meta.horizon.platform.ovr.requests.Challenges#getEntriesByIds(long challengeID, int limit, LeaderboardStartAt startAt, long[] userIDs)](classcom_1_1meta_1_1horizon_1_1platform_1_1ovr_1_1requests_1_1_challenges_1a1e309b58ee7162881fa0c13f968abbc9) and com.meta.horizon.platform.ovr.requests.Challenges#getEntries(long challengeID, int limit, LeaderboardFilterType filter, LeaderboardStartAt startAt).
Signature
long com.meta.horizon.platform.ovr.models.ChallengeEntry.getID()
Returns
long  long
getRank ()
Challenges can be ranked by highest or lowest scores within a time period. This indicates the position of this challenge entry.
Signature
int com.meta.horizon.platform.ovr.models.ChallengeEntry.getRank()
Returns
int  int
getScore ()
The raw underlying value of the challenge entry score. It is a type of string that is returned by a long integer.
Signature
long com.meta.horizon.platform.ovr.models.ChallengeEntry.getScore()
Returns
long  long
getTimestamp ()
The timestamp of the creation of this entry in the challenge.
Signature
LocalDateTime com.meta.horizon.platform.ovr.models.ChallengeEntry.getTimestamp()
Returns
LocalDateTime  LocalDateTime
getUser ()
The user corresponding to this entry within the challenge.
Signature
User com.meta.horizon.platform.ovr.models.ChallengeEntry.getUser()
Returns
User User