TimerInfoDto.cs 4.4 KB

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