-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathPlugin.cs
60 lines (54 loc) · 2.04 KB
/
Plugin.cs
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using System.Collections.Generic;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization;
using statistics.Configuration;
namespace statistics
{
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
{
public Plugin(IApplicationPaths applicationPaths, IXmlSerializer xmlSerializer)
: base(applicationPaths, xmlSerializer)
{
Instance = this;
}
public IEnumerable<PluginPageInfo> GetPages()
{
return new[]
{
new PluginPageInfo
{
Name = "Statistics",
EmbeddedResourcePath = GetType().Namespace + ".Configuration.configPage.html",
EnableInMainMenu = true
},
new PluginPageInfo
{
Name = "StatisticsMovieList",
EmbeddedResourcePath = GetType().Namespace + ".Configuration.moviePage.html"
},
new PluginPageInfo
{
Name = "StatisticsMovieListText",
EmbeddedResourcePath = GetType().Namespace + ".Configuration.movieTextPage.html"
},
new PluginPageInfo
{
Name = "StatisticsShowOverview",
EmbeddedResourcePath = GetType().Namespace + ".Configuration.showOverview.html"
},
new PluginPageInfo
{
Name = "StatisticsUserBased",
EmbeddedResourcePath = GetType().Namespace + ".Configuration.userBased.html"
}
};
}
public override Guid Id => new Guid("291d866f-baad-464a-aed6-a4a8b95a8fd7");
public static Plugin Instance { get; private set; }
public override string Name => "Statistics";
public override string Description => "Get statistics from your collection";
}
}