public class RestResponse<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
message |
T |
object |
int |
responseCode |
boolean |
success |
| Constructor and Description |
|---|
RestResponse() |
| Modifier and Type | Method and Description |
|---|---|
static <T> RestResponse<T> |
failure(String response) |
String |
getOriginalJson() |
void |
setJsonString(String jsonString) |
static <T> RestResponse<T> |
success(T object) |
String |
toString() |
public String message
public boolean success
public int responseCode
public T object
public static <T> RestResponse<T> failure(String response)
public static <T> RestResponse<T> success(T object)
public String getOriginalJson()
public void setJsonString(String jsonString)
Copyright © 2015 Denim Group, Ltd.. All rights reserved.