35 lines
1.1 KiB
C#
Raw Normal View History

2019-02-21 01:57:43 -08:00
using System;
using System.Collections.Generic;
2019-03-10 08:53:30 +09:00
using Jellyfin.Plugin.Template.Configuration;
2019-02-21 01:57:43 -08:00
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization;
2019-03-10 08:53:30 +09:00
namespace Jellyfin.Plugin.Template
2019-02-21 01:57:43 -08:00
{
2019-03-10 08:53:30 +09:00
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
2019-02-21 01:57:43 -08:00
{
2019-03-10 08:53:30 +09:00
public override string Name => "Template";
2019-02-21 01:57:43 -08:00
public override Guid Id => Guid.Parse("eb5d7894-8eef-4b36-aa6f-5d124e828ce1");
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer) : base(applicationPaths, xmlSerializer)
{
Instance = this;
}
public static Plugin Instance { get; private set; }
public IEnumerable<PluginPageInfo> GetPages()
{
return new[]
{
new PluginPageInfo
{
Name = this.Name,
2019-03-11 12:03:25 +09:00
EmbeddedResourcePath = string.Format("{0}.Configuration.configPage.html", GetType().Namespace)
2019-02-21 01:57:43 -08:00
}
};
}
}
2019-03-10 08:53:30 +09:00
}