using System.Xml.Serialization;
using Newtonsoft.Json;
namespace SabreTools.Data.Models.Metadata
{
[JsonObject("dipswitch"), XmlRoot("dipswitch")]
public class DipSwitch : DatItem
{
#region Properties
/// (yes|no) "no"
public bool? Default { get; set; }
public string? Mask { get; set; }
public string? Name { get; set; }
public string? Tag { get; set; }
#endregion
#region Keys
/// Condition
[NoFilter]
public const string ConditionKey = "condition";
/// DipLocation[]
[NoFilter]
public const string DipLocationKey = "diplocation";
/// DipValue[]
[NoFilter]
public const string DipValueKey = "dipvalue";
/// string[]
public const string EntryKey = "entry";
#endregion
public DipSwitch() => ItemType = ItemType.DipSwitch;
}
}