LiveTvChannelQuery.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. 
  2. namespace MediaBrowser.Model.LiveTv
  3. {
  4. /// <summary>
  5. /// Class ChannelQuery.
  6. /// </summary>
  7. public class LiveTvChannelQuery
  8. {
  9. /// <summary>
  10. /// Gets or sets the type of the channel.
  11. /// </summary>
  12. /// <value>The type of the channel.</value>
  13. public ChannelType? ChannelType { get; set; }
  14. /// <summary>
  15. /// Gets or sets a value indicating whether this instance is favorite.
  16. /// </summary>
  17. /// <value><c>null</c> if [is favorite] contains no value, <c>true</c> if [is favorite]; otherwise, <c>false</c>.</value>
  18. public bool? IsFavorite { get; set; }
  19. /// <summary>
  20. /// Gets or sets a value indicating whether this instance is liked.
  21. /// </summary>
  22. /// <value><c>null</c> if [is liked] contains no value, <c>true</c> if [is liked]; otherwise, <c>false</c>.</value>
  23. public bool? IsLiked { get; set; }
  24. /// <summary>
  25. /// Gets or sets a value indicating whether this instance is disliked.
  26. /// </summary>
  27. /// <value><c>null</c> if [is disliked] contains no value, <c>true</c> if [is disliked]; otherwise, <c>false</c>.</value>
  28. public bool? IsDisliked { get; set; }
  29. /// <summary>
  30. /// Gets or sets a value indicating whether [enable favorite sorting].
  31. /// </summary>
  32. /// <value><c>true</c> if [enable favorite sorting]; otherwise, <c>false</c>.</value>
  33. public bool EnableFavoriteSorting { get; set; }
  34. /// <summary>
  35. /// Gets or sets the user identifier.
  36. /// </summary>
  37. /// <value>The user identifier.</value>
  38. public string UserId { get; set; }
  39. /// <summary>
  40. /// Skips over a given number of items within the results. Use for paging.
  41. /// </summary>
  42. /// <value>The start index.</value>
  43. public int? StartIndex { get; set; }
  44. /// <summary>
  45. /// The maximum number of items to return
  46. /// </summary>
  47. /// <value>The limit.</value>
  48. public int? Limit { get; set; }
  49. /// <summary>
  50. /// Gets or sets a value indicating whether [add current program].
  51. /// </summary>
  52. /// <value><c>true</c> if [add current program]; otherwise, <c>false</c>.</value>
  53. public bool AddCurrentProgram { get; set; }
  54. public bool EnableUserData { get; set; }
  55. /// <summary>
  56. /// Used to specific whether to return news or not
  57. /// </summary>
  58. /// <remarks>If set to null, all programs will be returned</remarks>
  59. public bool? IsNews { get; set; }
  60. /// <summary>
  61. /// Used to specific whether to return movies or not
  62. /// </summary>
  63. /// <remarks>If set to null, all programs will be returned</remarks>
  64. public bool? IsMovie { get; set; }
  65. /// <summary>
  66. /// Gets or sets a value indicating whether this instance is kids.
  67. /// </summary>
  68. /// <value><c>null</c> if [is kids] contains no value, <c>true</c> if [is kids]; otherwise, <c>false</c>.</value>
  69. public bool? IsKids { get; set; }
  70. /// <summary>
  71. /// Gets or sets a value indicating whether this instance is sports.
  72. /// </summary>
  73. /// <value><c>null</c> if [is sports] contains no value, <c>true</c> if [is sports]; otherwise, <c>false</c>.</value>
  74. public bool? IsSports { get; set; }
  75. public bool? IsSeries { get; set; }
  76. public LiveTvChannelQuery()
  77. {
  78. EnableUserData = true;
  79. }
  80. }
  81. }