mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Start adding currently-unused models
This commit is contained in:
26
SabreTools.Models/SoftwareList/DataArea.cs
Normal file
26
SabreTools.Models/SoftwareList/DataArea.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace SabreTools.Models.SoftwareList
|
||||
{
|
||||
[XmlRoot("dataarea")]
|
||||
public class DataArea
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("size")]
|
||||
public long Size { get; set; }
|
||||
|
||||
/// <remarks>(8|16|32|64) "8"</remarks>
|
||||
[XmlAttribute("width")]
|
||||
public long? Width { get; set; }
|
||||
|
||||
/// <remarks>(big|little) "little"</remarks>
|
||||
[XmlAttribute("endianness")]
|
||||
public string? Endianness { get; set; }
|
||||
|
||||
[XmlElement("rom")]
|
||||
public Rom[]? Rom { get; set; }
|
||||
}
|
||||
}
|
||||
21
SabreTools.Models/SoftwareList/DipSwitch.cs
Normal file
21
SabreTools.Models/SoftwareList/DipSwitch.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace SabreTools.Models.SoftwareList
|
||||
{
|
||||
[XmlRoot("dipswitch")]
|
||||
public class DipSwitch
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("tag")]
|
||||
public string Tag { get; set; }
|
||||
|
||||
[XmlAttribute("mask")]
|
||||
public string? Mask { get; set; }
|
||||
|
||||
[XmlElement("dipvalue")]
|
||||
public DipValue[]? DipValue { get; set; }
|
||||
}
|
||||
}
|
||||
19
SabreTools.Models/SoftwareList/DipValue.cs
Normal file
19
SabreTools.Models/SoftwareList/DipValue.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace SabreTools.Models.SoftwareList
|
||||
{
|
||||
[XmlRoot("dipvalue")]
|
||||
public class DipValue
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("value")]
|
||||
public string Value { get; set; }
|
||||
|
||||
/// <remarks>(yes|no) "no"</remarks>
|
||||
[XmlAttribute("default")]
|
||||
public string? Default { get; set; }
|
||||
}
|
||||
}
|
||||
23
SabreTools.Models/SoftwareList/Disk.cs
Normal file
23
SabreTools.Models/SoftwareList/Disk.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace SabreTools.Models.SoftwareList
|
||||
{
|
||||
[XmlRoot("disk")]
|
||||
public class Disk
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("sha1")]
|
||||
public string? SHA1 { get; set; }
|
||||
|
||||
/// <remarks>(baddump|nodump|good) "good"</remarks>
|
||||
[XmlAttribute("status")]
|
||||
public string? Status { get; set; }
|
||||
|
||||
/// <remarks>(yes|no) "no"</remarks>
|
||||
[XmlAttribute("writeable")]
|
||||
public string? Writeable { get; set; }
|
||||
}
|
||||
}
|
||||
15
SabreTools.Models/SoftwareList/DiskArea.cs
Normal file
15
SabreTools.Models/SoftwareList/DiskArea.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace SabreTools.Models.SoftwareList
|
||||
{
|
||||
[XmlRoot("diskarea")]
|
||||
public class DiskArea
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlElement("disk")]
|
||||
public Disk[]? Disk { get; set; }
|
||||
}
|
||||
}
|
||||
15
SabreTools.Models/SoftwareList/Feature.cs
Normal file
15
SabreTools.Models/SoftwareList/Feature.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace SabreTools.Models.SoftwareList
|
||||
{
|
||||
[XmlRoot("feature")]
|
||||
public class Feature
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("value")]
|
||||
public string? Value { get; set; }
|
||||
}
|
||||
}
|
||||
15
SabreTools.Models/SoftwareList/Info.cs
Normal file
15
SabreTools.Models/SoftwareList/Info.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace SabreTools.Models.SoftwareList
|
||||
{
|
||||
[XmlRoot("info")]
|
||||
public class Info
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("value")]
|
||||
public string? Value { get; set; }
|
||||
}
|
||||
}
|
||||
27
SabreTools.Models/SoftwareList/Part.cs
Normal file
27
SabreTools.Models/SoftwareList/Part.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace SabreTools.Models.SoftwareList
|
||||
{
|
||||
[XmlRoot("part")]
|
||||
public class Part
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("interface")]
|
||||
public string Interface { get; set; }
|
||||
|
||||
[XmlElement("feature")]
|
||||
public Feature[]? Feature { get; set; }
|
||||
|
||||
[XmlElement("dataarea")]
|
||||
public DataArea[]? DataArea { get; set; }
|
||||
|
||||
[XmlElement("diskarea")]
|
||||
public DiskArea[]? DiskArea { get; set; }
|
||||
|
||||
[XmlElement("dipswitch")]
|
||||
public DipSwitch[]? DipSwitch { get; set; }
|
||||
}
|
||||
}
|
||||
36
SabreTools.Models/SoftwareList/Rom.cs
Normal file
36
SabreTools.Models/SoftwareList/Rom.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace SabreTools.Models.SoftwareList
|
||||
{
|
||||
[XmlRoot("rom")]
|
||||
public class Rom
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("size")]
|
||||
public long Size { get; set; }
|
||||
|
||||
[XmlAttribute("crc")]
|
||||
public string? CRC { get; set; }
|
||||
|
||||
[XmlAttribute("sha1")]
|
||||
public string? SHA1 { get; set; }
|
||||
|
||||
/// <remarks>Numeric?</remarks>
|
||||
[XmlAttribute("offset")]
|
||||
public string? Offset { get; set; }
|
||||
|
||||
[XmlAttribute("value")]
|
||||
public string? Value { get; set; }
|
||||
|
||||
/// <remarks>(baddump|nodump|good) "good"</remarks>
|
||||
[XmlAttribute("status")]
|
||||
public string? Status { get; set; }
|
||||
|
||||
/// <remarks>(load16_byte|load16_word|load16_word_swap|load32_byte|load32_word|load32_word_swap|load32_dword|load64_word|load64_word_swap|reload|fill|continue|reload_plain|ignore)</remarks>
|
||||
[XmlAttribute("loadflag")]
|
||||
public string? LoadFlag { get; set; }
|
||||
}
|
||||
}
|
||||
15
SabreTools.Models/SoftwareList/SharedFeat.cs
Normal file
15
SabreTools.Models/SoftwareList/SharedFeat.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace SabreTools.Models.SoftwareList
|
||||
{
|
||||
[XmlRoot("sharedfeat")]
|
||||
public class SharedFeat
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("value")]
|
||||
public string? Value { get; set; }
|
||||
}
|
||||
}
|
||||
40
SabreTools.Models/SoftwareList/Software.cs
Normal file
40
SabreTools.Models/SoftwareList/Software.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace SabreTools.Models.SoftwareList
|
||||
{
|
||||
[XmlRoot("software")]
|
||||
public class Software
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("cloneof")]
|
||||
public string? CloneOf { get; set; }
|
||||
|
||||
/// <remarks>(yes|partial|no) "yes"</remarks>
|
||||
[XmlAttribute("supported")]
|
||||
public string? Supported { get; set; }
|
||||
|
||||
[XmlElement("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[XmlElement("year")]
|
||||
public string Year { get; set; }
|
||||
|
||||
[XmlElement("publisher")]
|
||||
public string Publisher { get; set; }
|
||||
|
||||
[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; }
|
||||
}
|
||||
}
|
||||
21
SabreTools.Models/SoftwareList/SoftwareList.cs
Normal file
21
SabreTools.Models/SoftwareList/SoftwareList.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace SabreTools.Models.SoftwareList
|
||||
{
|
||||
[XmlRoot("softwarelist")]
|
||||
public class SoftwareList
|
||||
{
|
||||
[XmlAttribute("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[XmlAttribute("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
[XmlElement("notes")]
|
||||
public string? Notes { get; set; }
|
||||
|
||||
[XmlElement("software")]
|
||||
public Software[] Software { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user