diff options
Diffstat (limited to 'MediaBrowser.Model/Plugins')
| -rw-r--r-- | MediaBrowser.Model/Plugins/BasePluginConfiguration.cs | 10 | ||||
| -rw-r--r-- | MediaBrowser.Model/Plugins/IHasWebPages.cs | 9 | ||||
| -rw-r--r-- | MediaBrowser.Model/Plugins/PluginInfo.cs | 45 | ||||
| -rw-r--r-- | MediaBrowser.Model/Plugins/PluginPageInfo.cs | 17 |
4 files changed, 81 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Plugins/BasePluginConfiguration.cs b/MediaBrowser.Model/Plugins/BasePluginConfiguration.cs new file mode 100644 index 000000000..9a8bfadd1 --- /dev/null +++ b/MediaBrowser.Model/Plugins/BasePluginConfiguration.cs @@ -0,0 +1,10 @@ + +namespace MediaBrowser.Model.Plugins +{ + /// <summary> + /// Class BasePluginConfiguration + /// </summary> + public class BasePluginConfiguration + { + } +} diff --git a/MediaBrowser.Model/Plugins/IHasWebPages.cs b/MediaBrowser.Model/Plugins/IHasWebPages.cs new file mode 100644 index 000000000..0745c3c60 --- /dev/null +++ b/MediaBrowser.Model/Plugins/IHasWebPages.cs @@ -0,0 +1,9 @@ +using System.Collections.Generic; + +namespace MediaBrowser.Model.Plugins +{ + public interface IHasWebPages + { + IEnumerable<PluginPageInfo> GetPages(); + } +} diff --git a/MediaBrowser.Model/Plugins/PluginInfo.cs b/MediaBrowser.Model/Plugins/PluginInfo.cs new file mode 100644 index 000000000..e7b16b0ec --- /dev/null +++ b/MediaBrowser.Model/Plugins/PluginInfo.cs @@ -0,0 +1,45 @@ +using System; + +namespace MediaBrowser.Model.Plugins +{ + /// <summary> + /// This is a serializable stub class that is used by the api to provide information about installed plugins. + /// </summary> + public class PluginInfo + { + /// <summary> + /// Gets or sets the name. + /// </summary> + /// <value>The name.</value> + public string Name { get; set; } + + /// <summary> + /// Gets or sets the version. + /// </summary> + /// <value>The version.</value> + public string Version { get; set; } + + /// <summary> + /// Gets or sets the name of the configuration file. + /// </summary> + /// <value>The name of the configuration file.</value> + public string ConfigurationFileName { get; set; } + + /// <summary> + /// Gets or sets the description. + /// </summary> + /// <value>The description.</value> + public string Description { get; set; } + + /// <summary> + /// Gets or sets the unique id. + /// </summary> + /// <value>The unique id.</value> + public string Id { get; set; } + /// <summary> + /// Gets or sets the image URL. + /// </summary> + /// <value>The image URL.</value> + public string ImageUrl { get; set; } + } +} diff --git a/MediaBrowser.Model/Plugins/PluginPageInfo.cs b/MediaBrowser.Model/Plugins/PluginPageInfo.cs new file mode 100644 index 000000000..045a0072c --- /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; } + } +} |
