RecordingInfo.cs 6.1 KB

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