using System.Collections.Generic; using System.Xml.Serialization; namespace API.DTOs.ReadingLists.CBL; [XmlRoot(ElementName="Books")] public class CblBooks { [XmlElement(ElementName="Book")] public List Book { get; set; } } [XmlRoot(ElementName="ReadingList")] public class CblReadingList { /// /// Name of the Reading List /// [XmlElement(ElementName="Name")] public string Name { get; set; } /// /// Summary of the Reading List /// /// This is not a standard, adding based on discussion with CBL Maintainers [XmlElement(ElementName="Summary")] public string Summary { get; set; } /// /// Start Year of the Reading List. Overrides calculation /// /// This is not a standard, adding based on discussion with CBL Maintainers [XmlElement(ElementName="StartYear")] public int StartYear { get; set; } = -1; /// /// Start Year of the Reading List. Overrides calculation /// /// This is not a standard, adding based on discussion with CBL Maintainers [XmlElement(ElementName = "StartMonth")] public int StartMonth { get; set; } = -1; /// /// End Year of the Reading List. Overrides calculation /// /// This is not a standard, adding based on discussion with CBL Maintainers [XmlElement(ElementName="EndYear")] public int EndYear { get; set; } = -1; /// /// End Year of the Reading List. Overrides calculation /// /// This is not a standard, adding based on discussion with CBL Maintainers [XmlElement(ElementName="EndMonth")] public int EndMonth { get; set; } = -1; /// /// Issues of the Reading List /// [XmlElement(ElementName="Books")] public CblBooks Books { get; set; } }