Class User


  • public class User
    extends Object
    Holds data in the database for users of Card Combat.
    • Constructor Detail

      • User

        public User()
    • Method Detail

      • getId

        public long getId()
        Returns the auto-generated id for the player.
        Returns:
      • setId

        public void setId​(long id)
        Sets the auto-generated id for the player.
        Parameters:
        id - The id to be set.
      • getOauthKey

        @NonNull
        public String getOauthKey()
        Returns the OAuth key for the player
        Returns:
      • setOauthKey

        public void setOauthKey​(@NonNull
                                String oauthKey)
        Sets the OAuth key for the player.
        Parameters:
        oauthKey - The OAuth key to be set.