Files
SabreTools/SabreTools.Library/DatItems/Auxiliary.cs

88 lines
1.8 KiB
C#
Raw Normal View History

using System.Collections.Generic;
using System.IO;
using System.Linq;
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
/// <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 Machine
2020-08-22 13:31:13 -07:00
#region SoftwareList
2020-08-21 15:31:19 -07:00
/// <summary>
/// Represents one SoftwareList shared feature object
/// </summary>
2020-08-23 21:10:29 -07:00
[JsonObject("sharedfeat")]
2020-09-02 23:02:06 -07:00
public class SharedFeature
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
}
#endregion
#endregion // Machine
#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-08-23 21:10:29 -07:00
[JsonObject("feature")]
2020-08-21 15:31:19 -07:00
public class SoftwareListFeature
{
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
}