/// <summary> /// <para>Begins an asynchronous send to the get account batch route.</para> /// </summary> /// <param name="accountIds">List of user account identifiers. Should not contain any /// duplicate account IDs.</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 BeginGetAccountBatch(col.IEnumerable <string> accountIds, sys.AsyncCallback callback, object callbackState = null) { var getAccountBatchArg = new GetAccountBatchArg(accountIds); return(this.BeginGetAccountBatch(getAccountBatchArg, callback, callbackState)); }
/// <summary> /// <para>Begins an asynchronous send to the get account batch route.</para> /// </summary> /// <param name="getAccountBatchArg">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 BeginGetAccountBatch(GetAccountBatchArg getAccountBatchArg, sys.AsyncCallback callback, object state = null) { var task = this.GetAccountBatchAsync(getAccountBatchArg); return(enc.Util.ToApm(task, callback, state)); }
/// <summary> /// <para>Get information about multiple user accounts. At most 300 accounts may be /// queried per request.</para> /// </summary> /// <param name="accountIds">List of user account identifiers. Should not contain any /// duplicate account IDs.</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="GetAccountBatchError"/>.</exception> public t.Task <col.List <BasicAccount> > GetAccountBatchAsync(col.IEnumerable <string> accountIds) { var getAccountBatchArg = new GetAccountBatchArg(accountIds); return(this.GetAccountBatchAsync(getAccountBatchArg)); }
/// <summary> /// <para>Get information about multiple user accounts. At most 300 accounts may be /// queried per request.</para> /// </summary> /// <param name="getAccountBatchArg">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="GetAccountBatchError"/>.</exception> public t.Task <col.List <BasicAccount> > GetAccountBatchAsync(GetAccountBatchArg getAccountBatchArg) { return(this.Transport.SendRpcRequestAsync <GetAccountBatchArg, col.List <BasicAccount>, GetAccountBatchError>(getAccountBatchArg, "api", "/users/get_account_batch", Dropbox.Api.Users.GetAccountBatchArg.Encoder, enc.Decoder.CreateListDecoder(Dropbox.Api.Users.BasicAccount.Decoder), Dropbox.Api.Users.GetAccountBatchError.Decoder)); }
/// <summary> /// <para>Begins an asynchronous send to the get account batch route.</para> /// </summary> /// <param name="accountIds">List of user account identifiers. Should not contain any /// duplicate account IDs.</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 BeginGetAccountBatch(col.IEnumerable<string> accountIds, sys.AsyncCallback callback, object callbackState = null) { var getAccountBatchArg = new GetAccountBatchArg(accountIds); return this.BeginGetAccountBatch(getAccountBatchArg, callback, callbackState); }
/// <summary> /// <para>Get information about multiple user accounts. At most 300 accounts may be /// queried per request.</para> /// </summary> /// <param name="accountIds">List of user account identifiers. Should not contain any /// duplicate account IDs.</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="GetAccountBatchError"/>.</exception> public t.Task<col.List<BasicAccount>> GetAccountBatchAsync(col.IEnumerable<string> accountIds) { var getAccountBatchArg = new GetAccountBatchArg(accountIds); return this.GetAccountBatchAsync(getAccountBatchArg); }
/// <summary> /// <para>Begins an asynchronous send to the get account batch route.</para> /// </summary> /// <param name="getAccountBatchArg">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 BeginGetAccountBatch(GetAccountBatchArg getAccountBatchArg, sys.AsyncCallback callback, object state = null) { var task = this.GetAccountBatchAsync(getAccountBatchArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Get information about multiple user accounts. At most 300 accounts may be /// queried per request.</para> /// </summary> /// <param name="getAccountBatchArg">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="GetAccountBatchError"/>.</exception> public t.Task<col.List<BasicAccount>> GetAccountBatchAsync(GetAccountBatchArg getAccountBatchArg) { return this.Transport.SendRpcRequestAsync<GetAccountBatchArg, col.List<BasicAccount>, GetAccountBatchError>(getAccountBatchArg, "api", "/users/get_account_batch", Dropbox.Api.Users.GetAccountBatchArg.Encoder, enc.Decoder.CreateListDecoder(Dropbox.Api.Users.BasicAccount.Decoder), Dropbox.Api.Users.GetAccountBatchError.Decoder); }