2015-03-10 19:07:07 -07:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
|
using MediaBrowser.Controller.Library;
|
|
|
|
|
using System.Threading;
|
2014-01-28 11:37:01 -07:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
|
{
|
|
|
|
|
public interface IMetadataService
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines whether this instance can refresh the specified item.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
/// <returns><c>true</c> if this instance can refresh the specified item; otherwise, <c>false</c>.</returns>
|
|
|
|
|
bool CanRefresh(IHasMetadata item);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Refreshes the metadata.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
2014-02-02 06:36:31 -07:00
|
|
|
|
/// <param name="refreshOptions">The options.</param>
|
2014-01-28 11:37:01 -07:00
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
2015-03-10 19:07:07 -07:00
|
|
|
|
Task<ItemUpdateType> RefreshMetadata(IHasMetadata item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken);
|
2014-01-28 11:37:01 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the order.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The order.</value>
|
|
|
|
|
int Order { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|