ProgramInfo.cs 7.2 KB

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