ProgramInfo.cs 7.1 KB

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