ProgramInfoDto.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. using System;
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.Dto;
  4. namespace MediaBrowser.Model.LiveTv
  5. {
  6. public class ProgramInfoDto
  7. {
  8. /// <summary>
  9. /// Id of the program.
  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 channel identifier.
  19. /// </summary>
  20. /// <value>The channel identifier.</value>
  21. public string ChannelId { get; set; }
  22. /// <summary>
  23. /// Gets or sets the community rating.
  24. /// </summary>
  25. /// <value>The community rating.</value>
  26. public float? CommunityRating { get; set; }
  27. /// <summary>
  28. /// Gets or sets the aspect ratio.
  29. /// </summary>
  30. /// <value>The aspect ratio.</value>
  31. public string AspectRatio { get; set; }
  32. /// <summary>
  33. /// Gets or sets the official rating.
  34. /// </summary>
  35. /// <value>The official rating.</value>
  36. public string OfficialRating { get; set; }
  37. /// <summary>
  38. /// Gets or sets the name of the service.
  39. /// </summary>
  40. /// <value>The name of the service.</value>
  41. public string ServiceName { get; set; }
  42. /// <summary>
  43. /// Name of the program
  44. /// </summary>
  45. public string Name { get; set; }
  46. /// <summary>
  47. /// Overview of the recording.
  48. /// </summary>
  49. public string Overview { get; set; }
  50. /// <summary>
  51. /// The start date of the program, in UTC.
  52. /// </summary>
  53. public DateTime StartDate { get; set; }
  54. /// <summary>
  55. /// The end date of the program, in UTC.
  56. /// </summary>
  57. public DateTime EndDate { get; set; }
  58. /// <summary>
  59. /// Genre of the program.
  60. /// </summary>
  61. public List<string> Genres { get; set; }
  62. /// <summary>
  63. /// Gets or sets a value indicating whether this instance is hd.
  64. /// </summary>
  65. /// <value><c>true</c> if this instance is hd; otherwise, <c>false</c>.</value>
  66. public bool? IsHD { get; set; }
  67. /// <summary>
  68. /// Gets or sets the audio.
  69. /// </summary>
  70. /// <value>The audio.</value>
  71. public ProgramAudio? Audio { get; set; }
  72. /// <summary>
  73. /// Gets or sets the original air date.
  74. /// </summary>
  75. /// <value>The original air date.</value>
  76. public DateTime? OriginalAirDate { get; set; }
  77. /// <summary>
  78. /// Gets or sets a value indicating whether this instance is repeat.
  79. /// </summary>
  80. /// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value>
  81. public bool IsRepeat { get; set; }
  82. /// <summary>
  83. /// Gets or sets the episode title.
  84. /// </summary>
  85. /// <value>The episode title.</value>
  86. public string EpisodeTitle { get; set; }
  87. /// <summary>
  88. /// Gets or sets the user data.
  89. /// </summary>
  90. /// <value>The user data.</value>
  91. public UserItemDataDto UserData { get; set; }
  92. public ProgramInfoDto()
  93. {
  94. Genres = new List<string>();
  95. }
  96. }
  97. public enum ProgramAudio
  98. {
  99. Unspecified,
  100. Mono,
  101. Stereo,
  102. Dolby,
  103. DolbyDigital,
  104. Thx
  105. }
  106. }