mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Start creating Dictionary-based internal models
This commit is contained in:
39
SabreTools.Models/Internal/DipSwitch.cs
Normal file
39
SabreTools.Models/Internal/DipSwitch.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System.Xml.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace SabreTools.Models.Internal
|
||||
{
|
||||
[JsonObject("dipswitch"), XmlRoot("dipswitch")]
|
||||
public class DipSwitch : DatItem
|
||||
{
|
||||
#region Keys
|
||||
|
||||
/// <remarks>Condition</remarks>
|
||||
public const string ConditionKey = "condition";
|
||||
|
||||
/// <remarks>(yes|no) "no"</remarks>
|
||||
public const string DefaultKey = "default";
|
||||
|
||||
/// <remarks>DipLocation[]</remarks>
|
||||
public const string DipLocationKey = "diplocation";
|
||||
|
||||
/// <remarks>DipValue[]</remarks>
|
||||
public const string DipValueKey = "dipvalue";
|
||||
|
||||
/// <remarks>string[]</remarks>
|
||||
public const string EntryKey = "entry";
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string MaskKey = "mask";
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string NameKey = "name";
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string TagKey = "tag";
|
||||
|
||||
#endregion
|
||||
|
||||
public DipSwitch() => Type = ItemType.DipSwitch;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user