|
43 | 43 | import com.aspose.cloud.cells.model.AutoFitterOptions; |
44 | 44 | import com.aspose.cloud.cells.model.AutoShapesResponse; |
45 | 45 | import com.aspose.cloud.cells.model.BatchConvertRequest; |
| 46 | +import com.aspose.cloud.cells.model.BarcodeResponseList; |
46 | 47 | import com.aspose.cloud.cells.model.CalculationOptions; |
47 | 48 | import com.aspose.cloud.cells.model.CellResponse; |
48 | 49 | import com.aspose.cloud.cells.model.CellsCloudResponse; |
@@ -15414,7 +15415,164 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch |
15414 | 15415 | String[] localVarAuthNames = new String[] { }; |
15415 | 15416 | return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); |
15416 | 15417 | } |
| 15418 | + /** |
| 15419 | + * Build call for cellsPictureGetExtractBarcodes |
| 15420 | + * @param name Workbook name. (required) |
| 15421 | + * @param sheetName Worksheet name. (required) |
| 15422 | + * @param pictureIndex The picture index. (required) |
| 15423 | + * @param folder Workbook folder. (optional) |
| 15424 | + * @param storageName storage name. (optional) |
| 15425 | + * @param progressListener Progress listener |
| 15426 | + * @param progressRequestListener Progress request listener |
| 15427 | + * @return Call to execute |
| 15428 | + * @throws ApiException If fail to serialize the request body object |
| 15429 | + */ |
| 15430 | + public com.squareup.okhttp.Call cellsPictureGetExtractBarcodesCall(String name, String sheetName, Integer pictureIndex, String folder, String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { |
| 15431 | + Object localVarPostBody = null; |
| 15432 | + |
| 15433 | + // create path and map variables |
| 15434 | + String localVarPath = "/cells/{name}/worksheets/{sheetName}/pictures/{pictureIndex}/recognize" |
| 15435 | + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) |
| 15436 | + .replaceAll("\\{" + "sheetName" + "\\}", apiClient.escapeString(sheetName.toString())) |
| 15437 | + .replaceAll("\\{" + "pictureIndex" + "\\}", apiClient.escapeString(pictureIndex.toString())); |
| 15438 | + |
| 15439 | + List<Pair> localVarQueryParams = new ArrayList<Pair>(); |
| 15440 | + if (folder != null) |
| 15441 | + localVarQueryParams.addAll(apiClient.parameterToPairs("", "folder", folder)); |
| 15442 | + if (storageName != null) |
| 15443 | + localVarQueryParams.addAll(apiClient.parameterToPairs("", "storageName", storageName)); |
| 15444 | + |
| 15445 | + Map<String, String> localVarHeaderParams = new HashMap<String, String>(); |
| 15446 | + |
| 15447 | + Map<String, Object> localVarFormParams = new HashMap<String, Object>(); |
| 15448 | + |
| 15449 | + final String[] localVarAccepts = { |
| 15450 | + "application/json" |
| 15451 | + }; |
| 15452 | + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
| 15453 | + if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); |
| 15454 | + |
| 15455 | + final String[] localVarContentTypes = { |
| 15456 | + "application/json" |
| 15457 | + }; |
| 15458 | + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); |
| 15459 | + localVarHeaderParams.put("Content-Type", localVarContentType); |
| 15460 | + |
| 15461 | + if(progressListener != null) { |
| 15462 | + apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { |
| 15463 | + @Override |
| 15464 | + public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { |
| 15465 | + com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); |
| 15466 | + return originalResponse.newBuilder() |
| 15467 | + .body(new ProgressResponseBody(originalResponse.body(), progressListener)) |
| 15468 | + .build(); |
| 15469 | + } |
| 15470 | + }); |
| 15471 | + } |
| 15472 | + |
| 15473 | + String[] localVarAuthNames = new String[] { }; |
| 15474 | + return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); |
| 15475 | + } |
15417 | 15476 |
|
| 15477 | + @SuppressWarnings("rawtypes") |
| 15478 | + private com.squareup.okhttp.Call cellsPictureGetExtractBarcodesValidateBeforeCall(String name, String sheetName, Integer pictureIndex, String folder, String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { |
| 15479 | + |
| 15480 | + // verify the required parameter 'name' is set |
| 15481 | + if (name == null) { |
| 15482 | + throw new ApiException("Missing the required parameter 'name' when calling cellsPictureGetExtractBarcodes(Async)"); |
| 15483 | + } |
| 15484 | + |
| 15485 | + // verify the required parameter 'sheetName' is set |
| 15486 | + if (sheetName == null) { |
| 15487 | + throw new ApiException("Missing the required parameter 'sheetName' when calling cellsPictureGetExtractBarcodes(Async)"); |
| 15488 | + } |
| 15489 | + |
| 15490 | + // verify the required parameter 'pictureIndex' is set |
| 15491 | + if (pictureIndex == null) { |
| 15492 | + throw new ApiException("Missing the required parameter 'pictureIndex' when calling cellsPictureGetExtractBarcodes(Async)"); |
| 15493 | + } |
| 15494 | + |
| 15495 | + |
| 15496 | + com.squareup.okhttp.Call call = cellsPictureGetExtractBarcodesCall(name, sheetName, pictureIndex, folder, storageName, progressListener, progressRequestListener); |
| 15497 | + return call; |
| 15498 | + |
| 15499 | + |
| 15500 | + |
| 15501 | + |
| 15502 | + |
| 15503 | + } |
| 15504 | + |
| 15505 | + /** |
| 15506 | + * Get chart area border info. |
| 15507 | + * |
| 15508 | + * @param name Workbook name. (required) |
| 15509 | + * @param sheetName Worksheet name. (required) |
| 15510 | + * @param pictureIndex The picture index. (required) |
| 15511 | + * @param folder Workbook folder. (optional) |
| 15512 | + * @param storageName storage name. (optional) |
| 15513 | + * @return BarcodeResponseList |
| 15514 | + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body |
| 15515 | + */ |
| 15516 | + public BarcodeResponseList cellsPictureGetExtractBarcodes(String name, String sheetName, Integer pictureIndex, String folder, String storageName) throws ApiException { |
| 15517 | + ApiResponse<BarcodeResponseList> resp = cellsPictureGetExtractBarcodesWithHttpInfo(name, sheetName, pictureIndex, folder, storageName); |
| 15518 | + return resp.getData(); |
| 15519 | + } |
| 15520 | + |
| 15521 | + /** |
| 15522 | + * Get chart area border info. |
| 15523 | + * |
| 15524 | + * @param name Workbook name. (required) |
| 15525 | + * @param sheetName Worksheet name. (required) |
| 15526 | + * @param pictureIndex The picture index. (required) |
| 15527 | + * @param folder Workbook folder. (optional) |
| 15528 | + * @param storageName storage name. (optional) |
| 15529 | + * @return ApiResponse<BarcodeResponseList> |
| 15530 | + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body |
| 15531 | + */ |
| 15532 | + public ApiResponse<BarcodeResponseList> cellsPictureGetExtractBarcodesWithHttpInfo(String name, String sheetName, Integer pictureIndex, String folder, String storageName) throws ApiException { |
| 15533 | + com.squareup.okhttp.Call call = cellsPictureGetExtractBarcodesValidateBeforeCall(name, sheetName, pictureIndex, folder, storageName, null, null); |
| 15534 | + Type localVarReturnType = new TypeToken<BarcodeResponseList>(){}.getType(); |
| 15535 | + return apiClient.execute(call, localVarReturnType); |
| 15536 | + } |
| 15537 | + |
| 15538 | + /** |
| 15539 | + * Get chart area border info. (asynchronously) |
| 15540 | + * |
| 15541 | + * @param name Workbook name. (required) |
| 15542 | + * @param sheetName Worksheet name. (required) |
| 15543 | + * @param pictureIndex The picture index. (required) |
| 15544 | + * @param folder Workbook folder. (optional) |
| 15545 | + * @param storageName storage name. (optional) |
| 15546 | + * @param callback The callback to be executed when the API call finishes |
| 15547 | + * @return The request call |
| 15548 | + * @throws ApiException If fail to process the API call, e.g. serializing the request body object |
| 15549 | + */ |
| 15550 | + public com.squareup.okhttp.Call cellsPictureGetExtractBarcodesAsync(String name, String sheetName, Integer pictureIndex, String folder, String storageName, final ApiCallback<BarcodeResponseList> callback) throws ApiException { |
| 15551 | + |
| 15552 | + ProgressResponseBody.ProgressListener progressListener = null; |
| 15553 | + ProgressRequestBody.ProgressRequestListener progressRequestListener = null; |
| 15554 | + |
| 15555 | + if (callback != null) { |
| 15556 | + progressListener = new ProgressResponseBody.ProgressListener() { |
| 15557 | + @Override |
| 15558 | + public void update(long bytesRead, long contentLength, boolean done) { |
| 15559 | + callback.onDownloadProgress(bytesRead, contentLength, done); |
| 15560 | + } |
| 15561 | + }; |
| 15562 | + |
| 15563 | + progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { |
| 15564 | + @Override |
| 15565 | + public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { |
| 15566 | + callback.onUploadProgress(bytesWritten, contentLength, done); |
| 15567 | + } |
| 15568 | + }; |
| 15569 | + } |
| 15570 | + |
| 15571 | + com.squareup.okhttp.Call call = cellsPictureGetExtractBarcodesValidateBeforeCall(name, sheetName, pictureIndex, folder, storageName, progressListener, progressRequestListener); |
| 15572 | + Type localVarReturnType = new TypeToken<BarcodeResponseList>(){}.getType(); |
| 15573 | + apiClient.executeAsync(call, localVarReturnType, callback); |
| 15574 | + return call; |
| 15575 | + } |
15418 | 15576 | @SuppressWarnings("rawtypes") |
15419 | 15577 | private com.squareup.okhttp.Call cellsPageSetupPostPageSetupValidateBeforeCall(String name, String sheetName, PageSetup pageSetup, String folder, String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { |
15420 | 15578 |
|
|
0 commit comments