Add OfflineList deserialization test, fix issues

This commit is contained in:
Matt Nadareski
2023-07-12 23:40:20 -04:00
parent af6f842944
commit b64d84b37f
19 changed files with 122068 additions and 7 deletions

View File

@@ -0,0 +1,33 @@
using System.Xml;
using System.Xml.Serialization;
namespace SabreTools.Models.OfflineList
{
[XmlRoot("image")]
public class Image
{
[XmlAttribute("x")]
public string? X { get; set; }
[XmlAttribute("y")]
public string? Y { get; set; }
[XmlAttribute("width")]
public string? Width { get; set; }
[XmlAttribute("height")]
public string? Height { 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
}
}