Package com.example.qrgo.models
Class BasicPlayerProfile
- java.lang.Object
-
- com.example.qrgo.models.BasicPlayerProfile
-
public class BasicPlayerProfile extends java.lang.ObjectBasicPlayerProfile 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.StringfirstNameprotected inthighestScoreprotected java.lang.StringlastNameprotected intlowestScoreprotected PhotoprofilePhotoprotected inttotalScansprotected inttotalScoreprotected java.lang.Stringusername
-
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.StringgetFirstName()Getter method for the first name of the playerintgetHighestScore()Returns the highest score achieved by the player.java.lang.StringgetLastName()Getter method for the last name of the playerintgetLowestScore()Returns the lowest score achieved by the player.PhotogetProfilePhoto()Getter method for the profile photo of the playerintgetTotalScans()intgetTotalScore()Getter method for the total score of the playerjava.lang.StringgetUsername()Getter method for the username of the playervoidsetFirstName(java.lang.String firstName)Setter method for the first name of the playervoidsetHighestScore(int highestScore)Sets the highest score achieved by the player.voidsetLastName(java.lang.String lastName)Setter method for the last name of the playervoidsetLowestScore(int lowestScore)Sets the lowest score achieved by the player.voidsetProfilePhoto(Photo profilePhoto)Setter method for the profile photo of the playervoidsetTotalScans(int totalScans)voidsetTotalScore(int totalScore)Setter method for the total score of the playervoidsetUsername(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
-
-