コード例 #1
0
        /// <summary>
        /// <para>Begins an asynchronous send to the get folder metadata route.</para>
        /// </summary>
        /// <param name="sharedFolderId">The ID for the shared folder.</param>
        /// <param name="includeMembership">If <c>true</c>, user and group membership included
        /// 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 BeginGetFolderMetadata(string sharedFolderId,
                                                       bool includeMembership = true,
                                                       sys.AsyncCallback callback = null,
                                                       object callbackState = null)
        {
            var getMetadataArgs = new GetMetadataArgs(sharedFolderId,
                                                      includeMembership);

            return this.BeginGetFolderMetadata(getMetadataArgs, callback, callbackState);
        }
コード例 #2
0
        /// <summary>
        /// <para>Begins an asynchronous send to the get folder metadata route.</para>
        /// </summary>
        /// <param name="getMetadataArgs">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 BeginGetFolderMetadata(GetMetadataArgs getMetadataArgs, sys.AsyncCallback callback, object state = null)
        {
            var task = this.GetFolderMetadataAsync(getMetadataArgs);

            return enc.Util.ToApm(task, callback, state);
        }
コード例 #3
0
        /// <summary>
        /// <para>Returns shared folder metadata by its folder ID.</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="includeMembership">If <c>true</c>, user and group membership included
        /// 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> GetFolderMetadataAsync(string sharedFolderId,
                                                                   bool includeMembership = true)
        {
            var getMetadataArgs = new GetMetadataArgs(sharedFolderId,
                                                      includeMembership);

            return this.GetFolderMetadataAsync(getMetadataArgs);
        }
コード例 #4
0
 /// <summary>
 /// <para>Returns shared folder metadata by its folder ID.</para>
 /// <para>Warning: This endpoint is in beta and is subject to minor but possibly
 /// backwards-incompatible changes.</para>
 /// </summary>
 /// <param name="getMetadataArgs">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> GetFolderMetadataAsync(GetMetadataArgs getMetadataArgs)
 {
     return this.Transport.SendRpcRequestAsync<GetMetadataArgs, SharedFolderMetadata, SharedFolderAccessError>(getMetadataArgs, "api", "/sharing/get_folder_metadata", GetMetadataArgs.Encoder, SharedFolderMetadata.Decoder, SharedFolderAccessError.Decoder);
 }
コード例 #5
0
        /// <summary>
        /// <para>Begins an asynchronous send to the get folder metadata route.</para>
        /// </summary>
        /// <param name="sharedFolderId">The ID for the shared folder.</param>
        /// <param name="actions">Folder actions to query.</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 BeginGetFolderMetadata(string sharedFolderId,
                                                       col.IEnumerable<FolderAction> actions = null,
                                                       sys.AsyncCallback callback = null,
                                                       object callbackState = null)
        {
            var getMetadataArgs = new GetMetadataArgs(sharedFolderId,
                                                      actions);

            return this.BeginGetFolderMetadata(getMetadataArgs, callback, callbackState);
        }
コード例 #6
0
        /// <summary>
        /// <para>Returns shared folder metadata by its folder ID.</para>
        /// <para>Apps must have full Dropbox access to use this endpoint.</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="actions">Folder actions to query.</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="SharedFolderAccessError"/>.</exception>
        public t.Task<SharedFolderMetadata> GetFolderMetadataAsync(string sharedFolderId,
                                                                   col.IEnumerable<FolderAction> actions = null)
        {
            var getMetadataArgs = new GetMetadataArgs(sharedFolderId,
                                                      actions);

            return this.GetFolderMetadataAsync(getMetadataArgs);
        }
コード例 #7
0
        /// <summary>
        /// <para>Begins an asynchronous send to the get folder metadata 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 BeginGetFolderMetadata(string sharedFolderId,
                                                       sys.AsyncCallback callback,
                                                       object callbackState = null)
        {
            var getMetadataArgs = new GetMetadataArgs(sharedFolderId);

            return this.BeginGetFolderMetadata(getMetadataArgs, callback, callbackState);
        }
コード例 #8
0
        /// <summary>
        /// <para>Returns shared folder metadata by its folder ID.</para>
        /// <para>Apps must have full Dropbox access to use this endpoint.</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. 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> GetFolderMetadataAsync(string sharedFolderId)
        {
            var getMetadataArgs = new GetMetadataArgs(sharedFolderId);

            return this.GetFolderMetadataAsync(getMetadataArgs);
        }