jellyfin-server/MediaBrowser.Controller/Library/IMetadataSaver.cs

35 lines
1.2 KiB
C#
Raw Normal View History

using System.Threading;
2022-01-22 22:36:42 +00:00
using System.Threading.Tasks;
using MediaBrowser.Controller.Entities;
2018-12-27 23:27:57 +00:00
namespace MediaBrowser.Controller.Library
{
/// <summary>
/// Interface IMetadataSaver.
2018-12-27 23:27:57 +00: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>
2022-01-22 22:36:42 +00:00
/// <returns>The task object representing the asynchronous operation.</returns>
Task SaveAsync(BaseItem item, CancellationToken cancellationToken);
2018-12-27 23:27:57 +00:00
}
}