public class ApiResponse extends Object
Constructor and Description |
---|
ApiResponse()
Default Constructor
|
ApiResponse(ApiAction apiAction,
boolean requestSuccess)
Constructor
|
ApiResponse(ApiAction apiAction,
Object data,
boolean requestSuccess)
Constructor
|
Modifier and Type | Method and Description |
---|---|
ApiAction |
getApiAction() |
Object |
getData() |
boolean |
isDataExists() |
boolean |
isRequestSuccess() |
void |
setApiAction(ApiAction apiAction) |
void |
setData(Object data) |
void |
setRequestSuccess(boolean requestSuccess) |
String |
toString() |
public ApiResponse()
public ApiResponse(ApiAction apiAction, boolean requestSuccess)
apiAction
- a info about api requestrequestSuccess
- result of the executed api requestpublic boolean isDataExists()
public ApiAction getApiAction()
public void setApiAction(ApiAction apiAction)
apiAction
- the apiAction to setpublic Object getData()
public void setData(Object data)
data
- the data to setpublic boolean isRequestSuccess()
public void setRequestSuccess(boolean requestSuccess)
requestSuccess
- the requestSuccess to set
Copyright © myjeeva blog, All rights reserved.
The copyright of the pages and contents on this website is with myjeeva.com and the content is licensed under Creative Commons – Attribution-ShareAlike 4.0 International (CC BY-SA 4.0). Libraries and code snippets on myjeeva blog has license information.