aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Library/SearchProviderQuery.cs
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2026-05-03 23:33:56 +0200
committerShadowghost <Ghost_of_Stone@web.de>2026-05-04 01:55:07 +0200
commit07a802d8fa93460c9f2a7f42da7a1f14a893a322 (patch)
tree61b6cf30ba21f34ebd98f9f5a7ed296a81c75f0a /MediaBrowser.Controller/Library/SearchProviderQuery.cs
parent622947e37425f3620432995cde5d4a0809d91694 (diff)
Implement search providers
Diffstat (limited to 'MediaBrowser.Controller/Library/SearchProviderQuery.cs')
-rw-r--r--MediaBrowser.Controller/Library/SearchProviderQuery.cs45
1 files changed, 45 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Library/SearchProviderQuery.cs b/MediaBrowser.Controller/Library/SearchProviderQuery.cs
new file mode 100644
index 0000000000..845588c872
--- /dev/null
+++ b/MediaBrowser.Controller/Library/SearchProviderQuery.cs
@@ -0,0 +1,45 @@
+using System;
+using Jellyfin.Data.Enums;
+
+namespace MediaBrowser.Controller.Library;
+
+/// <summary>
+/// Query object for search providers.
+/// </summary>
+public class SearchProviderQuery
+{
+ /// <summary>
+ /// Gets the search term.
+ /// </summary>
+ public required string SearchTerm { get; init; }
+
+ /// <summary>
+ /// Gets the user ID for user-specific searches.
+ /// </summary>
+ public Guid? UserId { get; init; }
+
+ /// <summary>
+ /// Gets the item types to include in the search.
+ /// </summary>
+ public BaseItemKind[] IncludeItemTypes { get; init; } = [];
+
+ /// <summary>
+ /// Gets the item types to exclude from the search.
+ /// </summary>
+ public BaseItemKind[] ExcludeItemTypes { get; init; } = [];
+
+ /// <summary>
+ /// Gets the media types to include in the search.
+ /// </summary>
+ public MediaType[] MediaTypes { get; init; } = [];
+
+ /// <summary>
+ /// Gets the maximum number of results to return.
+ /// </summary>
+ public int? Limit { get; init; }
+
+ /// <summary>
+ /// Gets the parent ID to scope the search.
+ /// </summary>
+ public Guid? ParentId { get; init; }
+}