36
36
37
37
import com .google .gson .reflect .TypeToken ;
38
38
39
- import com .squareup .okhttp .Call ;
40
- import com .squareup .okhttp .Interceptor ;
41
-
42
39
import java .io .IOException ;
43
40
44
41
import java .util .Date ;
@@ -70,7 +67,7 @@ public void setApiClient(ApiClient apiClient) {
70
67
}
71
68
72
69
/* Build call for testEndpointParameters */
73
- private Call testEndpointParametersCall (BigDecimal number , Double _double , String string , byte [] _byte , Integer integer , Integer int32 , Long int64 , Float _float , byte [] binary , Date date , Date dateTime , String password , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
70
+ private com . squareup . okhttp . Call testEndpointParametersCall (BigDecimal number , Double _double , String string , byte [] _byte , Integer integer , Integer int32 , Long int64 , Float _float , byte [] binary , Date date , Date dateTime , String password , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
74
71
Object localVarPostBody = null ;
75
72
76
73
// verify the required parameter 'number' is set
@@ -140,9 +137,9 @@ private Call testEndpointParametersCall(BigDecimal number, Double _double, Strin
140
137
localVarHeaderParams .put ("Content-Type" , localVarContentType );
141
138
142
139
if (progressListener != null ) {
143
- apiClient .getHttpClient ().networkInterceptors ().add (new Interceptor () {
140
+ apiClient .getHttpClient ().networkInterceptors ().add (new com . squareup . okhttp . Interceptor () {
144
141
@ Override
145
- public com .squareup .okhttp .Response intercept (Interceptor .Chain chain ) throws IOException {
142
+ public com .squareup .okhttp .Response intercept (com . squareup . okhttp . Interceptor .Chain chain ) throws IOException {
146
143
com .squareup .okhttp .Response originalResponse = chain .proceed (chain .request ());
147
144
return originalResponse .newBuilder ()
148
145
.body (new ProgressResponseBody (originalResponse .body (), progressListener ))
@@ -195,7 +192,7 @@ public void testEndpointParameters(BigDecimal number, Double _double, String str
195
192
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
196
193
*/
197
194
public ApiResponse <Void > testEndpointParametersWithHttpInfo (BigDecimal number , Double _double , String string , byte [] _byte , Integer integer , Integer int32 , Long int64 , Float _float , byte [] binary , Date date , Date dateTime , String password ) throws ApiException {
198
- Call call = testEndpointParametersCall (number , _double , string , _byte , integer , int32 , int64 , _float , binary , date , dateTime , password , null , null );
195
+ com . squareup . okhttp . Call call = testEndpointParametersCall (number , _double , string , _byte , integer , int32 , int64 , _float , binary , date , dateTime , password , null , null );
199
196
return apiClient .execute (call );
200
197
}
201
198
@@ -218,7 +215,7 @@ public ApiResponse<Void> testEndpointParametersWithHttpInfo(BigDecimal number, D
218
215
* @return The request call
219
216
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
220
217
*/
221
- public Call testEndpointParametersAsync (BigDecimal number , Double _double , String string , byte [] _byte , Integer integer , Integer int32 , Long int64 , Float _float , byte [] binary , Date date , Date dateTime , String password , final ApiCallback <Void > callback ) throws ApiException {
218
+ public com . squareup . okhttp . Call testEndpointParametersAsync (BigDecimal number , Double _double , String string , byte [] _byte , Integer integer , Integer int32 , Long int64 , Float _float , byte [] binary , Date date , Date dateTime , String password , final ApiCallback <Void > callback ) throws ApiException {
222
219
223
220
ProgressResponseBody .ProgressListener progressListener = null ;
224
221
ProgressRequestBody .ProgressRequestListener progressRequestListener = null ;
@@ -239,7 +236,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
239
236
};
240
237
}
241
238
242
- Call call = testEndpointParametersCall (number , _double , string , _byte , integer , int32 , int64 , _float , binary , date , dateTime , password , progressListener , progressRequestListener );
239
+ com . squareup . okhttp . Call call = testEndpointParametersCall (number , _double , string , _byte , integer , int32 , int64 , _float , binary , date , dateTime , password , progressListener , progressRequestListener );
243
240
apiClient .executeAsync (call , callback );
244
241
return call ;
245
242
}
0 commit comments