mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-02-17 05:45:34 +00:00
58 lines
1.3 KiB
C#
58 lines
1.3 KiB
C#
using System.Xml;
|
|
using System.Xml.Serialization;
|
|
|
|
namespace SabreTools.Models.SoftwareList
|
|
{
|
|
[XmlRoot("softwarelist")]
|
|
public class SoftwareList
|
|
{
|
|
[Required]
|
|
[XmlAttribute("name")]
|
|
#if NET48
|
|
public string Name { get; set; }
|
|
#else
|
|
public string? Name { get; set; }
|
|
#endif
|
|
|
|
[XmlAttribute("description")]
|
|
#if NET48
|
|
public string Description { get; set; }
|
|
#else
|
|
public string? Description { get; set; }
|
|
#endif
|
|
|
|
[XmlElement("notes")]
|
|
#if NET48
|
|
public string Notes { get; set; }
|
|
#else
|
|
public string? Notes { get; set; }
|
|
#endif
|
|
|
|
[XmlElement("software")]
|
|
#if NET48
|
|
public Software[] Software { get; set; }
|
|
#else
|
|
public Software[]? Software { 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
|
|
}
|
|
} |