public class BaseResponse
extends java.lang.Object
Constructor and Description |
---|
BaseResponse() |
BaseResponse(boolean success,
ResultCode result)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Get the field value
|
java.lang.String |
getReason()
Get the field value
|
ResultCode |
getResult()
Get the field value
|
boolean |
isSuccess()
Get the field value
|
void |
setMessage(java.lang.String message)
Set the field value
|
void |
setReason(java.lang.String reason)
Set the field value
|
void |
setResult(ResultCode result)
Set the field value
|
void |
setSuccess(boolean success)
Set the field value
|
public BaseResponse()
public BaseResponse(boolean success, ResultCode result)
success
- If true then the requested operation succeededresult
- The result of the requested operationpublic void setSuccess(boolean success)
success
- If true then the requested operation succeededpublic final boolean isSuccess()
public void setResult(ResultCode result)
result
- The result of the requested operationpublic ResultCode getResult()
public void setReason(java.lang.String reason)
reason
- Optional information about result.public java.lang.String getReason()
public void setMessage(java.lang.String message)
message
- Detailed information about result.public java.lang.String getMessage()