mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 02:49:05 -07:00
21 lines
584 B
C#
21 lines
584 B
C#
using System.Threading.Tasks;
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
{
|
|
public interface IItemIdentityProvider<in TLookupInfo, TIdentity> : IItemIdentityProvider
|
|
where TLookupInfo : ItemLookupInfo
|
|
where TIdentity : IItemIdentity
|
|
{
|
|
Task<TIdentity> FindIdentity(TLookupInfo info);
|
|
}
|
|
|
|
public interface IItemIdentityConverter<TIdentity> : IItemIdentityConverter
|
|
where TIdentity : IItemIdentity
|
|
{
|
|
Task<TIdentity> Convert(TIdentity identity);
|
|
|
|
string SourceType { get; }
|
|
|
|
string ResultType { get; }
|
|
}
|
|
} |