org.gbanga.api
Class WebSession

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

public class WebSession
extends java.lang.Object

A session is a whole visit of a player on the website.

Details about JSON serialization

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

 {
   key: "some string"
   player: { 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
 boolean collecting
          Interest in collecting
 boolean dating
          Interest in dating
 boolean events
          Interest in events
 boolean everybodyCanSeeMyPosition
          Everybody can see the players position
 boolean friendsCanSeeMyPosition
          Friends can see the players position
 java.lang.String gender
          Gender
 java.lang.String key
          The session key to be used in API calls where an authenticated Player is necessary.
 long lastSession
          Timestamp when the last session occured before this one
 boolean networking
          Interest in networking
 boolean notifyByEmail
          Notifications by email are activated
 boolean notifyBySMS
          Notifications by SMS are activated
 int nov
          Number of logins so far
 boolean play
          Interest in playing quests
 Player player
          The authenticated Player
 boolean trading
          Interest in trading
 boolean travel
          Interest in travelling
 int year
          Year
 
Constructor Summary
WebSession()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

collecting

public boolean collecting
Interest in collecting


dating

public boolean dating
Interest in dating


events

public boolean events
Interest in events


everybodyCanSeeMyPosition

public boolean everybodyCanSeeMyPosition
Everybody can see the players position


friendsCanSeeMyPosition

public boolean friendsCanSeeMyPosition
Friends can see the players position


gender

public java.lang.String gender
Gender


key

@PrimaryKey
public java.lang.String key
The session key to be used in API calls where an authenticated Player is necessary.


lastSession

public long lastSession
Timestamp when the last session occured before this one


networking

public boolean networking
Interest in networking


notifyByEmail

public boolean notifyByEmail
Notifications by email are activated


notifyBySMS

public boolean notifyBySMS
Notifications by SMS are activated


nov

public int nov
Number of logins so far


play

public boolean play
Interest in playing quests


player

public Player player
The authenticated Player


trading

public boolean trading
Interest in trading


travel

public boolean travel
Interest in travelling


year

public int year
Year

Constructor Detail

WebSession

public WebSession()