SearchQuery.cs 1.9 KB

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