SeriesTimerInfoDto.cs 4.6 KB

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