mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Major refactor and cleanup.
This commit is contained in:
@@ -26,42 +26,43 @@
|
||||
using System;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace Marechai.Database.Schemas
|
||||
namespace Marechai.Database.Schemas;
|
||||
|
||||
public class Iso4217Xml
|
||||
{
|
||||
public class Iso4217Xml
|
||||
[XmlRoot(ElementName = "ISO_4217")]
|
||||
public class Root
|
||||
{
|
||||
[XmlRoot(ElementName = "ISO_4217")]
|
||||
public class Root
|
||||
{
|
||||
[XmlAttribute(AttributeName = "Pblshd", DataType = "date")]
|
||||
public DateTime Published { get; set; }
|
||||
[XmlAttribute(AttributeName = "Pblshd", DataType = "date")]
|
||||
public DateTime Published { get; set; }
|
||||
|
||||
[XmlArray("CcyTbl"), XmlArrayItem("CcyNtry", typeof(Currency), IsNullable = true)]
|
||||
public Currency[] Current { get; set; }
|
||||
[XmlArray("CcyTbl")]
|
||||
[XmlArrayItem("CcyNtry", typeof(Currency), IsNullable = true)]
|
||||
public Currency[] Current { get; set; }
|
||||
|
||||
[XmlArray("HstrcCcyTbl"), XmlArrayItem("HstrcCcyNtry", typeof(Currency), IsNullable = true)]
|
||||
public Currency[] Historical { get; set; }
|
||||
}
|
||||
[XmlArray("HstrcCcyTbl")]
|
||||
[XmlArrayItem("HstrcCcyNtry", typeof(Currency), IsNullable = true)]
|
||||
public Currency[] Historical { get; set; }
|
||||
}
|
||||
|
||||
public class Currency
|
||||
{
|
||||
[XmlElement("CtryNm")]
|
||||
public string Country { get; set; }
|
||||
public class Currency
|
||||
{
|
||||
[XmlElement("CtryNm")]
|
||||
public string Country { get; set; }
|
||||
|
||||
[XmlElement("Ccy")]
|
||||
public string Code { get; set; }
|
||||
[XmlElement("Ccy")]
|
||||
public string Code { get; set; }
|
||||
|
||||
[XmlElement("CcyNbr")]
|
||||
public short Number { get; set; }
|
||||
[XmlElement("CcyNbr")]
|
||||
public short Number { get; set; }
|
||||
|
||||
[XmlElement("CcyMnrUnts", IsNullable = true)]
|
||||
public string MinorUnits { get; set; }
|
||||
[XmlElement("CcyMnrUnts", IsNullable = true)]
|
||||
public string MinorUnits { get; set; }
|
||||
|
||||
[XmlElement("CcyNm")]
|
||||
public string Name { get; set; }
|
||||
[XmlElement("CcyNm")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlElement("WthdrwlDt", IsNullable = true)]
|
||||
public string Withdrawn { get; set; }
|
||||
}
|
||||
[XmlElement("WthdrwlDt", IsNullable = true)]
|
||||
public string Withdrawn { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user