mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add OfflineList deserialization test, fix issues
This commit is contained in:
33
SabreTools.Models/OfflineList/Image.cs
Normal file
33
SabreTools.Models/OfflineList/Image.cs
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user