mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-07-23 09:12:14 +00:00
59 lines
1.2 KiB
C#
59 lines
1.2 KiB
C#
using System.Xml;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace SabreTools.Models.SoftwareList
|
|
{
|
|
[XmlRoot("dipswitch")]
|
|
public class DipSwitch
|
|
{
|
|
[Required]
|
|
[XmlAttribute("name")]
|
|
#if NET48
|
|
public string Name { get; set; }
|
|
#else
|
|
public string? Name { get; set; }
|
|
#endif
|
|
|
|
[Required]
|
|
[XmlAttribute("tag")]
|
|
#if NET48
|
|
public string Tag { get; set; }
|
|
#else
|
|
public string? Tag { get; set; }
|
|
#endif
|
|
|
|
[XmlAttribute("mask")]
|
|
#if NET48
|
|
public string Mask { get; set; }
|
|
#else
|
|
public string? Mask { get; set; }
|
|
#endif
|
|
|
|
[XmlElement("dipvalue")]
|
|
#if NET48
|
|
public DipValue[] DipValue { get; set; }
|
|
#else
|
|
public DipValue[]? DipValue { get; set; }
|
|
#endif
|
|
|
|
#region DO NOT USE IN PRODUCTION
|
|
|
|
/// <remarks>Should be empty</remarks>
|
|
[XmlAnyAttribute]
|
|
#if NET48
|
|
public XmlAttribute[] ADDITIONAL_ATTRIBUTES { get; set; }
|
|
#else
|
|
public XmlAttribute[]? ADDITIONAL_ATTRIBUTES { get; set; }
|
|
#endif
|
|
|
|
/// <remarks>Should be empty</remarks>
|
|
[XmlAnyElement]
|
|
#if NET48
|
|
public object[] ADDITIONAL_ELEMENTS { get; set; }
|
|
#else
|
|
public object[]? ADDITIONAL_ELEMENTS { get; set; }
|
|
#endif
|
|
|
|
#endregion
|
|
}
|
|
} |