mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
26 lines
992 B
C#
26 lines
992 B
C#
using MediaBrowser.Controller.Entities;
|
|
using MediaBrowser.Model.Providers;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
{
|
|
public interface IRemoteMetadataProvider : IMetadataProvider
|
|
{
|
|
}
|
|
|
|
public interface IRemoteMetadataProvider<TItemType, in TLookupInfoType> : IMetadataProvider<TItemType>, IRemoteMetadataProvider, IRemoteSearchProvider<TLookupInfoType>
|
|
where TItemType : IHasMetadata, IHasLookupInfo<TLookupInfoType>
|
|
where TLookupInfoType : ItemLookupInfo, new()
|
|
{
|
|
Task<MetadataResult<TItemType>> GetMetadata(TLookupInfoType info, CancellationToken cancellationToken);
|
|
}
|
|
|
|
public interface IRemoteSearchProvider<in TLookupInfoType> : IRemoteSearchProvider
|
|
where TLookupInfoType : ItemLookupInfo
|
|
{
|
|
Task<IEnumerable<RemoteSearchResult>> GetSearchResults(TLookupInfoType searchInfo, CancellationToken cancellationToken);
|
|
}
|
|
}
|