|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object aigames.soccer.application.UserInfo
Field Summary | |
static int |
TYPE_OBSERVER
OBSERVER type of user |
static int |
TYPE_PLAYER
PLAYER type of user |
static int |
TYPE_UNKNOWN
Unknown type of user |
Constructor Summary | |
UserInfo(UserId userId)
Constructor with user id. |
|
UserInfo(UserId userId,
org.dom4j.Document message)
Constructor which sets user id and reads user type from message. |
Method Summary | |
java.util.Calendar |
getLastMessageDate()
Returns last user message date. |
java.lang.String |
getName()
Gets user name. |
int |
getNoOfBadMessages()
Returns number of bad messages recieved from user. |
int |
getType()
Returns user type. |
UserId |
getUserId()
Returns user id. |
void |
setLastMessageDate(java.util.Calendar lastMessageDate)
Sets last user message date. |
void |
setName(java.lang.String name)
Sets user name. |
void |
setNoOfBadMessages(int noOfBadMessages)
Sets number of bad messages recieved from user. |
void |
setType(int type)
Sets user type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TYPE_UNKNOWN
public static final int TYPE_PLAYER
public static final int TYPE_OBSERVER
Constructor Detail |
public UserInfo(UserId userId)
userId
- User id for the user info.public UserInfo(UserId userId, org.dom4j.Document message)
userId
- User id for the user info.message
- Message with user type.Method Detail |
public int getType()
public void setType(int type)
type
- User type to set.public java.util.Calendar getLastMessageDate()
public void setLastMessageDate(java.util.Calendar lastMessageDate)
lastMessageDate
- Last message date to set.public java.lang.String getName()
public void setName(java.lang.String name)
name
- User name to set.public int getNoOfBadMessages()
public void setNoOfBadMessages(int noOfBadMessages)
noOfBadMessages
- Number of bad messages to set.public UserId getUserId()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |