示例#1
0
        public static Transactions ToTransactions(jsonTransactions _Transactions)
        {
            Transactions tmp = new Transactions {
                ID = _Transactions.id
            };

            foreach (jsonTransaction s in _Transactions.transactions)
            {
                tmp.AccountTransactions.Add(s.ToTransaction());
            }
            return(tmp);
        }
示例#2
0
        public static jsonTransactions FromTransactsion(Transactions _Transactions)
        {
            List <jsonTransaction> tmpTransactins = new List <jsonTransaction>();

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

            return(tmp);
        }
示例#3
0
 public static Transactions FromJsonTransactions(jsonTransactions _Transactions)
 {
     return(_Transactions.ToTransactions());
 }