LatestItemsQuery.cs 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. /// Gets or sets the user to localize search results for.
  15. /// </summary>
  16. /// <value>The user id.</value>
  17. public Guid UserId { get; set; }
  18. /// <summary>
  19. /// Gets or sets the parent id.
  20. /// Specify this to localize the search to a specific item or folder. Omit to use the root.
  21. /// </summary>
  22. /// <value>The parent id.</value>
  23. public Guid ParentId { get; set; }
  24. /// <summary>
  25. /// Gets or sets the start index. Used for paging.
  26. /// </summary>
  27. /// <value>The start index.</value>
  28. public int? StartIndex { get; set; }
  29. /// <summary>
  30. /// Gets or sets the maximum number of items to return.
  31. /// </summary>
  32. /// <value>The limit.</value>
  33. public int? Limit { get; set; }
  34. /// <summary>
  35. /// Gets or sets the fields to return within the items, in addition to basic information.
  36. /// </summary>
  37. /// <value>The fields.</value>
  38. public ItemFields[] Fields { get; set; }
  39. /// <summary>
  40. /// Gets or sets the include item types.
  41. /// </summary>
  42. /// <value>The include item types.</value>
  43. public string[] IncludeItemTypes { get; set; }
  44. /// <summary>
  45. /// Gets or sets a value indicating whether this instance is played.
  46. /// </summary>
  47. /// <value><c>null</c> if [is played] contains no value, <c>true</c> if [is played]; otherwise, <c>false</c>.</value>
  48. public bool? IsPlayed { get; set; }
  49. /// <summary>
  50. /// Gets or sets a value indicating whether [group items].
  51. /// </summary>
  52. /// <value><c>true</c> if [group items]; otherwise, <c>false</c>.</value>
  53. public bool GroupItems { get; set; }
  54. /// <summary>
  55. /// Gets or sets a value indicating whether [enable images].
  56. /// </summary>
  57. /// <value><c>null</c> if [enable images] contains no value, <c>true</c> if [enable images]; otherwise, <c>false</c>.</value>
  58. public bool? EnableImages { get; set; }
  59. /// <summary>
  60. /// Gets or sets the image type limit.
  61. /// </summary>
  62. /// <value>The image type limit.</value>
  63. public int? ImageTypeLimit { get; set; }
  64. /// <summary>
  65. /// Gets or sets the enable image types.
  66. /// </summary>
  67. /// <value>The enable image types.</value>
  68. public ImageType[] EnableImageTypes { get; set; }
  69. }
  70. }