RecordingInfoDto.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. using System;
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.Dto;
  4. using MediaBrowser.Model.Entities;
  5. namespace MediaBrowser.Model.LiveTv
  6. {
  7. public class RecordingInfoDto
  8. {
  9. /// <summary>
  10. /// Id of the recording.
  11. /// </summary>
  12. public string Id { get; set; }
  13. /// <summary>
  14. /// Gets or sets the external identifier.
  15. /// </summary>
  16. /// <value>The external identifier.</value>
  17. public string ExternalId { get; set; }
  18. /// <summary>
  19. /// Gets or sets the program identifier.
  20. /// </summary>
  21. /// <value>The program identifier.</value>
  22. public string ProgramId { get; set; }
  23. /// <summary>
  24. /// ChannelId of the recording.
  25. /// </summary>
  26. public string ChannelId { get; set; }
  27. /// <summary>
  28. /// ChannelName of the recording.
  29. /// </summary>
  30. public string ChannelName { get; set; }
  31. /// <summary>
  32. /// Gets or sets the name of the service.
  33. /// </summary>
  34. /// <value>The name of the service.</value>
  35. public string ServiceName { get; set; }
  36. /// <summary>
  37. /// Name of the recording.
  38. /// </summary>
  39. public string Name { get; set; }
  40. /// <summary>
  41. /// Gets or sets the path.
  42. /// </summary>
  43. /// <value>The path.</value>
  44. public string Path { get; set; }
  45. /// <summary>
  46. /// Gets or sets the URL.
  47. /// </summary>
  48. /// <value>The URL.</value>
  49. public string Url { get; set; }
  50. /// <summary>
  51. /// Overview of the recording.
  52. /// </summary>
  53. public string Overview { get; set; }
  54. /// <summary>
  55. /// The start date of the recording, in UTC.
  56. /// </summary>
  57. public DateTime StartDate { get; set; }
  58. /// <summary>
  59. /// The end date of the recording, in UTC.
  60. /// </summary>
  61. public DateTime EndDate { get; set; }
  62. /// <summary>
  63. /// Gets or sets the status.
  64. /// </summary>
  65. /// <value>The status.</value>
  66. public RecordingStatus Status { get; set; }
  67. /// <summary>
  68. /// Genre of the program.
  69. /// </summary>
  70. public List<string> Genres { get; set; }
  71. /// <summary>
  72. /// Gets or sets a value indicating whether this instance is repeat.
  73. /// </summary>
  74. /// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value>
  75. public bool IsRepeat { get; set; }
  76. /// <summary>
  77. /// Gets or sets the episode title.
  78. /// </summary>
  79. /// <value>The episode title.</value>
  80. public string EpisodeTitle { get; set; }
  81. /// <summary>
  82. /// Gets or sets the duration ms.
  83. /// </summary>
  84. /// <value>The duration ms.</value>
  85. public int DurationMs { get; set; }
  86. /// <summary>
  87. /// Gets or sets the type of the media.
  88. /// </summary>
  89. /// <value>The type of the media.</value>
  90. public string MediaType { get; set; }
  91. /// <summary>
  92. /// Gets or sets the type of the channel.
  93. /// </summary>
  94. /// <value>The type of the channel.</value>
  95. public ChannelType ChannelType { get; set; }
  96. /// <summary>
  97. /// Gets or sets the official rating.
  98. /// </summary>
  99. /// <value>The official rating.</value>
  100. public string OfficialRating { get; set; }
  101. /// <summary>
  102. /// Gets or sets the community rating.
  103. /// </summary>
  104. /// <value>The community rating.</value>
  105. public float? CommunityRating { get; set; }
  106. /// <summary>
  107. /// Gets or sets a value indicating whether this instance is hd.
  108. /// </summary>
  109. /// <value><c>true</c> if this instance is hd; otherwise, <c>false</c>.</value>
  110. public bool? IsHD { get; set; }
  111. /// <summary>
  112. /// Gets or sets the audio.
  113. /// </summary>
  114. /// <value>The audio.</value>
  115. public ProgramAudio? Audio { get; set; }
  116. /// <summary>
  117. /// Gets or sets the image tags.
  118. /// </summary>
  119. /// <value>The image tags.</value>
  120. public Dictionary<ImageType, Guid> ImageTags { get; set; }
  121. /// <summary>
  122. /// Gets or sets the user data.
  123. /// </summary>
  124. /// <value>The user data.</value>
  125. public UserItemDataDto UserData { get; set; }
  126. /// <summary>
  127. /// Gets or sets the type.
  128. /// </summary>
  129. /// <value>The type.</value>
  130. public string Type { get; set; }
  131. public RecordingInfoDto()
  132. {
  133. Genres = new List<string>();
  134. ImageTags = new Dictionary<ImageType, Guid>();
  135. }
  136. }
  137. }