public static Balances ToBalances(jsonBalances _Balances) { Balances tmp = new Balances(); foreach (jsonBalance t in _Balances.balance) { tmp.MyBalances.Add(t.ToBalance()); } return(tmp); }
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); }
public static Balances FromJsonBalances(jsonBalances _Balances) { return(_Balances.ToBalances()); }