org.gbanga.api
Class Conversation

java.lang.Object
  extended by org.gbanga.api.Event
      extended by org.gbanga.api.Conversation

public class Conversation
extends Event

A conversation is a message history at a certain location in a certain timeframe.

Details about JSON serialization

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

 {
   location: { name: "a cell" }
 }
 

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
 Cell location
          The scene where the conversation took place.
 Message[] messages
          A list with Messages (both, received and sent).
 int type
          The type of a Conversation Event.
 
Fields inherited from class org.gbanga.api.Event
booleanParameters, cell, CELL_DISCOVERED, CHALLENGE, CHAT_MESSAGE_RECEIVED, CONVERSATION, CONVERSATION_MESSAGE_RECEIVED, FRIEND_BROKE, gbangoo, GBANGOO_DROPPED, GBANGOO_LIFTED, GIFT_IN_POCKET_RECEIVED, id, infrastructure, longParameters, partner, player, PLAYER_ARRIVED, PLAYER_LEFT, POCKET_ITEM_LOST, PUZZLE_COMPLETED, resource, shortParameters, SHOUT_MESSAGE_RECEIVED, stringParameters, t, tag, TAG_CODE_ENTERED, tile, TRADE, TRADE_OFFER_RECEIVED, UNKNOWN, VISIT
 
Constructor Summary
Conversation()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

location

public Cell location
The scene where the conversation took place.


messages

public Message[] messages
A list with Messages (both, received and sent).


type

@PrimaryKey
public int type
The type of a Conversation Event.

Constructor Detail

Conversation

public Conversation()