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