SearchQuery.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. 
  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 string 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[] IncludeItemTypes { get; set; }
  32. public string ParentId { get; set; }
  33. public bool? IsMovie { get; set; }
  34. public bool? IsSeries { get; set; }
  35. public bool? IsNews { get; set; }
  36. public bool? IsKids { get; set; }
  37. public bool? IsSports { get; set; }
  38. public SearchQuery()
  39. {
  40. IncludeArtists = true;
  41. IncludeGenres = true;
  42. IncludeMedia = true;
  43. IncludePeople = true;
  44. IncludeStudios = true;
  45. IncludeItemTypes = new string[] { };
  46. }
  47. }
  48. }