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