From a86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 27 Dec 2018 18:27:57 -0500 Subject: Add GPL modules --- .../Plugins/BasePluginConfiguration.cs | 10 +++++ MediaBrowser.Model/Plugins/IHasWebPages.cs | 9 +++++ MediaBrowser.Model/Plugins/PluginInfo.cs | 45 ++++++++++++++++++++++ MediaBrowser.Model/Plugins/PluginPageInfo.cs | 17 ++++++++ 4 files changed, 81 insertions(+) create mode 100644 MediaBrowser.Model/Plugins/BasePluginConfiguration.cs create mode 100644 MediaBrowser.Model/Plugins/IHasWebPages.cs create mode 100644 MediaBrowser.Model/Plugins/PluginInfo.cs create mode 100644 MediaBrowser.Model/Plugins/PluginPageInfo.cs (limited to 'MediaBrowser.Model/Plugins') diff --git a/MediaBrowser.Model/Plugins/BasePluginConfiguration.cs b/MediaBrowser.Model/Plugins/BasePluginConfiguration.cs new file mode 100644 index 0000000000..9a8bfadd16 --- /dev/null +++ b/MediaBrowser.Model/Plugins/BasePluginConfiguration.cs @@ -0,0 +1,10 @@ + +namespace MediaBrowser.Model.Plugins +{ + /// + /// Class BasePluginConfiguration + /// + public class BasePluginConfiguration + { + } +} diff --git a/MediaBrowser.Model/Plugins/IHasWebPages.cs b/MediaBrowser.Model/Plugins/IHasWebPages.cs new file mode 100644 index 0000000000..0745c3c602 --- /dev/null +++ b/MediaBrowser.Model/Plugins/IHasWebPages.cs @@ -0,0 +1,9 @@ +using System.Collections.Generic; + +namespace MediaBrowser.Model.Plugins +{ + public interface IHasWebPages + { + IEnumerable GetPages(); + } +} diff --git a/MediaBrowser.Model/Plugins/PluginInfo.cs b/MediaBrowser.Model/Plugins/PluginInfo.cs new file mode 100644 index 0000000000..e7b16b0ecb --- /dev/null +++ b/MediaBrowser.Model/Plugins/PluginInfo.cs @@ -0,0 +1,45 @@ +using System; + +namespace MediaBrowser.Model.Plugins +{ + /// + /// This is a serializable stub class that is used by the api to provide information about installed plugins. + /// + public class PluginInfo + { + /// + /// Gets or sets the name. + /// + /// The name. + public string Name { get; set; } + + /// + /// Gets or sets the version. + /// + /// The version. + public string Version { get; set; } + + /// + /// Gets or sets the name of the configuration file. + /// + /// The name of the configuration file. + public string ConfigurationFileName { get; set; } + + /// + /// Gets or sets the description. + /// + /// The description. + public string Description { get; set; } + + /// + /// Gets or sets the unique id. + /// + /// The unique id. + public string Id { get; set; } + /// + /// Gets or sets the image URL. + /// + /// The image URL. + public string ImageUrl { get; set; } + } +} diff --git a/MediaBrowser.Model/Plugins/PluginPageInfo.cs b/MediaBrowser.Model/Plugins/PluginPageInfo.cs new file mode 100644 index 0000000000..045a0072c5 --- /dev/null +++ b/MediaBrowser.Model/Plugins/PluginPageInfo.cs @@ -0,0 +1,17 @@ +namespace MediaBrowser.Model.Plugins +{ + public class PluginPageInfo + { + public string Name { get; set; } + + public string DisplayName { get; set; } + + public string EmbeddedResourcePath { get; set; } + + public bool EnableInMainMenu { get; set; } + + public string MenuSection { get; set; } + + public string MenuIcon { get; set; } + } +} -- cgit v1.2.3