/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='userId'> /// Lykke user Id (won't be use for Chainalisys) /// </param> /// <param name='wallet'> /// Wallet to be added /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> UserByUserIdAddwalletPostAsync(this IChainalysisProxyAPI operations, string userId, NewWalletModel wallet = default(NewWalletModel), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UserByUserIdAddwalletPostWithHttpMessagesAsync(userId, wallet, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Add Wallet /// </summary> /// <param name="userId"></param> /// <param name="wallet"></param> /// <returns></returns> public async Task <UserScoreDetails> AddWallet(string userId, NewWalletModel wallet) { var result = await _service.UserByUserIdAddwalletPostWithHttpMessagesAsync(userId, wallet.Map()); if (result.Response.IsSuccessStatusCode) { return(Mapper.Map <UserScoreDetails>(result.Body)); } return(null); }