Esempio n. 1
0
        public static PendingTransactions ToTransactions(jsonPendingTransactions _Transactions)
        {
            PendingTransactions tmp = new PendingTransactions {
                ID = _Transactions.id
            };

            foreach (jsonTransaction s in _Transactions.pending)
            {
                tmp.PendingAccountTransactions.Add(s.ToTransaction());
            }
            return(tmp);
        }
Esempio n. 2
0
        public static jsonPendingTransactions FromTransactsion(PendingTransactions _Transactions)
        {
            List <jsonTransaction> tmpTransactins = new List <jsonTransaction>();

            foreach (Transaction t in _Transactions)
            {
                tmpTransactins.Add(t.ToJsonTransaction());
            }
            jsonPendingTransactions tmp = new jsonPendingTransactions {
                id = _Transactions.ID, pending = tmpTransactins.ToArray()
            };

            return(tmp);
        }
Esempio n. 3
0
 public static PendingTransactions FromJsonTransactions(jsonPendingTransactions _Transactions)
 {
     return(_Transactions.ToTransactions());
 }