public class TestApi extends Object
限定符和类型 | 方法和说明 |
---|---|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
TestResponse |
testInfoGet(String word)
测试接口
|
com.squareup.okhttp.Call |
testInfoGetAsync(String word,
ApiCallback<TestResponse> callback)
测试接口 (asynchronously)
|
com.squareup.okhttp.Call |
testInfoGetCall(String word,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for testInfoGet
|
ApiResponse<TestResponse> |
testInfoGetWithHttpInfo(String word)
测试接口
|
public TestApi()
public TestApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call testInfoGetCall(String word, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
word
- 你想说的话 (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic TestResponse testInfoGet(String word) throws ApiException
word
- 你想说的话 (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<TestResponse> testInfoGetWithHttpInfo(String word) throws ApiException
word
- 你想说的话 (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call testInfoGetAsync(String word, ApiCallback<TestResponse> callback) throws ApiException
word
- 你想说的话 (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2017. All rights reserved.