ProgramInfoDto.cs 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. using System.ComponentModel;
  2. using MediaBrowser.Model.Dto;
  3. using MediaBrowser.Model.Entities;
  4. using System;
  5. using System.Collections.Generic;
  6. namespace MediaBrowser.Model.LiveTv
  7. {
  8. public class ProgramInfoDto : INotifyPropertyChanged
  9. {
  10. /// <summary>
  11. /// Id of the program.
  12. /// </summary>
  13. public string Id { get; set; }
  14. /// <summary>
  15. /// Gets or sets the timer identifier.
  16. /// </summary>
  17. /// <value>The timer identifier.</value>
  18. public string TimerId { get; set; }
  19. /// <summary>
  20. /// Gets or sets the series timer identifier.
  21. /// </summary>
  22. /// <value>The series timer identifier.</value>
  23. public string SeriesTimerId { get; set; }
  24. /// <summary>
  25. /// Gets or sets the external identifier.
  26. /// </summary>
  27. /// <value>The external identifier.</value>
  28. public string ExternalId { get; set; }
  29. /// <summary>
  30. /// Gets or sets the channel identifier.
  31. /// </summary>
  32. /// <value>The channel identifier.</value>
  33. public string ChannelId { get; set; }
  34. /// <summary>
  35. /// Gets or sets the channel primary image tag.
  36. /// </summary>
  37. /// <value>The channel primary image tag.</value>
  38. public Guid? ChannelPrimaryImageTag { get; set; }
  39. /// <summary>
  40. /// Gets or sets the name of the channel.
  41. /// </summary>
  42. /// <value>The name of the channel.</value>
  43. public string ChannelName { get; set; }
  44. /// <summary>
  45. /// Gets or sets the community rating.
  46. /// </summary>
  47. /// <value>The community rating.</value>
  48. public float? CommunityRating { get; set; }
  49. /// <summary>
  50. /// Gets or sets the official rating.
  51. /// </summary>
  52. /// <value>The official rating.</value>
  53. public string OfficialRating { get; set; }
  54. /// <summary>
  55. /// Gets or sets the name of the service.
  56. /// </summary>
  57. /// <value>The name of the service.</value>
  58. public string ServiceName { get; set; }
  59. /// <summary>
  60. /// Name of the program
  61. /// </summary>
  62. public string Name { get; set; }
  63. /// <summary>
  64. /// Overview of the recording.
  65. /// </summary>
  66. public string Overview { get; set; }
  67. /// <summary>
  68. /// The start date of the program, in UTC.
  69. /// </summary>
  70. public DateTime StartDate { get; set; }
  71. /// <summary>
  72. /// The end date of the program, in UTC.
  73. /// </summary>
  74. public DateTime EndDate { get; set; }
  75. /// <summary>
  76. /// Genre of the program.
  77. /// </summary>
  78. public List<string> Genres { get; set; }
  79. /// <summary>
  80. /// Gets or sets a value indicating whether this instance is hd.
  81. /// </summary>
  82. /// <value><c>true</c> if this instance is hd; otherwise, <c>false</c>.</value>
  83. public bool? IsHD { get; set; }
  84. /// <summary>
  85. /// Gets or sets the audio.
  86. /// </summary>
  87. /// <value>The audio.</value>
  88. public ProgramAudio? Audio { get; set; }
  89. /// <summary>
  90. /// Gets or sets the original air date.
  91. /// </summary>
  92. /// <value>The original air date.</value>
  93. public DateTime? OriginalAirDate { get; set; }
  94. /// <summary>
  95. /// Gets or sets a value indicating whether this instance is repeat.
  96. /// </summary>
  97. /// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value>
  98. public bool IsRepeat { get; set; }
  99. /// <summary>
  100. /// Gets or sets the episode title.
  101. /// </summary>
  102. /// <value>The episode title.</value>
  103. public string EpisodeTitle { get; set; }
  104. /// <summary>
  105. /// Gets or sets the image tags.
  106. /// </summary>
  107. /// <value>The image tags.</value>
  108. public Dictionary<ImageType, Guid> ImageTags { get; set; }
  109. /// <summary>
  110. /// Gets or sets the user data.
  111. /// </summary>
  112. /// <value>The user data.</value>
  113. public UserItemDataDto UserData { get; set; }
  114. /// <summary>
  115. /// Gets or sets a value indicating whether this instance is movie.
  116. /// </summary>
  117. /// <value><c>true</c> if this instance is movie; otherwise, <c>false</c>.</value>
  118. public bool IsMovie { get; set; }
  119. /// <summary>
  120. /// Gets or sets a value indicating whether this instance is sports.
  121. /// </summary>
  122. /// <value><c>true</c> if this instance is sports; otherwise, <c>false</c>.</value>
  123. public bool IsSports { get; set; }
  124. /// <summary>
  125. /// Gets or sets a value indicating whether this instance is series.
  126. /// </summary>
  127. /// <value><c>true</c> if this instance is series; otherwise, <c>false</c>.</value>
  128. public bool IsSeries { get; set; }
  129. /// <summary>
  130. /// Gets or sets a value indicating whether this instance is live.
  131. /// </summary>
  132. /// <value><c>true</c> if this instance is live; otherwise, <c>false</c>.</value>
  133. public bool IsLive { get; set; }
  134. /// <summary>
  135. /// Gets or sets the type.
  136. /// </summary>
  137. /// <value>The type.</value>
  138. public string Type { get; set; }
  139. /// <summary>
  140. /// Gets or sets the run time ticks.
  141. /// </summary>
  142. /// <value>The run time ticks.</value>
  143. public long? RunTimeTicks { get; set; }
  144. /// <summary>
  145. /// Gets or sets a value indicating whether this instance is news.
  146. /// </summary>
  147. /// <value><c>true</c> if this instance is news; otherwise, <c>false</c>.</value>
  148. public bool IsNews { get; set; }
  149. /// <summary>
  150. /// Gets or sets a value indicating whether this instance is kids.
  151. /// </summary>
  152. /// <value><c>true</c> if this instance is kids; otherwise, <c>false</c>.</value>
  153. public bool IsKids { get; set; }
  154. /// <summary>
  155. /// Gets or sets a value indicating whether this instance is premiere.
  156. /// </summary>
  157. /// <value><c>true</c> if this instance is premiere; otherwise, <c>false</c>.</value>
  158. public bool IsPremiere { get; set; }
  159. public ProgramInfoDto()
  160. {
  161. Genres = new List<string>();
  162. ImageTags = new Dictionary<ImageType, Guid>();
  163. }
  164. public event PropertyChangedEventHandler PropertyChanged;
  165. }
  166. public enum ProgramAudio
  167. {
  168. Mono,
  169. Stereo,
  170. Dolby,
  171. DolbyDigital,
  172. Thx
  173. }
  174. }