@@ -89,7 +89,7 @@ public class {{classname}} {
89
89
* @see <a href =" { { url} } " >{ {summary} } Documentation</a >
90
90
{ {/externalDocs} }
91
91
*/
92
- public com.squareup.okhttp .Call { {operationId} }Call({ {#parameters} }{ {{dataType} }} { {paramName} }, { {/parameters} }final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
92
+ public okhttp3 .Call { {operationId} }Call({ {#parameters} }{ {{dataType} }} { {paramName} }, { {/parameters} }final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
93
93
Object {{localVariablePrefix} }localVarPostBody = { {^isForm} }{ {#bodyParam} }{ {paramName} }{ {/bodyParam} }{ {^bodyParam} }null{ {/bodyParam} }{ {/isForm} }{ {#isForm} }null{ {/isForm} };
94
94
95
95
// create path and map variables
@@ -126,10 +126,10 @@ public class {{classname}} {
126
126
{ {localVariablePrefix} }localVarHeaderParams.put("Content-Type", { {localVariablePrefix} }localVarContentType);
127
127
128
128
if(progressListener != null) {
129
- apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp .Interceptor() {
129
+ apiClient.getHttpClient().networkInterceptors().add(new okhttp3 .Interceptor() {
130
130
@Override
131
- public com.squareup.okhttp. Response intercept(com.squareup.okhttp .Interceptor.Chain chain) throws IOException {
132
- com.squareup.okhttp .Response originalResponse = chain.proceed(chain.request());
131
+ public okhttp3. Response intercept(okhttp3 .Interceptor.Chain chain) throws IOException {
132
+ okhttp3 .Response originalResponse = chain.proceed(chain.request());
133
133
return originalResponse.newBuilder()
134
134
.body(new ProgressResponseBody(originalResponse.body(), progressListener))
135
135
.build();
@@ -142,7 +142,7 @@ public class {{classname}} {
142
142
}
143
143
144
144
@SuppressWarnings("rawtypes")
145
- private com.squareup.okhttp .Call { {operationId} }ValidateBeforeCall({ {#parameters} }{ {{dataType} }} { {paramName} }, { {/parameters} }final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
145
+ private okhttp3 .Call { {operationId} }ValidateBeforeCall({ {#parameters} }{ {{dataType} }} { {paramName} }, { {/parameters} }final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
146
146
{{^performBeanValidation} }
147
147
{ {#parameters} }{ {#required} }
148
148
// verify the required parameter '{ {paramName} }' is set
@@ -151,7 +151,7 @@ public class {{classname}} {
151
151
}
152
152
{ {/required} }{ {/parameters} }
153
153
154
- com.squareup.okhttp .Call { {localVariablePrefix} }call = { {operationId} }Call({ {#parameters} }{ {paramName} }, { {/parameters} }progressListener, progressRequestListener);
154
+ okhttp3 .Call { {localVariablePrefix} }call = { {operationId} }Call({ {#parameters} }{ {paramName} }, { {/parameters} }progressListener, progressRequestListener);
155
155
return { {localVariablePrefix} }call;
156
156
157
157
{ {/performBeanValidation} }
@@ -166,7 +166,7 @@ public class {{classname}} {
166
166
parameterValues);
167
167
168
168
if (violations.size() == 0) {
169
- com.squareup.okhttp .Call {{localVariablePrefix} }call = { {operationId} }Call({ {#parameters} }{ {paramName} }, { {/parameters} }progressListener, progressRequestListener);
169
+ okhttp3 .Call {{localVariablePrefix} }call = { {operationId} }Call({ {#parameters} }{ {paramName} }, { {/parameters} }progressListener, progressRequestListener);
170
170
return { {localVariablePrefix} }call;
171
171
172
172
} else {
@@ -215,7 +215,7 @@ public class {{classname}} {
215
215
{ {/externalDocs} }
216
216
*/
217
217
public ApiResponse<{ {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }Void{ {/returnType} }> { {operationId} }WithHttpInfo({ {#parameters} }{ {#if useBeanValidation} }{ {> beanValidationQueryParams} }{ {/if } }{ {{dataType} }} { {paramName} }{ {#has this ' more' } }, { {/has} }{ {/parameters} }) throws ApiException {
218
- com.squareup.okhttp .Call {{localVariablePrefix} }call = { {operationId} }ValidateBeforeCall({ {#parameters} }{ {paramName} }, { {/parameters} }null, null);
218
+ okhttp3 .Call {{localVariablePrefix} }call = { {operationId} }ValidateBeforeCall({ {#parameters} }{ {paramName} }, { {/parameters} }null, null);
219
219
{ {#returnType} }Type { {localVariablePrefix} }localVarReturnType = new TypeToken<{ {{returnType} }}>(){ } .getType();
220
220
return { {localVariablePrefix} }apiClient.execute({ {localVariablePrefix} }call, { {localVariablePrefix} }localVarReturnType);{ {/returnType} }{ {^returnType} }return { {localVariablePrefix} }apiClient.execute({ {localVariablePrefix} }call);{ {/returnType} }
221
221
}
@@ -232,7 +232,7 @@ public class {{classname}} {
232
232
* @see <a href =" { { url} } " >{ {summary} } Documentation</a >
233
233
{ {/externalDocs} }
234
234
*/
235
- public com.squareup.okhttp .Call { {operationId} }Async({ {#parameters} }{ {{dataType} }} { {paramName} }, { {/parameters} }final ApiCallback<{ {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }Void{ {/returnType} }> { {localVariablePrefix} }callback) throws ApiException {
235
+ public okhttp3 .Call { {operationId} }Async({ {#parameters} }{ {{dataType} }} { {paramName} }, { {/parameters} }final ApiCallback<{ {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }Void{ {/returnType} }> { {localVariablePrefix} }callback) throws ApiException {
236
236
237
237
ProgressResponseBody.ProgressListener progressListener = null;
238
238
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -253,7 +253,7 @@ public class {{classname}} {
253
253
};
254
254
}
255
255
256
- com.squareup.okhttp .Call { {localVariablePrefix} }call = { {operationId} }ValidateBeforeCall({ {#parameters} }{ {paramName} }, { {/parameters} }progressListener, progressRequestListener);
256
+ okhttp3 .Call { {localVariablePrefix} }call = { {operationId} }ValidateBeforeCall({ {#parameters} }{ {paramName} }, { {/parameters} }progressListener, progressRequestListener);
257
257
{ {#returnType} }Type { {localVariablePrefix} }localVarReturnType = new TypeToken<{ {{returnType} }}>(){ } .getType();
258
258
{ {localVariablePrefix} }apiClient.executeAsync({ {localVariablePrefix} }call, { {localVariablePrefix} }localVarReturnType, { {localVariablePrefix} }callback);{ {/returnType} }{ {^returnType} }{ {localVariablePrefix} }apiClient.executeAsync({ {localVariablePrefix} }call, { {localVariablePrefix} }callback);{ {/returnType} }
259
259
return { {localVariablePrefix} }call;
0 commit comments