IMetadataService.cs 1.1 KB

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