56 lines
1.5 KiB
Plaintext
56 lines
1.5 KiB
Plaintext
using System;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using {{NAMESPACE}}.Configuration;
|
|
using MediaBrowser.Common.Configuration;
|
|
using MediaBrowser.Common.Plugins;
|
|
using MediaBrowser.Model.Plugins;
|
|
using MediaBrowser.Model.Serialization;
|
|
|
|
namespace {{NAMESPACE}};
|
|
|
|
/// <summary>
|
|
/// {{PLUGIN_NAME}} plugin.
|
|
/// </summary>
|
|
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="Plugin"/> class.
|
|
/// </summary>
|
|
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer)
|
|
: base(applicationPaths, xmlSerializer)
|
|
{
|
|
Instance = this;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override string Name => "{{PLUGIN_NAME}}";
|
|
|
|
/// <inheritdoc />
|
|
public override string Description => "{{PLUGIN_DESCRIPTION}}";
|
|
|
|
/// <inheritdoc />
|
|
public override Guid Id => Guid.Parse("{{PLUGIN_GUID}}");
|
|
|
|
/// <summary>
|
|
/// Gets the current plugin instance.
|
|
/// </summary>
|
|
public static Plugin? Instance { get; private set; }
|
|
|
|
/// <inheritdoc />
|
|
public IEnumerable<PluginPageInfo> GetPages()
|
|
{
|
|
return
|
|
[
|
|
new PluginPageInfo
|
|
{
|
|
Name = Name,
|
|
EmbeddedResourcePath = string.Format(
|
|
CultureInfo.InvariantCulture,
|
|
"{0}.Configuration.configPage.html",
|
|
GetType().Namespace)
|
|
}
|
|
];
|
|
}
|
|
}
|