PluginInfo.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using System;
  2. namespace MediaBrowser.Model.Plugins
  3. {
  4. /// <summary>
  5. /// This is a serializable stub class that is used by the api to provide information about installed plugins.
  6. /// </summary>
  7. public class PluginInfo
  8. {
  9. /// <summary>
  10. /// Initializes a new instance of the <see cref="PluginInfo"/> class.
  11. /// </summary>
  12. /// <param name="name">The plugin name.</param>
  13. /// <param name="version">The plugin <see cref="Version"/>.</param>
  14. /// <param name="description">The plugin description.</param>
  15. /// <param name="id">The <see cref="Guid"/>.</param>
  16. /// <param name="canUninstall">True if this plugin can be uninstalled.</param>
  17. public PluginInfo(string name, Version version, string description, Guid id, bool canUninstall)
  18. {
  19. Name = name;
  20. Version = version;
  21. Description = description;
  22. Id = id;
  23. CanUninstall = canUninstall;
  24. }
  25. /// <summary>
  26. /// Gets or sets the name.
  27. /// </summary>
  28. public string Name { get; set; }
  29. /// <summary>
  30. /// Gets or sets the version.
  31. /// </summary>
  32. public Version Version { get; set; }
  33. /// <summary>
  34. /// Gets or sets the name of the configuration file.
  35. /// </summary>
  36. public string? ConfigurationFileName { get; set; }
  37. /// <summary>
  38. /// Gets or sets the description.
  39. /// </summary>
  40. public string Description { get; set; }
  41. /// <summary>
  42. /// Gets or sets the unique id.
  43. /// </summary>
  44. public Guid Id { get; set; }
  45. /// <summary>
  46. /// Gets or sets a value indicating whether the plugin can be uninstalled.
  47. /// </summary>
  48. public bool CanUninstall { get; set; }
  49. /// <summary>
  50. /// Gets or sets a value indicating whether this plugin has a valid image.
  51. /// </summary>
  52. public bool HasImage { get; set; }
  53. /// <summary>
  54. /// Gets or sets a value indicating the status of the plugin.
  55. /// </summary>
  56. public PluginStatus Status { get; set; }
  57. }
  58. }