SearchQuery.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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[] 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 = new string[] { };
  48. IncludeItemTypes = new string[] { };
  49. ExcludeItemTypes = new string[] { };
  50. }
  51. }
  52. }