Class Player
- java.lang.Object
-
- edu.cnm.deepdive.scalescroller.model.entity.Player
-
public class Player extends Object
Holds data in the database for players of ScaleScroller.
-
-
Constructor Summary
Constructors Constructor Description Player()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHighestLearnLevel()
Returns the highest learn level difficulty that the player has completed.long
getId()
Returns the auto-generated id for the player.String
getOauthKey()
Returns the OAuth key for the player.String
getUsername()
Returns the player's username.void
setHighestLearnLevel(int highestLearnLevel)
Sets the highest learn level difficulty that the player has completed.void
setId(long id)
Sets the auto-generated id for the player.void
setOauthKey(String oauthKey)
Sets the OAuth key for the player.void
setUsername(String username)
Sets the player's username.
-
-
-
Method Detail
-
getId
public long getId()
Returns the auto-generated id for the player.- Returns:
- The player's id.
-
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:
- The player's OAuth key.
-
setOauthKey
public void setOauthKey(@NonNull String oauthKey)
Sets the OAuth key for the player.- Parameters:
oauthKey
- The OAuth key to be set.
-
getUsername
@NonNull public String getUsername()
Returns the player's username.- Returns:
- The player's username.
-
setUsername
public void setUsername(@NonNull String username)
Sets the player's username.- Parameters:
username
- The username to be set.
-
getHighestLearnLevel
public int getHighestLearnLevel()
Returns the highest learn level difficulty that the player has completed.- Returns:
- The player's highest learn level difficulty.
-
setHighestLearnLevel
public void setHighestLearnLevel(int highestLearnLevel)
Sets the highest learn level difficulty that the player has completed.- Parameters:
highestLearnLevel
- The highest learn level difficulty that the player has completed.
-
-