IMetadataSaver.cs 1015 B

123456789101112131415161718192021222324252627282930313233
  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. /// Supportses the specified item.
  12. /// </summary>
  13. /// <param name="item">The item.</param>
  14. /// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
  15. bool Supports(BaseItem item);
  16. /// <summary>
  17. /// Gets the save path.
  18. /// </summary>
  19. /// <param name="item">The item.</param>
  20. /// <returns>System.String.</returns>
  21. string GetSavePath(BaseItem item);
  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. }