mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
39 lines
1.2 KiB
C#
39 lines
1.2 KiB
C#
using System.Xml.Serialization;
|
|
using Newtonsoft.Json;
|
|
using SabreTools.Core.Tools;
|
|
|
|
namespace SabreTools.DatItems.Formats
|
|
{
|
|
/// <summary>
|
|
/// Represents which SoftwareList(s) is associated with a set
|
|
/// </summary>
|
|
[JsonObject("softwarelist"), XmlRoot("softwarelist")]
|
|
public sealed class SoftwareList : DatItem<Models.Metadata.SoftwareList>
|
|
{
|
|
#region Fields
|
|
|
|
/// <inheritdoc>/>
|
|
protected override ItemType ItemType => ItemType.SoftwareList;
|
|
|
|
/// <inheritdoc>/>
|
|
protected override string? NameKey => Models.Metadata.SoftwareList.NameKey;
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
public SoftwareList() : base() { }
|
|
public SoftwareList(Models.Metadata.SoftwareList item) : base(item)
|
|
{
|
|
// Process flag values
|
|
if (GetStringFieldValue(Models.Metadata.SoftwareList.StatusKey) != null)
|
|
SetFieldValue<string?>(Models.Metadata.SoftwareList.StatusKey, GetStringFieldValue(Models.Metadata.SoftwareList.StatusKey).AsEnumValue<SoftwareListStatus>().AsStringValue());
|
|
|
|
// Handle subitems
|
|
// TODO: Handle the Software subitem
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|