SearchQuery.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #pragma warning disable CS1591
  2. using System;
  3. namespace MediaBrowser.Model.Search
  4. {
  5. public class SearchQuery
  6. {
  7. /// <summary>
  8. /// The user to localize search results for
  9. /// </summary>
  10. /// <value>The user id.</value>
  11. public Guid UserId { get; set; }
  12. /// <summary>
  13. /// Gets or sets the search term.
  14. /// </summary>
  15. /// <value>The search term.</value>
  16. public string SearchTerm { get; set; }
  17. /// <summary>
  18. /// Skips over a given number of items within the results. Use for paging.
  19. /// </summary>
  20. /// <value>The start index.</value>
  21. public int? StartIndex { get; set; }
  22. /// <summary>
  23. /// The maximum number of items to return
  24. /// </summary>
  25. /// <value>The limit.</value>
  26. public int? Limit { get; set; }
  27. public bool IncludePeople { get; set; }
  28. public bool IncludeMedia { get; set; }
  29. public bool IncludeGenres { get; set; }
  30. public bool IncludeStudios { get; set; }
  31. public bool IncludeArtists { get; set; }
  32. public string[] MediaTypes { get; set; }
  33. public string[] IncludeItemTypes { get; set; }
  34. public string[] ExcludeItemTypes { get; set; }
  35. public string ParentId { get; set; }
  36. public bool? IsMovie { get; set; }
  37. public bool? IsSeries { get; set; }
  38. public bool? IsNews { get; set; }
  39. public bool? IsKids { get; set; }
  40. public bool? IsSports { get; set; }
  41. public SearchQuery()
  42. {
  43. IncludeArtists = true;
  44. IncludeGenres = true;
  45. IncludeMedia = true;
  46. IncludePeople = true;
  47. IncludeStudios = true;
  48. MediaTypes = Array.Empty<string>();
  49. IncludeItemTypes = Array.Empty<string>();
  50. ExcludeItemTypes = Array.Empty<string>();
  51. }
  52. }
  53. }