RecordingInfo.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. /// ChannelId of the recording.
  14. /// </summary>
  15. public string ChannelId { get; set; }
  16. /// <summary>
  17. /// ChannelName of the recording.
  18. /// </summary>
  19. public string ChannelName { get; set; }
  20. /// <summary>
  21. /// Gets or sets the type of the channel.
  22. /// </summary>
  23. /// <value>The type of the channel.</value>
  24. public ChannelType ChannelType { get; set; }
  25. /// <summary>
  26. /// Name of the recording.
  27. /// </summary>
  28. public string Name { get; set; }
  29. /// <summary>
  30. /// Gets or sets the path.
  31. /// </summary>
  32. /// <value>The path.</value>
  33. public string Path { get; set; }
  34. /// <summary>
  35. /// Gets or sets the URL.
  36. /// </summary>
  37. /// <value>The URL.</value>
  38. public string Url { get; set; }
  39. /// <summary>
  40. /// Gets or sets the overview.
  41. /// </summary>
  42. /// <value>The overview.</value>
  43. public string Overview { get; set; }
  44. /// <summary>
  45. /// The start date of the recording, in UTC.
  46. /// </summary>
  47. public DateTime StartDate { get; set; }
  48. /// <summary>
  49. /// The end date of the recording, in UTC.
  50. /// </summary>
  51. public DateTime EndDate { get; set; }
  52. /// <summary>
  53. /// Gets or sets the program identifier.
  54. /// </summary>
  55. /// <value>The program identifier.</value>
  56. public string ProgramId { get; set; }
  57. /// <summary>
  58. /// Gets or sets the status.
  59. /// </summary>
  60. /// <value>The status.</value>
  61. public RecordingStatus Status { get; set; }
  62. /// <summary>
  63. /// Genre of the program.
  64. /// </summary>
  65. public List<string> Genres { get; set; }
  66. /// <summary>
  67. /// Gets or sets a value indicating whether this instance is repeat.
  68. /// </summary>
  69. /// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value>
  70. public bool IsRepeat { get; set; }
  71. /// <summary>
  72. /// Gets or sets the episode title.
  73. /// </summary>
  74. /// <value>The episode title.</value>
  75. public string EpisodeTitle { get; set; }
  76. /// <summary>
  77. /// Gets or sets a value indicating whether this instance is hd.
  78. /// </summary>
  79. /// <value><c>true</c> if this instance is hd; otherwise, <c>false</c>.</value>
  80. public bool? IsHD { get; set; }
  81. /// <summary>
  82. /// Gets or sets the audio.
  83. /// </summary>
  84. /// <value>The audio.</value>
  85. public ProgramAudio? Audio { get; set; }
  86. /// <summary>
  87. /// Gets or sets the official rating.
  88. /// </summary>
  89. /// <value>The official rating.</value>
  90. public string OfficialRating { get; set; }
  91. /// <summary>
  92. /// Gets or sets the community rating.
  93. /// </summary>
  94. /// <value>The community rating.</value>
  95. public float? CommunityRating { get; set; }
  96. /// <summary>
  97. /// Set this value to true or false if it is known via recording info whether there is an image or not.
  98. /// Leave it null if the only way to determine is by requesting the image and handling the failure.
  99. /// </summary>
  100. public bool? HasImage { get; set; }
  101. public RecordingInfo()
  102. {
  103. Genres = new List<string>();
  104. }
  105. }
  106. }