public class Http extends Object
| Constructor and Description |
|---|
Http() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
extract(retrofit2.Call<T> call,
Integer... okCodes) |
static <T> void |
extractBasicResponse(retrofit2.Call<T> call,
Callback<T> callback,
Integer... okCodes) |
static <T> void |
extractConsulResponse(retrofit2.Call<T> call,
ConsulResponseCallback<T> callback,
Integer... okCodes) |
static <T> ConsulResponse<T> |
extractConsulResponse(retrofit2.Call<T> call,
Integer... okCodes) |
static void |
handle(retrofit2.Call<Void> call,
Integer... okCodes) |
static boolean |
isSuccessful(retrofit2.Response<?> response,
Integer... okCodes) |
public static boolean isSuccessful(retrofit2.Response<?> response,
Integer... okCodes)
public static <T> T extract(retrofit2.Call<T> call,
Integer... okCodes)
public static <T> ConsulResponse<T> extractConsulResponse(retrofit2.Call<T> call, Integer... okCodes)
public static <T> void extractConsulResponse(retrofit2.Call<T> call,
ConsulResponseCallback<T> callback,
Integer... okCodes)
Copyright © 2017. All rights reserved.