12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using MediaBrowser.Common.Configuration;
- using MediaBrowser.Common.Kernel;
- using MediaBrowser.Common.Plugins;
- using MediaBrowser.Model.Plugins;
- using MediaBrowser.Model.Serialization;
- namespace MediaBrowser.Api
- {
- /// <summary>
- /// Class Plugin
- /// </summary>
- public class Plugin : BasePlugin<BasePluginConfiguration>
- {
- /// <summary>
- /// Initializes a new instance of the <see cref="Plugin" /> class.
- /// </summary>
- /// <param name="appPaths">The app paths.</param>
- /// <param name="xmlSerializer">The XML serializer.</param>
- public Plugin(IApplicationPaths appPaths, IXmlSerializer xmlSerializer)
- : base(appPaths, xmlSerializer)
- {
- Instance = this;
- }
- /// <summary>
- /// Gets the name of the plugin
- /// </summary>
- /// <value>The name.</value>
- public override string Name
- {
- get { return "Web Api"; }
- }
- /// <summary>
- /// Gets a value indicating whether this instance is a core plugin.
- /// </summary>
- /// <value><c>true</c> if this instance is a core plugin; otherwise, <c>false</c>.</value>
- public override bool IsCorePlugin
- {
- get
- {
- return true;
- }
- }
- /// <summary>
- /// Gets the instance.
- /// </summary>
- /// <value>The instance.</value>
- public static Plugin Instance { get; private set; }
- }
- }
|