IMetadataService.cs 1.1 KB

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