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 long
getId()
Returns the auto-generated id for the deck.String
getName()
Returns the name for the deck.String
getQrCode()
Returns the qr code associated with the deck.long
getUserId()
Returns the user id for the deck.void
setId(long id)
Sets the auto-generated id for the deck.void
setName(String name)
Sets the name for the deck.void
setQrCode(String qrCode)
Sets the qr code associated with the deck.void
setUserId(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.
-
-