/// <summary> /// <para>Update the title of a Cloud Doc. This route requires Cloud Docs auth. Please /// make a request to cloud_docs/authorize and supply that token in the Authorization /// header.</para> /// </summary> /// <param name="fileId">The API ID ("id:...") associated with the Cloud Doc</param> /// <param name="title">The new title of the doc, excluding extension</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="RenameError"/>.</exception> public t.Task <RenameResult> RenameAsync(string fileId = "", string title = "") { var renameArg = new RenameArg(fileId, title); return(this.RenameAsync(renameArg)); }
/// <summary> /// <para>Begins an asynchronous send to the rename route.</para> /// </summary> /// <param name="fileId">The API ID ("id:...") associated with the Cloud Doc</param> /// <param name="title">The new title of the doc, excluding extension</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 BeginRename(string fileId = "", string title = "", sys.AsyncCallback callback = null, object callbackState = null) { var renameArg = new RenameArg(fileId, title); return(this.BeginRename(renameArg, callback, callbackState)); }
/// <summary> /// <para>Begins an asynchronous send to the rename route.</para> /// </summary> /// <param name="renameArg">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 BeginRename(RenameArg renameArg, sys.AsyncCallback callback, object state = null) { var task = this.RenameAsync(renameArg); return(enc.Util.ToApm(task, callback, state)); }
/// <summary> /// <para>Update the title of a Cloud Doc. This route requires Cloud Docs auth. Please /// make a request to cloud_docs/authorize and supply that token in the Authorization /// header.</para> /// </summary> /// <param name="renameArg">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="RenameError"/>.</exception> public t.Task <RenameResult> RenameAsync(RenameArg renameArg) { return(this.Transport.SendRpcRequestAsync <RenameArg, RenameResult, RenameError>(renameArg, "api", "/cloud_docs/rename", "user", global::Dropbox.Api.CloudDocs.RenameArg.Encoder, global::Dropbox.Api.CloudDocs.RenameResult.Decoder, global::Dropbox.Api.CloudDocs.RenameError.Decoder)); }