IMetadataSaver.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. using MediaBrowser.Controller.Entities;
  2. using System.Threading;
  3. namespace MediaBrowser.Controller.Library
  4. {
  5. /// <summary>
  6. /// Interface IMetadataSaver
  7. /// </summary>
  8. public interface IMetadataSaver
  9. {
  10. /// <summary>
  11. /// Determines whether [is enabled for] [the specified item].
  12. /// </summary>
  13. /// <param name="item">The item.</param>
  14. /// <param name="updateType">Type of the update.</param>
  15. /// <returns><c>true</c> if [is enabled for] [the specified item]; otherwise, <c>false</c>.</returns>
  16. bool IsEnabledFor(BaseItem item, ItemUpdateType updateType);
  17. /// <summary>
  18. /// Gets the save path.
  19. /// </summary>
  20. /// <param name="item">The item.</param>
  21. /// <returns>System.String.</returns>
  22. string GetSavePath(BaseItem item);
  23. /// <summary>
  24. /// Saves the specified item.
  25. /// </summary>
  26. /// <param name="item">The item.</param>
  27. /// <param name="cancellationToken">The cancellation token.</param>
  28. /// <returns>Task.</returns>
  29. void Save(BaseItem item, CancellationToken cancellationToken);
  30. }
  31. }