LatestItemsQuery.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using System;
  2. using MediaBrowser.Model.Entities;
  3. namespace MediaBrowser.Model.Querying
  4. {
  5. public class LatestItemsQuery
  6. {
  7. /// <summary>
  8. /// The user to localize search results for
  9. /// </summary>
  10. /// <value>The user id.</value>
  11. public Guid UserId { get; set; }
  12. /// <summary>
  13. /// Specify this to localize the search to a specific item or folder. Omit to use the root.
  14. /// </summary>
  15. /// <value>The parent id.</value>
  16. public Guid ParentId { get; set; }
  17. /// <summary>
  18. /// Skips over a given number of items within the results. Use for paging.
  19. /// </summary>
  20. /// <value>The start index.</value>
  21. public int? StartIndex { get; set; }
  22. /// <summary>
  23. /// The maximum number of items to return
  24. /// </summary>
  25. /// <value>The limit.</value>
  26. public int? Limit { get; set; }
  27. /// <summary>
  28. /// Fields to return within the items, in addition to basic information
  29. /// </summary>
  30. /// <value>The fields.</value>
  31. public ItemFields[] Fields { get; set; }
  32. /// <summary>
  33. /// Gets or sets the include item types.
  34. /// </summary>
  35. /// <value>The include item types.</value>
  36. public string[] IncludeItemTypes { get; set; }
  37. /// <summary>
  38. /// Gets or sets a value indicating whether this instance is played.
  39. /// </summary>
  40. /// <value><c>null</c> if [is played] contains no value, <c>true</c> if [is played]; otherwise, <c>false</c>.</value>
  41. public bool? IsPlayed { get; set; }
  42. /// <summary>
  43. /// Gets or sets a value indicating whether [group items].
  44. /// </summary>
  45. /// <value><c>true</c> if [group items]; otherwise, <c>false</c>.</value>
  46. public bool GroupItems { get; set; }
  47. /// <summary>
  48. /// Gets or sets a value indicating whether [enable images].
  49. /// </summary>
  50. /// <value><c>null</c> if [enable images] contains no value, <c>true</c> if [enable images]; otherwise, <c>false</c>.</value>
  51. public bool? EnableImages { get; set; }
  52. /// <summary>
  53. /// Gets or sets the image type limit.
  54. /// </summary>
  55. /// <value>The image type limit.</value>
  56. public int? ImageTypeLimit { get; set; }
  57. /// <summary>
  58. /// Gets or sets the enable image types.
  59. /// </summary>
  60. /// <value>The enable image types.</value>
  61. public ImageType[] EnableImageTypes { get; set; }
  62. public LatestItemsQuery()
  63. {
  64. EnableImageTypes = new ImageType[] { };
  65. }
  66. }
  67. }