LatestItemsQuery.cs 2.8 KB

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