aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Plugins
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-02-20 20:33:05 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-02-20 20:33:05 -0500
commit767cdc1f6f6a63ce997fc9476911e2c361f9d402 (patch)
tree49add55976f895441167c66cfa95e5c7688d18ce /MediaBrowser.Model/Plugins
parent845554722efaed872948a9e0f7202e3ef52f1b6e (diff)
Pushing missing changes
Diffstat (limited to 'MediaBrowser.Model/Plugins')
-rw-r--r--MediaBrowser.Model/Plugins/BasePluginConfiguration.cs45
-rw-r--r--MediaBrowser.Model/Plugins/PluginInfo.cs99
2 files changed, 131 insertions, 13 deletions
diff --git a/MediaBrowser.Model/Plugins/BasePluginConfiguration.cs b/MediaBrowser.Model/Plugins/BasePluginConfiguration.cs
index e33ebcce78..4c7b8812fc 100644
--- a/MediaBrowser.Model/Plugins/BasePluginConfiguration.cs
+++ b/MediaBrowser.Model/Plugins/BasePluginConfiguration.cs
@@ -1,13 +1,32 @@
-
-namespace MediaBrowser.Model.Plugins
-{
- public class BasePluginConfiguration
- {
- public bool Enabled { get; set; }
-
- public BasePluginConfiguration()
- {
- Enabled = true;
- }
- }
-}
+using MediaBrowser.Model.Updates;
+
+namespace MediaBrowser.Model.Plugins
+{
+ /// <summary>
+ /// Class BasePluginConfiguration
+ /// </summary>
+ public class BasePluginConfiguration
+ {
+ /// <summary>
+ /// Whether or not this plug-in should be automatically updated when a
+ /// compatible new version is released
+ /// </summary>
+ /// <value><c>true</c> if [enable auto update]; otherwise, <c>false</c>.</value>
+ public bool EnableAutoUpdate { get; set; }
+
+ /// <summary>
+ /// The classification of updates to which to subscribe.
+ /// Options are: Dev, Beta or Release
+ /// </summary>
+ /// <value>The update class.</value>
+ public PackageVersionClass UpdateClass { get; set; }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="BasePluginConfiguration" /> class.
+ /// </summary>
+ public BasePluginConfiguration()
+ {
+ EnableAutoUpdate = true;
+ }
+ }
+}
diff --git a/MediaBrowser.Model/Plugins/PluginInfo.cs b/MediaBrowser.Model/Plugins/PluginInfo.cs
new file mode 100644
index 0000000000..b518342800
--- /dev/null
+++ b/MediaBrowser.Model/Plugins/PluginInfo.cs
@@ -0,0 +1,99 @@
+using MediaBrowser.Model.Updates;
+using ProtoBuf;
+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>
+ [ProtoContract]
+ public class PluginInfo
+ {
+ /// <summary>
+ /// Gets or sets the name.
+ /// </summary>
+ /// <value>The name.</value>
+ [ProtoMember(1)]
+ public string Name { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether [download to UI].
+ /// </summary>
+ /// <value><c>true</c> if [download to UI]; otherwise, <c>false</c>.</value>
+ [ProtoMember(2)]
+ public bool DownloadToUI { get; set; }
+
+ /// <summary>
+ /// Gets or sets the configuration date last modified.
+ /// </summary>
+ /// <value>The configuration date last modified.</value>
+ [ProtoMember(3)]
+ public DateTime ConfigurationDateLastModified { get; set; }
+
+ /// <summary>
+ /// Gets or sets the version.
+ /// </summary>
+ /// <value>The version.</value>
+ [ProtoMember(4)]
+ public string Version { get; set; }
+
+ /// <summary>
+ /// Gets or sets the name of the assembly file.
+ /// </summary>
+ /// <value>The name of the assembly file.</value>
+ [ProtoMember(5)]
+ public string AssemblyFileName { get; set; }
+
+ /// <summary>
+ /// Gets or sets the name of the configuration file.
+ /// </summary>
+ /// <value>The name of the configuration file.</value>
+ [ProtoMember(6)]
+ public string ConfigurationFileName { get; set; }
+
+ /// <summary>
+ /// Gets or sets the description.
+ /// </summary>
+ /// <value>The description.</value>
+ [ProtoMember(7)]
+ public string Description { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether this instance is core plugin.
+ /// </summary>
+ /// <value><c>true</c> if this instance is core plugin; otherwise, <c>false</c>.</value>
+ [ProtoMember(8)]
+ public bool IsCorePlugin { get; set; }
+
+ /// <summary>
+ /// Gets or sets the unique id.
+ /// </summary>
+ /// <value>The unique id.</value>
+ [ProtoMember(9)]
+ public Guid UniqueId { get; set; }
+
+ /// <summary>
+ /// Whether or not this plug-in should be automatically updated when a
+ /// compatible new version is released
+ /// </summary>
+ /// <value><c>true</c> if [enable auto update]; otherwise, <c>false</c>.</value>
+ [ProtoMember(10)]
+ public bool EnableAutoUpdate { get; set; }
+
+ /// <summary>
+ /// The classification of updates to which to subscribe.
+ /// Options are: Dev, Beta or Release
+ /// </summary>
+ /// <value>The update class.</value>
+ [ProtoMember(11)]
+ public PackageVersionClass UpdateClass { get; set; }
+
+ /// <summary>
+ /// Gets or sets the minimum required UI version.
+ /// </summary>
+ /// <value>The minimum required UI version.</value>
+ [ProtoMember(12)]
+ public string MinimumRequiredUIVersion { get; set; }
+ }
+}