/// <summary> /// <para>Begins an asynchronous send to the get account route.</para> /// </summary> /// <param name="accountId">A user's account identifier.</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 BeginGetAccount(string accountId, sys.AsyncCallback callback, object callbackState = null) { var getAccountArg = new GetAccountArg(accountId); return this.BeginGetAccount(getAccountArg, callback, callbackState); }
/// <summary> /// <para>Get information about a user's account.</para> /// </summary> /// <param name="accountId">A user's account identifier.</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="GetAccountError"/>.</exception> public t.Task<BasicAccount> GetAccountAsync(string accountId) { var getAccountArg = new GetAccountArg(accountId); return this.GetAccountAsync(getAccountArg); }
/// <summary> /// <para>Begins an asynchronous send to the get account route.</para> /// </summary> /// <param name="getAccountArg">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 BeginGetAccount(GetAccountArg getAccountArg, sys.AsyncCallback callback, object state = null) { var task = this.GetAccountAsync(getAccountArg); return enc.Util.ToApm(task, callback, state); }
/// <summary> /// <para>Get information about a user's account.</para> /// </summary> /// <param name="getAccountArg">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="GetAccountError"/>.</exception> public t.Task<BasicAccount> GetAccountAsync(GetAccountArg getAccountArg) { return this.Transport.SendRpcRequestAsync<GetAccountArg, BasicAccount, GetAccountError>(getAccountArg, "api", "/users/get_account", Dropbox.Api.Users.GetAccountArg.Encoder, Dropbox.Api.Users.BasicAccount.Decoder, Dropbox.Api.Users.GetAccountError.Decoder); }
/// <summary> /// <para>Get information about a user's account.</para> /// </summary> /// <param name="getAccountArg">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{GetAccountError}">Thrown if there is an /// error processing the request; This will contain a <see /// cref="GetAccountError"/>.</exception> public t.Task<BasicAccount> GetAccountAsync(GetAccountArg getAccountArg) { return this.Transport.SendRpcRequestAsync<GetAccountArg, BasicAccount, GetAccountError>(getAccountArg, "api", "/users/get_account"); }
/// <summary> /// <para>Get information about a user's account.</para> /// </summary> /// <param name="accountId">A user's account identifier.</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="GetAccountError"/>.</exception> public t.Task <BasicAccount> GetAccountAsync(string accountId) { var getAccountArg = new GetAccountArg(accountId); return(this.GetAccountAsync(getAccountArg)); }
/// <summary> /// <para>Begins an asynchronous send to the get account route.</para> /// </summary> /// <param name="getAccountArg">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 BeginGetAccount(GetAccountArg getAccountArg, sys.AsyncCallback callback, object state = null) { var task = this.GetAccountAsync(getAccountArg); return(enc.Util.ToApm(task, callback, state)); }
/// <summary> /// <para>Get information about a user's account.</para> /// </summary> /// <param name="getAccountArg">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="GetAccountError"/>.</exception> public t.Task <BasicAccount> GetAccountAsync(GetAccountArg getAccountArg) { return(this.Transport.SendRpcRequestAsync <GetAccountArg, BasicAccount, GetAccountError>(getAccountArg, "api", "/users/get_account", Dropbox.Api.Users.GetAccountArg.Encoder, Dropbox.Api.Users.BasicAccount.Decoder, Dropbox.Api.Users.GetAccountError.Decoder)); }