示例#1
0
        public static Balances ToBalances(jsonBalances _Balances)
        {
            Balances tmp = new Balances();

            foreach (jsonBalance t in _Balances.balance)
            {
                tmp.MyBalances.Add(t.ToBalance());
            }
            return(tmp);
        }
示例#2
0
        public static jsonBalances FromBalances(Balances _Balances)
        {
            List <jsonBalance> tmpBals = new List <jsonBalance>();

            foreach (AssetBalance t in _Balances)
            {
                tmpBals.Add(t.ToJsonBalance());
            }
            jsonBalances tmp = new jsonBalances();

            return(tmp);
        }
示例#3
0
 public static Balances FromJsonBalances(jsonBalances _Balances)
 {
     return(_Balances.ToBalances());
 }