2
0

LiveTvChannelQuery.cs 3.9 KB

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