コード例 #1
0
        /// <summary>
        /// <para>Begins an asynchronous send to the modify shared link settings route.</para>
        /// </summary>
        /// <param name="url">URL of the shared link to change its settings</param>
        /// <param name="settings">Set of settings for the shared link.</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 BeginModifySharedLinkSettings(string url,
                                                              SharedLinkSettings settings,
                                                              sys.AsyncCallback callback,
                                                              object callbackState = null)
        {
            var modifySharedLinkSettingsArgs = new ModifySharedLinkSettingsArgs(url,
                                                                                settings);

            return this.BeginModifySharedLinkSettings(modifySharedLinkSettingsArgs, callback, callbackState);
        }
コード例 #2
0
        /// <summary>
        /// <para>Begins an asynchronous send to the modify shared link settings route.</para>
        /// </summary>
        /// <param name="modifySharedLinkSettingsArgs">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 BeginModifySharedLinkSettings(ModifySharedLinkSettingsArgs modifySharedLinkSettingsArgs, sys.AsyncCallback callback, object state = null)
        {
            var task = this.ModifySharedLinkSettingsAsync(modifySharedLinkSettingsArgs);

            return enc.Util.ToApm(task, callback, state);
        }
コード例 #3
0
        /// <summary>
        /// <para>Modify the shared link's settings.</para>
        /// <para>If the requested visibility conflict with the shared links policy of the team
        /// or the shared folder (in case the linked file is part of a shared folder) then the
        /// <see cref="Dropbox.Api.Sharing.LinkPermissions.ResolvedVisibility" /> of the
        /// returned <see cref="SharedLinkMetadata" /> will reflect the actual visibility of
        /// the shared link and the <see
        /// cref="Dropbox.Api.Sharing.LinkPermissions.RequestedVisibility" /> will reflect the
        /// requested visibility.</para>
        /// </summary>
        /// <param name="url">URL of the shared link to change its settings</param>
        /// <param name="settings">Set of settings for the shared link.</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="ModifySharedLinkSettingsError"/>.</exception>
        public t.Task<SharedLinkMetadata> ModifySharedLinkSettingsAsync(string url,
                                                                        SharedLinkSettings settings)
        {
            var modifySharedLinkSettingsArgs = new ModifySharedLinkSettingsArgs(url,
                                                                                settings);

            return this.ModifySharedLinkSettingsAsync(modifySharedLinkSettingsArgs);
        }
コード例 #4
0
 /// <summary>
 /// <para>Modify the shared link's settings.</para>
 /// <para>If the requested visibility conflict with the shared links policy of the team
 /// or the shared folder (in case the linked file is part of a shared folder) then the
 /// <see cref="Dropbox.Api.Sharing.LinkPermissions.ResolvedVisibility" /> of the
 /// returned <see cref="SharedLinkMetadata" /> will reflect the actual visibility of
 /// the shared link and the <see
 /// cref="Dropbox.Api.Sharing.LinkPermissions.RequestedVisibility" /> will reflect the
 /// requested visibility.</para>
 /// </summary>
 /// <param name="modifySharedLinkSettingsArgs">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="ModifySharedLinkSettingsError"/>.</exception>
 public t.Task<SharedLinkMetadata> ModifySharedLinkSettingsAsync(ModifySharedLinkSettingsArgs modifySharedLinkSettingsArgs)
 {
     return this.Transport.SendRpcRequestAsync<ModifySharedLinkSettingsArgs, SharedLinkMetadata, ModifySharedLinkSettingsError>(modifySharedLinkSettingsArgs, "api", "/sharing/modify_shared_link_settings", Dropbox.Api.Sharing.ModifySharedLinkSettingsArgs.Encoder, Dropbox.Api.Sharing.SharedLinkMetadata.Decoder, Dropbox.Api.Sharing.ModifySharedLinkSettingsError.Decoder);
 }