ProgramInfo.cs 7.4 KB

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