IExternalId.cs 962 B

12345678910111213141516171819202122232425
  1. using MediaBrowser.Model.Entities;
  2. namespace MediaBrowser.Controller.Providers
  3. {
  4. /// <summary>Represents and identifier for an external provider.</summary>
  5. public interface IExternalId
  6. {
  7. /// <summary>Gets the name used to identify this provider</summary>
  8. string Name { get; }
  9. /// <summary>Gets the unique key to distinguish this provider/type pair. This should be unique across providers.</summary>
  10. string Key { get; }
  11. /// <summary>Gets the specific media type for this id.</summary>
  12. ExternalIdMediaType Type { get; }
  13. /// <summary>Gets the url format string for this id.</summary>
  14. string UrlFormatString { get; }
  15. /// <summary>Determines whether this id supports a given item type.</summary>
  16. /// <param name="item">The item.</param>
  17. /// <returns>True if this item is supported, otherwise false.</returns>
  18. bool Supports(IHasProviderIds item);
  19. }
  20. }