public class ANResponse<T>
extends java.lang.Object
| Constructor and Description |
|---|
ANResponse(ANError anError) |
ANResponse(T result) |
| Modifier and Type | Method and Description |
|---|---|
static <T> ANResponse<T> |
failed(ANError anError) |
ANError |
getError() |
okhttp3.Response |
getOkHttpResponse() |
T |
getResult() |
boolean |
isSuccess() |
void |
setOkHttpResponse(okhttp3.Response response) |
static <T> ANResponse<T> |
success(T result) |
public ANResponse(T result)
public ANResponse(ANError anError)
public static <T> ANResponse<T> success(T result)
public static <T> ANResponse<T> failed(ANError anError)
public T getResult()
public boolean isSuccess()
public ANError getError()
public void setOkHttpResponse(okhttp3.Response response)
public okhttp3.Response getOkHttpResponse()