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:
45
SabreTools.Models/Internal/Software.cs
Normal file
45
SabreTools.Models/Internal/Software.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using System.Xml.Serialization;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace SabreTools.Models.Internal
|
||||
{
|
||||
[JsonObject("software"), XmlRoot("software")]
|
||||
public class Software : DatItem
|
||||
{
|
||||
#region Keys
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string CloneOfKey = "cloneof";
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string DescriptionKey = "description";
|
||||
|
||||
/// <remarks>Info[]</remarks>
|
||||
public const string InfoKey = "info";
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string NameKey = "name";
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string NotesKey = "notes";
|
||||
|
||||
/// <remarks>Part[]</remarks>
|
||||
public const string PartKey = "part";
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string PublisherKey = "publisher";
|
||||
|
||||
/// <remarks>SharedFeat[]</remarks>
|
||||
public const string SharedFeatKey = "sharedfeat";
|
||||
|
||||
/// <remarks>(yes|partial|no) "yes"</remarks>
|
||||
public const string SupportedKey = "supported";
|
||||
|
||||
/// <remarks>string</remarks>
|
||||
public const string YearKey = "year";
|
||||
|
||||
#endregion
|
||||
|
||||
public Software() => Type = ItemType.Software;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user