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 Details

    • userId

      public final String userId
      a unique identifier for each User
    • isBot

      public final boolean isBot
      determines if this User is a bot
  • Method Details

    • changeEmailId

      public void changeEmailId​(String newEmailId)
      Changes the user's email id
      Parameters:
      newEmailId - - the new email id
    • changeOtherId

      public void changeOtherId​(String newOtherId)
      Chanes a user's other id
      Parameters:
      newOtherId - - the new other id
    • getOtherId

      public String getOtherId()
      Returns the other id of the user
      Returns:
      String - the other id of the user
    • getEmailId

      public String getEmailId()
      Returns the email id of the user
      Returns:
      String - the email id of the user
    • getName

      public String 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

      public String getPassword()
      Returns the user's password
      Returns:
      String - the user's password