@@ -76,7 +76,7 @@ public class {{classname}} {
76
76
* @see <a href =" { { url} } " >{ {summary} } Documentation</a >
77
77
{ {/externalDocs} }
78
78
*/
79
- public okhttp3 .Call { {operationId} }Call({ {#parameters} }{ {{dataType} }} { {paramName} }, { {/parameters} }final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
79
+ public com.squareup.okhttp .Call { {operationId} }Call({ {#parameters} }{ {{dataType} }} { {paramName} }, { {/parameters} }final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
80
80
Object {{localVariablePrefix} }localVarPostBody = { {^isForm} }{ {#bodyParam} }{ {paramName} }{ {/bodyParam} }{ {^bodyParam} }null{ {/bodyParam} }{ {/isForm} }{ {#isForm} }null{ {/isForm} };
81
81
82
82
// create path and map variables
@@ -113,10 +113,10 @@ public class {{classname}} {
113
113
{ {localVariablePrefix} }localVarHeaderParams.put("Content-Type", { {localVariablePrefix} }localVarContentType);
114
114
115
115
if(progressListener != null) {
116
- apiClient.getHttpClient().networkInterceptors().add(new okhttp3 .Interceptor() {
116
+ apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp .Interceptor() {
117
117
@Override
118
- public okhttp3. Response intercept(okhttp3 .Interceptor.Chain chain) throws IOException {
119
- okhttp3 .Response originalResponse = chain.proceed(chain.request());
118
+ public com.squareup.okhttp. Response intercept(com.squareup.okhttp .Interceptor.Chain chain) throws IOException {
119
+ com.squareup.okhttp .Response originalResponse = chain.proceed(chain.request());
120
120
return originalResponse.newBuilder()
121
121
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
122
122
.build();
@@ -129,7 +129,7 @@ public class {{classname}} {
129
129
}
130
130
131
131
@SuppressWarnings("rawtypes")
132
- private okhttp3 .Call { {operationId} }ValidateBeforeCall({ {#parameters} }{ {{dataType} }} { {paramName} }, { {/parameters} }final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
132
+ private com.squareup.okhttp .Call { {operationId} }ValidateBeforeCall({ {#parameters} }{ {{dataType} }} { {paramName} }, { {/parameters} }final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
133
133
{{^performBeanValidation} }
134
134
{ {#parameters} }{ {#required} }
135
135
// verify the required parameter '{ {paramName} }' is set
@@ -138,7 +138,7 @@ public class {{classname}} {
138
138
}
139
139
{ {/required} }{ {/parameters} }
140
140
141
- okhttp3 .Call { {localVariablePrefix} }call = { {operationId} }Call({ {#parameters} }{ {paramName} }, { {/parameters} }progressListener, progressRequestListener);
141
+ com.squareup.okhttp .Call { {localVariablePrefix} }call = { {operationId} }Call({ {#parameters} }{ {paramName} }, { {/parameters} }progressListener, progressRequestListener);
142
142
return { {localVariablePrefix} }call;
143
143
144
144
{ {/performBeanValidation} }
@@ -153,7 +153,7 @@ public class {{classname}} {
153
153
parameterValues);
154
154
155
155
if (violations.size() == 0) {
156
- okhttp3 .Call {{localVariablePrefix} }call = { {operationId} }Call({ {#parameters} }{ {paramName} }, { {/parameters} }progressListener, progressRequestListener);
156
+ com.squareup.okhttp .Call {{localVariablePrefix} }call = { {operationId} }Call({ {#parameters} }{ {paramName} }, { {/parameters} }progressListener, progressRequestListener);
157
157
return { {localVariablePrefix} }call;
158
158
159
159
} else {
@@ -202,7 +202,7 @@ public class {{classname}} {
202
202
{ {/externalDocs} }
203
203
*/
204
204
public ApiResponse<{ {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }Void{ {/returnType} }> { {operationId} }WithHttpInfo({ {#parameters} }{ {#if useBeanValidation} }{ {> beanValidationQueryParams} }{ {/if } }{ {{dataType} }} { {paramName} }{ {#has this ' more' } }, { {/has} }{ {/parameters} }) throws ApiException {
205
- okhttp3 .Call {{localVariablePrefix} }call = { {operationId} }ValidateBeforeCall({ {#parameters} }{ {paramName} }, { {/parameters} }null, null);
205
+ com.squareup.okhttp .Call {{localVariablePrefix} }call = { {operationId} }ValidateBeforeCall({ {#parameters} }{ {paramName} }, { {/parameters} }null, null);
206
206
{ {#returnType} }Type { {localVariablePrefix} }localVarReturnType = new TypeToken<{ {{returnType} }}>(){ } .getType();
207
207
return { {localVariablePrefix} }apiClient.execute({ {localVariablePrefix} }call, { {localVariablePrefix} }localVarReturnType);{ {/returnType} }{ {^returnType} }return { {localVariablePrefix} }apiClient.execute({ {localVariablePrefix} }call);{ {/returnType} }
208
208
}
@@ -219,7 +219,7 @@ public class {{classname}} {
219
219
* @see <a href =" { { url} } " >{ {summary} } Documentation</a >
220
220
{ {/externalDocs} }
221
221
*/
222
- public okhttp3 .Call { {operationId} }Async({ {#parameters} }{ {{dataType} }} { {paramName} }, { {/parameters} }final ApiCallback<{ {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }Void{ {/returnType} }> { {localVariablePrefix} }callback) throws ApiException {
222
+ public com.squareup.okhttp .Call { {operationId} }Async({ {#parameters} }{ {{dataType} }} { {paramName} }, { {/parameters} }final ApiCallback<{ {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }Void{ {/returnType} }> { {localVariablePrefix} }callback) throws ApiException {
223
223
224
224
ProgressResponseBody.ProgressListener progressListener = null;
225
225
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -240,7 +240,7 @@ public class {{classname}} {
240
240
};
241
241
}
242
242
243
- okhttp3 .Call { {localVariablePrefix} }call = { {operationId} }ValidateBeforeCall({ {#parameters} }{ {paramName} }, { {/parameters} }progressListener, progressRequestListener);
243
+ com.squareup.okhttp .Call { {localVariablePrefix} }call = { {operationId} }ValidateBeforeCall({ {#parameters} }{ {paramName} }, { {/parameters} }progressListener, progressRequestListener);
244
244
{ {#returnType} }Type { {localVariablePrefix} }localVarReturnType = new TypeToken<{ {{returnType} }}>(){ } .getType();
245
245
{ {localVariablePrefix} }apiClient.executeAsync({ {localVariablePrefix} }call, { {localVariablePrefix} }localVarReturnType, { {localVariablePrefix} }callback);{ {/returnType} }{ {^returnType} }{ {localVariablePrefix} }apiClient.executeAsync({ {localVariablePrefix} }call, { {localVariablePrefix} }callback);{ {/returnType} }
246
246
return { {localVariablePrefix} }call;
0 commit comments