public class CardUpdate
extends java.lang.Object
Constructor and Description |
---|
CardUpdate(CardUpdateType type,
Card card)
Constructs CardUpdate with a card and a type
|
CardUpdate(CardUpdateType type,
Card card,
CardGroup group)
Constructs CardUpdate with a card, a group and a type
Setting a null group will affect the card to the default view group
|
CardUpdate(CardUpdateType type,
CardGroup cardGroup)
Constructs CardUpdate with a group and a type
|
Modifier and Type | Method and Description |
---|---|
void |
addSubUpdate(CardUpdate cardUpdate)
Add a sub-Update to cardUpdate
|
Card |
getCard() |
CardGroup |
getCardGroup() |
CardUpdateType |
getType() |
void |
setAnimationFinished()
Set an animation as finished for model to resume its logic
|
void |
waitAnimations(AppPresenter appPresenter)
Wait animation to finish before resuming
|
public CardUpdate(CardUpdateType type, @NotNull Card card)
card
- the model cardtype
- the typepublic CardUpdate(CardUpdateType type, @NotNull Card card, CardGroup group)
type
- the typecard
- the model cardgroup
- the cardGrouppublic CardUpdate(CardUpdateType type, @NotNull CardGroup cardGroup)
type
- the typecardGroup
- the cardGrouppublic void addSubUpdate(CardUpdate cardUpdate)
cardUpdate
- the cardUpdate on which to add sub-updatepublic void setAnimationFinished()
public void waitAnimations(AppPresenter appPresenter)
appPresenter
- the MVP presenterpublic CardGroup getCardGroup()
public Card getCard()
public CardUpdateType getType()