2013-06-09 09:23:06 -07:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Library
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interface IMetadataSaver
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IMetadataSaver
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2013-06-27 16:01:03 -07:00
|
|
|
|
/// Determines whether [is enabled for] [the specified item].
|
2013-06-09 09:23:06 -07:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
2013-06-27 16:01:03 -07:00
|
|
|
|
/// <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);
|
2013-06-09 09:23:06 -07:00
|
|
|
|
|
2013-06-21 11:50:44 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the save path.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
/// <returns>System.String.</returns>
|
|
|
|
|
string GetSavePath(BaseItem item);
|
|
|
|
|
|
2013-06-09 09:23:06 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Saves the specified item.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task.</returns>
|
2013-06-23 10:48:30 -07:00
|
|
|
|
void Save(BaseItem item, CancellationToken cancellationToken);
|
2013-06-09 09:23:06 -07:00
|
|
|
|
}
|
|
|
|
|
}
|