2
0

LatestItemsQuery.cs 2.8 KB

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