2014-02-07 03:10:13 +00:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
|
using MediaBrowser.Controller.Library;
|
2014-02-04 20:19:29 +00:00
|
|
|
|
using System.Threading;
|
2014-02-02 13:36:31 +00:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
|
{
|
|
|
|
|
public interface ICustomMetadataProvider : IMetadataProvider
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface ICustomMetadataProvider<TItemType> : IMetadataProvider<TItemType>, ICustomMetadataProvider
|
|
|
|
|
where TItemType : IHasMetadata
|
|
|
|
|
{
|
2014-06-09 19:16:14 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Fetches the asynchronous.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
/// <param name="options">The options.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task{ItemUpdateType}.</returns>
|
|
|
|
|
Task<ItemUpdateType> FetchAsync(TItemType item, MetadataRefreshOptions options, CancellationToken cancellationToken);
|
2014-02-02 13:36:31 +00:00
|
|
|
|
}
|
2014-03-01 04:13:22 +00:00
|
|
|
|
|
|
|
|
|
public interface IPreRefreshProvider : ICustomMetadataProvider
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
2014-02-02 13:36:31 +00:00
|
|
|
|
}
|