Package com.example.qrgo.models
Class BasicPlayerProfile
- java.lang.Object
-
- com.example.qrgo.models.BasicPlayerProfile
-
public class BasicPlayerProfile extends java.lang.Object
BasicPlayerProfile is a class that represents a basic player profile. It contains information about the player such as their username, first name, last name, profile photo, total score, highest score and lowest score.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
firstName
protected int
highestScore
protected java.lang.String
lastName
protected int
lowestScore
protected Photo
profilePhoto
protected int
totalScans
protected int
totalScore
protected java.lang.String
username
-
Constructor Summary
Constructors Constructor Description BasicPlayerProfile(java.lang.String username, java.lang.String firstName, java.lang.String lastName, int totalScore, int totalScans, int highestScore, int lowestScore)
Constructor for BasicPlayerProfile class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFirstName()
Getter method for the first name of the playerint
getHighestScore()
Returns the highest score achieved by the player.java.lang.String
getLastName()
Getter method for the last name of the playerint
getLowestScore()
Returns the lowest score achieved by the player.Photo
getProfilePhoto()
Getter method for the profile photo of the playerint
getTotalScans()
int
getTotalScore()
Getter method for the total score of the playerjava.lang.String
getUsername()
Getter method for the username of the playervoid
setFirstName(java.lang.String firstName)
Setter method for the first name of the playervoid
setHighestScore(int highestScore)
Sets the highest score achieved by the player.void
setLastName(java.lang.String lastName)
Setter method for the last name of the playervoid
setLowestScore(int lowestScore)
Sets the lowest score achieved by the player.void
setProfilePhoto(Photo profilePhoto)
Setter method for the profile photo of the playervoid
setTotalScans(int totalScans)
void
setTotalScore(int totalScore)
Setter method for the total score of the playervoid
setUsername(java.lang.String username)
Setter method for the username of the player
-
-
-
Field Detail
-
username
protected java.lang.String username
-
firstName
protected java.lang.String firstName
-
lastName
protected java.lang.String lastName
-
profilePhoto
protected Photo profilePhoto
-
totalScore
protected int totalScore
-
totalScans
protected int totalScans
-
highestScore
protected int highestScore
-
lowestScore
protected int lowestScore
-
-
Constructor Detail
-
BasicPlayerProfile
public BasicPlayerProfile(java.lang.String username, java.lang.String firstName, java.lang.String lastName, int totalScore, int totalScans, int highestScore, int lowestScore)
Constructor for BasicPlayerProfile class- Parameters:
username
- the username of the playerfirstName
- the first name of the playerlastName
- the last name of the playertotalScore
- the total score of the playertotalScans
- the total score of the playerhighestScore
- the highest score of the playerlowestScore
- the lowest score of the player
-
-
Method Detail
-
getTotalScans
public int getTotalScans()
-
setTotalScans
public void setTotalScans(int totalScans)
-
getUsername
public java.lang.String getUsername()
Getter method for the username of the player- Returns:
- the username of the player
-
setUsername
public void setUsername(java.lang.String username)
Setter method for the username of the player- Parameters:
username
- the username of the player to be set
-
getFirstName
public java.lang.String getFirstName()
Getter method for the first name of the player- Returns:
- the first name of the player
-
setFirstName
public void setFirstName(java.lang.String firstName)
Setter method for the first name of the player- Parameters:
firstName
- the first name of the player to be set
-
getLastName
public java.lang.String getLastName()
Getter method for the last name of the player- Returns:
- the last name of the player
-
setLastName
public void setLastName(java.lang.String lastName)
Setter method for the last name of the player- Parameters:
lastName
- the last name of the player to be set
-
getProfilePhoto
public Photo getProfilePhoto()
Getter method for the profile photo of the player- Returns:
- the profile photo of the player
-
setProfilePhoto
public void setProfilePhoto(Photo profilePhoto)
Setter method for the profile photo of the player- Parameters:
profilePhoto
- the profile photo of the player to be set
-
getTotalScore
public int getTotalScore()
Getter method for the total score of the player- Returns:
- the total score of the player
-
setTotalScore
public void setTotalScore(int totalScore)
Setter method for the total score of the player- Parameters:
totalScore
- the total score of the player to be set
-
getHighestScore
public int getHighestScore()
Returns the highest score achieved by the player.- Returns:
- the highest score achieved by the player
-
setHighestScore
public void setHighestScore(int highestScore)
Sets the highest score achieved by the player.- Parameters:
highestScore
- the highest score achieved by the player
-
getLowestScore
public int getLowestScore()
Returns the lowest score achieved by the player.- Returns:
- the lowest score achieved by the player
-
setLowestScore
public void setLowestScore(int lowestScore)
Sets the lowest score achieved by the player.- Parameters:
lowestScore
- the lowest score achieved by the player
-
-