using System.Xml.Serialization; namespace ErsatzTV.Core.Metadata.Nfo; [XmlRoot("tvshow")] public class TvShowNfo { [XmlElement("title")] public string Title { get; set; } [XmlIgnore] public int? Year { get; set; } [XmlElement("year")] public string YearAsText { get => Year.HasValue ? Year.ToString() : null; set => Year = !string.IsNullOrWhiteSpace(value) ? int.Parse(value) : default(int?); } [XmlElement("plot")] public string Plot { get; set; } [XmlElement("outline")] public string Outline { get; set; } [XmlElement("tagline")] public string Tagline { get; set; } [XmlElement("mpaa")] public string ContentRating { get; set; } [XmlElement("premiered")] public Option Premiered { get; set; } [XmlElement("genre")] public List Genres { get; set; } [XmlElement("tag")] public List Tags { get; set; } [XmlElement("studio")] public List Studios { get; set; } [XmlElement("actor")] public List Actors { get; set; } [XmlElement("uniqueid")] public List UniqueIds { get; set; } }