2020-08-22 19:56:24 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 20:01:16 +00:00
|
|
|
using System;
|
2018-12-27 23:27:57 +00:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
2019-01-13 19:25:32 +00:00
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
using MediaBrowser.Controller.Library;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
{
|
|
|
|
public interface IMetadataService
|
|
|
|
{
|
2021-05-11 11:55:46 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Gets the order.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The order.</value>
|
|
|
|
int Order { get; }
|
|
|
|
|
2018-12-27 23:27:57 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Determines whether this instance can refresh the specified item.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="item">The item.</param>
|
2020-03-09 14:05:03 +00:00
|
|
|
/// <returns><c>true</c> if this instance can refresh the specified item.</returns>
|
2018-12-27 23:27:57 +00:00
|
|
|
bool CanRefresh(BaseItem item);
|
2020-03-09 14:05:03 +00:00
|
|
|
|
2021-12-20 23:24:07 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Determines whether this instance primarily targets the specified type.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="type">The type.</param>
|
|
|
|
/// <returns><c>true</c> if this instance primarily targets the specified type.</returns>
|
2018-12-27 23:27:57 +00: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);
|
|
|
|
}
|
|
|
|
}
|