/// <summary> /// <para>Begins an asynchronous send to the unlock route.</para> /// </summary> /// <param name="fileId">The API ID ("id:...") associated with the Cloud Doc</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 BeginUnlock(string fileId = "", sys.AsyncCallback callback = null, object callbackState = null) { var unlockArg = new UnlockArg(fileId); return(this.BeginUnlock(unlockArg, callback, callbackState)); }
/// <summary> /// <para>Begins an asynchronous send to the unlock route.</para> /// </summary> /// <param name="unlockArg">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 BeginUnlock(UnlockArg unlockArg, sys.AsyncCallback callback, object state = null) { var task = this.UnlockAsync(unlockArg); return(enc.Util.ToApm(task, callback, state)); }
/// <summary> /// <para>Unlock 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> /// <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="LockingError"/>.</exception> public t.Task <UnlockResult> UnlockAsync(string fileId = "") { var unlockArg = new UnlockArg(fileId); return(this.UnlockAsync(unlockArg)); }
/// <summary> /// <para>Unlock 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="unlockArg">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="LockingError"/>.</exception> public t.Task <UnlockResult> UnlockAsync(UnlockArg unlockArg) { return(this.Transport.SendRpcRequestAsync <UnlockArg, UnlockResult, LockingError>(unlockArg, "api", "/cloud_docs/unlock", "user", global::Dropbox.Api.CloudDocs.UnlockArg.Encoder, global::Dropbox.Api.CloudDocs.UnlockResult.Decoder, global::Dropbox.Api.CloudDocs.LockingError.Decoder)); }