-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.cs
More file actions
39 lines (35 loc) · 1.21 KB
/
Plugin.cs
File metadata and controls
39 lines (35 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization;
using System.Collections.Generic;
namespace StudioDashboard
{
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
{
public static Plugin Instance { get; private set; }
public override string Name => "Studio Dashboard";
public override string Description => "Zeigt ein Dashboard mit Studios und deren Medienanzahl.";
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer)
: base(applicationPaths, xmlSerializer)
{
Instance = this;
}
public IEnumerable<PluginPageInfo> GetPages()
{
return new[]
{
new PluginPageInfo
{
Name = "studiodashboard",
EmbeddedResourcePath = GetType().Namespace + ".dashboard.html"
},
new PluginPageInfo
{
Name = "studiodashboardhome",
EmbeddedResourcePath = GetType().Namespace + ".home.html"
}
};
}
}
}