using MediaBrowser.Model.Entities; using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.Serialization; namespace MediaBrowser.Model.LiveTv { /// /// Class SeriesTimerInfoDto. /// [DebuggerDisplay("Name = {Name}")] public class SeriesTimerInfoDto : BaseTimerInfoDto { /// /// Gets or sets a value indicating whether [record any time]. /// /// true if [record any time]; otherwise, false. public bool RecordAnyTime { get; set; } /// /// Gets or sets a value indicating whether [record any channel]. /// /// true if [record any channel]; otherwise, false. public bool RecordAnyChannel { get; set; } /// /// Gets or sets a value indicating whether [record new only]. /// /// true if [record new only]; otherwise, false. public bool RecordNewOnly { get; set; } /// /// Gets or sets the days. /// /// The days. public List Days { get; set; } /// /// Gets or sets the day pattern. /// /// The day pattern. public DayPattern? DayPattern { get; set; } /// /// Gets or sets the image tags. /// /// The image tags. public Dictionary ImageTags { get; set; } /// /// Gets a value indicating whether this instance has primary image. /// /// true if this instance has primary image; otherwise, false. [IgnoreDataMember] public bool HasPrimaryImage { get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Primary); } } public SeriesTimerInfoDto() { ImageTags = new Dictionary(); Days = new List(); } } }