@@ -18551,6 +18551,149 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
1855118551 return call;
1855218552 }
1855318553
18554+ @SuppressWarnings("rawtypes")
18555+ private com.squareup.okhttp.Call mergeWithNextValidateBeforeCall(MergeWithNextRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, IOException {
18556+ return apiClient.buildCall(request.buildHttpRequest(apiClient, progressListener, progressRequestListener, true));
18557+ }
18558+
18559+ /**
18560+ * Merge the section with the next one.
18561+ * @param request Request object
18562+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
18563+ * @throws IOException If fail to serialize the request body object
18564+ */
18565+ public void mergeWithNext(MergeWithNextRequest request) throws ApiException, MessagingException, IOException {
18566+ try {
18567+ mergeWithNextWithHttpInfo(request);
18568+ }
18569+ catch (ApiException ex) {
18570+ if (ex.getCode() == apiClient.getNotAuthCode()) {
18571+ apiClient.requestToken();
18572+ mergeWithNextWithHttpInfo(request);
18573+ }
18574+ throw ex;
18575+ }
18576+ }
18577+
18578+ /**
18579+ * Merge the section with the next one.
18580+ * @param request Request object
18581+ * @return ApiResponse< void >;
18582+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
18583+ * @throws IOException If fail to serialize the request body object
18584+ */
18585+ private ApiResponse< Void > mergeWithNextWithHttpInfo(MergeWithNextRequest request) throws ApiException, MessagingException, IOException {
18586+ com.squareup.okhttp.Call call = mergeWithNextValidateBeforeCall(request, null, null);
18587+ return apiClient.execute(call, request);
18588+ }
18589+
18590+ /**
18591+ * Merge the section with the next one. (asynchronously)
18592+ * @param request Request object
18593+ * @param callback The callback to be executed when the API call finishes
18594+ * @return The request call
18595+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
18596+ * @throws IOException If fail to serialize the request body object
18597+ */
18598+ public com.squareup.okhttp.Call mergeWithNextAsync(MergeWithNextRequest request, final ApiCallback< Void > callback) throws ApiException, MessagingException, IOException {
18599+
18600+ ProgressResponseBody.ProgressListener progressListener = null;
18601+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
18602+
18603+ if (callback != null) {
18604+ progressListener = new ProgressResponseBody.ProgressListener() {
18605+ @Override
18606+ public void update(long bytesRead, long contentLength, boolean done) {
18607+ callback.onDownloadProgress(bytesRead, contentLength, done);
18608+ }
18609+ };
18610+
18611+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
18612+ @Override
18613+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
18614+ callback.onUploadProgress(bytesWritten, contentLength, done);
18615+ }
18616+ };
18617+ }
18618+
18619+ com.squareup.okhttp.Call call = mergeWithNextValidateBeforeCall(request, progressListener, progressRequestListener);
18620+ apiClient.executeAsync(call, request, callback);
18621+ return call;
18622+ }
18623+
18624+ @SuppressWarnings("rawtypes")
18625+ private com.squareup.okhttp.Call mergeWithNextOnlineValidateBeforeCall(MergeWithNextOnlineRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, IOException {
18626+ return apiClient.buildCall(request.buildHttpRequest(apiClient, progressListener, progressRequestListener, true));
18627+ }
18628+
18629+ /**
18630+ * Merge the section with the next one.
18631+ * @param request Request object
18632+ * @return Map<String, byte[]>
18633+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
18634+ * @throws IOException If fail to serialize the request body object
18635+ */
18636+ public Map<String, byte[]> mergeWithNextOnline(MergeWithNextOnlineRequest request) throws ApiException, MessagingException, IOException {
18637+ try {
18638+ ApiResponse< Map<String, byte[]> > resp = mergeWithNextOnlineWithHttpInfo(request);
18639+ return resp.getData();
18640+ }
18641+ catch (ApiException ex) {
18642+ if (ex.getCode() == apiClient.getNotAuthCode()) {
18643+ apiClient.requestToken();
18644+ ApiResponse< Map<String, byte[]> > resp = mergeWithNextOnlineWithHttpInfo(request);
18645+ return resp.getData();
18646+ }
18647+ throw ex;
18648+ }
18649+ }
18650+
18651+ /**
18652+ * Merge the section with the next one.
18653+ * @param request Request object
18654+ * @return ApiResponse< Map<String, byte[]> >;
18655+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
18656+ * @throws IOException If fail to serialize the request body object
18657+ */
18658+ private ApiResponse< Map<String, byte[]> > mergeWithNextOnlineWithHttpInfo(MergeWithNextOnlineRequest request) throws ApiException, MessagingException, IOException {
18659+ com.squareup.okhttp.Call call = mergeWithNextOnlineValidateBeforeCall(request, null, null);
18660+ return apiClient.execute(call, request);
18661+ }
18662+
18663+ /**
18664+ * Merge the section with the next one. (asynchronously)
18665+ * @param request Request object
18666+ * @param callback The callback to be executed when the API call finishes
18667+ * @return The request call
18668+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
18669+ * @throws IOException If fail to serialize the request body object
18670+ */
18671+ public com.squareup.okhttp.Call mergeWithNextOnlineAsync(MergeWithNextOnlineRequest request, final ApiCallback< Map<String, byte[]> > callback) throws ApiException, MessagingException, IOException {
18672+
18673+ ProgressResponseBody.ProgressListener progressListener = null;
18674+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
18675+
18676+ if (callback != null) {
18677+ progressListener = new ProgressResponseBody.ProgressListener() {
18678+ @Override
18679+ public void update(long bytesRead, long contentLength, boolean done) {
18680+ callback.onDownloadProgress(bytesRead, contentLength, done);
18681+ }
18682+ };
18683+
18684+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
18685+ @Override
18686+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
18687+ callback.onUploadProgress(bytesWritten, contentLength, done);
18688+ }
18689+ };
18690+ }
18691+
18692+ com.squareup.okhttp.Call call = mergeWithNextOnlineValidateBeforeCall(request, progressListener, progressRequestListener);
18693+ apiClient.executeAsync(call, request, callback);
18694+ return call;
18695+ }
18696+
1855418697 @SuppressWarnings("rawtypes")
1855518698 private com.squareup.okhttp.Call moveFileValidateBeforeCall(MoveFileRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, IOException {
1855618699 return apiClient.buildCall(request.buildHttpRequest(apiClient, progressListener, progressRequestListener, true));
0 commit comments