public CoinoneAccountBalanceResponse(XElement element) : base(element) { Wallets = new(element.Element("normalWallets")); Balances = new(); if (element.HasElements) { foreach (var item in element.Elements()) { if (item.Name.LocalName is "result" or "errorCode" or "normalWallets") { continue; } if (item.Name == "krw") { KRW = new(item); } else if (item.Name == "btc") { BTC = new(item); } else { Balances.Add(new(item)); } } } Balances.WriteEnd(); Balances.Filter((CoinoneAccountBalanceBalanceInfo d) => false); }