ProgramInfo.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. /// Supply the image path if it can be accessed directly from the file system
  85. /// </summary>
  86. /// <value>The image path.</value>
  87. public string ImagePath { get; set; }
  88. /// <summary>
  89. /// Supply the image url if it can be downloaded
  90. /// </summary>
  91. /// <value>The image URL.</value>
  92. public string ImageUrl { get; set; }
  93. /// <summary>
  94. /// Gets or sets a value indicating whether this instance is movie.
  95. /// </summary>
  96. /// <value><c>true</c> if this instance is movie; otherwise, <c>false</c>.</value>
  97. public bool IsMovie { get; set; }
  98. /// <summary>
  99. /// Gets or sets a value indicating whether this instance is sports.
  100. /// </summary>
  101. /// <value><c>true</c> if this instance is sports; otherwise, <c>false</c>.</value>
  102. public bool IsSports { get; set; }
  103. /// <summary>
  104. /// Gets or sets a value indicating whether this instance is series.
  105. /// </summary>
  106. /// <value><c>true</c> if this instance is series; otherwise, <c>false</c>.</value>
  107. public bool IsSeries { get; set; }
  108. /// <summary>
  109. /// Gets or sets a value indicating whether this instance is video.
  110. /// </summary>
  111. /// <value><c>true</c> if this instance is video; otherwise, <c>false</c>.</value>
  112. public bool IsVideo { get; set; }
  113. public ProgramInfo()
  114. {
  115. Genres = new List<string>();
  116. }
  117. }
  118. }