ProgramInfo.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. using MediaBrowser.Model.LiveTv;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.Controller.LiveTv
  5. {
  6. public class ProgramInfo
  7. {
  8. /// <summary>
  9. /// Id of the program.
  10. /// </summary>
  11. public string Id { get; set; }
  12. /// <summary>
  13. /// Gets or sets the channel identifier.
  14. /// </summary>
  15. /// <value>The channel identifier.</value>
  16. public string ChannelId { get; set; }
  17. /// <summary>
  18. /// Gets or sets the name of the channel.
  19. /// </summary>
  20. /// <value>The name of the channel.</value>
  21. public string ChannelName { get; set; }
  22. /// <summary>
  23. /// Name of the program
  24. /// </summary>
  25. public string Name { 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 overview.
  33. /// </summary>
  34. /// <value>The overview.</value>
  35. public string Overview { get; set; }
  36. /// <summary>
  37. /// The start date of the program, in UTC.
  38. /// </summary>
  39. public DateTime StartDate { get; set; }
  40. /// <summary>
  41. /// The end date of the program, in UTC.
  42. /// </summary>
  43. public DateTime EndDate { get; set; }
  44. /// <summary>
  45. /// Gets or sets the aspect ratio.
  46. /// </summary>
  47. /// <value>The aspect ratio.</value>
  48. public string AspectRatio { get; set; }
  49. /// <summary>
  50. /// Genre of the program.
  51. /// </summary>
  52. public List<string> Genres { get; set; }
  53. /// <summary>
  54. /// Gets or sets the original air date.
  55. /// </summary>
  56. /// <value>The original air date.</value>
  57. public DateTime? OriginalAirDate { get; set; }
  58. /// <summary>
  59. /// Gets or sets a value indicating whether this instance is hd.
  60. /// </summary>
  61. /// <value><c>true</c> if this instance is hd; otherwise, <c>false</c>.</value>
  62. public bool? IsHD { get; set; }
  63. /// <summary>
  64. /// Gets or sets the audio.
  65. /// </summary>
  66. /// <value>The audio.</value>
  67. public ProgramAudio? Audio { get; set; }
  68. /// <summary>
  69. /// Gets or sets the community rating.
  70. /// </summary>
  71. /// <value>The community rating.</value>
  72. public float? CommunityRating { get; set; }
  73. /// <summary>
  74. /// Gets or sets a value indicating whether this instance is repeat.
  75. /// </summary>
  76. /// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value>
  77. public bool IsRepeat { get; set; }
  78. /// <summary>
  79. /// Gets or sets the episode title.
  80. /// </summary>
  81. /// <value>The episode title.</value>
  82. public string EpisodeTitle { get; set; }
  83. /// <summary>
  84. /// Set this value to true or false if it is known via program info whether there is an image or not.
  85. /// Leave it null if the only way to determine is by requesting the image and handling the failure.
  86. /// </summary>
  87. public bool? HasImage { get; set; }
  88. public ProgramInfo()
  89. {
  90. Genres = new List<string>();
  91. }
  92. }
  93. }