|
|||||||||
| 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.Resource
public class Resource
An accumulation of a given type of resource.
For the JSON object serialization, the field names are used. Eg.
{
amount: 82340,
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.
| Field Summary | |
|---|---|
int |
amount
The amount of this type of resource represented by this object instance |
long |
id
The unique identifier for this Resource. |
int |
image
The id of the representing image |
long |
type
The type of the Resource |
| Constructor Summary | |
|---|---|
Resource()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int amount
@PrimaryKey public long id
Resource.
public int image
public long type
Resource
| Constructor Detail |
|---|
public Resource()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||