Class Deck


  • public class Deck
    extends Object
    Holds data in the database for available decks to be used.
    • Constructor Detail

      • Deck

        public Deck()
    • Method Detail

      • getId

        public long getId()
        Returns the auto-generated id for the deck.
        Returns:
      • setId

        public void setId​(long id)
        Sets the auto-generated id for the deck.
        Parameters:
        id - The id for the deck.
      • getUserId

        public long getUserId()
        Returns the user id for the deck.
        Returns:
      • setUserId

        public void setUserId​(long userId)
        Sets the user id for the deck.
        Parameters:
        userId - The user id for the deck.
      • getName

        @NonNull
        public String getName()
        Returns the name for the deck.
        Returns:
      • setName

        public void setName​(@NonNull
                            String name)
        Sets the name for the deck.
        Parameters:
        name - The name for the deck.
      • getQrCode

        @NonNull
        public String getQrCode()
        Returns the qr code associated with the deck.
        Returns:
      • setQrCode

        public void setQrCode​(@NonNull
                              String qrCode)
        Sets the qr code associated with the deck.
        Parameters:
        qrCode - The qr code associated with the deck.