using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Runtime.Serialization; using MediaBrowser.Model.Entities; namespace MediaBrowser.Model.LiveTv { [DebuggerDisplay("Name = {Name}")] public class SeriesTimerInfoDto : INotifyPropertyChanged { /// /// Id of the recording. /// public string Id { get; set; } /// /// Gets or sets the external identifier. /// /// The external identifier. public string ExternalId { get; set; } /// /// ChannelId of the recording. /// public string ChannelId { get; set; } /// /// Gets or sets the name of the service. /// /// The name of the service. public string ServiceName { get; set; } /// /// Gets or sets the external channel identifier. /// /// The external channel identifier. public string ExternalChannelId { get; set; } /// /// ChannelName of the recording. /// public string ChannelName { get; set; } /// /// Gets or sets the program identifier. /// /// The program identifier. public string ProgramId { get; set; } /// /// Gets or sets the external program identifier. /// /// The external program identifier. public string ExternalProgramId { get; set; } /// /// Name of the recording. /// public string Name { get; set; } /// /// Description of the recording. /// public string Overview { get; set; } /// /// The start date of the recording, in UTC. /// public DateTime StartDate { get; set; } /// /// The end date of the recording, in UTC. /// public DateTime EndDate { get; set; } /// /// 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 priority. /// /// The priority. public int Priority { get; set; } /// /// Gets or sets the pre padding seconds. /// /// The pre padding seconds. public int PrePaddingSeconds { get; set; } /// /// Gets or sets the post padding seconds. /// /// The post padding seconds. public int PostPaddingSeconds { get; set; } /// /// Gets or sets a value indicating whether this instance is pre padding required. /// /// true if this instance is pre padding required; otherwise, false. public bool IsPrePaddingRequired { get; set; } /// /// Gets or sets a value indicating whether this instance is post padding required. /// /// true if this instance is post padding required; otherwise, false. public bool IsPostPaddingRequired { 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(); } public event PropertyChangedEventHandler PropertyChanged; } }