2
0

IMetadataSaver.cs 1.1 KB

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