RecordingInfo.cs 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. using System.Collections.Generic;
  5. using MediaBrowser.Model.LiveTv;
  6. namespace MediaBrowser.Controller.LiveTv
  7. {
  8. public class RecordingInfo
  9. {
  10. /// <summary>
  11. /// Id of the recording.
  12. /// </summary>
  13. public string Id { get; set; }
  14. /// <summary>
  15. /// Gets or sets the series timer identifier.
  16. /// </summary>
  17. /// <value>The series timer identifier.</value>
  18. public string SeriesTimerId { get; set; }
  19. /// <summary>
  20. /// Gets or sets the timer identifier.
  21. /// </summary>
  22. /// <value>The timer identifier.</value>
  23. public string TimerId { get; set; }
  24. /// <summary>
  25. /// ChannelId of the recording.
  26. /// </summary>
  27. public string ChannelId { get; set; }
  28. /// <summary>
  29. /// Gets or sets the type of the channel.
  30. /// </summary>
  31. /// <value>The type of the channel.</value>
  32. public ChannelType ChannelType { get; set; }
  33. /// <summary>
  34. /// Name of the recording.
  35. /// </summary>
  36. public string Name { get; set; }
  37. /// <summary>
  38. /// Gets or sets the path.
  39. /// </summary>
  40. /// <value>The path.</value>
  41. public string Path { get; set; }
  42. /// <summary>
  43. /// Gets or sets the URL.
  44. /// </summary>
  45. /// <value>The URL.</value>
  46. public string Url { get; set; }
  47. /// <summary>
  48. /// Gets or sets the overview.
  49. /// </summary>
  50. /// <value>The overview.</value>
  51. public string Overview { get; set; }
  52. /// <summary>
  53. /// The start date of the recording, in UTC.
  54. /// </summary>
  55. public DateTime StartDate { get; set; }
  56. /// <summary>
  57. /// The end date of the recording, in UTC.
  58. /// </summary>
  59. public DateTime EndDate { get; set; }
  60. /// <summary>
  61. /// Gets or sets the program identifier.
  62. /// </summary>
  63. /// <value>The program identifier.</value>
  64. public string ProgramId { get; set; }
  65. /// <summary>
  66. /// Gets or sets the status.
  67. /// </summary>
  68. /// <value>The status.</value>
  69. public RecordingStatus Status { get; set; }
  70. /// <summary>
  71. /// Genre of the program.
  72. /// </summary>
  73. public List<string> Genres { get; set; }
  74. /// <summary>
  75. /// Gets or sets a value indicating whether this instance is repeat.
  76. /// </summary>
  77. /// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value>
  78. public bool IsRepeat { get; set; }
  79. /// <summary>
  80. /// Gets or sets the episode title.
  81. /// </summary>
  82. /// <value>The episode title.</value>
  83. public string EpisodeTitle { get; set; }
  84. /// <summary>
  85. /// Gets or sets a value indicating whether this instance is hd.
  86. /// </summary>
  87. /// <value><c>true</c> if this instance is hd; otherwise, <c>false</c>.</value>
  88. public bool? IsHD { get; set; }
  89. /// <summary>
  90. /// Gets or sets the audio.
  91. /// </summary>
  92. /// <value>The audio.</value>
  93. public ProgramAudio? Audio { get; set; }
  94. /// <summary>
  95. /// Gets or sets the original air date.
  96. /// </summary>
  97. /// <value>The original air date.</value>
  98. public DateTime? OriginalAirDate { get; set; }
  99. /// <summary>
  100. /// Gets or sets a value indicating whether this instance is movie.
  101. /// </summary>
  102. /// <value><c>true</c> if this instance is movie; otherwise, <c>false</c>.</value>
  103. public bool IsMovie { get; set; }
  104. /// <summary>
  105. /// Gets or sets a value indicating whether this instance is sports.
  106. /// </summary>
  107. /// <value><c>true</c> if this instance is sports; otherwise, <c>false</c>.</value>
  108. public bool IsSports { get; set; }
  109. /// <summary>
  110. /// Gets or sets a value indicating whether this instance is series.
  111. /// </summary>
  112. /// <value><c>true</c> if this instance is series; otherwise, <c>false</c>.</value>
  113. public bool IsSeries { get; set; }
  114. /// <summary>
  115. /// Gets or sets a value indicating whether this instance is live.
  116. /// </summary>
  117. /// <value><c>true</c> if this instance is live; otherwise, <c>false</c>.</value>
  118. public bool IsLive { get; set; }
  119. /// <summary>
  120. /// Gets or sets a value indicating whether this instance is news.
  121. /// </summary>
  122. /// <value><c>true</c> if this instance is news; otherwise, <c>false</c>.</value>
  123. public bool IsNews { get; set; }
  124. /// <summary>
  125. /// Gets or sets a value indicating whether this instance is kids.
  126. /// </summary>
  127. /// <value><c>true</c> if this instance is kids; otherwise, <c>false</c>.</value>
  128. public bool IsKids { get; set; }
  129. /// <summary>
  130. /// Gets or sets a value indicating whether this instance is premiere.
  131. /// </summary>
  132. /// <value><c>true</c> if this instance is premiere; otherwise, <c>false</c>.</value>
  133. public bool IsPremiere { get; set; }
  134. /// <summary>
  135. /// Gets or sets the official rating.
  136. /// </summary>
  137. /// <value>The official rating.</value>
  138. public string OfficialRating { get; set; }
  139. /// <summary>
  140. /// Gets or sets the community rating.
  141. /// </summary>
  142. /// <value>The community rating.</value>
  143. public float? CommunityRating { get; set; }
  144. /// <summary>
  145. /// Supply the image path if it can be accessed directly from the file system.
  146. /// </summary>
  147. /// <value>The image path.</value>
  148. public string ImagePath { get; set; }
  149. /// <summary>
  150. /// Supply the image url if it can be downloaded.
  151. /// </summary>
  152. /// <value>The image URL.</value>
  153. public string ImageUrl { get; set; }
  154. /// <summary>
  155. /// Gets or sets a value indicating whether this instance has image.
  156. /// </summary>
  157. /// <value><c>null</c> if [has image] contains no value, <c>true</c> if [has image]; otherwise, <c>false</c>.</value>
  158. public bool? HasImage { get; set; }
  159. /// <summary>
  160. /// Gets or sets the show identifier.
  161. /// </summary>
  162. /// <value>The show identifier.</value>
  163. public string ShowId { get; set; }
  164. /// <summary>
  165. /// Gets or sets the date last updated.
  166. /// </summary>
  167. /// <value>The date last updated.</value>
  168. public DateTime DateLastUpdated { get; set; }
  169. public RecordingInfo()
  170. {
  171. Genres = new List<string>();
  172. }
  173. }
  174. }