jellyfin/MediaBrowser.Controller/Library/IMetadataSaver.cs

35 lines
1.1 KiB
C#
Raw Normal View History

2014-02-07 03:10:13 +00:00
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Providers;
2013-06-09 16:23:06 +00:00
using System.Threading;
namespace MediaBrowser.Controller.Library
{
/// <summary>
/// Interface IMetadataSaver
/// </summary>
public interface IMetadataSaver
{
2014-02-02 13:36:31 +00:00
/// <summary>
/// Gets the name.
/// </summary>
/// <value>The name.</value>
string Name { get; }
2013-06-09 16:23:06 +00:00
/// <summary>
/// Determines whether [is enabled for] [the specified item].
2013-06-09 16:23:06 +00:00
/// </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>
2014-02-02 13:36:31 +00:00
bool IsEnabledFor(IHasMetadata item, ItemUpdateType updateType);
2013-06-09 16:23:06 +00:00
/// <summary>
/// Saves the specified item.
/// </summary>
/// <param name="item">The item.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
2014-02-02 13:36:31 +00:00
void Save(IHasMetadata item, CancellationToken cancellationToken);
2013-06-09 16:23:06 +00:00
}
}