LatestItemsQuery.cs 2.7 KB

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