using System.Threading;
using MediaBrowser.Controller.Entities;
namespace MediaBrowser.Controller.Library
{
    /// 
    /// Interface IMetadataSaver
    /// 
    public interface IMetadataSaver
    {
        /// 
        /// Gets the name.
        /// 
        /// The name.
        string Name { get; }
        /// 
        /// Determines whether [is enabled for] [the specified item].
        /// 
        /// The item.
        /// Type of the update.
        /// true if [is enabled for] [the specified item]; otherwise, false.
        bool IsEnabledFor(BaseItem item, ItemUpdateType updateType);
        /// 
        /// Saves the specified item.
        /// 
        /// The item.
        /// The cancellation token.
        /// Task.
        void Save(BaseItem item, CancellationToken cancellationToken);
    }
}