mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-20 05:03:11 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using System.Xml.Serialization;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace SabreTools.Data.Models.Metadata
|
|
{
|
|
[JsonObject("device"), XmlRoot("device")]
|
|
public class Device : DatItem
|
|
{
|
|
#region Keys
|
|
|
|
/// <remarks>Extension[]</remarks>
|
|
[NoFilter]
|
|
public const string ExtensionKey = "extension";
|
|
|
|
/// <remarks>string</remarks>
|
|
public const string FixedImageKey = "fixed_image";
|
|
|
|
/// <remarks>Instance</remarks>
|
|
[NoFilter]
|
|
public const string InstanceKey = "instance";
|
|
|
|
/// <remarks>string</remarks>
|
|
public const string InterfaceKey = "interface";
|
|
|
|
/// <remarks>(0|1) "0"</remarks>
|
|
public const string MandatoryKey = "mandatory";
|
|
|
|
/// <remarks>string</remarks>
|
|
public const string TagKey = "tag";
|
|
|
|
/// <remarks>(unknown|cartridge|floppydisk|harddisk|cylinder|cassette|punchcard|punchtape|printout|serial|parallel|snapshot|quickload|memcard|cdrom|magtape|romimage|midiin|midiout|picture|vidfile)</remarks>
|
|
public const string DeviceTypeKey = "type";
|
|
|
|
#endregion
|
|
|
|
public Device() => Type = ItemType.Device;
|
|
}
|
|
}
|