public interface Player
Modifier and Type | Method and Description |
---|---|
boolean |
addSession(PlayerSession session)
Add a session to a player.
|
String |
getEmailId()
Method used to get the email id of the gamer.
|
Object |
getId()
A unique key representing a gamer.
|
String |
getName()
Method used to get the name of the gamer.
|
void |
logout(PlayerSession playerSession)
When a player logs out, this method can be called.
|
boolean |
removeSession(PlayerSession session)
Remove the players session to a game.
|
void |
setEmailId(String emailId)
Method used to set the email id of the gamer.
|
void |
setId(Object uniqueKey)
A unique key representing a gamer.
|
void |
setName(String name)
Method used to set the name of the gamer.
|
Object getId()
void setId(Object uniqueKey)
String getName()
void setName(String name)
name
- Set the string name, strings more than 100 characters long may
be rejected.String getEmailId()
void setEmailId(String emailId)
emailId
- Sets the email id string. strings more than 50 characters long
may be rejected.boolean addSession(PlayerSession session)
session
- The session to add.boolean removeSession(PlayerSession session)
session
- The session to remove.void logout(PlayerSession playerSession)
playerSession
- The session which is to be logged out.Copyright © 2013. All Rights Reserved.