2019-01-13 15:01:16 -05:00
|
|
|
using System.Threading;
|
2018-12-27 18:27:57 -05:00
|
|
|
using System.Threading.Tasks;
|
2019-01-13 14:25:32 -05:00
|
|
|
using MediaBrowser.Controller.Entities;
|
2018-12-27 18:27:57 -05:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
{
|
|
|
|
public interface ILocalMetadataProvider : IMetadataProvider
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public interface ILocalMetadataProvider<TItemType> : IMetadataProvider<TItemType>, ILocalMetadataProvider
|
|
|
|
where TItemType : BaseItem
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the metadata.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="info">The information.</param>
|
|
|
|
/// <param name="directoryService">The directory service.</param>
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
2020-03-09 10:05:03 -04:00
|
|
|
/// <returns>Task{MetadataResult{0}}.</returns>
|
|
|
|
Task<MetadataResult<TItemType>> GetMetadata(
|
|
|
|
ItemInfo info,
|
2018-12-27 18:27:57 -05:00
|
|
|
IDirectoryService directoryService,
|
|
|
|
CancellationToken cancellationToken);
|
|
|
|
}
|
|
|
|
}
|