RecordingInfoDto.cs 4.1 KB

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