@@ -73,7 +73,7 @@ public class {{classname}} {
7373 @Deprecated
7474 { {/isDeprecated} }
7575 @SuppressWarnings("removal")
76- protected com.squareup.okhttp .Call { {operationId} }Call({ {operationIdCamelCase} }Request request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
76+ protected okhttp3 .Call { {operationId} }Call({ {operationIdCamelCase} }Request request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
7777 Object {{localVariablePrefix} }postBody = { {#bodyParam} }request.{ {paramName} }{ {/bodyParam} }{ {^bodyParam} }null{ {/bodyParam} };
7878
7979 // create path and map variables
@@ -112,10 +112,10 @@ public class {{classname}} {
112112 { {localVariablePrefix} }headerParams.put("Content-Type", { {localVariablePrefix} }contentType);
113113
114114 if(progressListener != null) {
115- {{localVariablePrefix} }apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp .Interceptor() {
115+ {{localVariablePrefix} }apiClient.getHttpClient().networkInterceptors().add(new okhttp3 .Interceptor() {
116116 @Override
117- public com.squareup.okhttp. Response intercept(com.squareup.okhttp .Interceptor.Chain chain) throws IOException {
118- com.squareup.okhttp .Response originalResponse = chain.proceed(chain.request());
117+ public okhttp3. Response intercept(okhttp3 .Interceptor.Chain chain) throws IOException {
118+ okhttp3 .Response originalResponse = chain.proceed(chain.request());
119119 return originalResponse.newBuilder()
120120 .body(new ProgressResponseBody(originalResponse.body(), progressListener))
121121 .build();
@@ -129,7 +129,7 @@ public class {{classname}} {
129129 { {#isDeprecated} }
130130 @Deprecated
131131 { {/isDeprecated} }
132- private com.squareup.okhttp .Call { {operationId} }ValidateBeforeCall({ {operationIdCamelCase} }Request request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
132+ private okhttp3 .Call { {operationId} }ValidateBeforeCall({ {operationIdCamelCase} }Request request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
133133 {{^performBeanValidation} }
134134 { {#allParams} }{ {#required} }
135135 // verify the required parameter 'request.{ {paramName} }' is set
@@ -140,7 +140,7 @@ public class {{classname}} {
140140 }
141141 { {/required} }{ {/allParams} }
142142
143- com.squareup.okhttp .Call { {localVariablePrefix} }call = { {operationId} }Call(request, progressListener, progressRequestListener);
143+ okhttp3 .Call { {localVariablePrefix} }call = { {operationId} }Call(request, progressListener, progressRequestListener);
144144 return { {localVariablePrefix} }call;
145145
146146 { {/performBeanValidation} }
@@ -155,7 +155,7 @@ public class {{classname}} {
155155 parameterValues);
156156
157157 if (violations.size() == 0) {
158- com.squareup.okhttp .Call {{localVariablePrefix} }call = { {operationId} }Call(request, progressListener, progressRequestListener);
158+ okhttp3 .Call {{localVariablePrefix} }call = { {operationId} }Call(request, progressListener, progressRequestListener);
159159 return { {localVariablePrefix} }call;
160160
161161 } else {
@@ -212,7 +212,7 @@ public class {{classname}} {
212212 @Deprecated
213213 { {/isDeprecated} }
214214 public ApiResponse<{ {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }Void{ {/returnType} }> { {operationId} }WithHttpInfo({ {operationIdCamelCase} }Request request) throws ApiException {
215- com.squareup.okhttp .Call {{localVariablePrefix} }call = { {operationId} }ValidateBeforeCall(request, null, null);
215+ okhttp3 .Call {{localVariablePrefix} }call = { {operationId} }ValidateBeforeCall(request, null, null);
216216 { {#returnType} }Type { {localVariablePrefix} }returnType = new TypeToken<{ {{returnType} }}>(){ } .getType();
217217 return { {localVariablePrefix} }apiClient.execute({ {localVariablePrefix} }call, { {localVariablePrefix} }returnType);{ {/returnType} }{ {^returnType} }return { {localVariablePrefix} }apiClient.execute({ {localVariablePrefix} }call);{ {/returnType} }
218218 }
@@ -235,7 +235,7 @@ public class {{classname}} {
235235 { {#isDeprecated} }
236236 @Deprecated
237237 { {/isDeprecated} }
238- public com.squareup.okhttp .Call { {operationId} }Async({ {operationIdCamelCase} }Request request, final ApiCallback<{ {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }Void{ {/returnType} }> callback) throws ApiException {
238+ public okhttp3 .Call { {operationId} }Async({ {operationIdCamelCase} }Request request, final ApiCallback<{ {#returnType} }{ {{returnType} }}{ {/returnType} }{ {^returnType} }Void{ {/returnType} }> callback) throws ApiException {
239239
240240 ProgressResponseBody.ProgressListener progressListener = null;
241241 ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@@ -256,7 +256,7 @@ public class {{classname}} {
256256 };
257257 }
258258
259- com.squareup.okhttp .Call { {localVariablePrefix} }call = { {operationId} }ValidateBeforeCall(request, progressListener, progressRequestListener);
259+ okhttp3 .Call { {localVariablePrefix} }call = { {operationId} }ValidateBeforeCall(request, progressListener, progressRequestListener);
260260 { {#returnType} }Type { {localVariablePrefix} }returnType = new TypeToken<{ {{returnType} }}>(){ } .getType();
261261 { {localVariablePrefix} }apiClient.executeAsync({ {localVariablePrefix} }call, { {localVariablePrefix} }returnType, callback);{ {/returnType} }{ {^returnType} }{ {localVariablePrefix} }apiClient.executeAsync({ {localVariablePrefix} }call, callback);{ {/returnType} }
262262 return { {localVariablePrefix} }call;
0 commit comments