/// <summary> /// <para>Begins an asynchronous send to the get shared links route.</para> /// </summary> /// <param name="path">See <see /// cref="Dropbox.Api.Sharing.Routes.SharingRoutes.GetSharedLinksAsync" /> /// description.</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 BeginGetSharedLinks(string path = null, sys.AsyncCallback callback = null, object callbackState = null) { var getSharedLinksArg = new GetSharedLinksArg(path); return(this.BeginGetSharedLinks(getSharedLinksArg, callback, callbackState)); }
/// <summary> /// <para>Returns a list of <see cref="LinkMetadata" /> objects for this user, /// including collection links.</para> /// <para>If no path is given or the path is empty, returns a list of all shared links /// for the current user, including collection links.</para> /// <para>If a non-empty path is given, returns a list of all shared links that allow /// access to the given path. Collection links are never returned in this case.</para> /// <para>Note that the url field in the response is never the shortened URL.</para> /// <para>This API is not supported for App Folder and filetypes apps.</para> /// </summary> /// <param name="path">See <see /// cref="Dropbox.Api.Sharing.Routes.SharingRoutes.GetSharedLinksAsync" /> /// description.</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{GetSharedLinksError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="GetSharedLinksError"/>.</exception> public t.Task<GetSharedLinksResult> GetSharedLinksAsync(string path = null) { var getSharedLinksArg = new GetSharedLinksArg(path); return this.GetSharedLinksAsync(getSharedLinksArg); }
/// <summary> /// <para>Begins an asynchronous send to the get shared links route.</para> /// </summary> /// <param name="getSharedLinksArg">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 BeginGetSharedLinks(GetSharedLinksArg getSharedLinksArg, sys.AsyncCallback callback, object state = null) { var task = this.GetSharedLinksAsync(getSharedLinksArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Returns a list of <see cref="LinkMetadata" /> objects for this user, /// including collection links.</para> /// <para>If no path is given or the path is empty, returns a list of all shared links /// for the current user, including collection links.</para> /// <para>If a non-empty path is given, returns a list of all shared links that allow /// access to the given path. Collection links are never returned in this case.</para> /// <para>Note that the url field in the response is never the shortened URL.</para> /// <para>This API is not supported for App Folder and filetypes apps.</para> /// </summary> /// <param name="getSharedLinksArg">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{GetSharedLinksError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="GetSharedLinksError"/>.</exception> public t.Task<GetSharedLinksResult> GetSharedLinksAsync(GetSharedLinksArg getSharedLinksArg) { return this.Transport.SendRpcRequestAsync<GetSharedLinksArg, GetSharedLinksResult, GetSharedLinksError>(getSharedLinksArg, "api", "/sharing/get_shared_links", GetSharedLinksArg.Encoder, GetSharedLinksResult.Decoder, GetSharedLinksError.Decoder); }
/// <summary> /// <para>Begins an asynchronous send to the get shared links route.</para> /// </summary> /// <param name="path">See <see /// cref="Dropbox.Api.Sharing.Routes.SharingRoutes.GetSharedLinksAsync" /> /// description.</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 BeginGetSharedLinks(string path = null, sys.AsyncCallback callback = null, object callbackState = null) { var getSharedLinksArg = new GetSharedLinksArg(path); return this.BeginGetSharedLinks(getSharedLinksArg, callback, callbackState); }
/// <summary> /// <para>Returns a list of <see cref="LinkMetadata" /> objects for this user, /// including collection links.</para> /// <para>If no path is given or the path is empty, returns a list of all shared links /// for the current user, including collection links.</para> /// <para>If a non-empty path is given, returns a list of all shared links that allow /// access to the given path. Collection links are never returned in this case.</para> /// <para>Note that the url field in the response is never the shortened URL.</para> /// <para>This API is not supported for App Folder and filetypes apps.</para> /// </summary> /// <param name="getSharedLinksArg">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{Files.PathError}">Thrown if there is an /// error processing the request; This will contain a <see /// cref="Files.PathError"/>.</exception> public t.Task<GetSharedLinksResult> GetSharedLinksAsync(GetSharedLinksArg getSharedLinksArg) { return this.Transport.SendRpcRequestAsync<GetSharedLinksArg, GetSharedLinksResult, Files.PathError>(getSharedLinksArg, "api", "/sharing/get_shared_links"); }
/// <summary> /// <para>Returns a list of <see cref="LinkMetadata" /> objects for this user, /// including collection links.</para> /// <para>If no path is given or the path is empty, returns a list of all shared links /// for the current user, including collection links.</para> /// <para>If a non-empty path is given, returns a list of all shared links that allow /// access to the given path. Collection links are never returned in this case.</para> /// <para>Note that the url field in the response is never the shortened URL.</para> /// <para>This API is not supported for App Folder and filetypes apps.</para> /// </summary> /// <param name="path">See <see /// cref="Dropbox.Api.Sharing.Routes.SharingRoutes.GetSharedLinksAsync" /> /// description.</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{GetSharedLinksError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="GetSharedLinksError"/>.</exception> public t.Task <GetSharedLinksResult> GetSharedLinksAsync(string path = null) { var getSharedLinksArg = new GetSharedLinksArg(path); return(this.GetSharedLinksAsync(getSharedLinksArg)); }
/// <summary> /// <para>Begins an asynchronous send to the get shared links route.</para> /// </summary> /// <param name="getSharedLinksArg">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 BeginGetSharedLinks(GetSharedLinksArg getSharedLinksArg, sys.AsyncCallback callback, object state = null) { var task = this.GetSharedLinksAsync(getSharedLinksArg); return(enc.Util.ToApm(task, callback, state)); }
/// <summary> /// <para>Returns a list of <see cref="LinkMetadata" /> objects for this user, /// including collection links.</para> /// <para>If no path is given or the path is empty, returns a list of all shared links /// for the current user, including collection links.</para> /// <para>If a non-empty path is given, returns a list of all shared links that allow /// access to the given path. Collection links are never returned in this case.</para> /// <para>Note that the url field in the response is never the shortened URL.</para> /// <para>This API is not supported for App Folder and filetypes apps.</para> /// </summary> /// <param name="getSharedLinksArg">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{GetSharedLinksError}">Thrown if there is /// an error processing the request; This will contain a <see /// cref="GetSharedLinksError"/>.</exception> public t.Task <GetSharedLinksResult> GetSharedLinksAsync(GetSharedLinksArg getSharedLinksArg) { return(this.Transport.SendRpcRequestAsync <GetSharedLinksArg, GetSharedLinksResult, GetSharedLinksError>(getSharedLinksArg, "api", "/sharing/get_shared_links")); }