Package com.example.qrgo.models
Class QRCode
- java.lang.Object
-
- com.example.qrgo.models.QRCode
-
public class QRCode extends java.lang.Object
QRCode class represents a QR code entity in the system
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>
commentIds
protected java.util.List<Comment>
comments
protected java.util.ArrayList<java.lang.Integer>
featureList
protected java.lang.String
humanReadableQR
protected java.util.List<com.google.firebase.firestore.GeoPoint>
locations
protected java.util.List<java.lang.String>
photoIds
protected java.util.List<Photo>
photos
protected PlayerProfile
player
protected int
qrCodePoints
protected java.lang.String
qrString
protected java.util.List<BasicPlayerProfile>
scannedPlayer
protected 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.String
getHumanReadableQR()
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.PlayerProfile
getPlayer()
Returns the player profile who created this QR codeint
getQrCodePoints()
Returns the number of points assigned to this QR codejava.lang.String
getQrString()
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 codevoid
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 codevoid
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 codevoid
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 codevoid
setQrCodePoints(int qrCodePoints)
Sets the number of points assigned to this QR codevoid
setQrString(java.lang.String qrString)
Sets the string that the QR code representsvoid
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.
-
-
-
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()
-
-