using System.Xml.Serialization; using Newtonsoft.Json; namespace SabreTools.Data.Models.Metadata { [JsonObject("display"), XmlRoot("display")] public class Display : DatItem { #region Properties /// (raster|vector|lcd|svg|unknown) public DisplayType? DisplayType { get; set; } /// (yes|no) "no" public bool? FlipX { get; set; } public string? Tag { get; set; } #endregion #region Keys /// long public const string HBEndKey = "hbend"; /// long public const string HBStartKey = "hbstart"; /// long public const string HeightKey = "height"; /// long public const string HTotalKey = "htotal"; /// long public const string PixClockKey = "pixclock"; /// double public const string RefreshKey = "refresh"; /// (0|90|180|270) /// TODO: Convert to enum public const string RotateKey = "rotate"; /// long public const string VBEndKey = "vbend"; /// long public const string VBStartKey = "vbstart"; /// long public const string VTotalKey = "vtotal"; /// long public const string WidthKey = "width"; #endregion public Display() => ItemType = ItemType.Display; } }