using System.Xml.Serialization;
using Newtonsoft.Json;
namespace SabreTools.Data.Models.Metadata
{
[JsonObject("disk"), XmlRoot(elementName: "disk")]
public class Disk : DatItem
{
#region Properties
public string? Name { get; set; }
/// (yes|no) "no"
public bool? Optional { get; set; }
/// (baddump|nodump|good|verified) "good"
public ItemStatus? Status { get; set; }
/// (yes|no) "no"
public bool? Writable { get; set; }
#endregion
#region Keys
/// string
public const string FlagsKey = "flags";
/// string, possibly long
public const string IndexKey = "index";
/// string
public const string MD5Key = "md5";
/// string
public const string MergeKey = "merge";
/// string
public const string RegionKey = "region";
/// string
public const string SHA1Key = "sha1";
#endregion
public Disk() => ItemType = ItemType.Disk;
}
}