ProgramInfoDto.cs 3.3 KB

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