2020-08-21 16:48:56 -07:00
|
|
|
|
using System.Collections.Generic;
|
2020-09-02 22:38:00 -07:00
|
|
|
|
using System.IO;
|
2020-09-02 16:31:23 -07:00
|
|
|
|
using System.Linq;
|
2020-08-21 16:48:56 -07:00
|
|
|
|
|
2020-09-02 16:31:23 -07:00
|
|
|
|
using SabreTools.Library.DatItems;
|
|
|
|
|
|
using SabreTools.Library.Filtering;
|
2020-08-23 21:10:29 -07:00
|
|
|
|
using Newtonsoft.Json;
|
2020-09-02 15:38:10 -07:00
|
|
|
|
using Newtonsoft.Json.Converters;
|
2020-09-02 21:36:14 -07:00
|
|
|
|
using SabreTools.Library.Tools;
|
2020-08-23 21:10:29 -07:00
|
|
|
|
|
2020-08-21 16:48:56 -07:00
|
|
|
|
/// <summary>
|
2020-08-21 15:31:19 -07:00
|
|
|
|
/// This holds all of the auxiliary types needed for proper parsing
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
namespace SabreTools.Library.DatItems
|
|
|
|
|
|
{
|
|
|
|
|
|
#region DatItem
|
|
|
|
|
|
|
2020-09-02 23:31:35 -07:00
|
|
|
|
#region OpenMSX
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Represents the OpenMSX original value
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonObject("original")]
|
|
|
|
|
|
public class Original
|
|
|
|
|
|
{
|
|
|
|
|
|
[JsonProperty("value")]
|
|
|
|
|
|
public bool? Value { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[JsonProperty("content")]
|
|
|
|
|
|
public string Content { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
2020-08-21 15:31:19 -07:00
|
|
|
|
#region SoftwareList
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Represents one SoftwareList feature object
|
|
|
|
|
|
/// </summary>
|
2020-09-03 09:57:16 -07:00
|
|
|
|
/// TODO: Promote this to DatItem
|
|
|
|
|
|
[JsonObject("part_feature")]
|
|
|
|
|
|
public class PartFeature
|
2020-08-21 15:31:19 -07:00
|
|
|
|
{
|
2020-08-23 21:10:29 -07:00
|
|
|
|
[JsonProperty("name")]
|
2020-08-21 15:31:19 -07:00
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
2020-08-23 21:10:29 -07:00
|
|
|
|
[JsonProperty("value")]
|
|
|
|
|
|
public string Value { get; set; }
|
2020-08-21 15:31:19 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
2020-08-24 22:25:47 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Represents one SoftwareList part object
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[JsonObject("part")]
|
|
|
|
|
|
public class SoftwareListPart
|
|
|
|
|
|
{
|
|
|
|
|
|
[JsonProperty("name")]
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[JsonProperty("interface")]
|
|
|
|
|
|
public string Interface { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2020-08-21 15:31:19 -07:00
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#endregion //DatItem
|
|
|
|
|
|
}
|