SearchQuery.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 SearchQuery()
  33. {
  34. IncludeArtists = true;
  35. IncludeGenres = true;
  36. IncludeMedia = true;
  37. IncludePeople = true;
  38. IncludeStudios = true;
  39. IncludeItemTypes = new string[] { };
  40. }
  41. }
  42. }