RecordingInfoDto.cs 7.7 KB

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