public final class AuthorizeAction
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
timeInHours |
private AuthorizeActionType |
type |
Constructor and Description |
---|
AuthorizeAction(AuthorizeActionType type,
int timeInHours)
Instantiates a new Authorize action.
|
Modifier and Type | Method and Description |
---|---|
static AuthorizeAction |
getDefault()
Gets default.
|
int |
getTimeInHours()
Gets time in hours.
|
AuthorizeActionType |
getType()
Gets type.
|
@SerializedName(value="type") @Expose private AuthorizeActionType type
@SerializedName(value="time") @Expose private int timeInHours
public AuthorizeAction(AuthorizeActionType type, int timeInHours)
type
- the typetimeInHours
- the time in hourspublic static AuthorizeAction getDefault()
public AuthorizeActionType getType()
public int getTimeInHours()