/// <summary> /// <para>Begins an asynchronous send to the list route.</para> /// </summary> /// <param name="limit">The maximum number of file requests that should be returned per /// request.</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 BeginListV2(ulong limit = 1000, sys.AsyncCallback callback = null, object callbackState = null) { var listFileRequestsArg = new ListFileRequestsArg(limit); return(this.BeginListV2(listFileRequestsArg, callback, callbackState)); }
/// <summary> /// <para>Begins an asynchronous send to the list route.</para> /// </summary> /// <param name="listFileRequestsArg">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 BeginListV2(ListFileRequestsArg listFileRequestsArg, sys.AsyncCallback callback, object state = null) { var task = this.ListV2Async(listFileRequestsArg); return(enc.Util.ToApm(task, callback, state)); }
/// <summary> /// <para>Returns a list of file requests owned by this user. For apps with the app /// folder permission, this will only return file requests with destinations in the app /// folder.</para> /// </summary> /// <param name="limit">The maximum number of file requests that should be returned per /// request.</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="ListFileRequestsError"/>.</exception> public t.Task <ListFileRequestsV2Result> ListV2Async(ulong limit = 1000) { var listFileRequestsArg = new ListFileRequestsArg(limit); return(this.ListV2Async(listFileRequestsArg)); }
/// <summary> /// <para>Returns a list of file requests owned by this user. For apps with the app /// folder permission, this will only return file requests with destinations in the app /// folder.</para> /// </summary> /// <param name="listFileRequestsArg">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="ListFileRequestsError"/>.</exception> public t.Task <ListFileRequestsV2Result> ListV2Async(ListFileRequestsArg listFileRequestsArg) { return(this.Transport.SendRpcRequestAsync <ListFileRequestsArg, ListFileRequestsV2Result, ListFileRequestsError>(listFileRequestsArg, "api", "/file_requests/list_v2", "user", global::Dropbox.Api.FileRequests.ListFileRequestsArg.Encoder, global::Dropbox.Api.FileRequests.ListFileRequestsV2Result.Decoder, global::Dropbox.Api.FileRequests.ListFileRequestsError.Decoder)); }