IMetadataService.cs 1.4 KB

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