MetadataPlugin.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using MediaBrowser.Model.Entities;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Model.Configuration
  4. {
  5. public class MetadataPlugin
  6. {
  7. /// <summary>
  8. /// Gets or sets the name.
  9. /// </summary>
  10. /// <value>The name.</value>
  11. public string Name { get; set; }
  12. /// <summary>
  13. /// Gets or sets the type.
  14. /// </summary>
  15. /// <value>The type.</value>
  16. public MetadataPluginType Type { get; set; }
  17. }
  18. public class MetadataPluginSummary
  19. {
  20. /// <summary>
  21. /// Gets or sets the type of the item.
  22. /// </summary>
  23. /// <value>The type of the item.</value>
  24. public string ItemType { get; set; }
  25. /// <summary>
  26. /// Gets or sets the plugins.
  27. /// </summary>
  28. /// <value>The plugins.</value>
  29. public List<MetadataPlugin> Plugins { get; set; }
  30. /// <summary>
  31. /// Gets or sets the supported image types.
  32. /// </summary>
  33. /// <value>The supported image types.</value>
  34. public List<ImageType> SupportedImageTypes { get; set; }
  35. public MetadataPluginSummary()
  36. {
  37. SupportedImageTypes = new List<ImageType>();
  38. Plugins = new List<MetadataPlugin>();
  39. }
  40. }
  41. /// <summary>
  42. /// Enum MetadataPluginType
  43. /// </summary>
  44. public enum MetadataPluginType
  45. {
  46. LocalImageProvider,
  47. ImageFetcher,
  48. ImageSaver,
  49. LocalMetadataProvider,
  50. MetadataFetcher,
  51. MetadataSaver
  52. }
  53. }