Class QRCodeData

java.lang.Object
com.example.iconic_raffleevent.model.QRCodeData

public class QRCodeData extends Object
Represents data for a QR code used in the raffle event.
  • Constructor Details

    • QRCodeData

      public QRCodeData()
      Default constructor for Firestore serialization.
    • QRCodeData

      public QRCodeData(String qrCodeId, String qrCodeName, String qrCodeUrl)
      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

      public String getQrCodeId()
      Gets the unique identifier of the QR code.
      Returns:
      Return the QR code ID as a String.
    • setQrCodeId

      public void setQrCodeId(String qrCodeId)
      Sets the unique identifier for the QR code.
      Parameters:
      qrCodeId - This is the unique ID to assign to the QR code.
    • getQrCodeName

      public String getQrCodeName()
      Gets the name of the QR code.
      Returns:
      Return the QR code name as a String.
    • setQrCodeName

      public void setQrCodeName(String qrCodeName)
      Sets the name for the QR code.
      Parameters:
      qrCodeName - This is the name to assign to the QR code.
    • getQrCodeUrl

      public String getQrCodeUrl()
      Gets the URL associated with the QR code.
      Returns:
      Return the QR code URL as a String.
    • setQrCodeUrl

      public void setQrCodeUrl(String qrCodeUrl)
      Sets the URL for the QR code.
      Parameters:
      qrCodeUrl - This is the URL to assign to the QR code.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Hashed QR code
      Overrides:
      hashCode in class Object
      Returns:
      integer hash