IMetadataSaver.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. using MediaBrowser.Controller.Entities;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. namespace MediaBrowser.Controller.Library
  5. {
  6. /// <summary>
  7. /// Interface IMetadataSaver
  8. /// </summary>
  9. public interface IMetadataSaver
  10. {
  11. /// <summary>
  12. /// Supportses the specified item.
  13. /// </summary>
  14. /// <param name="item">The item.</param>
  15. /// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
  16. bool Supports(BaseItem item);
  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. Task Save(BaseItem item, CancellationToken cancellationToken);
  30. }
  31. }