@@ -6571,6 +6571,152 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
65716571 return call;
65726572 }
65736573
6574+ @SuppressWarnings("rawtypes")
6575+ private com.squareup.okhttp.Call getAllRevisionsValidateBeforeCall(GetAllRevisionsRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, IOException {
6576+ return apiClient.buildCall(request.buildHttpRequest(apiClient, progressListener, progressRequestListener, true));
6577+ }
6578+
6579+ /**
6580+ * Get all information about revisions.
6581+ * @param request Request object
6582+ * @return RevisionsResponse
6583+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
6584+ * @throws IOException If fail to serialize the request body object
6585+ */
6586+ public RevisionsResponse getAllRevisions(GetAllRevisionsRequest request) throws ApiException, MessagingException, IOException {
6587+ try {
6588+ ApiResponse< RevisionsResponse > resp = getAllRevisionsWithHttpInfo(request);
6589+ return resp.getData();
6590+ }
6591+ catch (ApiException ex) {
6592+ if (ex.getCode() == apiClient.getNotAuthCode()) {
6593+ apiClient.requestToken();
6594+ ApiResponse< RevisionsResponse > resp = getAllRevisionsWithHttpInfo(request);
6595+ return resp.getData();
6596+ }
6597+ throw ex;
6598+ }
6599+ }
6600+
6601+ /**
6602+ * Get all information about revisions.
6603+ * @param request Request object
6604+ * @return ApiResponse< RevisionsResponse >;
6605+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
6606+ * @throws IOException If fail to serialize the request body object
6607+ */
6608+ private ApiResponse< RevisionsResponse > getAllRevisionsWithHttpInfo(GetAllRevisionsRequest request) throws ApiException, MessagingException, IOException {
6609+ com.squareup.okhttp.Call call = getAllRevisionsValidateBeforeCall(request, null, null);
6610+ return apiClient.execute(call, request);
6611+ }
6612+
6613+ /**
6614+ * Get all information about revisions. (asynchronously)
6615+ * @param request Request object
6616+ * @param callback The callback to be executed when the API call finishes
6617+ * @return The request call
6618+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
6619+ * @throws IOException If fail to serialize the request body object
6620+ */
6621+ public com.squareup.okhttp.Call getAllRevisionsAsync(GetAllRevisionsRequest request, final ApiCallback< RevisionsResponse > callback) throws ApiException, MessagingException, IOException {
6622+
6623+ ProgressResponseBody.ProgressListener progressListener = null;
6624+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
6625+
6626+ if (callback != null) {
6627+ progressListener = new ProgressResponseBody.ProgressListener() {
6628+ @Override
6629+ public void update(long bytesRead, long contentLength, boolean done) {
6630+ callback.onDownloadProgress(bytesRead, contentLength, done);
6631+ }
6632+ };
6633+
6634+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
6635+ @Override
6636+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
6637+ callback.onUploadProgress(bytesWritten, contentLength, done);
6638+ }
6639+ };
6640+ }
6641+
6642+ com.squareup.okhttp.Call call = getAllRevisionsValidateBeforeCall(request, progressListener, progressRequestListener);
6643+ apiClient.executeAsync(call, request, callback);
6644+ return call;
6645+ }
6646+
6647+ @SuppressWarnings("rawtypes")
6648+ private com.squareup.okhttp.Call getAllRevisionsOnlineValidateBeforeCall(GetAllRevisionsOnlineRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, IOException {
6649+ return apiClient.buildCall(request.buildHttpRequest(apiClient, progressListener, progressRequestListener, true));
6650+ }
6651+
6652+ /**
6653+ * Get all information about revisions.
6654+ * @param request Request object
6655+ * @return RevisionsResponse
6656+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
6657+ * @throws IOException If fail to serialize the request body object
6658+ */
6659+ public RevisionsResponse getAllRevisionsOnline(GetAllRevisionsOnlineRequest request) throws ApiException, MessagingException, IOException {
6660+ try {
6661+ ApiResponse< RevisionsResponse > resp = getAllRevisionsOnlineWithHttpInfo(request);
6662+ return resp.getData();
6663+ }
6664+ catch (ApiException ex) {
6665+ if (ex.getCode() == apiClient.getNotAuthCode()) {
6666+ apiClient.requestToken();
6667+ ApiResponse< RevisionsResponse > resp = getAllRevisionsOnlineWithHttpInfo(request);
6668+ return resp.getData();
6669+ }
6670+ throw ex;
6671+ }
6672+ }
6673+
6674+ /**
6675+ * Get all information about revisions.
6676+ * @param request Request object
6677+ * @return ApiResponse< RevisionsResponse >;
6678+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
6679+ * @throws IOException If fail to serialize the request body object
6680+ */
6681+ private ApiResponse< RevisionsResponse > getAllRevisionsOnlineWithHttpInfo(GetAllRevisionsOnlineRequest request) throws ApiException, MessagingException, IOException {
6682+ com.squareup.okhttp.Call call = getAllRevisionsOnlineValidateBeforeCall(request, null, null);
6683+ return apiClient.execute(call, request);
6684+ }
6685+
6686+ /**
6687+ * Get all information about revisions. (asynchronously)
6688+ * @param request Request object
6689+ * @param callback The callback to be executed when the API call finishes
6690+ * @return The request call
6691+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
6692+ * @throws IOException If fail to serialize the request body object
6693+ */
6694+ public com.squareup.okhttp.Call getAllRevisionsOnlineAsync(GetAllRevisionsOnlineRequest request, final ApiCallback< RevisionsResponse > callback) throws ApiException, MessagingException, IOException {
6695+
6696+ ProgressResponseBody.ProgressListener progressListener = null;
6697+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
6698+
6699+ if (callback != null) {
6700+ progressListener = new ProgressResponseBody.ProgressListener() {
6701+ @Override
6702+ public void update(long bytesRead, long contentLength, boolean done) {
6703+ callback.onDownloadProgress(bytesRead, contentLength, done);
6704+ }
6705+ };
6706+
6707+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
6708+ @Override
6709+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
6710+ callback.onUploadProgress(bytesWritten, contentLength, done);
6711+ }
6712+ };
6713+ }
6714+
6715+ com.squareup.okhttp.Call call = getAllRevisionsOnlineValidateBeforeCall(request, progressListener, progressRequestListener);
6716+ apiClient.executeAsync(call, request, callback);
6717+ return call;
6718+ }
6719+
65746720 @SuppressWarnings("rawtypes")
65756721 private com.squareup.okhttp.Call getAvailableFontsValidateBeforeCall(GetAvailableFontsRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, IOException {
65766722 return apiClient.buildCall(request.buildHttpRequest(apiClient, progressListener, progressRequestListener, true));
0 commit comments