ProgramInfo.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. /// Name of the program
  19. /// </summary>
  20. public string Name { get; set; }
  21. /// <summary>
  22. /// Gets or sets the official rating.
  23. /// </summary>
  24. /// <value>The official rating.</value>
  25. public string OfficialRating { get; set; }
  26. /// <summary>
  27. /// Gets or sets the overview.
  28. /// </summary>
  29. /// <value>The overview.</value>
  30. public string Overview { get; set; }
  31. /// <summary>
  32. /// The start date of the program, in UTC.
  33. /// </summary>
  34. public DateTime StartDate { get; set; }
  35. /// <summary>
  36. /// The end date of the program, in UTC.
  37. /// </summary>
  38. public DateTime EndDate { get; set; }
  39. /// <summary>
  40. /// Gets or sets the aspect ratio.
  41. /// </summary>
  42. /// <value>The aspect ratio.</value>
  43. public string AspectRatio { get; set; }
  44. /// <summary>
  45. /// Genre of the program.
  46. /// </summary>
  47. public List<string> Genres { get; set; }
  48. /// <summary>
  49. /// Gets or sets the original air date.
  50. /// </summary>
  51. /// <value>The original air date.</value>
  52. public DateTime? OriginalAirDate { get; set; }
  53. /// <summary>
  54. /// Gets or sets a value indicating whether this instance is hd.
  55. /// </summary>
  56. /// <value><c>true</c> if this instance is hd; otherwise, <c>false</c>.</value>
  57. public bool? IsHD { get; set; }
  58. /// <summary>
  59. /// Gets or sets the audio.
  60. /// </summary>
  61. /// <value>The audio.</value>
  62. public ProgramAudio? Audio { get; set; }
  63. /// <summary>
  64. /// Gets or sets the community rating.
  65. /// </summary>
  66. /// <value>The community rating.</value>
  67. public float? CommunityRating { get; set; }
  68. /// <summary>
  69. /// Gets or sets a value indicating whether this instance is repeat.
  70. /// </summary>
  71. /// <value><c>true</c> if this instance is repeat; otherwise, <c>false</c>.</value>
  72. public bool IsRepeat { get; set; }
  73. /// <summary>
  74. /// Gets or sets the episode title.
  75. /// </summary>
  76. /// <value>The episode title.</value>
  77. public string EpisodeTitle { get; set; }
  78. /// <summary>
  79. /// Set this value to true or false if it is known via program info whether there is an image or not.
  80. /// Leave it null if the only way to determine is by requesting the image and handling the failure.
  81. /// </summary>
  82. public bool? HasImage { get; set; }
  83. public ProgramInfo()
  84. {
  85. Genres = new List<string>();
  86. }
  87. }
  88. }