ProgramInfoDto.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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 ProgramInfoDto
  8. {
  9. /// <summary>
  10. /// Id of the program.
  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 channel identifier.
  20. /// </summary>
  21. /// <value>The channel identifier.</value>
  22. public string ChannelId { get; set; }
  23. /// <summary>
  24. /// Gets or sets the name of the channel.
  25. /// </summary>
  26. /// <value>The name of the channel.</value>
  27. public string ChannelName { get; set; }
  28. /// <summary>
  29. /// Gets or sets the community rating.
  30. /// </summary>
  31. /// <value>The community rating.</value>
  32. public float? CommunityRating { get; set; }
  33. /// <summary>
  34. /// Gets or sets the aspect ratio.
  35. /// </summary>
  36. /// <value>The aspect ratio.</value>
  37. public string AspectRatio { get; set; }
  38. /// <summary>
  39. /// Gets or sets the official rating.
  40. /// </summary>
  41. /// <value>The official rating.</value>
  42. public string OfficialRating { get; set; }
  43. /// <summary>
  44. /// Gets or sets the name of the service.
  45. /// </summary>
  46. /// <value>The name of the service.</value>
  47. public string ServiceName { get; set; }
  48. /// <summary>
  49. /// Name of the program
  50. /// </summary>
  51. public string Name { get; set; }
  52. /// <summary>
  53. /// Overview of the recording.
  54. /// </summary>
  55. public string Overview { get; set; }
  56. /// <summary>
  57. /// The start date of the program, in UTC.
  58. /// </summary>
  59. public DateTime StartDate { get; set; }
  60. /// <summary>
  61. /// The end date of the program, in UTC.
  62. /// </summary>
  63. public DateTime EndDate { get; set; }
  64. /// <summary>
  65. /// Genre of the program.
  66. /// </summary>
  67. public List<string> Genres { get; set; }
  68. /// <summary>
  69. /// Gets or sets a value indicating whether this instance is hd.
  70. /// </summary>
  71. /// <value><c>true</c> if this instance is hd; otherwise, <c>false</c>.</value>
  72. public bool? IsHD { get; set; }
  73. /// <summary>
  74. /// Gets or sets the audio.
  75. /// </summary>
  76. /// <value>The audio.</value>
  77. public ProgramAudio? Audio { get; set; }
  78. /// <summary>
  79. /// Gets or sets the original air date.
  80. /// </summary>
  81. /// <value>The original air date.</value>
  82. public DateTime? OriginalAirDate { get; set; }
  83. /// <summary>
  84. /// Gets or sets a value indicating whether this instance is repeat.
  85. /// </summary>
  86. /// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value>
  87. public bool IsRepeat { get; set; }
  88. /// <summary>
  89. /// Gets or sets the episode title.
  90. /// </summary>
  91. /// <value>The episode title.</value>
  92. public string EpisodeTitle { get; set; }
  93. /// <summary>
  94. /// Gets or sets the image tags.
  95. /// </summary>
  96. /// <value>The image tags.</value>
  97. public Dictionary<ImageType, Guid> ImageTags { get; set; }
  98. /// <summary>
  99. /// Gets or sets the user data.
  100. /// </summary>
  101. /// <value>The user data.</value>
  102. public UserItemDataDto UserData { get; set; }
  103. /// <summary>
  104. /// Gets or sets a value indicating whether this instance is movie.
  105. /// </summary>
  106. /// <value><c>true</c> if this instance is movie; otherwise, <c>false</c>.</value>
  107. public bool IsMovie { get; set; }
  108. /// <summary>
  109. /// Gets or sets a value indicating whether this instance is sports.
  110. /// </summary>
  111. /// <value><c>true</c> if this instance is sports; otherwise, <c>false</c>.</value>
  112. public bool IsSports { get; set; }
  113. /// <summary>
  114. /// Gets or sets a value indicating whether this instance is series.
  115. /// </summary>
  116. /// <value><c>true</c> if this instance is series; otherwise, <c>false</c>.</value>
  117. public bool IsSeries { get; set; }
  118. /// <summary>
  119. /// Gets or sets the type.
  120. /// </summary>
  121. /// <value>The type.</value>
  122. public string Type { get; set; }
  123. public ProgramInfoDto()
  124. {
  125. Genres = new List<string>();
  126. ImageTags = new Dictionary<ImageType, Guid>();
  127. }
  128. }
  129. public enum ProgramAudio
  130. {
  131. Mono,
  132. Stereo,
  133. Dolby,
  134. DolbyDigital,
  135. Thx
  136. }
  137. }