[XmlRoot("Tarih_Date")] public class MerkezKurModel { [XmlElement("Currency")] public List<CurrencyModel> Currencies { get; set; } } public class CurrencyModel { [XmlAttribute("Kod")] public string Kod { get; set; } [XmlElement("Unit")] public int Unit { get; set; } [XmlElement("Isim")] public string Isim { get; set; } [XmlElement("CurrencyName")] public string CurrencyName { get; set; } [XmlElement("ForexBuying")] public string ForexBuying { get; set; } // Bazı değerler boş olabilir, string olarak aldık [XmlElement("ForexSelling")] public string ForexSelling { get; set; } [XmlElement("BanknoteBuying")] public string BanknoteBuying { get; set; } [XmlElement("BanknoteSelling")] public string BanknoteSelling { get; set; } [XmlElement("CrossRateUSD")] public string CrossRateUSD { get; set; } [XmlElement("CrossRateOther")] public string CrossRateOther { get; set; } } |