org.gbanga.api
Class Visit

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

public class Visit
extends Event

A visit is a player being at a certain cell while doing activities.

Details about JSON serialization

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

 {
   type: 1,
   atCell: { name: "some cell" },
   activities: [
                 { id: 4132 },
                 { id: 2320 }
               ]
 }
 

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
 Event[] activities
          Events that occured during the visit
 Cell atCell
          The visited location
 int type
          The type of Visits
 Player visitor
          The visiting Player
 
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, partner, player, PLAYER_ARRIVED, PLAYER_LEFT, POCKET_ITEM_LOST, PUZZLE_COMPLETED, resource, SHOUT_MESSAGE_RECEIVED, stringParameters, t, tag, TAG_CODE_ENTERED, tile, TRADE, TRADE_OFFER_RECEIVED, UNKNOWN, VISIT
 
Constructor Summary
Visit()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activities

@HideIfNull
public Event[] activities
Events that occured during the visit


atCell

public Cell atCell
The visited location


type

@PrimaryKey
public int type
The type of Visits


visitor

public Player visitor
The visiting Player

Constructor Detail

Visit

public Visit()