aigames.soccer.application
Class UserInfo

java.lang.Object
  extended byaigames.soccer.application.UserInfo

public class UserInfo
extends java.lang.Object

Version:
$Id: UserInfo.java,v 1.4 2004/05/08 21:55:27 mwerla Exp $

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

TYPE_UNKNOWN

public static final int TYPE_UNKNOWN
Unknown type of user

See Also:
Constant Field Values

TYPE_PLAYER

public static final int TYPE_PLAYER
PLAYER type of user

See Also:
Constant Field Values

TYPE_OBSERVER

public static final int TYPE_OBSERVER
OBSERVER type of user

See Also:
Constant Field Values
Constructor Detail

UserInfo

public UserInfo(UserId userId)
Constructor with user id.

Parameters:
userId - User id for the user info.

UserInfo

public UserInfo(UserId userId,
                org.dom4j.Document message)
Constructor which sets user id and reads user type from message.

Parameters:
userId - User id for the user info.
message - Message with user type.
Method Detail

getType

public int getType()
Returns user type.

Returns:
User type.

setType

public void setType(int type)
Sets user type.

Parameters:
type - User type to set.

getLastMessageDate

public java.util.Calendar getLastMessageDate()
Returns last user message date.

Returns:
Last user message date

setLastMessageDate

public void setLastMessageDate(java.util.Calendar lastMessageDate)
Sets last user message date.

Parameters:
lastMessageDate - Last message date to set.

getName

public java.lang.String getName()
Gets user name.

Returns:
User name.

setName

public void setName(java.lang.String name)
Sets user name.

Parameters:
name - User name to set.

getNoOfBadMessages

public int getNoOfBadMessages()
Returns number of bad messages recieved from user.

Returns:
Number of bad messages recieved from user.

setNoOfBadMessages

public void setNoOfBadMessages(int noOfBadMessages)
Sets number of bad messages recieved from user.

Parameters:
noOfBadMessages - Number of bad messages to set.

getUserId

public UserId getUserId()
Returns user id.

Returns:
User id.


Copyright © 2001-2004 MoMaT & MWe Team. All Rights Reserved.