Ejemplo n.º 1
0
        /// <summary>
        /// <para>The current user unmounts the designated folder. They can re-mount the folder
        /// at a later time using <see
        /// cref="Dropbox.Api.Sharing.Routes.SharingRoutes.MountFolderAsync" />.</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>
        /// <returns>The task that represents the asynchronous send operation.</returns>
        /// <exception cref="Dropbox.Api.ApiException{UnmountFolderError}">Thrown if there is
        /// an error processing the request; This will contain a <see
        /// cref="UnmountFolderError"/>.</exception>
        public t.Task UnmountFolderAsync(string sharedFolderId)
        {
            var unmountFolderArg = new UnmountFolderArg(sharedFolderId);

            return this.UnmountFolderAsync(unmountFolderArg);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// <para>The current user unmounts the designated folder. They can re-mount the folder
 /// at a later time using <see
 /// cref="Dropbox.Api.Sharing.Routes.SharingRoutes.MountFolderAsync" />.</para>
 /// <para>Warning: This endpoint is in beta and is subject to minor but possibly
 /// backwards-incompatible changes.</para>
 /// </summary>
 /// <param name="unmountFolderArg">The request parameters</param>
 /// <returns>The task that represents the asynchronous send operation.</returns>
 /// <exception cref="Dropbox.Api.ApiException{UnmountFolderError}">Thrown if there is
 /// an error processing the request; This will contain a <see
 /// cref="UnmountFolderError"/>.</exception>
 public t.Task UnmountFolderAsync(UnmountFolderArg unmountFolderArg)
 {
     return this.Transport.SendRpcRequestAsync<UnmountFolderArg, enc.Empty, UnmountFolderError>(unmountFolderArg, "api", "/sharing/unmount_folder", UnmountFolderArg.Encoder, enc.EmptyDecoder.Instance, UnmountFolderError.Decoder);
 }
Ejemplo n.º 3
0
        /// <summary>
        /// <para>Begins an asynchronous send to the unmount folder route.</para>
        /// </summary>
        /// <param name="unmountFolderArg">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 BeginUnmountFolder(UnmountFolderArg unmountFolderArg, sys.AsyncCallback callback, object state = null)
        {
            var task = this.UnmountFolderAsync(unmountFolderArg);

            return enc.Util.ToApm(task, callback, state);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// <para>Begins an asynchronous send to the unmount folder route.</para>
        /// </summary>
        /// <param name="sharedFolderId">The ID for the shared folder.</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 BeginUnmountFolder(string sharedFolderId,
                                                   sys.AsyncCallback callback,
                                                   object callbackState = null)
        {
            var unmountFolderArg = new UnmountFolderArg(sharedFolderId);

            return this.BeginUnmountFolder(unmountFolderArg, callback, callbackState);
        }