Ejemplo n.º 1
0
        public Task <CryptoCurrencyDepositResult> DepositCryptoCurrencyAsync(Guid walletId, NewCryptoCurrencyDeposit deposit)
        {
            if (walletId == Guid.Empty)
            {
                throw new ArgumentException("walletId");
            }
            if (deposit == null)
            {
                throw new ArgumentNullException("deposit");
            }

            var request = new NewCryptoCurrencyDepositMessageBuilder(walletId, deposit);

            return(SendAsync(request).ReadAsAsync <CryptoCurrencyDepositResult>());
        }
Ejemplo n.º 2
0
 public NewCryptoCurrencyDepositMessageBuilder(Guid walletId, NewCryptoCurrencyDeposit deposit)
 {
     _walletId = walletId;
     _deposit  = deposit;
 }