@@ -192,5 +192,119 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
192192 return call ;
193193 }
194194
195+ /**
196+ * Build call for getLicenseInfo
197+ * @param progressListener Progress listener
198+ * @param progressRequestListener Progress request listener
199+ * @return Call to execute
200+ * @throws ApiException If fail to serialize the request body object
201+ */
202+ public com .squareup .okhttp .Call getLicenseInfoCall (final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
203+ Object localVarPostBody = null ;
204+
205+ // create path and map variables
206+ String localVarPath = "/conversion/license" ;
207+
208+ List <Pair > localVarQueryParams = new ArrayList <Pair >();
209+ List <Pair > localVarCollectionQueryParams = new ArrayList <Pair >();
210+
211+ Map <String , String > localVarHeaderParams = new HashMap <String , String >();
212+
213+ Map <String , Object > localVarFormParams = new HashMap <String , Object >();
214+
215+ final String [] localVarAccepts = {
216+ "application/json"
217+ };
218+ final String localVarAccept = apiClient .selectHeaderAccept (localVarAccepts );
219+ if (localVarAccept != null ) localVarHeaderParams .put ("Accept" , localVarAccept );
220+
221+ final String [] localVarContentTypes = {
222+ "application/json"
223+ };
224+ final String localVarContentType = apiClient .selectHeaderContentType (localVarContentTypes );
225+ localVarHeaderParams .put ("Content-Type" , localVarContentType );
226+
227+ if (progressListener != null ) {
228+ apiClient .getHttpClient ().networkInterceptors ().add (new com .squareup .okhttp .Interceptor () {
229+ @ Override
230+ public com .squareup .okhttp .Response intercept (com .squareup .okhttp .Interceptor .Chain chain ) throws IOException {
231+ com .squareup .okhttp .Response originalResponse = chain .proceed (chain .request ());
232+ return originalResponse .newBuilder ()
233+ .body (new ProgressResponseBody (originalResponse .body (), progressListener ))
234+ .build ();
235+ }
236+ });
237+ }
238+
239+ String [] localVarAuthNames = new String [] { "JWT" };
240+ return apiClient .buildCall (localVarPath , "GET" , localVarQueryParams , localVarCollectionQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAuthNames , progressRequestListener );
241+ }
242+
243+ @ SuppressWarnings ("rawtypes" )
244+ private com .squareup .okhttp .Call getLicenseInfoValidateBeforeCall (final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
245+
246+
247+ com .squareup .okhttp .Call call = getLicenseInfoCall (progressListener , progressRequestListener );
248+ return call ;
249+
250+ }
251+
252+ /**
253+ * Get license information
254+ *
255+ * @return LicenseInfo
256+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
257+ */
258+ public LicenseInfo getLicenseInfo () throws ApiException {
259+ ApiResponse <LicenseInfo > resp = getLicenseInfoWithHttpInfo ();
260+ return resp .getData ();
261+ }
262+
263+ /**
264+ * Get license information
265+ *
266+ * @return ApiResponse<LicenseInfo>
267+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
268+ */
269+ public ApiResponse <LicenseInfo > getLicenseInfoWithHttpInfo () throws ApiException {
270+ com .squareup .okhttp .Call call = getLicenseInfoValidateBeforeCall (null , null );
271+ Type localVarReturnType = new TypeToken <LicenseInfo >(){}.getType ();
272+ return apiClient .execute (call , localVarReturnType );
273+ }
274+
275+ /**
276+ * Get license information (asynchronously)
277+ *
278+ * @param callback The callback to be executed when the API call finishes
279+ * @return The request call
280+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
281+ */
282+ public com .squareup .okhttp .Call getLicenseInfoAsync (final ApiCallback <LicenseInfo > callback ) throws ApiException {
283+
284+ ProgressResponseBody .ProgressListener progressListener = null ;
285+ ProgressRequestBody .ProgressRequestListener progressRequestListener = null ;
286+
287+ if (callback != null ) {
288+ progressListener = new ProgressResponseBody .ProgressListener () {
289+ @ Override
290+ public void update (long bytesRead , long contentLength , boolean done ) {
291+ callback .onDownloadProgress (bytesRead , contentLength , done );
292+ }
293+ };
294+
295+ progressRequestListener = new ProgressRequestBody .ProgressRequestListener () {
296+ @ Override
297+ public void onRequestProgress (long bytesWritten , long contentLength , boolean done ) {
298+ callback .onUploadProgress (bytesWritten , contentLength , done );
299+ }
300+ };
301+ }
302+
303+ com .squareup .okhttp .Call call = getLicenseInfoValidateBeforeCall (progressListener , progressRequestListener );
304+ Type localVarReturnType = new TypeToken <LicenseInfo >(){}.getType ();
305+ apiClient .executeAsync (call , localVarReturnType , callback );
306+ return call ;
307+ }
308+
195309}
196310
0 commit comments