ProgramInfoDto.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 recording identifier.
  23. /// </summary>
  24. /// <value>The recording identifier.</value>
  25. public string RecordingId { get; set; }
  26. /// <summary>
  27. /// Gets or sets the official rating.
  28. /// </summary>
  29. /// <value>The official rating.</value>
  30. public string OfficialRating { 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 program
  38. /// </summary>
  39. public string Name { get; set; }
  40. /// <summary>
  41. /// Description of the progam.
  42. /// </summary>
  43. public string Description { get; set; }
  44. /// <summary>
  45. /// The start date of the program, in UTC.
  46. /// </summary>
  47. public DateTime StartDate { get; set; }
  48. /// <summary>
  49. /// The end date of the program, in UTC.
  50. /// </summary>
  51. public DateTime EndDate { get; set; }
  52. /// <summary>
  53. /// Genre of the program.
  54. /// </summary>
  55. public List<string> Genres { get; set; }
  56. /// <summary>
  57. /// Gets or sets the quality.
  58. /// </summary>
  59. /// <value>The quality.</value>
  60. public ProgramVideoQuality Quality { get; set; }
  61. /// <summary>
  62. /// Gets or sets the audio.
  63. /// </summary>
  64. /// <value>The audio.</value>
  65. public ProgramAudio Audio { get; set; }
  66. /// <summary>
  67. /// Gets or sets the original air date.
  68. /// </summary>
  69. /// <value>The original air date.</value>
  70. public DateTime? OriginalAirDate { get; set; }
  71. public ProgramInfoDto()
  72. {
  73. Genres = new List<string>();
  74. }
  75. }
  76. public enum ProgramVideoQuality
  77. {
  78. StandardDefinition,
  79. HighDefinition
  80. }
  81. public enum ProgramAudio
  82. {
  83. Stereo
  84. }
  85. }