TmdbPersonExternalId.cs 764 B

12345678910111213141516171819202122232425262728
  1. using MediaBrowser.Controller.Entities;
  2. using MediaBrowser.Controller.Providers;
  3. using MediaBrowser.Model.Entities;
  4. using MediaBrowser.Model.Providers;
  5. namespace MediaBrowser.Providers.Plugins.Tmdb.People
  6. {
  7. /// <summary>
  8. /// External id for a TMDb person.
  9. /// </summary>
  10. public class TmdbPersonExternalId : IExternalId
  11. {
  12. /// <inheritdoc />
  13. public string ProviderName => TmdbUtils.ProviderName;
  14. /// <inheritdoc />
  15. public string Key => MetadataProvider.Tmdb.ToString();
  16. /// <inheritdoc />
  17. public ExternalIdMediaType? Type => ExternalIdMediaType.Person;
  18. /// <inheritdoc />
  19. public bool Supports(IHasProviderIds item)
  20. {
  21. return item is Person;
  22. }
  23. }
  24. }