/// <summary> /// <para>Begins an asynchronous send to the list shared links route.</para> /// </summary> /// <param name="path">See <see /// cref="Dropbox.Api.Sharing.Routes.SharingRoutes.ListSharedLinksAsync" /> /// description.</param> /// <param name="cursor">The cursor returned by your last call to <see /// cref="Dropbox.Api.Sharing.Routes.SharingRoutes.ListSharedLinksAsync" />.</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 BeginListSharedLinks(string path = null, string cursor = null, sys.AsyncCallback callback = null, object callbackState = null) { var listSharedLinksArg = new ListSharedLinksArg(path, cursor); return this.BeginListSharedLinks(listSharedLinksArg, callback, callbackState); }
/// <summary> /// <para>Begins an asynchronous send to the list shared links route.</para> /// </summary> /// <param name="listSharedLinksArg">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 BeginListSharedLinks(ListSharedLinksArg listSharedLinksArg, sys.AsyncCallback callback, object state = null) { var task = this.ListSharedLinksAsync(listSharedLinksArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>List shared links of this user.</para> /// <para>If no path is given or the path is empty, returns a list of all shared links /// for the current user.</para> /// <para>If a non-empty path is given, returns a list of all shared links that allow /// access to the given path - direct links to the given path and links to parent /// folders of the given path.</para> /// </summary> /// <param name="path">See <see /// cref="Dropbox.Api.Sharing.Routes.SharingRoutes.ListSharedLinksAsync" /> /// description.</param> /// <param name="cursor">The cursor returned by your last call to <see /// cref="Dropbox.Api.Sharing.Routes.SharingRoutes.ListSharedLinksAsync" />.</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="ListSharedLinksError"/>.</exception> public t.Task<ListSharedLinksResult> ListSharedLinksAsync(string path = null, string cursor = null) { var listSharedLinksArg = new ListSharedLinksArg(path, cursor); return this.ListSharedLinksAsync(listSharedLinksArg); }
/// <summary> /// <para>List shared links of this user.</para> /// <para>If no path is given or the path is empty, returns a list of all shared links /// for the current user.</para> /// <para>If a non-empty path is given, returns a list of all shared links that allow /// access to the given path - direct links to the given path and links to parent /// folders of the given path.</para> /// </summary> /// <param name="listSharedLinksArg">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="ListSharedLinksError"/>.</exception> public t.Task<ListSharedLinksResult> ListSharedLinksAsync(ListSharedLinksArg listSharedLinksArg) { return this.Transport.SendRpcRequestAsync<ListSharedLinksArg, ListSharedLinksResult, ListSharedLinksError>(listSharedLinksArg, "api", "/sharing/list_shared_links", Dropbox.Api.Sharing.ListSharedLinksArg.Encoder, Dropbox.Api.Sharing.ListSharedLinksResult.Decoder, Dropbox.Api.Sharing.ListSharedLinksError.Decoder); }