SeriesTimerInfoDto.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Diagnostics;
  5. using System.Runtime.Serialization;
  6. using MediaBrowser.Model.Entities;
  7. namespace MediaBrowser.Model.LiveTv
  8. {
  9. [DebuggerDisplay("Name = {Name}")]
  10. public class SeriesTimerInfoDto : INotifyPropertyChanged
  11. {
  12. /// <summary>
  13. /// Id of the recording.
  14. /// </summary>
  15. public string Id { get; set; }
  16. /// <summary>
  17. /// Gets or sets the external identifier.
  18. /// </summary>
  19. /// <value>The external identifier.</value>
  20. public string ExternalId { get; set; }
  21. /// <summary>
  22. /// ChannelId of the recording.
  23. /// </summary>
  24. public string ChannelId { get; set; }
  25. /// <summary>
  26. /// Gets or sets the name of the service.
  27. /// </summary>
  28. /// <value>The name of the service.</value>
  29. public string ServiceName { get; set; }
  30. /// <summary>
  31. /// Gets or sets the external channel identifier.
  32. /// </summary>
  33. /// <value>The external channel identifier.</value>
  34. public string ExternalChannelId { get; set; }
  35. /// <summary>
  36. /// ChannelName of the recording.
  37. /// </summary>
  38. public string ChannelName { get; set; }
  39. /// <summary>
  40. /// Gets or sets the program identifier.
  41. /// </summary>
  42. /// <value>The program identifier.</value>
  43. public string ProgramId { get; set; }
  44. /// <summary>
  45. /// Gets or sets the external program identifier.
  46. /// </summary>
  47. /// <value>The external program identifier.</value>
  48. public string ExternalProgramId { get; set; }
  49. /// <summary>
  50. /// Name of the recording.
  51. /// </summary>
  52. public string Name { get; set; }
  53. /// <summary>
  54. /// Description of the recording.
  55. /// </summary>
  56. public string Overview { get; set; }
  57. /// <summary>
  58. /// The start date of the recording, in UTC.
  59. /// </summary>
  60. public DateTime StartDate { get; set; }
  61. /// <summary>
  62. /// The end date of the recording, in UTC.
  63. /// </summary>
  64. public DateTime EndDate { get; set; }
  65. /// <summary>
  66. /// Gets or sets a value indicating whether [record any time].
  67. /// </summary>
  68. /// <value><c>true</c> if [record any time]; otherwise, <c>false</c>.</value>
  69. public bool RecordAnyTime { get; set; }
  70. /// <summary>
  71. /// Gets or sets a value indicating whether [record any channel].
  72. /// </summary>
  73. /// <value><c>true</c> if [record any channel]; otherwise, <c>false</c>.</value>
  74. public bool RecordAnyChannel { get; set; }
  75. /// <summary>
  76. /// Gets or sets a value indicating whether [record new only].
  77. /// </summary>
  78. /// <value><c>true</c> if [record new only]; otherwise, <c>false</c>.</value>
  79. public bool RecordNewOnly { get; set; }
  80. /// <summary>
  81. /// Gets or sets the days.
  82. /// </summary>
  83. /// <value>The days.</value>
  84. public List<DayOfWeek> Days { get; set; }
  85. /// <summary>
  86. /// Gets or sets the day pattern.
  87. /// </summary>
  88. /// <value>The day pattern.</value>
  89. public DayPattern? DayPattern { get; set; }
  90. /// <summary>
  91. /// Gets or sets the priority.
  92. /// </summary>
  93. /// <value>The priority.</value>
  94. public int Priority { get; set; }
  95. /// <summary>
  96. /// Gets or sets the pre padding seconds.
  97. /// </summary>
  98. /// <value>The pre padding seconds.</value>
  99. public int PrePaddingSeconds { get; set; }
  100. /// <summary>
  101. /// Gets or sets the post padding seconds.
  102. /// </summary>
  103. /// <value>The post padding seconds.</value>
  104. public int PostPaddingSeconds { get; set; }
  105. /// <summary>
  106. /// Gets or sets a value indicating whether this instance is pre padding required.
  107. /// </summary>
  108. /// <value><c>true</c> if this instance is pre padding required; otherwise, <c>false</c>.</value>
  109. public bool IsPrePaddingRequired { get; set; }
  110. /// <summary>
  111. /// Gets or sets a value indicating whether this instance is post padding required.
  112. /// </summary>
  113. /// <value><c>true</c> if this instance is post padding required; otherwise, <c>false</c>.</value>
  114. public bool IsPostPaddingRequired { get; set; }
  115. /// <summary>
  116. /// Gets or sets the image tags.
  117. /// </summary>
  118. /// <value>The image tags.</value>
  119. public Dictionary<ImageType, Guid> ImageTags { get; set; }
  120. /// <summary>
  121. /// Gets a value indicating whether this instance has primary image.
  122. /// </summary>
  123. /// <value><c>true</c> if this instance has primary image; otherwise, <c>false</c>.</value>
  124. [IgnoreDataMember]
  125. public bool HasPrimaryImage
  126. {
  127. get { return ImageTags != null && ImageTags.ContainsKey(ImageType.Primary); }
  128. }
  129. public SeriesTimerInfoDto()
  130. {
  131. ImageTags = new Dictionary<ImageType, Guid>();
  132. Days = new List<DayOfWeek>();
  133. }
  134. public event PropertyChangedEventHandler PropertyChanged;
  135. }
  136. }