public class ActionReturn
extends java.lang.Object
Constructor and Description |
---|
ActionReturn(boolean success)
A failed message that informs the user why the action has failed.
|
ActionReturn(boolean success,
java.lang.String message)
A failed message that informs the user why the action has failed.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
A failed message that informs the user why the action has failed.
|
boolean |
isSuccess()
Informs if the action was successful.
|
void |
setMessage(java.lang.String string)
Sets a failed message that informs the user why the action has failed.
|
public ActionReturn(boolean success)
success
- was the action was successfulpublic ActionReturn(boolean success, java.lang.String message)
success
- was the action was successfulmessage
- failed reason messagepublic java.lang.String getMessage()
public boolean isSuccess()
public void setMessage(java.lang.String string)
string
- failed reason message