2025-09-26 10:20:48 -04:00
|
|
|
using System.Xml;
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.OpenMSX
|
2025-09-26 10:20:48 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Base class to unify the various rom types
|
|
|
|
|
/// </summary>
|
|
|
|
|
public abstract class RomBase
|
|
|
|
|
{
|
2026-09-18 10:15:54 -04:00
|
|
|
/// <remarks>
|
|
|
|
|
/// "hash" in older versions, "sha1" in newer versions
|
|
|
|
|
/// </remarks>
|
2026-09-18 10:34:40 -04:00
|
|
|
[XmlAttribute("sha1")]
|
2026-09-18 10:15:54 -04:00
|
|
|
[XmlElement("hash")]
|
|
|
|
|
public string? SHA1 { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
2026-09-18 10:34:40 -04:00
|
|
|
/// <remarks>
|
|
|
|
|
/// Element in older versions and DTD, attribute in newer versions
|
|
|
|
|
/// </remarks>
|
|
|
|
|
[XmlAttribute("type")]
|
2025-09-26 10:20:48 -04:00
|
|
|
[XmlElement("type")]
|
|
|
|
|
public string? Type { get; set; }
|
|
|
|
|
|
2026-09-18 10:15:54 -04:00
|
|
|
/// <remarks>
|
|
|
|
|
/// Only present in newer versions
|
|
|
|
|
/// </remarks>
|
2026-09-18 10:34:40 -04:00
|
|
|
[XmlAttribute("status")]
|
2026-09-18 10:15:54 -04:00
|
|
|
public string? Status { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
2026-09-18 10:34:40 -04:00
|
|
|
/// <remarks>
|
|
|
|
|
/// Element in older versions and DTD, attribute in newer versions
|
|
|
|
|
/// </remarks>
|
|
|
|
|
[XmlAttribute("remark")]
|
2025-09-26 10:20:48 -04:00
|
|
|
[XmlElement("remark")]
|
|
|
|
|
public string? Remark { get; set; }
|
2026-09-18 10:15:54 -04:00
|
|
|
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// Only present in older versions
|
|
|
|
|
/// </remarks>
|
|
|
|
|
[XmlElement("start")]
|
|
|
|
|
public string? Start { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
}
|
2026-01-27 12:03:01 -05:00
|
|
|
}
|