Package com.example.qrgo.models
Class QRCode
- java.lang.Object
-
- com.example.qrgo.models.QRCode
-
public class QRCode extends java.lang.ObjectQRCode class represents a QR code entity in the system
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>commentIdsprotected java.util.List<Comment>commentsprotected java.util.ArrayList<java.lang.Integer>featureListprotected java.lang.StringhumanReadableQRprotected java.util.List<com.google.firebase.firestore.GeoPoint>locationsprotected java.util.List<java.lang.String>photoIdsprotected java.util.List<Photo>photosprotected PlayerProfileplayerprotected intqrCodePointsprotected java.lang.StringqrStringprotected java.util.List<BasicPlayerProfile>scannedPlayerprotected java.util.List<java.lang.String>scannedPlayerIds
-
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.StringgetHumanReadableQR()Returns the human-readable text of the QR codejava.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 codejava.util.List<Photo>getPhotos()Returns the list of photos associated with this match.PlayerProfilegetPlayer()Returns the player profile who created this QR codeintgetQrCodePoints()Returns the number of points assigned to this QR codejava.lang.StringgetQrString()Returns the string that the QR code representsjava.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 codevoidsetCommentIds(java.util.List<java.lang.String> commentIds)Sets the list of comment IDs associated with this match.voidsetComments(java.util.List<Comment> comments)Sets the list of comments associated with this match.voidsetHumanReadableQR(java.lang.String humanReadableQR)Sets the human-readable text of the QR codevoidsetLocations(java.util.List<com.google.firebase.firestore.GeoPoint> locations)Sets the list of locations associated with this match.voidsetPhotoIds(java.util.List<java.lang.String> photoIds)Sets the list of photo IDs associated with this QR codevoidsetPhotos(java.util.List<Photo> photos)Sets the list of photos associated with this match.voidsetPlayer(PlayerProfile player)Sets the player profile who created this QR codevoidsetQrCodePoints(int qrCodePoints)Sets the number of points assigned to this QR codevoidsetQrString(java.lang.String qrString)Sets the string that the QR code representsvoidsetScannedPlayer(java.util.List<BasicPlayerProfile> scannedPlayer)Sets the list of scanned players associated with this match.voidsetScannedPlayerIds(java.util.List<java.lang.String> scannedPlayerIds)Sets the list of scanned player IDs associated with this match.
-
-
-
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
-
player
protected PlayerProfile player
-
photos
protected java.util.List<Photo> photos
-
comments
protected java.util.List<Comment> comments
-
scannedPlayer
protected java.util.List<BasicPlayerProfile> scannedPlayer
-
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 representshumanReadableQR- the human-readable text of the QR codeqrCodePoints- the number of points assigned to this QR codelocations- the list of geographic locations associated with this QR codephotoIds- the list of photo IDs associated with this QR codescannedPlayerIds- the list of player IDs who have scanned this QR codecommentIds- 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()
-
-