Class Deck
- java.lang.Object
-
- edu.cnm.deepdive.cardcombat.model.entity.Deck
-
public class Deck extends Object
Holds data in the database for available decks to be used.
-
-
Constructor Summary
Constructors Constructor Description Deck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetId()Returns the auto-generated id for the deck.StringgetName()Returns the name for the deck.StringgetQrCode()Returns the qr code associated with the deck.longgetUserId()Returns the user id for the deck.voidsetId(long id)Sets the auto-generated id for the deck.voidsetName(String name)Sets the name for the deck.voidsetQrCode(String qrCode)Sets the qr code associated with the deck.voidsetUserId(long userId)Sets the user id for the 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.
-
setName
public void setName(@NonNull String name)
Sets the name for the deck.- Parameters:
name- The name for the deck.
-
-