Class QRCode


  • public class QRCode
    extends java.lang.Object
    QRCode class represents a QR code entity in the system
    • Constructor Summary

      Constructors 
      Constructor Description
      QRCode​(java.lang.String qrString, java.lang.String humanReadableQR, int qrCodePoints, java.util.List<com.google.firebase.firestore.GeoPoint> locations, java.util.List<java.lang.String> photoIds, java.util.List<java.lang.String> scannedPlayerIds, java.util.List<java.lang.String> commentIds, java.util.ArrayList<java.lang.Integer> featureList)
      Creates a new instance of QRCode with the given parameters
    • 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 this match.
      java.util.List<Comment> getComments()
      Returns the list of comments associated with this match.
      java.util.ArrayList<java.lang.Integer> getFeatureList()  
      java.lang.String getHumanReadableQR()
      Returns the human-readable text of the QR code
      java.util.List<com.google.firebase.firestore.GeoPoint> getLocations()
      Returns the list of locations associated with this match.
      java.util.List<java.lang.String> getPhotoIds()
      Returns the list of photo IDs associated with this QR code
      java.util.List<Photo> getPhotos()
      Returns the list of photos associated with this match.
      PlayerProfile getPlayer()
      Returns the player profile who created this QR code
      int getQrCodePoints()
      Returns the number of points assigned to this QR code
      java.lang.String getQrString()
      Returns the string that the QR code represents
      java.util.List<BasicPlayerProfile> getScannedPlayer()
      Returns the list of scanned players associated with this match.
      java.util.List<java.lang.String> getScannedPlayerIds()
      Returns the list of player IDs who have scanned this QR code
      void setCommentIds​(java.util.List<java.lang.String> commentIds)
      Sets the list of comment IDs associated with this match.
      void setComments​(java.util.List<Comment> comments)
      Sets the list of comments associated with this match.
      void setHumanReadableQR​(java.lang.String humanReadableQR)
      Sets the human-readable text of the QR code
      void setLocations​(java.util.List<com.google.firebase.firestore.GeoPoint> locations)
      Sets the list of locations associated with this match.
      void setPhotoIds​(java.util.List<java.lang.String> photoIds)
      Sets the list of photo IDs associated with this QR code
      void setPhotos​(java.util.List<Photo> photos)
      Sets the list of photos associated with this match.
      void setPlayer​(PlayerProfile player)
      Sets the player profile who created this QR code
      void setQrCodePoints​(int qrCodePoints)
      Sets the number of points assigned to this QR code
      void setQrString​(java.lang.String qrString)
      Sets the string that the QR code represents
      void setScannedPlayer​(java.util.List<BasicPlayerProfile> scannedPlayer)
      Sets the list of scanned players associated with this match.
      void setScannedPlayerIds​(java.util.List<java.lang.String> scannedPlayerIds)
      Sets the list of scanned player IDs associated with this match.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • qrString

        protected java.lang.String qrString
      • humanReadableQR

        protected java.lang.String humanReadableQR
      • qrCodePoints

        protected int qrCodePoints
      • locations

        protected java.util.List<com.google.firebase.firestore.GeoPoint> locations
      • photoIds

        protected java.util.List<java.lang.String> photoIds
      • scannedPlayerIds

        protected java.util.List<java.lang.String> scannedPlayerIds
      • commentIds

        protected java.util.List<java.lang.String> commentIds
      • photos

        protected java.util.List<Photo> photos
      • comments

        protected java.util.List<Comment> comments
      • featureList

        protected java.util.ArrayList<java.lang.Integer> featureList
    • Constructor Detail

      • QRCode

        public QRCode​(java.lang.String qrString,
                      java.lang.String humanReadableQR,
                      int qrCodePoints,
                      java.util.List<com.google.firebase.firestore.GeoPoint> locations,
                      java.util.List<java.lang.String> photoIds,
                      java.util.List<java.lang.String> scannedPlayerIds,
                      java.util.List<java.lang.String> commentIds,
                      java.util.ArrayList<java.lang.Integer> featureList)
        Creates a new instance of QRCode with the given parameters
        Parameters:
        qrString - the string that the QR code represents
        humanReadableQR - the human-readable text of the QR code
        qrCodePoints - the number of points assigned to this QR code
        locations - the list of geographic locations associated with this QR code
        photoIds - the list of photo IDs associated with this QR code
        scannedPlayerIds - the list of player IDs who have scanned this QR code
        commentIds - the list of comment IDs associated with this QR code
    • Method Detail

      • getPhotoIds

        public java.util.List<java.lang.String> getPhotoIds()
        Returns the list of photo IDs associated with this QR code
        Returns:
        the list of photo IDs
      • setPhotoIds

        public void setPhotoIds​(java.util.List<java.lang.String> photoIds)
        Sets the list of photo IDs associated with this QR code
        Parameters:
        photoIds - the list of photo IDs
      • getQrString

        public java.lang.String getQrString()
        Returns the string that the QR code represents
        Returns:
        the QR code string
      • setQrString

        public void setQrString​(java.lang.String qrString)
        Sets the string that the QR code represents
        Parameters:
        qrString - the QR code string
      • getHumanReadableQR

        public java.lang.String getHumanReadableQR()
        Returns the human-readable text of the QR code
        Returns:
        the human-readable text
      • setHumanReadableQR

        public void setHumanReadableQR​(java.lang.String humanReadableQR)
        Sets the human-readable text of the QR code
        Parameters:
        humanReadableQR - the human-readable text
      • getPlayer

        public PlayerProfile getPlayer()
        Returns the player profile who created this QR code
        Returns:
        the player profile
      • setPlayer

        public void setPlayer​(PlayerProfile player)
        Sets the player profile who created this QR code
        Parameters:
        player - the player profile
      • getQrCodePoints

        public int getQrCodePoints()
        Returns the number of points assigned to this QR code
        Returns:
        the number of points
      • setQrCodePoints

        public void setQrCodePoints​(int qrCodePoints)
        Sets the number of points assigned to this QR code
        Parameters:
        qrCodePoints - the number of points
      • getScannedPlayerIds

        public java.util.List<java.lang.String> getScannedPlayerIds()
        Returns the list of player IDs who have scanned this QR code
        Returns:
        the list of player IDs
      • setScannedPlayerIds

        public void setScannedPlayerIds​(java.util.List<java.lang.String> scannedPlayerIds)
        Sets the list of scanned player IDs associated with this match.
        Parameters:
        scannedPlayerIds - the list of scanned player IDs
      • getCommentIds

        public java.util.List<java.lang.String> getCommentIds()
        Returns the list of comment IDs associated with this match.
        Returns:
        the list of comment IDs
      • setCommentIds

        public void setCommentIds​(java.util.List<java.lang.String> commentIds)
        Sets the list of comment IDs associated with this match.
        Parameters:
        commentIds - the list of comment IDs
      • getLocations

        public java.util.List<com.google.firebase.firestore.GeoPoint> getLocations()
        Returns the list of locations associated with this match.
        Returns:
        the list of locations
      • setLocations

        public void setLocations​(java.util.List<com.google.firebase.firestore.GeoPoint> locations)
        Sets the list of locations associated with this match.
        Parameters:
        locations - the list of locations
      • getPhotos

        public java.util.List<Photo> getPhotos()
        Returns the list of photos associated with this match.
        Returns:
        the list of photos
      • setPhotos

        public void setPhotos​(java.util.List<Photo> photos)
        Sets the list of photos associated with this match.
        Parameters:
        photos - the list of photos
      • getComments

        public java.util.List<Comment> getComments()
        Returns the list of comments associated with this match.
        Returns:
        the list of comments
      • setComments

        public void setComments​(java.util.List<Comment> comments)
        Sets the list of comments associated with this match.
        Parameters:
        comments - the list of comments
      • getScannedPlayer

        public java.util.List<BasicPlayerProfile> getScannedPlayer()
        Returns the list of scanned players associated with this match.
        Returns:
        the list of scanned players
      • setScannedPlayer

        public void setScannedPlayer​(java.util.List<BasicPlayerProfile> scannedPlayer)
        Sets the list of scanned players associated with this match.
        Parameters:
        scannedPlayer - the list of scanned players
      • getFeatureList

        public java.util.ArrayList<java.lang.Integer> getFeatureList()