public static class NacCardAdapter.Undo
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NacCardAdapter.Undo.Type
Type of undo operation.
|
Modifier and Type | Field and Description |
---|---|
NacAlarm |
mAlarm
Alarm.
|
int |
mPosition
Position of the alarm card in the RecyclerView.
|
NacCardAdapter.Undo.Type |
mType
Type of undo.
|
Constructor and Description |
---|
Undo() |
Modifier and Type | Method and Description |
---|---|
NacAlarm |
getAlarm() |
int |
getPosition() |
NacCardAdapter.Undo.Type |
getType() |
void |
reset()
Reset the member variables.
|
void |
set(NacAlarm alarm,
int position,
NacCardAdapter.Undo.Type type)
Set the member variables.
|
public NacAlarm mAlarm
public int mPosition
public NacCardAdapter.Undo.Type mType
public void reset()
public void set(NacAlarm alarm, int position, NacCardAdapter.Undo.Type type)
alarm
- The alarm info.position
- Position of the alarm card.type
- Type of undo.public NacAlarm getAlarm()
public int getPosition()
public NacCardAdapter.Undo.Type getType()