Files
SabreTools.Models/OfflineList/Dat.cs

57 lines
1.3 KiB
C#
Raw Normal View History

2023-09-04 00:07:54 -04:00
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.OfflineList
{
[XmlRoot("dat")]
public class Dat
{
[XmlAttribute(Namespace = "http://www.w3.org/2001/XMLSchema-instance", AttributeName = "noNamespaceSchemaLocation")]
2023-09-04 01:31:30 -04:00
#if NET48
public string NoNamespaceSchemaLocation { get; set; }
#else
2023-09-04 00:07:54 -04:00
public string? NoNamespaceSchemaLocation { get; set; }
2023-09-04 01:31:30 -04:00
#endif
2023-09-04 00:07:54 -04:00
[XmlElement("configuration")]
2023-09-04 01:31:30 -04:00
#if NET48
public Configuration Configuration { get; set; }
#else
2023-09-04 00:07:54 -04:00
public Configuration? Configuration { get; set; }
2023-09-04 01:31:30 -04:00
#endif
2023-09-04 00:07:54 -04:00
[XmlElement("games")]
2023-09-04 01:31:30 -04:00
#if NET48
public Games Games { get; set; }
#else
2023-09-04 00:07:54 -04:00
public Games? Games { get; set; }
2023-09-04 01:31:30 -04:00
#endif
2023-09-04 00:07:54 -04:00
[XmlElement("gui")]
2023-09-04 01:31:30 -04:00
#if NET48
public GUI GUI { get; set; }
#else
2023-09-04 00:07:54 -04:00
public GUI? GUI { get; set; }
2023-09-04 01:31:30 -04:00
#endif
2023-09-04 00:07:54 -04:00
#region DO NOT USE IN PRODUCTION
/// <remarks>Should be empty</remarks>
[XmlAnyAttribute]
2023-09-04 01:31:30 -04:00
#if NET48
public XmlAttribute[] ADDITIONAL_ATTRIBUTES { get; set; }
#else
2023-09-04 00:07:54 -04:00
public XmlAttribute[]? ADDITIONAL_ATTRIBUTES { get; set; }
2023-09-04 01:31:30 -04:00
#endif
2023-09-04 00:07:54 -04:00
/// <remarks>Should be empty</remarks>
[XmlAnyElement]
2023-09-04 01:31:30 -04:00
#if NET48
public object[] ADDITIONAL_ELEMENTS { get; set; }
#else
2023-09-04 00:07:54 -04:00
public object[]? ADDITIONAL_ELEMENTS { get; set; }
2023-09-04 01:31:30 -04:00
#endif
2023-09-04 00:07:54 -04:00
#endregion
}
}