ChannelQuery.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. using MediaBrowser.Model.Querying;
  2. using System.Collections.Generic;
  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. /// <summary>
  23. /// Gets or sets a value indicating whether [supports latest items].
  24. /// </summary>
  25. /// <value><c>true</c> if [supports latest items]; otherwise, <c>false</c>.</value>
  26. public bool? SupportsLatestItems { get; set; }
  27. }
  28. public class AllChannelMediaQuery
  29. {
  30. /// <summary>
  31. /// Gets or sets the channel ids.
  32. /// </summary>
  33. /// <value>The channel ids.</value>
  34. public string[] ChannelIds { 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. /// <summary>
  51. /// Gets or sets the content types.
  52. /// </summary>
  53. /// <value>The content types.</value>
  54. public ChannelMediaContentType[] ContentTypes { get; set; }
  55. public AllChannelMediaQuery()
  56. {
  57. ChannelIds = new string[] { };
  58. ContentTypes = new ChannelMediaContentType[] { };
  59. Filters = new ItemFilter[] { };
  60. Fields = new List<ItemFields>();
  61. }
  62. public ItemFilter[] Filters { get; set; }
  63. public List<ItemFields> Fields { get; set; }
  64. }
  65. }