mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-16 05:36:52 +01:00
28 lines
1.1 KiB
C#
28 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
namespace MediaBrowser.Controller.Library;
|
|
|
|
/// <summary>
|
|
/// Provides similar items from the local library for a specific item type.
|
|
/// Returns fully resolved BaseItems directly - no additional resolution needed.
|
|
/// </summary>
|
|
/// <typeparam name="TItemType">The type of item this provider handles.</typeparam>
|
|
public interface ILocalSimilarItemsProvider<TItemType> : ISimilarItemsProvider
|
|
where TItemType : BaseItem
|
|
{
|
|
/// <summary>
|
|
/// Gets similar items from the local library.
|
|
/// </summary>
|
|
/// <param name="item">The source item to find similar items for.</param>
|
|
/// <param name="query">The query options (user, limit, exclusions, etc.).</param>
|
|
/// <param name="cancellationToken">Cancellation token.</param>
|
|
/// <returns>The list of similar items from the library.</returns>
|
|
Task<IReadOnlyList<BaseItem>> GetSimilarItemsAsync(
|
|
TItemType item,
|
|
SimilarItemsQuery query,
|
|
CancellationToken cancellationToken);
|
|
}
|