org.gbanga.api
Class Tag

java.lang.Object
  extended by org.gbanga.api.Entity
      extended by org.gbanga.api.Tag
All Implemented Interfaces:
Good

public class Tag
extends Entity
implements Good

A Gbanga tag is everything from a playing card, a graffiti, a post-it and a hint.

Details about JSON serialization

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

 {
   id: 82340,
   content: "some text",
   int: 3843,
   creator: { name: "some name" }
 }
 

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
 short aero
          The amount of Aero
 short aqui
          The amount of Aqui
 java.lang.String content
          The descrptive content to it
 Player creator
          The creating Player (if any)
 long id
          The unique id of this Tag
 int image
          An id of the representing image
 float rating
          The current rating
 short sola
          The amount of Sola
 short terra
          The amount of Terra
 int tileIndex
          The location within the containing cell.
 int views
          The number of times a Player has looked at it (DETAIL Dialog/close-up views)
 java.lang.String visualCode
          The visual code for it
 
Constructor Summary
Tag()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

aero

public short aero
The amount of Aero


aqui

public short aqui
The amount of Aqui


content

@HideIfNull
public java.lang.String content
The descrptive content to it


creator

@HideIfNull
public Player creator
The creating Player (if any)


id

@PrimaryKey
public long id
The unique id of this Tag


image

public int image
An id of the representing image


rating

public float rating
The current rating


sola

public short sola
The amount of Sola


terra

public short terra
The amount of Terra


tileIndex

@HideIfEqualsInt(value=-2147483648)
public int tileIndex
The location within the containing cell. The value is not present or is negative if the tag is not in a Cell.


views

public int views
The number of times a Player has looked at it (DETAIL Dialog/close-up views)


visualCode

public java.lang.String visualCode
The visual code for it

Constructor Detail

Tag

public Tag()