org.gbanga.api
Class Infrastructure

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

public class Infrastructure
extends Entity
implements Good

An infrastructure is built by a Gbangoo in the virtual world.

Details about JSON serialization

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

 {
   id: 5012,
   image: 7232,
   type: 12
 }
 

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
 long id
          The unique identifier.
 int image
          The image id which represents the infrastructure.
 java.lang.String name
          The name of the infrastructure.
 Player owner
          The owning Player.
 long type
          The type of infrastructure this is.
 
Constructor Summary
Infrastructure()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

@PrimaryKey
public long id
The unique identifier.


image

public int image
The image id which represents the infrastructure.


name

public java.lang.String name
The name of the infrastructure.


owner

@HideIfNull
public Player owner
The owning Player.


type

public long type
The type of infrastructure this is.

Constructor Detail

Infrastructure

public Infrastructure()