diff options
| author | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-07-24 10:54:34 -0400 |
|---|---|---|
| committer | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-07-24 10:54:34 -0400 |
| commit | 84af205572e6ab9ca3e10f6de33cbce278e01335 (patch) | |
| tree | 0cb89ab3a9d3ff67f85894096e592a959c3ff9b0 /MediaBrowser.Model/Plugins | |
| parent | 6c7175e33d258ff2e65735f68cb05f110a8d2306 (diff) | |
Added new api handlers to get plugin information
Diffstat (limited to 'MediaBrowser.Model/Plugins')
| -rw-r--r-- | MediaBrowser.Model/Plugins/BasePluginConfiguration.cs | 18 | ||||
| -rw-r--r-- | MediaBrowser.Model/Plugins/PluginInfo.cs | 17 |
2 files changed, 35 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Plugins/BasePluginConfiguration.cs b/MediaBrowser.Model/Plugins/BasePluginConfiguration.cs new file mode 100644 index 000000000..7881de598 --- /dev/null +++ b/MediaBrowser.Model/Plugins/BasePluginConfiguration.cs @@ -0,0 +1,18 @@ +using System;
+using System.Runtime.Serialization;
+
+namespace MediaBrowser.Model.Plugins
+{
+ public class BasePluginConfiguration
+ {
+ public bool Enabled { get; set; }
+
+ [IgnoreDataMember]
+ public DateTime DateLastModified { get; set; }
+
+ public BasePluginConfiguration()
+ {
+ Enabled = true;
+ }
+ }
+}
diff --git a/MediaBrowser.Model/Plugins/PluginInfo.cs b/MediaBrowser.Model/Plugins/PluginInfo.cs new file mode 100644 index 000000000..e08128fd7 --- /dev/null +++ b/MediaBrowser.Model/Plugins/PluginInfo.cs @@ -0,0 +1,17 @@ +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
+ {
+ public string Name { get; set; }
+ public string Path { get; set; }
+ public bool Enabled { get; set; }
+ public bool DownloadToUI { get; set; }
+ public DateTime ConfigurationDateLastModified { get; set; }
+ public Version Version { get; set; }
+ }
+}
|
