Class QRCodeData
java.lang.Object
com.example.iconic_raffleevent.model.QRCodeData
Represents data for a QR code used in the raffle event.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for Firestore serialization.QRCodeData
(String qrCodeId, String qrCodeName, String qrCodeUrl) Constructor to create a QRCodeData object with the specified details. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the unique identifier of the QR code.Gets the name of the QR code.Gets the URL associated with the QR code.int
hashCode()
Hashed QR codevoid
setQrCodeId
(String qrCodeId) Sets the unique identifier for the QR code.void
setQrCodeName
(String qrCodeName) Sets the name for the QR code.void
setQrCodeUrl
(String qrCodeUrl) Sets the URL for the QR code.
-
Constructor Details
-
QRCodeData
public QRCodeData()Default constructor for Firestore serialization. -
QRCodeData
Constructor to create a QRCodeData object with the specified details.- Parameters:
qrCodeId
- This is the unique identifier for the QR code.qrCodeName
- This is the name of the QR code.qrCodeUrl
- This is the URL associated with the QR code.
-
-
Method Details
-
getQrCodeId
Gets the unique identifier of the QR code.- Returns:
- Return the QR code ID as a String.
-
setQrCodeId
Sets the unique identifier for the QR code.- Parameters:
qrCodeId
- This is the unique ID to assign to the QR code.
-
getQrCodeName
Gets the name of the QR code.- Returns:
- Return the QR code name as a String.
-
setQrCodeName
Sets the name for the QR code.- Parameters:
qrCodeName
- This is the name to assign to the QR code.
-
getQrCodeUrl
Gets the URL associated with the QR code.- Returns:
- Return the QR code URL as a String.
-
setQrCodeUrl
Sets the URL for the QR code.- Parameters:
qrCodeUrl
- This is the URL to assign to the QR code.
-
equals
-
hashCode
public int hashCode()Hashed QR code
-