예제 #1
0
        /// <summary>
        /// <para>Gets shared folder by its folder ID.</para>
        /// </summary>
        /// <param name="id">The ID for the shared folder.</param>
        /// <param name="includeMembership">If include user and group membership information in
        /// the response.</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{SharedFolderAccessError}">Thrown if there
        /// is an error processing the request; This will contain a <see
        /// cref="SharedFolderAccessError"/>.</exception>
        public t.Task <SharedFolderMetadata> GetSharedFolderAsync(string id,
                                                                  bool includeMembership = true)
        {
            var getSharedFolderArgs = new GetSharedFolderArgs(id,
                                                              includeMembership);

            return(this.GetSharedFolderAsync(getSharedFolderArgs));
        }
예제 #2
0
        /// <summary>
        /// <para>Begins an asynchronous send to the get shared folder route.</para>
        /// </summary>
        /// <param name="id">The ID for the shared folder.</param>
        /// <param name="includeMembership">If include user and group membership information in
        /// the response.</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 BeginGetSharedFolder(string id,
                                                     bool includeMembership     = true,
                                                     sys.AsyncCallback callback = null,
                                                     object callbackState       = null)
        {
            var getSharedFolderArgs = new GetSharedFolderArgs(id,
                                                              includeMembership);

            return(this.BeginGetSharedFolder(getSharedFolderArgs, callback, callbackState));
        }
        /// <summary>
        /// <para>Begins an asynchronous send to the get shared folder route.</para>
        /// </summary>
        /// <param name="getSharedFolderArgs">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 BeginGetSharedFolder(GetSharedFolderArgs getSharedFolderArgs, sys.AsyncCallback callback, object state = null)
        {
            var task = this.GetSharedFolderAsync(getSharedFolderArgs);

            return enc.Util.ToApm(task, callback, state);
        }
        /// <summary>
        /// <para>Gets shared folder by its folder ID.</para>
        /// </summary>
        /// <param name="id">The ID for the shared folder.</param>
        /// <param name="includeMembership">If include user and group membership information in
        /// the response.</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{SharedFolderAccessError}">Thrown if there
        /// is an error processing the request; This will contain a <see
        /// cref="SharedFolderAccessError"/>.</exception>
        public t.Task<SharedFolderMetadata> GetSharedFolderAsync(string id,
                                                                 bool includeMembership = true)
        {
            var getSharedFolderArgs = new GetSharedFolderArgs(id,
                                                              includeMembership);

            return this.GetSharedFolderAsync(getSharedFolderArgs);
        }
 /// <summary>
 /// <para>Gets shared folder by its folder ID.</para>
 /// </summary>
 /// <param name="getSharedFolderArgs">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{SharedFolderAccessError}">Thrown if there
 /// is an error processing the request; This will contain a <see
 /// cref="SharedFolderAccessError"/>.</exception>
 public t.Task<SharedFolderMetadata> GetSharedFolderAsync(GetSharedFolderArgs getSharedFolderArgs)
 {
     return this.Transport.SendRpcRequestAsync<GetSharedFolderArgs, SharedFolderMetadata, SharedFolderAccessError>(getSharedFolderArgs, "api", "/sharing/get_shared_folder");
 }
        /// <summary>
        /// <para>Begins an asynchronous send to the get shared folder route.</para>
        /// </summary>
        /// <param name="id">The ID for the shared folder.</param>
        /// <param name="includeMembership">If include user and group membership information in
        /// the response.</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 BeginGetSharedFolder(string id,
                                                     bool includeMembership = true,
                                                     sys.AsyncCallback callback = null,
                                                     object callbackState = null)
        {
            var getSharedFolderArgs = new GetSharedFolderArgs(id,
                                                              includeMembership);

            return this.BeginGetSharedFolder(getSharedFolderArgs, callback, callbackState);
        }
예제 #7
0
        /// <summary>
        /// <para>Begins an asynchronous send to the get shared folder route.</para>
        /// </summary>
        /// <param name="getSharedFolderArgs">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 BeginGetSharedFolder(GetSharedFolderArgs getSharedFolderArgs, sys.AsyncCallback callback, object state = null)
        {
            var task = this.GetSharedFolderAsync(getSharedFolderArgs);

            return(enc.Util.ToApm(task, callback, state));
        }
예제 #8
0
 /// <summary>
 /// <para>Gets shared folder by its folder ID.</para>
 /// </summary>
 /// <param name="getSharedFolderArgs">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{SharedFolderAccessError}">Thrown if there
 /// is an error processing the request; This will contain a <see
 /// cref="SharedFolderAccessError"/>.</exception>
 public t.Task <SharedFolderMetadata> GetSharedFolderAsync(GetSharedFolderArgs getSharedFolderArgs)
 {
     return(this.Transport.SendRpcRequestAsync <GetSharedFolderArgs, SharedFolderMetadata, SharedFolderAccessError>(getSharedFolderArgs, "api", "/sharing/get_shared_folder"));
 }