2015-03-13 19:37:19 +00:00
|
|
|
|
using System.Threading.Tasks;
|
2014-05-05 19:53:05 +00:00
|
|
|
|
|
|
|
|
|
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; }
|
|
|
|
|
}
|
|
|
|
|
}
|