org.gbanga.api
Class Story

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

public class Story
extends java.lang.Object

A story is an article with text, image and link.

Details about JSON serialization

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.

Author:
Matthias

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

author

@HideIfNull
public Player author
The writing Player


image

public int image
An id of the representing image to this Story


link

@HideIfNull
public Event link
An optional link to an Event


t

public long t
The timestamp when this Story was created


text

@PrimaryKey
public java.lang.String text
The verbose content with details


title

public java.lang.String title
The summing up title

Constructor Detail

Story

public Story()