RecordingInfoDto.cs 7.7 KB

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