ProgramInfoDto.cs 6.7 KB

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