jellyfin/MediaBrowser.Controller/Providers/IRemoteMetadataProvider.cs

26 lines
992 B
C#
Raw Normal View History

2015-03-13 12:37:19 -07:00
using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.Providers;
2014-02-18 22:21:03 -07:00
using System.Collections.Generic;
using System.Threading;
2014-01-31 12:55:21 -07:00
using System.Threading.Tasks;
namespace MediaBrowser.Controller.Providers
{
public interface IRemoteMetadataProvider : IMetadataProvider
{
}
public interface IRemoteMetadataProvider<TItemType, in TLookupInfoType> : IMetadataProvider<TItemType>, IRemoteMetadataProvider, IRemoteSearchProvider<TLookupInfoType>
2014-02-06 20:10:13 -07:00
where TItemType : IHasMetadata, IHasLookupInfo<TLookupInfoType>
where TLookupInfoType : ItemLookupInfo, new()
2014-01-31 12:55:21 -07:00
{
2014-02-06 20:10:13 -07:00
Task<MetadataResult<TItemType>> GetMetadata(TLookupInfoType info, CancellationToken cancellationToken);
2014-01-31 12:55:21 -07:00
}
2014-02-18 22:21:03 -07:00
2014-03-01 15:34:27 -07:00
public interface IRemoteSearchProvider<in TLookupInfoType> : IRemoteSearchProvider
where TLookupInfoType : ItemLookupInfo
{
Task<IEnumerable<RemoteSearchResult>> GetSearchResults(TLookupInfoType searchInfo, CancellationToken cancellationToken);
}
2014-01-31 12:55:21 -07:00
}