2025-09-26 10:20:48 -04:00
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.Metadata
|
2025-09-26 10:20:48 -04:00
|
|
|
{
|
|
|
|
|
[JsonObject("disk"), XmlRoot(elementName: "disk")]
|
|
|
|
|
public class Disk : DatItem
|
|
|
|
|
{
|
2026-04-01 13:18:45 -04:00
|
|
|
#region Properties
|
|
|
|
|
|
|
|
|
|
public string? Name { get; set; }
|
|
|
|
|
|
2026-04-01 21:59:16 -04:00
|
|
|
/// <remarks>(yes|no) "no"</remarks>
|
|
|
|
|
public bool? Optional { get; set; }
|
|
|
|
|
|
2026-04-02 02:18:08 -04:00
|
|
|
/// <remarks>(baddump|nodump|good|verified) "good"</remarks>
|
|
|
|
|
public ItemStatus? Status { get; set; }
|
|
|
|
|
|
2026-04-01 21:59:16 -04:00
|
|
|
/// <remarks>(yes|no) "no"</remarks>
|
|
|
|
|
public bool? Writable { get; set; }
|
|
|
|
|
|
2026-04-01 13:18:45 -04:00
|
|
|
#endregion
|
|
|
|
|
|
2025-09-26 10:20:48 -04:00
|
|
|
#region Keys
|
|
|
|
|
|
|
|
|
|
/// <remarks>string</remarks>
|
|
|
|
|
public const string FlagsKey = "flags";
|
|
|
|
|
|
|
|
|
|
/// <remarks>string, possibly long</remarks>
|
|
|
|
|
public const string IndexKey = "index";
|
|
|
|
|
|
|
|
|
|
/// <remarks>string</remarks>
|
|
|
|
|
public const string MD5Key = "md5";
|
|
|
|
|
|
|
|
|
|
/// <remarks>string</remarks>
|
|
|
|
|
public const string MergeKey = "merge";
|
|
|
|
|
|
|
|
|
|
/// <remarks>string</remarks>
|
|
|
|
|
public const string RegionKey = "region";
|
|
|
|
|
|
|
|
|
|
/// <remarks>string</remarks>
|
|
|
|
|
public const string SHA1Key = "sha1";
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
2026-04-01 11:24:33 -04:00
|
|
|
public Disk() => ItemType = ItemType.Disk;
|
2025-09-26 10:20:48 -04:00
|
|
|
}
|
|
|
|
|
}
|