|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gbanga.api.Entity
org.gbanga.api.Player
public class Player
A player is a real person that participates in Gbanga.
For the JSON object serialization, the field names are used. Eg.
{
name: "some name",
status: "",
gbangoos: [
{ id: 7223 },
{ id: 1821 }
]
}
Fields annotated with PrimaryKey are used, if not the whole object is sent. HideIfNull indicates that the field is not sent at all, if the value is not set.
| Field Summary | |
|---|---|
java.lang.String |
cellPhone
Its cell phone number including the country code. |
int |
cellsDiscovered
Number of Cells discovered |
int |
countriesVisited
Number of real countries visited |
Cell |
currentCell
The current location (if visible to friends or all). |
java.lang.String |
device
The device the Player currently uses. |
java.lang.String |
email
The email address |
java.lang.String |
facebook
The Facebook User ID linked to this Player |
int |
friendsCount
Number of Player friends |
Gbangoo[] |
gbangoos
A list with the Gbangoos in its Pocket |
int |
image
The image id of its avatar |
boolean |
isFriend
Information to know if the player requesting the info is a friend. |
double |
latitude
The latitude of the current location (if visible to friends or all). |
double |
longitude
The longitude of the current location (if visible to friends or all). |
java.lang.String |
name
The screen name |
int |
pocketSize
Number of items in its Pocket |
int |
points
The score point balance. |
Puzzle[] |
puzzles
A list with the collected Puzzles |
Message[] |
shouts
A list with cell shout Message |
int |
sqmVisited
Number of real square meters visited |
java.lang.String |
status
The status message |
int |
tagCount
Number of Tags collected |
Visit[] |
trail
A list with its Visits |
java.lang.String |
twitter
The Twitter account linked to this Player |
java.lang.String |
twitterPassword
The password to the linked Twitter account |
| Constructor Summary | |
|---|---|
Player()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@HideIfNull public java.lang.String cellPhone
public int cellsDiscovered
Cells discovered
public int countriesVisited
@HideIfNull public Cell currentCell
@HideIfNull public java.lang.String device
Player currently uses.
@HideIfNull public java.lang.String email
@HideIfNull public java.lang.String facebook
Player
public int friendsCount
Player friends
@HideIfNull public Gbangoo[] gbangoos
Gbangoos in its Pocket
public int image
public boolean isFriend
@HideIfNull public double latitude
@HideIfNull public double longitude
@PrimaryKey public java.lang.String name
public int pocketSize
Pocket
public int points
@HideIfNull public Puzzle[] puzzles
Puzzles
@HideIfNull public Message[] shouts
Message
public int sqmVisited
@HideIfNull public java.lang.String status
public int tagCount
Tags collected
@HideIfNull public Visit[] trail
Visits
@HideIfNull public java.lang.String twitter
Player
@HideIfNull public java.lang.String twitterPassword
| Constructor Detail |
|---|
public Player()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||