2013-03-04 05:43:06 +00:00
|
|
|
|
using MediaBrowser.Common.Configuration;
|
|
|
|
|
using MediaBrowser.Common.Kernel;
|
2013-03-03 02:47:04 +00:00
|
|
|
|
using MediaBrowser.Common.Plugins;
|
2013-02-21 01:33:05 +00:00
|
|
|
|
using MediaBrowser.Model.Plugins;
|
2013-03-03 02:47:04 +00:00
|
|
|
|
using MediaBrowser.Model.Serialization;
|
2013-02-21 01:33:05 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Api
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Class Plugin
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class Plugin : BasePlugin<BasePluginConfiguration>
|
|
|
|
|
{
|
2013-03-03 02:47:04 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="Plugin" /> class.
|
|
|
|
|
/// </summary>
|
2013-03-04 05:43:06 +00:00
|
|
|
|
/// <param name="appPaths">The app paths.</param>
|
2013-03-03 02:47:04 +00:00
|
|
|
|
/// <param name="xmlSerializer">The XML serializer.</param>
|
2013-03-04 05:43:06 +00:00
|
|
|
|
public Plugin(IApplicationPaths appPaths, IXmlSerializer xmlSerializer)
|
|
|
|
|
: base(appPaths, xmlSerializer)
|
2013-03-03 02:47:04 +00:00
|
|
|
|
{
|
|
|
|
|
Instance = this;
|
|
|
|
|
}
|
|
|
|
|
|
2013-02-21 01:33:05 +00:00
|
|
|
|
/// <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; }
|
|
|
|
|
}
|
|
|
|
|
}
|