ChannelQuery.cs 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. using MediaBrowser.Model.Entities;
  2. using MediaBrowser.Model.Querying;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.Model.Channels
  5. {
  6. public class ChannelQuery
  7. {
  8. /// <summary>
  9. /// Gets or sets the user identifier.
  10. /// </summary>
  11. /// <value>The user identifier.</value>
  12. public string UserId { get; set; }
  13. /// <summary>
  14. /// Skips over a given number of items within the results. Use for paging.
  15. /// </summary>
  16. /// <value>The start index.</value>
  17. public int? StartIndex { get; set; }
  18. /// <summary>
  19. /// The maximum number of items to return
  20. /// </summary>
  21. /// <value>The limit.</value>
  22. public int? Limit { get; set; }
  23. /// <summary>
  24. /// Gets or sets a value indicating whether [supports latest items].
  25. /// </summary>
  26. /// <value><c>true</c> if [supports latest items]; otherwise, <c>false</c>.</value>
  27. public bool? SupportsLatestItems { get; set; }
  28. /// <summary>
  29. /// Gets or sets a value indicating whether this instance is favorite.
  30. /// </summary>
  31. /// <value><c>null</c> if [is favorite] contains no value, <c>true</c> if [is favorite]; otherwise, <c>false</c>.</value>
  32. public bool? IsFavorite { get; set; }
  33. }
  34. public class AllChannelMediaQuery
  35. {
  36. /// <summary>
  37. /// Gets or sets the channel ids.
  38. /// </summary>
  39. /// <value>The channel ids.</value>
  40. public string[] ChannelIds { get; set; }
  41. /// <summary>
  42. /// Gets or sets the user identifier.
  43. /// </summary>
  44. /// <value>The user identifier.</value>
  45. public string UserId { get; set; }
  46. /// <summary>
  47. /// Skips over a given number of items within the results. Use for paging.
  48. /// </summary>
  49. /// <value>The start index.</value>
  50. public int? StartIndex { get; set; }
  51. /// <summary>
  52. /// The maximum number of items to return
  53. /// </summary>
  54. /// <value>The limit.</value>
  55. public int? Limit { get; set; }
  56. /// <summary>
  57. /// Gets or sets the content types.
  58. /// </summary>
  59. /// <value>The content types.</value>
  60. public ChannelMediaContentType[] ContentTypes { get; set; }
  61. /// <summary>
  62. /// Gets or sets the extra types.
  63. /// </summary>
  64. /// <value>The extra types.</value>
  65. public ExtraType[] ExtraTypes { get; set; }
  66. public TrailerType[] TrailerTypes { get; set; }
  67. public AllChannelMediaQuery()
  68. {
  69. ChannelIds = new string[] { };
  70. ContentTypes = new ChannelMediaContentType[] { };
  71. ExtraTypes = new ExtraType[] { };
  72. TrailerTypes = new TrailerType[] { };
  73. Filters = new ItemFilter[] { };
  74. Fields = new List<ItemFields>();
  75. }
  76. public ItemFilter[] Filters { get; set; }
  77. public List<ItemFields> Fields { get; set; }
  78. }
  79. }