Package com.example.qrgo.models
Class PlayerProfile
- java.lang.Object
-
- com.example.qrgo.models.PlayerProfile
-
public class PlayerProfile extends java.lang.ObjectA class representing a player's profile, including their personal information, collected QR codes and comments, and game statistics.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>commentIdsprotected java.util.Collection<Comment>commentsprotected java.lang.StringcontactEmailprotected java.lang.StringcontactPhoneprotected java.lang.StringfirstNameprotected inthighestScoreprotected java.lang.StringlastNameprotected booleanlocationEnabledprotected intlowestScoreprotected java.lang.StringplayerLocationprotected java.util.List<BasicQRCode>qrCodeBasicProfilesprotected java.util.List<java.lang.String>qrCodeIdsprotected java.util.Collection<QRCode>qrCodesprotected inttotalScansprotected inttotalScoreprotected java.lang.Stringusername
-
Constructor Summary
Constructors Constructor Description PlayerProfile(java.lang.String username, java.lang.String firstName, java.lang.String lastName, java.lang.String contactPhone, java.lang.String contactEmail, int totalScore, int highestScore, int lowestScore, int totalScans, java.util.List<java.lang.String> qrScans, java.util.List<BasicQRCode> qrCodeBasicProfiles, java.util.List<Comment> comments)Constructs a new PlayerProfile object with the specified properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>getCommentIds()Returns the list of comment IDs associated with the player profile.java.util.Collection<Comment>getComments()Returns a collection of Comment objects made by the player.java.lang.StringgetContactEmail()Returns the player's contact email address.java.lang.StringgetContactPhone()Returns the player's contact phone number.java.lang.StringgetFirstName()Returns the player's first name.intgetHighestScore()Returns the highest score of the player.java.lang.StringgetLastName()Returns the player's last name.intgetLowestScore()Returns the lowest score of the player.java.lang.StringgetPlayerLocation()Returns the player's location.java.util.List<BasicQRCode>getQrCodeBasicProfiles()Returns the list of basic QR code profiles associated with the player.java.util.List<java.lang.String>getQrCodeIds()Returns the list of QR Code IDs associated with the player profile.java.util.Collection<QRCode>getQrCodes()Returns a collection of QRCode objects associated with the player.intgetTotalScans()Returns the total number of scans the player has performed.intgetTotalScore()Returns the total score of the player.java.lang.StringgetUsername()Returns the player's username.booleanisLocationEnabled()Returns a boolean indicating whether the player's location is enabled.voidsetCommentIds(java.util.List<java.lang.String> commentIds)Sets the list of comment IDs associated with the player profile.voidsetComments(java.util.Collection<Comment> comments)Sets the comments associated with the player profile.voidsetContactEmail(java.lang.String contactEmail)Sets the player's contact email address.voidsetContactPhone(java.lang.String contactPhone)Sets the player's contact phone number.voidsetFirstName(java.lang.String firstName)Sets the player's first name.voidsetHighestScore(int highestScore)Sets the highest score of the player.voidsetLastName(java.lang.String lastName)Sets the player's last name.voidsetLocationEnabled(boolean locationEnabled)Sets a boolean indicating whether the player's location is enabled.voidsetLowestScore(int lowestScore)Sets the lowest score of the player.voidsetPlayerLocation(java.lang.String playerLocation)Sets the player's location.voidsetQrCodeBasicProfiles(java.util.List<BasicQRCode> qrCodeBasicProfiles)Sets the list of basic QR code profiles associated with the player.voidsetQrCodeIds(java.util.List<java.lang.String> qrCodeIds)Sets the list of QR Code IDs associated with the player profile.voidsetQrCodes(java.util.Collection<QRCode> qrCodes)Sets the QRCode objects associated with the player.voidsetTotalScans(int totalScans)Sets the total number of scans the player has performed.voidsetTotalScore(int totalScore)Sets the total score of the player.voidsetUsername(java.lang.String username)Sets the player's username.
-
-
-
Field Detail
-
username
protected java.lang.String username
-
firstName
protected java.lang.String firstName
-
lastName
protected java.lang.String lastName
-
playerLocation
protected java.lang.String playerLocation
-
locationEnabled
protected boolean locationEnabled
-
contactPhone
protected java.lang.String contactPhone
-
contactEmail
protected java.lang.String contactEmail
-
qrCodes
protected java.util.Collection<QRCode> qrCodes
-
comments
protected java.util.Collection<Comment> comments
-
qrCodeIds
protected java.util.List<java.lang.String> qrCodeIds
-
commentIds
protected java.util.List<java.lang.String> commentIds
-
totalScore
protected int totalScore
-
highestScore
protected int highestScore
-
lowestScore
protected int lowestScore
-
totalScans
protected int totalScans
-
qrCodeBasicProfiles
protected java.util.List<BasicQRCode> qrCodeBasicProfiles
-
-
Constructor Detail
-
PlayerProfile
public PlayerProfile(java.lang.String username, java.lang.String firstName, java.lang.String lastName, java.lang.String contactPhone, java.lang.String contactEmail, int totalScore, int highestScore, int lowestScore, int totalScans, java.util.List<java.lang.String> qrScans, java.util.List<BasicQRCode> qrCodeBasicProfiles, java.util.List<Comment> comments)Constructs a new PlayerProfile object with the specified properties.- Parameters:
username- the player's usernamefirstName- the player's first namelastName- the player's last namecontactPhone- the player's contact phone numbercontactEmail- the player's contact email addresstotalScore- the player's total scorehighestScore- the player's highest scorelowestScore- the player's lowest scoretotalScans- the total number of QR codes scanned by the playerqrScans- a list of QR Code IDs specific to the playerqrCodeBasicProfiles- a list of BasicQRCode objects containing basic information about the QR codescomments- a collection of comments made by the player
-
-
Method Detail
-
getUsername
public java.lang.String getUsername()
Returns the player's username.- Returns:
- the player's username
-
setUsername
public void setUsername(java.lang.String username)
Sets the player's username.- Parameters:
username- the player's username
-
getFirstName
public java.lang.String getFirstName()
Returns the player's first name.- Returns:
- the player's first name
-
setFirstName
public void setFirstName(java.lang.String firstName)
Sets the player's first name.- Parameters:
firstName- the player's first name
-
getLastName
public java.lang.String getLastName()
Returns the player's last name.- Returns:
- the player's last name
-
setLastName
public void setLastName(java.lang.String lastName)
Sets the player's last name.- Parameters:
lastName- the player's last name
-
getPlayerLocation
public java.lang.String getPlayerLocation()
Returns the player's location.- Returns:
- the player's location
-
setPlayerLocation
public void setPlayerLocation(java.lang.String playerLocation)
Sets the player's location.- Parameters:
playerLocation- the player's location
-
isLocationEnabled
public boolean isLocationEnabled()
Returns a boolean indicating whether the player's location is enabled.- Returns:
- a boolean indicating whether the player's location is enabled
-
setLocationEnabled
public void setLocationEnabled(boolean locationEnabled)
Sets a boolean indicating whether the player's location is enabled.- Parameters:
locationEnabled- a boolean indicating whether the player's location is enabled
-
getContactPhone
public java.lang.String getContactPhone()
Returns the player's contact phone number.- Returns:
- the player's contact phone number
-
setContactPhone
public void setContactPhone(java.lang.String contactPhone)
Sets the player's contact phone number.- Parameters:
contactPhone- the player's contact phone number
-
getContactEmail
public java.lang.String getContactEmail()
Returns the player's contact email address.- Returns:
- the player's contact email address
-
setContactEmail
public void setContactEmail(java.lang.String contactEmail)
Sets the player's contact email address.- Parameters:
contactEmail- the player's contact email address
-
getQrCodes
public java.util.Collection<QRCode> getQrCodes()
Returns a collection of QRCode objects associated with the player.- Returns:
- a collection of QRCode objects associated with the player
-
setQrCodes
public void setQrCodes(java.util.Collection<QRCode> qrCodes)
Sets the QRCode objects associated with the player.- Parameters:
qrCodes- a collection of QRCode objects associated with the player
-
getComments
public java.util.Collection<Comment> getComments()
Returns a collection of Comment objects made by the player.- Returns:
- a collection of Comment objects made by the player
-
setComments
public void setComments(java.util.Collection<Comment> comments)
Sets the comments associated with the player profile.- Parameters:
comments- the collection of comments to be associated with the player profile
-
getQrCodeIds
public java.util.List<java.lang.String> getQrCodeIds()
Returns the list of QR Code IDs associated with the player profile.- Returns:
- the list of QR Code IDs associated with the player profile
-
setQrCodeIds
public void setQrCodeIds(java.util.List<java.lang.String> qrCodeIds)
Sets the list of QR Code IDs associated with the player profile.- Parameters:
qrCodeIds- the list of QR Code IDs to be associated with the player profile
-
getCommentIds
public java.util.List<java.lang.String> getCommentIds()
Returns the list of comment IDs associated with the player profile.- Returns:
- the list of comment IDs associated with the player profile
-
setCommentIds
public void setCommentIds(java.util.List<java.lang.String> commentIds)
Sets the list of comment IDs associated with the player profile.- Parameters:
commentIds- the list of comment IDs to be associated with the player profile
-
getTotalScore
public int getTotalScore()
Returns the total score of the player.- Returns:
- the total score of the player.
-
setTotalScore
public void setTotalScore(int totalScore)
Sets the total score of the player.- Parameters:
totalScore- the total score to set.
-
getHighestScore
public int getHighestScore()
Returns the highest score of the player.- Returns:
- the highest score of the player.
-
setHighestScore
public void setHighestScore(int highestScore)
Sets the highest score of the player.- Parameters:
highestScore- the highest score to set.
-
getLowestScore
public int getLowestScore()
Returns the lowest score of the player.- Returns:
- the lowest score of the player.
-
setLowestScore
public void setLowestScore(int lowestScore)
Sets the lowest score of the player.- Parameters:
lowestScore- the lowest score to set.
-
getTotalScans
public int getTotalScans()
Returns the total number of scans the player has performed.- Returns:
- the total number of scans the player has performed.
-
setTotalScans
public void setTotalScans(int totalScans)
Sets the total number of scans the player has performed.- Parameters:
totalScans- the total number of scans to set.
-
getQrCodeBasicProfiles
public java.util.List<BasicQRCode> getQrCodeBasicProfiles()
Returns the list of basic QR code profiles associated with the player.- Returns:
- the list of basic QR code profiles associated with the player.
-
setQrCodeBasicProfiles
public void setQrCodeBasicProfiles(java.util.List<BasicQRCode> qrCodeBasicProfiles)
Sets the list of basic QR code profiles associated with the player.- Parameters:
qrCodeBasicProfiles- the list of basic QR code profiles to set.
-
-