2
0

ChannelQuery.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. /// <summary>
  28. /// Gets or sets a value indicating whether this instance is favorite.
  29. /// </summary>
  30. /// <value><c>null</c> if [is favorite] contains no value, <c>true</c> if [is favorite]; otherwise, <c>false</c>.</value>
  31. public bool? IsFavorite { get; set; }
  32. }
  33. public class AllChannelMediaQuery
  34. {
  35. /// <summary>
  36. /// Gets or sets the channel ids.
  37. /// </summary>
  38. /// <value>The channel ids.</value>
  39. public string[] ChannelIds { get; set; }
  40. /// <summary>
  41. /// Gets or sets the user identifier.
  42. /// </summary>
  43. /// <value>The user identifier.</value>
  44. public string UserId { get; set; }
  45. /// <summary>
  46. /// Skips over a given number of items within the results. Use for paging.
  47. /// </summary>
  48. /// <value>The start index.</value>
  49. public int? StartIndex { get; set; }
  50. /// <summary>
  51. /// The maximum number of items to return
  52. /// </summary>
  53. /// <value>The limit.</value>
  54. public int? Limit { get; set; }
  55. /// <summary>
  56. /// Gets or sets the content types.
  57. /// </summary>
  58. /// <value>The content types.</value>
  59. public ChannelMediaContentType[] ContentTypes { get; set; }
  60. public AllChannelMediaQuery()
  61. {
  62. ChannelIds = new string[] { };
  63. ContentTypes = new ChannelMediaContentType[] { };
  64. Filters = new ItemFilter[] { };
  65. Fields = new List<ItemFields>();
  66. }
  67. public ItemFilter[] Filters { get; set; }
  68. public List<ItemFields> Fields { get; set; }
  69. }
  70. }