LatestItemsQuery.cs 2.7 KB

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