using MediaBrowser.Model.Entities; using System; using System.Collections.Generic; using System.Diagnostics; using MediaBrowser.Model.Serialization; namespace MediaBrowser.Model.LiveTv { /// /// Class SeriesTimerInfoDto. /// [DebuggerDisplay("Name = {Name}")] public class SeriesTimerInfoDto : BaseTimerInfoDto { public SeriesTimerInfoDto() { ImageTags = new Dictionary(); Days = new List(); Type = "SeriesTimer"; } /// /// Gets or sets a value indicating whether [record any time]. /// /// true if [record any time]; otherwise, false. public bool RecordAnyTime { get; set; } public bool SkipEpisodesInLibrary { get; set; } /// /// Gets or sets a value indicating whether [record any channel]. /// /// true if [record any channel]; otherwise, false. public bool RecordAnyChannel { get; set; } public int KeepUpTo { 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); } } /// /// Gets or sets the parent thumb item id. /// /// The parent thumb item id. public string ParentThumbItemId { get; set; } /// /// Gets or sets the parent thumb image tag. /// /// The parent thumb image tag. public string ParentThumbImageTag { get; set; } /// /// Gets or sets the parent primary image item identifier. /// /// The parent primary image item identifier. public string ParentPrimaryImageItemId { get; set; } /// /// Gets or sets the parent primary image tag. /// /// The parent primary image tag. public string ParentPrimaryImageTag { get; set; } } public enum KeepUntil { UntilDeleted, UntilSpaceNeeded, UntilWatched, UntilDate } }