RecordingInfo.cs 6.7 KB

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