2025-09-26 10:20:48 -04:00
|
|
|
using System.Xml;
|
|
|
|
|
using System.Xml.Serialization;
|
2026-04-02 02:18:08 -04:00
|
|
|
using SabreTools.Data.Models.Metadata;
|
2025-09-26 10:20:48 -04:00
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.Listxml
|
2025-09-26 10:20:48 -04:00
|
|
|
{
|
|
|
|
|
[XmlRoot("disk")]
|
|
|
|
|
public class Disk
|
|
|
|
|
{
|
2025-09-26 11:42:28 -04:00
|
|
|
[Required]
|
2025-09-26 10:20:48 -04:00
|
|
|
[XmlAttribute("name")]
|
|
|
|
|
public string? Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <remarks>Only present in older versions</remarks>
|
|
|
|
|
[XmlAttribute("md5")]
|
|
|
|
|
public string? MD5 { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("sha1")]
|
|
|
|
|
public string? SHA1 { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("merge")]
|
|
|
|
|
public string? Merge { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("region")]
|
|
|
|
|
public string? Region { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("index")]
|
2026-04-04 01:15:40 -04:00
|
|
|
public long? Index { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
|
|
|
|
/// <remarks>(yes|no) "no"</remarks>
|
|
|
|
|
[XmlAttribute("writable")]
|
2026-04-01 21:59:16 -04:00
|
|
|
public bool? Writable { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
|
|
|
|
/// <remarks>(baddump|nodump|good) "good"</remarks>
|
|
|
|
|
[XmlAttribute("status")]
|
2026-04-02 02:18:08 -04:00
|
|
|
public ItemStatus? Status { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
|
|
|
|
/// <remarks>(yes|no) "no"</remarks>
|
|
|
|
|
[XmlAttribute("optional")]
|
2026-04-01 21:59:16 -04:00
|
|
|
public bool? Optional { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
}
|
2026-01-27 12:03:01 -05:00
|
|
|
}
|