SearchQuery.cs 1.4 KB

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