mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-08 16:58:50 +01:00
Implement search providers
This commit is contained in:
45
MediaBrowser.Controller/Library/SearchProviderQuery.cs
Normal file
45
MediaBrowser.Controller/Library/SearchProviderQuery.cs
Normal file
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user