IExtrasProvider.cs 908 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using MediaBrowser.Controller.Entities;
  2. using MediaBrowser.Model.Entities;
  3. namespace MediaBrowser.Controller.Providers
  4. {
  5. public interface IExtrasProvider
  6. {
  7. /// <summary>
  8. /// Gets the name.
  9. /// </summary>
  10. /// <value>The name.</value>
  11. string Name { get; }
  12. /// <summary>
  13. /// Supportses the specified item.
  14. /// </summary>
  15. /// <param name="item">The item.</param>
  16. /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
  17. bool Supports(IHasMetadata item);
  18. }
  19. public enum ExtraSource
  20. {
  21. Local = 1,
  22. Metadata = 2,
  23. Remote = 3
  24. }
  25. public class ExtraInfo
  26. {
  27. public string Path { get; set; }
  28. public LocationType LocationType { get; set; }
  29. public bool IsDownloadable { get; set; }
  30. public ExtraType ExtraType { get; set; }
  31. }
  32. }