org.gbanga.api
Class Pocket

java.lang.Object
  extended by org.gbanga.api.Pocket

public class Pocket
extends java.lang.Object

The virtual inventory of a player containing digital figures (Gbangoos), collected tags, friends and the own history.

Details about JSON serialization

For the JSON object serialization, the field names are used. Eg.

 {
   gbangoos: [
               { id: 2382 },
               { id: 2343 }
             ]
 }
 

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.

Author:
Matthias

Field Summary
 Gbangoo[] gbangoos
          List with contained Gbangoos
 Infrastructure[] infrastructures
          List of Infrastructures owned
 Puzzle[] puzzles
          List of Puzzles started
 Resource[] resources
          List with amounts of Resources
 Tag[] tags
          List of Tags collected
 Cell[] trail
          List of Cells visited
 
Constructor Summary
Pocket()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gbangoos

@HideIfNull
public Gbangoo[] gbangoos
List with contained Gbangoos


infrastructures

@HideIfNull
public Infrastructure[] infrastructures
List of Infrastructures owned


puzzles

@HideIfNull
public Puzzle[] puzzles
List of Puzzles started


resources

@HideIfNull
public Resource[] resources
List with amounts of Resources


tags

@HideIfNull
public Tag[] tags
List of Tags collected


trail

@HideIfNull
public Cell[] trail
List of Cells visited

Constructor Detail

Pocket

public Pocket()