IMetadataService.cs 1.0 KB

123456789101112131415161718192021222324252627282930
  1. using System.Threading;
  2. using System.Threading.Tasks;
  3. namespace MediaBrowser.Controller.Providers
  4. {
  5. public interface IMetadataService
  6. {
  7. /// <summary>
  8. /// Determines whether this instance can refresh the specified item.
  9. /// </summary>
  10. /// <param name="item">The item.</param>
  11. /// <returns><c>true</c> if this instance can refresh the specified item; otherwise, <c>false</c>.</returns>
  12. bool CanRefresh(IHasMetadata item);
  13. /// <summary>
  14. /// Refreshes the metadata.
  15. /// </summary>
  16. /// <param name="item">The item.</param>
  17. /// <param name="refreshOptions">The options.</param>
  18. /// <param name="cancellationToken">The cancellation token.</param>
  19. /// <returns>Task.</returns>
  20. Task RefreshMetadata(IHasMetadata item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken);
  21. /// <summary>
  22. /// Gets the order.
  23. /// </summary>
  24. /// <value>The order.</value>
  25. int Order { get; }
  26. }
  27. }