public class DefipayApiServiceGenerator extends Object
| 构造器和说明 |
|---|
DefipayApiServiceGenerator() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <S> S |
createService(Class<S> serviceClass) |
static <S> S |
createService(Class<S> serviceClass,
ApiSigner signer,
Env env,
boolean debug) |
static <T> T |
executeSync(retrofit2.Call<T> call)
Execute a REST call and block until the response is received.
|
static DefipayApiError |
getCoboApiError(retrofit2.Response<?> response)
Extracts and converts the response error body into an object.
|
static okhttp3.OkHttpClient |
getSharedClient()
Returns the shared OkHttpClient instance.
|
public static <S> S createService(Class<S> serviceClass)
public static <S> S createService(Class<S> serviceClass, ApiSigner signer, Env env, boolean debug)
public static <T> T executeSync(retrofit2.Call<T> call)
public static DefipayApiError getCoboApiError(retrofit2.Response<?> response) throws IOException, DefipayApiException
public static okhttp3.OkHttpClient getSharedClient()
Copyright © 2022. All rights reserved.