SearchQuery.cs 2.0 KB

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