ItemsByNameQuery.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. using MediaBrowser.Model.Entities;
  2. namespace MediaBrowser.Model.Querying
  3. {
  4. /// <summary>
  5. /// Class ItemsByNameQuery
  6. /// </summary>
  7. public class ItemsByNameQuery
  8. {
  9. /// <summary>
  10. /// Gets or sets the user id.
  11. /// </summary>
  12. /// <value>The user id.</value>
  13. public string UserId { get; set; }
  14. /// <summary>
  15. /// Gets or sets the start index.
  16. /// </summary>
  17. /// <value>The start index.</value>
  18. public int? StartIndex { get; set; }
  19. /// <summary>
  20. /// Gets or sets the size of the page.
  21. /// </summary>
  22. /// <value>The size of the page.</value>
  23. public int? Limit { get; set; }
  24. /// <summary>
  25. /// Gets or sets a value indicating whether this <see cref="ItemsByNameQuery" /> is recursive.
  26. /// </summary>
  27. /// <value><c>true</c> if recursive; otherwise, <c>false</c>.</value>
  28. public bool Recursive { get; set; }
  29. /// <summary>
  30. /// Gets or sets the sort order.
  31. /// </summary>
  32. /// <value>The sort order.</value>
  33. public SortOrder? SortOrder { get; set; }
  34. /// <summary>
  35. /// Gets or sets the parent id.
  36. /// </summary>
  37. /// <value>The parent id.</value>
  38. public string ParentId { get; set; }
  39. /// <summary>
  40. /// Fields to return within the items, in addition to basic information
  41. /// </summary>
  42. /// <value>The fields.</value>
  43. public ItemFields[] Fields { get; set; }
  44. /// <summary>
  45. /// Gets or sets the exclude item types.
  46. /// </summary>
  47. /// <value>The exclude item types.</value>
  48. public string[] ExcludeItemTypes { get; set; }
  49. /// <summary>
  50. /// Gets or sets the include item types.
  51. /// </summary>
  52. /// <value>The include item types.</value>
  53. public string[] IncludeItemTypes { get; set; }
  54. /// <summary>
  55. /// Gets or sets the media types.
  56. /// </summary>
  57. /// <value>The media types.</value>
  58. public string[] MediaTypes { get; set; }
  59. /// <summary>
  60. /// What to sort the results by
  61. /// </summary>
  62. /// <value>The sort by.</value>
  63. public string[] SortBy { get; set; }
  64. public ImageType[] ImageTypes { get; set; }
  65. /// <summary>
  66. /// Initializes a new instance of the <see cref="ItemsByNameQuery"/> class.
  67. /// </summary>
  68. public ItemsByNameQuery()
  69. {
  70. ImageTypes = new ImageType[] { };
  71. Fields = new ItemFields[] { };
  72. Recursive = true;
  73. MediaTypes = new string[] { };
  74. SortBy = new string[] { };
  75. ExcludeItemTypes = new string[] { };
  76. IncludeItemTypes = new string[] { };
  77. }
  78. }
  79. }