Exemple #1
0
        public static Withdrawals ToWithdrawals(jsonWithdrawals _Withdrawals)
        {
            Withdrawals tmp = new Withdrawals();

            foreach (jsonWithdrawal t in _Withdrawals.withdrawals)
            {
                tmp.MyWithdrawals.Add(t.ToWithdrawal());
            }
            return(tmp);
        }
Exemple #2
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);
        }
Exemple #3
0
 public Withdrawals FromJsonWithdrawals(jsonWithdrawals _Withdrawals)
 {
     return(_Withdrawals.ToWithdrawals());
 }