LatestItemsQuery.cs 2.7 KB

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