using System.Xml.Serialization; using Newtonsoft.Json; using SabreTools.Core.Tools; namespace SabreTools.DatItems.Formats { /// /// Represents which SoftwareList(s) is associated with a set /// [JsonObject("softwarelist"), XmlRoot("softwarelist")] public sealed class SoftwareList : DatItem { #region Fields /// /> protected override ItemType ItemType => ItemType.SoftwareList; #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(Models.Metadata.SoftwareList.StatusKey, GetStringFieldValue(Models.Metadata.SoftwareList.StatusKey).AsEnumValue().AsStringValue()); // Handle subitems // TODO: Handle the Software subitem } #endregion } }