2021-05-07 00:39:20 +02:00
|
|
|
#nullable disable
|
|
|
|
|
2019-01-13 21:01:16 +01:00
|
|
|
using System.Threading;
|
2019-01-13 20:25:32 +01:00
|
|
|
using MediaBrowser.Controller.Entities;
|
2018-12-28 00:27:57 +01:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Library
|
|
|
|
{
|
|
|
|
/// <summary>
|
2020-06-16 00:37:52 +02:00
|
|
|
/// Interface IMetadataSaver.
|
2018-12-28 00:27:57 +01:00
|
|
|
/// </summary>
|
|
|
|
public interface IMetadataSaver
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the name.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The name.</value>
|
|
|
|
string Name { get; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Determines whether [is enabled for] [the specified item].
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
/// <param name="updateType">Type of the update.</param>
|
|
|
|
/// <returns><c>true</c> if [is enabled for] [the specified item]; otherwise, <c>false</c>.</returns>
|
|
|
|
bool IsEnabledFor(BaseItem item, ItemUpdateType updateType);
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Saves the specified item.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
/// <returns>Task.</returns>
|
|
|
|
void Save(BaseItem item, CancellationToken cancellationToken);
|
|
|
|
}
|
|
|
|
}
|