Package io.sockit.gameserver
Class User
java.lang.Object
io.sockit.gameserver.User
public class User extends Object
This class represents a user who can login to the server.
-
Field Summary
-
Method Summary
Modifier and Type Method Description voidchangeEmailId(String newEmailId)Changes the user's email idvoidchangeOtherId(String newOtherId)Chanes a user's other idintgetAvtarId()Returns the id of avatar selected the user.StringgetEmailId()Returns the email id of the userStringgetName()returns the name of the UserStringgetOtherId()Returns the other id of the userStringgetPassword()Returns the user's passwordbooleanisProfilePictureEnabled()Determines if profile picture is enabled
-
Field Details
-
Method Details
-
changeEmailId
Changes the user's email id- Parameters:
newEmailId- - the new email id
-
changeOtherId
Chanes a user's other id- Parameters:
newOtherId- - the new other id
-
getOtherId
Returns the other id of the user- Returns:
- String - the other id of the user
-
getEmailId
Returns the email id of the user- Returns:
- String - the email id of the user
-
getName
returns the name of the User- Returns:
- String - the name of the User
-
getAvtarId
public int getAvtarId()Returns the id of avatar selected the user.- Returns:
- String - the avatar id of the user
-
isProfilePictureEnabled
public boolean isProfilePictureEnabled()Determines if profile picture is enabled- Returns:
- boolean - true if the profile picture is enabled for this user
-
getPassword
Returns the user's password- Returns:
- String - the user's password
-