|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gbanga.api.Story
public class Story
A story is an article with text, image and link.
For the JSON object serialization, the field names are used. Eg.
{
id: 82340,
t: 1142982000000,
title: "some title",
text: "some text",
author: { 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.
| Field Summary | |
|---|---|
Player |
author
The writing Player |
int |
image
An id of the representing image to this Story |
Event |
link
An optional link to an Event |
long |
t
The timestamp when this Story was created |
java.lang.String |
text
The verbose content with details |
java.lang.String |
title
The summing up title |
| Constructor Summary | |
|---|---|
Story()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@HideIfNull public Player author
Player
public int image
Story
@HideIfNull public Event link
Event
public long t
Story was created
@PrimaryKey public java.lang.String text
public java.lang.String title
| Constructor Detail |
|---|
public Story()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||