LiveTvChannelQuery.cs 3.9 KB

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