LiveTvChannelQuery.cs 3.8 KB

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