public abstract class AbstractRetrofitAPIImpl<T> extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
apiKey |
protected Integer |
apiKeyVersion |
protected String |
baseUrl |
protected String |
passPhrase |
protected String |
secret |
| 构造器和说明 |
|---|
AbstractRetrofitAPIImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
<R> R |
executeSync(retrofit2.Call<KucoinResponse<R>> call)
Execute a REST call and block until the response is received.
|
abstract T |
getAPIImpl() |
String |
getApiKey() |
String |
getBaseUrl() |
KucoinResponse<?> |
getErrorResponse(retrofit2.Response<?> response)
Extracts and converts the response error body into an object.
|
String |
getPassPhrase() |
String |
getSecret() |
void |
setApiKey(String apiKey) |
void |
setBaseUrl(String baseUrl) |
void |
setPassPhrase(String passPhrase) |
void |
setSecret(String secret) |
protected String baseUrl
protected String apiKey
protected String secret
protected String passPhrase
protected Integer apiKeyVersion
public abstract T getAPIImpl()
public <R> R executeSync(retrofit2.Call<KucoinResponse<R>> call) throws IOException
IOException - On socket related errors.public KucoinResponse<?> getErrorResponse(retrofit2.Response<?> response) throws IOException, KucoinApiException
public String getBaseUrl()
public void setBaseUrl(String baseUrl)
public String getApiKey()
public void setApiKey(String apiKey)
public String getSecret()
public void setSecret(String secret)
public String getPassPhrase()
public void setPassPhrase(String passPhrase)
Copyright © 2023. All rights reserved.