public class SwarmLeaderboardScore extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SwarmLeaderboardScore>
Modifier and Type | Class and Description |
---|---|
static class |
SwarmLeaderboardScore.GotDataCB |
Modifier and Type | Field and Description |
---|---|
int |
id
The id of this SwarmLeaderboardScore
|
int |
rank
The rank for this SwarmLeaderboardScore, rank 1 = first place.
|
float |
score
The score for this SwarmLeaderboardScore
|
int |
timestamp
The unix timestamp for when the SwarmLeadboardScore was submitted.
|
SwarmUser |
user
The SwarmUser for this SwarmLeaderboardScore
|
Constructor and Description |
---|
SwarmLeaderboardScore() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(SwarmLeaderboardScore other)
Compare this SwarmLeaderboardScore to another SwarmLeaderboardScore to determine which of the two SwarmLeaderboardScores
has a greater rank value.
|
void |
getData(SwarmLeaderboardScore.GotDataCB cb)
Get the corresponding String payload data associated with this SwarmLeaderboardScore
|
public int id
public SwarmUser user
public float score
public int rank
public int timestamp
public void getData(SwarmLeaderboardScore.GotDataCB cb)
cb
- The GotDataCB callback returns in gotData with String data containing the
String payload data associated with this SwarmLeaderboardScore.public int compareTo(SwarmLeaderboardScore other)
compareTo
in interface java.lang.Comparable<SwarmLeaderboardScore>
other
- The SwarmLeaderboardScore to compare this SwarmLeaderboardScore against.