2019-01-13 15:01:16 -05:00
|
|
|
using System;
|
2018-12-27 18:27:57 -05:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
2019-01-13 14:25:32 -05:00
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
using MediaBrowser.Controller.Library;
|
2018-12-27 18:27:57 -05:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
{
|
|
|
|
public interface IMetadataService
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Determines whether this instance can refresh the specified item.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="item">The item.</param>
|
2020-03-09 10:05:03 -04:00
|
|
|
/// <returns><c>true</c> if this instance can refresh the specified item.</returns>
|
2018-12-27 18:27:57 -05:00
|
|
|
bool CanRefresh(BaseItem item);
|
2020-03-09 10:05:03 -04:00
|
|
|
|
2018-12-27 18:27:57 -05:00
|
|
|
bool CanRefreshPrimary(Type type);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Refreshes the metadata.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
/// <param name="refreshOptions">The options.</param>
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
Task<ItemUpdateType> RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the order.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The order.</value>
|
|
|
|
int Order { get; }
|
|
|
|
}
|
|
|
|
}
|