Пример #1
0
        /// <summary>
        /// <para>Begins an asynchronous send to the delete route.</para>
        /// </summary>
        /// <param name="ids">List IDs of the file requests to delete.</param>
        /// <param name="callback">The method to be called when the asynchronous send is
        /// completed.</param>
        /// <param name="callbackState">A user provided object that distinguished this send
        /// from other send requests.</param>
        /// <returns>An object that represents the asynchronous send request.</returns>
        public sys.IAsyncResult BeginDelete(col.IEnumerable <string> ids,
                                            sys.AsyncCallback callback,
                                            object callbackState = null)
        {
            var deleteFileRequestArgs = new DeleteFileRequestArgs(ids);

            return(this.BeginDelete(deleteFileRequestArgs, callback, callbackState));
        }
Пример #2
0
        /// <summary>
        /// <para>Begins an asynchronous send to the delete route.</para>
        /// </summary>
        /// <param name="deleteFileRequestArgs">The request parameters.</param>
        /// <param name="callback">The method to be called when the asynchronous send is
        /// completed.</param>
        /// <param name="state">A user provided object that distinguished this send from other
        /// send requests.</param>
        /// <returns>An object that represents the asynchronous send request.</returns>
        public sys.IAsyncResult BeginDelete(DeleteFileRequestArgs deleteFileRequestArgs, sys.AsyncCallback callback, object state = null)
        {
            var task = this.DeleteAsync(deleteFileRequestArgs);

            return(enc.Util.ToApm(task, callback, state));
        }
Пример #3
0
        /// <summary>
        /// <para>Delete a batch of closed file requests.</para>
        /// </summary>
        /// <param name="ids">List IDs of the file requests to delete.</param>
        /// <returns>The task that represents the asynchronous send operation. The TResult
        /// parameter contains the response from the server.</returns>
        /// <exception cref="Dropbox.Api.ApiException{TError}">Thrown if there is an error
        /// processing the request; This will contain a <see
        /// cref="DeleteFileRequestError"/>.</exception>
        public t.Task <DeleteFileRequestsResult> DeleteAsync(col.IEnumerable <string> ids)
        {
            var deleteFileRequestArgs = new DeleteFileRequestArgs(ids);

            return(this.DeleteAsync(deleteFileRequestArgs));
        }
Пример #4
0
 /// <summary>
 /// <para>Delete a batch of closed file requests.</para>
 /// </summary>
 /// <param name="deleteFileRequestArgs">The request parameters</param>
 /// <returns>The task that represents the asynchronous send operation. The TResult
 /// parameter contains the response from the server.</returns>
 /// <exception cref="Dropbox.Api.ApiException{TError}">Thrown if there is an error
 /// processing the request; This will contain a <see
 /// cref="DeleteFileRequestError"/>.</exception>
 public t.Task <DeleteFileRequestsResult> DeleteAsync(DeleteFileRequestArgs deleteFileRequestArgs)
 {
     return(this.Transport.SendRpcRequestAsync <DeleteFileRequestArgs, DeleteFileRequestsResult, DeleteFileRequestError>(deleteFileRequestArgs, "api", "/file_requests/delete", "user", global::Dropbox.Api.FileRequests.DeleteFileRequestArgs.Encoder, global::Dropbox.Api.FileRequests.DeleteFileRequestsResult.Decoder, global::Dropbox.Api.FileRequests.DeleteFileRequestError.Decoder));
 }