ExternalIdInfo.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. namespace MediaBrowser.Model.Providers
  2. {
  3. /// <summary>
  4. /// Represents the external id information for serialization to the client.
  5. /// </summary>
  6. public class ExternalIdInfo
  7. {
  8. /// <summary>
  9. /// Gets or sets the display name of the external id provider (IE: IMDB, MusicBrainz, etc).
  10. /// </summary>
  11. // TODO: This should be renamed to ProviderName
  12. public string? Name { get; set; }
  13. /// <summary>
  14. /// Gets or sets the unique key for this id. This key should be unique across all providers.
  15. /// </summary>
  16. // TODO: This property is not actually unique across the concrete types at the moment. It should be updated to be unique.
  17. public string? Key { get; set; }
  18. /// <summary>
  19. /// Gets or sets the specific media type for this id. This is used to distinguish between the different
  20. /// external id types for providers with multiple ids.
  21. /// A null value indicates there is no specific media type associated with the external id, or this is the
  22. /// default id for the external provider so there is no need to specify a type.
  23. /// </summary>
  24. /// <remarks>
  25. /// This can be used along with the <see cref="Name"/> to localize the external id on the client.
  26. /// </remarks>
  27. public ExternalIdMediaType? Type { get; set; }
  28. /// <summary>
  29. /// Gets or sets the URL format string.
  30. /// </summary>
  31. public string? UrlFormatString { get; set; }
  32. }
  33. }