LiveTvChannelQuery.cs 3.8 KB

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