IMetadataSaver.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System.Threading;
  2. using System.Threading.Tasks;
  3. using MediaBrowser.Controller.Entities;
  4. namespace MediaBrowser.Controller.Library
  5. {
  6. /// <summary>
  7. /// Interface IMetadataSaver.
  8. /// </summary>
  9. public interface IMetadataSaver
  10. {
  11. /// <summary>
  12. /// Gets the name.
  13. /// </summary>
  14. /// <value>The name.</value>
  15. string Name { get; }
  16. /// <summary>
  17. /// Determines whether [is enabled for] [the specified item].
  18. /// </summary>
  19. /// <param name="item">The item.</param>
  20. /// <param name="updateType">Type of the update.</param>
  21. /// <returns><c>true</c> if [is enabled for] [the specified item]; otherwise, <c>false</c>.</returns>
  22. bool IsEnabledFor(BaseItem item, ItemUpdateType updateType);
  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>The task object representing the asynchronous operation.</returns>
  29. Task SaveAsync(BaseItem item, CancellationToken cancellationToken);
  30. }
  31. }