Class PlayerProfile


  • public class PlayerProfile
    extends java.lang.Object
    A class representing a player's profile, including their personal information, collected QR codes and comments, and game statistics.
    • 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.String getContactEmail()
      Returns the player's contact email address.
      java.lang.String getContactPhone()
      Returns the player's contact phone number.
      java.lang.String getFirstName()
      Returns the player's first name.
      int getHighestScore()
      Returns the highest score of the player.
      java.lang.String getLastName()
      Returns the player's last name.
      int getLowestScore()
      Returns the lowest score of the player.
      java.lang.String getPlayerLocation()
      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.
      int getTotalScans()
      Returns the total number of scans the player has performed.
      int getTotalScore()
      Returns the total score of the player.
      java.lang.String getUsername()
      Returns the player's username.
      boolean isLocationEnabled()
      Returns a boolean indicating whether the player's location is enabled.
      void setCommentIds​(java.util.List<java.lang.String> commentIds)
      Sets the list of comment IDs associated with the player profile.
      void setComments​(java.util.Collection<Comment> comments)
      Sets the comments associated with the player profile.
      void setContactEmail​(java.lang.String contactEmail)
      Sets the player's contact email address.
      void setContactPhone​(java.lang.String contactPhone)
      Sets the player's contact phone number.
      void setFirstName​(java.lang.String firstName)
      Sets the player's first name.
      void setHighestScore​(int highestScore)
      Sets the highest score of the player.
      void setLastName​(java.lang.String lastName)
      Sets the player's last name.
      void setLocationEnabled​(boolean locationEnabled)
      Sets a boolean indicating whether the player's location is enabled.
      void setLowestScore​(int lowestScore)
      Sets the lowest score of the player.
      void setPlayerLocation​(java.lang.String playerLocation)
      Sets the player's location.
      void setQrCodeBasicProfiles​(java.util.List<BasicQRCode> qrCodeBasicProfiles)
      Sets the list of basic QR code profiles associated with the player.
      void setQrCodeIds​(java.util.List<java.lang.String> qrCodeIds)
      Sets the list of QR Code IDs associated with the player profile.
      void setQrCodes​(java.util.Collection<QRCode> qrCodes)
      Sets the QRCode objects associated with the player.
      void setTotalScans​(int totalScans)
      Sets the total number of scans the player has performed.
      void setTotalScore​(int totalScore)
      Sets the total score of the player.
      void setUsername​(java.lang.String username)
      Sets the player's username.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 username
        firstName - the player's first name
        lastName - the player's last name
        contactPhone - the player's contact phone number
        contactEmail - the player's contact email address
        totalScore - the player's total score
        highestScore - the player's highest score
        lowestScore - the player's lowest score
        totalScans - the total number of QR codes scanned by the player
        qrScans - a list of QR Code IDs specific to the player
        qrCodeBasicProfiles - a list of BasicQRCode objects containing basic information about the QR codes
        comments - 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.