Plugin.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using MediaBrowser.Common.Configuration;
  2. using MediaBrowser.Common.Kernel;
  3. using MediaBrowser.Common.Plugins;
  4. using MediaBrowser.Model.Plugins;
  5. using MediaBrowser.Model.Serialization;
  6. namespace MediaBrowser.Api
  7. {
  8. /// <summary>
  9. /// Class Plugin
  10. /// </summary>
  11. public class Plugin : BasePlugin<BasePluginConfiguration>
  12. {
  13. /// <summary>
  14. /// Initializes a new instance of the <see cref="Plugin" /> class.
  15. /// </summary>
  16. /// <param name="appPaths">The app paths.</param>
  17. /// <param name="xmlSerializer">The XML serializer.</param>
  18. public Plugin(IApplicationPaths appPaths, IXmlSerializer xmlSerializer)
  19. : base(appPaths, xmlSerializer)
  20. {
  21. Instance = this;
  22. }
  23. /// <summary>
  24. /// Gets the name of the plugin
  25. /// </summary>
  26. /// <value>The name.</value>
  27. public override string Name
  28. {
  29. get { return "Web Api"; }
  30. }
  31. /// <summary>
  32. /// Gets a value indicating whether this instance is a core plugin.
  33. /// </summary>
  34. /// <value><c>true</c> if this instance is a core plugin; otherwise, <c>false</c>.</value>
  35. public override bool IsCorePlugin
  36. {
  37. get
  38. {
  39. return true;
  40. }
  41. }
  42. /// <summary>
  43. /// Gets the instance.
  44. /// </summary>
  45. /// <value>The instance.</value>
  46. public static Plugin Instance { get; private set; }
  47. }
  48. }