2
0

SearchQuery.cs 1.8 KB

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