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

@@ -5,14 +5,29 @@ namespace SabreTools.Models.OfflineList
{
public class InfoBase
{
/// <remarks>Boolean</remarks>
[XmlAttribute("visible")]
public bool? Visible { get; set; }
public string? Visible { get; set; }
/// <remarks>Boolean</remarks>
[XmlAttribute("inNamingOption")]
public bool? InNamingOption { get; set; }
public string? InNamingOption { get; set; }
/// <remarks>Boolean</remarks>
[XmlAttribute("default")]
public bool? Default { get; set; }
public string? Default { 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
}
[XmlRoot("title")]
@@ -27,6 +42,9 @@ namespace SabreTools.Models.OfflineList
[XmlRoot("sourceRom")]
public class SourceRom : InfoBase { }
[XmlRoot("saveType")]
public class SaveType : InfoBase { }
[XmlRoot("romSize")]
public class RomSize : InfoBase { }