Files
SabreTools/SabreTools.Models/SoftwareList/Software.cs

56 lines
1.4 KiB
C#
Raw Normal View History

2023-07-11 23:39:54 -04:00
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.SoftwareList
{
[XmlRoot("software")]
public class Software
{
[Required]
2023-07-11 23:39:54 -04:00
[XmlAttribute("name")]
public string? Name { get; set; }
2023-07-11 23:39:54 -04:00
[XmlAttribute("cloneof")]
public string? CloneOf { get; set; }
/// <remarks>(yes|partial|no) "yes"</remarks>
[XmlAttribute("supported")]
public string? Supported { get; set; }
[Required]
2023-07-11 23:39:54 -04:00
[XmlElement("description")]
public string? Description { get; set; }
2023-07-11 23:39:54 -04:00
[Required]
2023-07-11 23:39:54 -04:00
[XmlElement("year")]
public string? Year { get; set; }
2023-07-11 23:39:54 -04:00
[Required]
2023-07-11 23:39:54 -04:00
[XmlElement("publisher")]
public string? Publisher { get; set; }
2023-07-11 23:39:54 -04:00
[XmlElement("notes")]
public string? Notes { get; set; }
[XmlElement("info")]
public Info[]? Info { get; set; }
[XmlElement("sharedfeat")]
public SharedFeat[]? SharedFeat { get; set; }
[XmlElement("part")]
public Part[]? Part { get; set; }
#region DO NOT USE IN PRODUCTION
/// <remarks>Should be empty</remarks>
[XmlAnyAttribute]
public XmlAttribute[]? ADDITIONAL_ATTRIBUTES { get; set; }
/// <remarks>Should be empty</remarks>
[XmlAnyElement]
public object[]? ADDITIONAL_ELEMENTS { get; set; }
#endregion
2023-07-11 23:39:54 -04:00
}
}