SearchQuery.cs 2.0 KB

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