Beispiel #1
0
 public async Task<Withdrawal.Withdrawals> GetWithdrawals()
 {
     PreCall();
     string s = await BitxClient.GetStringAsync(string.Format("withdrawals"));
     Withdrawal.Withdrawals tmpTicker = null;
     Task<Withdrawal.Withdrawals> tmp = new Task<Withdrawal.Withdrawals>(() => { tmpTicker = JSON.JsonDeserialize<Withdrawal.jsonWithdrawals>(s).ToWithdrawals(); return tmpTicker; });
     Calls.Add(new Call("Balanaces", true));
     return tmpTicker;
 }
Beispiel #2
0
        public static Withdrawals ToWithdrawals(jsonWithdrawals _Withdrawals)
        {
            Withdrawals tmp = new Withdrawals();

            foreach (jsonWithdrawal t in _Withdrawals.withdrawals)
            {
                tmp.MyWithdrawals.Add(t.ToWithdrawal());
            }
            return(tmp);
        }
Beispiel #3
0
        public static jsonWithdrawals FromWithdrawals(Withdrawals _Withdrawals)
        {
            List <jsonWithdrawal> tmpWithdrawals = new List <jsonWithdrawal>();

            foreach (Withdrawal t in _Withdrawals)
            {
                tmpWithdrawals.Add(t);
            }
            jsonWithdrawals tmp = new jsonWithdrawals {
                withdrawals = tmpWithdrawals.ToArray()
            };

            return(tmp);
        }
Beispiel #4
0
 public static jsonWithdrawals ToJsonWithdrawals(Withdrawals _Withdrawals)
 {
     return(jsonWithdrawals.FromWithdrawals(_Withdrawals));
 }