Exemplo n.º 1
0
        public Task <CryptoCurrencyWithdrawalResult> WithdrawCryptoCurrencyAsync(Guid walletId, NewCryptoCurrencyWithdrawal withdraw)
        {
            if (walletId == Guid.Empty)
            {
                throw new ArgumentException("walletId");
            }
            if (withdraw == null)
            {
                throw new ArgumentNullException("withdraw");
            }

            var request = new NewCryptoCurrencyWithdrawalMessageBuilder(walletId, withdraw);

            return(SendAsync(request).ReadAsAsync <CryptoCurrencyWithdrawalResult>());
        }
Exemplo n.º 2
0
 public NewCryptoCurrencyWithdrawalMessageBuilder(Guid walletId, NewCryptoCurrencyWithdrawal withdrawal)
 {
     _walletId   = walletId;
     _withdrawal = withdrawal;
 }
 public NewCryptoCurrencyWithdrawalMessageBuilder(Guid walletId, NewCryptoCurrencyWithdrawal withdrawal)
 {
     _walletId = walletId;
     _withdrawal = withdrawal;
 }
Exemplo n.º 4
0
		public async void CanWithdrawCryptoCurrency()
		{
			var withdrawal = new NewCryptoCurrencyWithdrawal(CurrencyCode.XBT, 10, "18e143cdVYYkQesFsycgSoDEQAQQ2p9uWC");
			var withdrawalResult = await _client.WithdrawCryptoCurrencyAsync(_walletId, withdrawal);

		}
Exemplo n.º 5
0
		public Task<CryptoCurrencyWithdrawalResult> WithdrawCryptoCurrencyAsync(Guid walletId, NewCryptoCurrencyWithdrawal withdraw)
		{
			if (walletId == Guid.Empty)
				throw new ArgumentException("walletId");
			if (withdraw == null)
				throw new ArgumentNullException("withdraw");

			var request = new NewCryptoCurrencyWithdrawalMessageBuilder(walletId, withdraw);
			return SendAsync(request).ReadAsAsync<CryptoCurrencyWithdrawalResult>();
		}