2025-09-26 10:20:48 -04:00
|
|
|
using System.Xml;
|
|
|
|
|
using System.Xml.Serialization;
|
2026-04-02 02:18:08 -04:00
|
|
|
using SabreTools.Data.Models.Metadata;
|
2025-09-26 10:20:48 -04:00
|
|
|
|
2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.Listxml
|
2025-09-26 10:20:48 -04:00
|
|
|
{
|
|
|
|
|
[XmlRoot("device")]
|
|
|
|
|
public class Device
|
|
|
|
|
{
|
2026-04-02 02:18:08 -04:00
|
|
|
/// <remarks>(unknown|cartridge|floppydisk|harddisk|cylinder|cassette|punchcard|punchtape|printout|serial|parallel|snapshot|quickload|memcard|cdrom|magtape|romimage|midiin|midiout|picture|vidfile)</remarks>
|
2025-09-26 11:42:28 -04:00
|
|
|
[Required]
|
2025-09-26 10:20:48 -04:00
|
|
|
[XmlAttribute("type")]
|
2026-04-02 02:18:08 -04:00
|
|
|
public DeviceType? Type { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
|
|
|
|
[XmlAttribute("tag")]
|
|
|
|
|
public string? Tag { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlAttribute("fixed_image")]
|
|
|
|
|
public string? FixedImage { get; set; }
|
|
|
|
|
|
2026-04-02 02:43:29 -04:00
|
|
|
/// <remarks>(0|1) "0"</remarks>
|
2025-09-26 10:20:48 -04:00
|
|
|
[XmlAttribute("mandatory")]
|
2026-04-02 02:43:29 -04:00
|
|
|
public bool? Mandatory { get; set; }
|
2025-09-26 10:20:48 -04:00
|
|
|
|
|
|
|
|
[XmlAttribute("interface")]
|
|
|
|
|
public string? Interface { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlElement("instance")]
|
|
|
|
|
public Instance? Instance { get; set; }
|
|
|
|
|
|
|
|
|
|
[XmlElement("extension")]
|
|
|
|
|
public Extension[]? Extension { get; set; }
|
|
|
|
|
}
|
2026-01-27 12:03:01 -05:00
|
|
|
}
|