using System.Xml.Serialization;
using Newtonsoft.Json;
namespace SabreTools.DatItems.Formats
{
///
/// SoftwareList part information
///
/// One Part can contain multiple PartFeature, DataArea, DiskArea, and DipSwitch items
[JsonObject("part"), XmlRoot("part")]
public sealed class Part : DatItem
{
#region Fields
/// />
protected override ItemType ItemType => ItemType.Part;
[JsonIgnore]
public bool FeaturesSpecified
{
get
{
var features = GetFieldValue(Models.Metadata.Part.FeatureKey);
return features != null && features.Length > 0;
}
}
#endregion
#region Constructors
public Part() : base() { }
public Part(Models.Metadata.Part item) : base(item) { }
#endregion
}
}