ProgramInfo.cs 6.8 KB

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