Plugin.cs 1.4 KB

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