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:
27
SabreTools.Models/Internal/DipValue.cs
Normal file
27
SabreTools.Models/Internal/DipValue.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Xml.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace SabreTools.Models.Internal
|
||||
{
|
||||
[JsonObject("dipvalue"), XmlRoot("dipvalue")]
|
||||
public class DipValue : DatItem
|
||||
{
|
||||
#region Keys
|
||||
|
||||
/// <remarks>Condition</remarks>
|
||||
public const string ConditionKey = "condition";
|
||||
|
||||
/// <remarks>(yes|no) "no"</remarks>
|
||||
public const string DefaultKey = "default";
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string NameKey = "name";
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string ValueKey = "value";
|
||||
|
||||
#endregion
|
||||
|
||||
public DipValue() => Type = ItemType.DipValue;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user