/// <summary> /// <para>Begins an asynchronous send to the unshare folder route.</para> /// </summary> /// <param name="sharedFolderId">The ID for the shared folder.</param> /// <param name="leaveACopy">If true, members of this shared folder will get a copy of /// this folder after it's unshared. Otherwise, it will be removed from their Dropbox. /// The current user, who is an owner, will always retain their copy.</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 BeginUnshareFolder(string sharedFolderId, bool leaveACopy, sys.AsyncCallback callback, object callbackState = null) { var unshareFolderArg = new UnshareFolderArg(sharedFolderId, leaveACopy); return this.BeginUnshareFolder(unshareFolderArg, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the unshare folder route.</para> /// </summary> /// <param name="unshareFolderArg">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 BeginUnshareFolder(UnshareFolderArg unshareFolderArg, sys.AsyncCallback callback, object state = null) { var task = this.UnshareFolderAsync(unshareFolderArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Allows a shared folder owner to unshare the folder.</para> /// <para>You'll need to call <see /// cref="Dropbox.Api.Sharing.Routes.SharingRoutes.CheckJobStatusAsync" /> to determine /// if the action has completed successfully.</para> /// <para>Warning: This endpoint is in beta and is subject to minor but possibly /// backwards-incompatible changes.</para> /// </summary> /// <param name="sharedFolderId">The ID for the shared folder.</param> /// <param name="leaveACopy">If true, members of this shared folder will get a copy of /// this folder after it's unshared. Otherwise, it will be removed from their Dropbox. /// The current user, who is an owner, will always retain their copy.</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{UnshareFolderError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="UnshareFolderError"/>.</exception> public t.Task<Async.LaunchEmptyResult> UnshareFolderAsync(string sharedFolderId, bool leaveACopy) { var unshareFolderArg = new UnshareFolderArg(sharedFolderId, leaveACopy); return this.UnshareFolderAsync(unshareFolderArg); }
/// <summary> /// <para>Allows a shared folder owner to unshare the folder.</para> /// <para>You'll need to call <see /// cref="Dropbox.Api.Sharing.Routes.SharingRoutes.CheckJobStatusAsync" /> to determine /// if the action has completed successfully.</para> /// <para>Warning: This endpoint is in beta and is subject to minor but possibly /// backwards-incompatible changes.</para> /// </summary> /// <param name="unshareFolderArg">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{UnshareFolderError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="UnshareFolderError"/>.</exception> public t.Task<Async.LaunchEmptyResult> UnshareFolderAsync(UnshareFolderArg unshareFolderArg) { return this.Transport.SendRpcRequestAsync<UnshareFolderArg, Async.LaunchEmptyResult, UnshareFolderError>(unshareFolderArg, "api", "/sharing/unshare_folder", UnshareFolderArg.Encoder, Async.LaunchEmptyResult.Decoder, UnshareFolderError.Decoder); }