ChannelQuery.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using MediaBrowser.Model.Entities;
  2. using MediaBrowser.Model.Querying;
  3. namespace MediaBrowser.Model.Channels
  4. {
  5. public class ChannelQuery
  6. {
  7. /// <summary>
  8. /// Gets or sets the user identifier.
  9. /// </summary>
  10. /// <value>The user identifier.</value>
  11. public string UserId { get; set; }
  12. /// <summary>
  13. /// Skips over a given number of items within the results. Use for paging.
  14. /// </summary>
  15. /// <value>The start index.</value>
  16. public int? StartIndex { get; set; }
  17. /// <summary>
  18. /// The maximum number of items to return
  19. /// </summary>
  20. /// <value>The limit.</value>
  21. public int? Limit { get; set; }
  22. }
  23. public class ChannelItemQuery
  24. {
  25. /// <summary>
  26. /// Gets or sets the channel identifier.
  27. /// </summary>
  28. /// <value>The channel identifier.</value>
  29. public string ChannelId { get; set; }
  30. /// <summary>
  31. /// Gets or sets the category identifier.
  32. /// </summary>
  33. /// <value>The category identifier.</value>
  34. public string CategoryId { get; set; }
  35. /// <summary>
  36. /// Gets or sets the user identifier.
  37. /// </summary>
  38. /// <value>The user identifier.</value>
  39. public string 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. public SortOrder? SortOrder { get; set; }
  51. public string[] SortBy { get; set; }
  52. public ItemFilter[] Filters { get; set; }
  53. public ChannelItemQuery()
  54. {
  55. Filters = new ItemFilter[] { };
  56. SortBy = new string[] { };
  57. }
  58. }
  59. }