using System.Xml; using System.Xml.Serialization; namespace SabreTools.Models.SoftwareList { [XmlRoot("rom")] public class Rom { [XmlAttribute("name")] public string Name { get; set; } [XmlAttribute("size")] public string Size { get; set; } [XmlAttribute("crc")] public string? CRC { get; set; } [XmlAttribute("sha1")] public string? SHA1 { get; set; } /// Numeric? [XmlAttribute("offset")] public string? Offset { get; set; } [XmlAttribute("value")] public string? Value { get; set; } /// (baddump|nodump|good) "good" [XmlAttribute("status")] public string? Status { get; set; } /// (load16_byte|load16_word|load16_word_swap|load32_byte|load32_word|load32_word_swap|load32_dword|load64_word|load64_word_swap|reload|fill|continue|reload_plain|ignore) [XmlAttribute("loadflag")] public string? LoadFlag { get; set; } #region DO NOT USE IN PRODUCTION /// Should be empty [XmlAnyAttribute] public XmlAttribute[]? ADDITIONAL_ATTRIBUTES { get; set; } /// Should be empty [XmlAnyElement] public object[]? ADDITIONAL_ELEMENTS { get; set; } #endregion } }