ItemsByNameQuery.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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 filters.
  46. /// </summary>
  47. /// <value>The filters.</value>
  48. public ItemFilter[] Filters { get; set; }
  49. /// <summary>
  50. /// Gets or sets the exclude item types.
  51. /// </summary>
  52. /// <value>The exclude item types.</value>
  53. public string[] ExcludeItemTypes { get; set; }
  54. /// <summary>
  55. /// Gets or sets the include item types.
  56. /// </summary>
  57. /// <value>The include item types.</value>
  58. public string[] IncludeItemTypes { get; set; }
  59. /// <summary>
  60. /// Gets or sets the media types.
  61. /// </summary>
  62. /// <value>The media types.</value>
  63. public string[] MediaTypes { get; set; }
  64. /// <summary>
  65. /// What to sort the results by
  66. /// </summary>
  67. /// <value>The sort by.</value>
  68. public string[] SortBy { get; set; }
  69. /// <summary>
  70. /// Gets or sets the image types.
  71. /// </summary>
  72. /// <value>The image types.</value>
  73. public ImageType[] ImageTypes { get; set; }
  74. /// <summary>
  75. /// Gets or sets the name starts with or greater.
  76. /// </summary>
  77. /// <value>The name starts with or greater.</value>
  78. public string NameStartsWithOrGreater { get; set; }
  79. /// <summary>
  80. /// Gets or sets the name starts with
  81. /// </summary>
  82. /// <value>The name starts with or greater.</value>
  83. public string NameStartsWith { get; set; }
  84. /// <summary>
  85. /// Gets or sets the name less than.
  86. /// </summary>
  87. /// <value>The name less than.</value>
  88. public string NameLessThan { get; set; }
  89. /// <summary>
  90. /// Gets or sets a value indicating whether this instance is played.
  91. /// </summary>
  92. /// <value><c>null</c> if [is played] contains no value, <c>true</c> if [is played]; otherwise, <c>false</c>.</value>
  93. public bool? IsPlayed { get; set; }
  94. /// <summary>
  95. /// Gets or sets a value indicating whether [enable images].
  96. /// </summary>
  97. /// <value><c>null</c> if [enable images] contains no value, <c>true</c> if [enable images]; otherwise, <c>false</c>.</value>
  98. public bool? EnableImages { get; set; }
  99. /// <summary>
  100. /// Gets or sets the image type limit.
  101. /// </summary>
  102. /// <value>The image type limit.</value>
  103. public int? ImageTypeLimit { get; set; }
  104. /// <summary>
  105. /// Gets or sets the enable image types.
  106. /// </summary>
  107. /// <value>The enable image types.</value>
  108. public ImageType[] EnableImageTypes { get; set; }
  109. /// <summary>
  110. /// Initializes a new instance of the <see cref="ItemsByNameQuery" /> class.
  111. /// </summary>
  112. public ItemsByNameQuery()
  113. {
  114. ImageTypes = new ImageType[] { };
  115. Filters = new ItemFilter[] { };
  116. Fields = new ItemFields[] { };
  117. Recursive = true;
  118. MediaTypes = new string[] { };
  119. SortBy = new string[] { };
  120. ExcludeItemTypes = new string[] { };
  121. IncludeItemTypes = new string[] { };
  122. EnableImageTypes = new ImageType[] { };
  123. }
  124. }
  125. }