aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs
diff options
context:
space:
mode:
authorAndrew Rabert <ar@nullsum.net>2018-12-27 18:27:57 -0500
committerAndrew Rabert <ar@nullsum.net>2018-12-27 18:27:57 -0500
commita86b71899ec52c44ddc6c3018e8cc5e9d7ff4d62 (patch)
treea74f6ea4a8abfa1664a605d31d48bc38245ccf58 /MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs
parent9bac3ac616b01f67db98381feb09d34ebe821f9a (diff)
Add GPL modules
Diffstat (limited to 'MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs')
-rw-r--r--MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs57
1 files changed, 57 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs b/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs
new file mode 100644
index 000000000..b5b0101cb
--- /dev/null
+++ b/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs
@@ -0,0 +1,57 @@
+using MediaBrowser.Model.Updates;
+
+namespace MediaBrowser.Model.Configuration
+{
+ /// <summary>
+ /// Serves as a common base class for the Server and UI application Configurations
+ /// ProtoInclude tells Protobuf about subclasses,
+ /// The number 50 can be any number, so long as it doesn't clash with any of the ProtoMember numbers either here or in subclasses.
+ /// </summary>
+ public class BaseApplicationConfiguration
+ {
+ /// <summary>
+ /// Gets or sets a value indicating whether [enable debug level logging].
+ /// </summary>
+ /// <value><c>true</c> if [enable debug level logging]; otherwise, <c>false</c>.</value>
+ public bool EnableDebugLevelLogging { get; set; }
+
+ /// <summary>
+ /// Enable automatically and silently updating of the application
+ /// </summary>
+ /// <value><c>true</c> if [enable auto update]; otherwise, <c>false</c>.</value>
+ public bool EnableAutoUpdate { get; set; }
+
+ /// <summary>
+ /// The number of days we should retain log files
+ /// </summary>
+ /// <value>The log file retention days.</value>
+ public int LogFileRetentionDays { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether [run at startup].
+ /// </summary>
+ /// <value><c>true</c> if [run at startup]; otherwise, <c>false</c>.</value>
+ public bool RunAtStartup { get; set; }
+
+ /// <summary>
+ /// Gets or sets a value indicating whether this instance is first run.
+ /// </summary>
+ /// <value><c>true</c> if this instance is first run; otherwise, <c>false</c>.</value>
+ public bool IsStartupWizardCompleted { get; set; }
+
+ /// <summary>
+ /// Gets or sets the cache path.
+ /// </summary>
+ /// <value>The cache path.</value>
+ public string CachePath { get; set; }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="BaseApplicationConfiguration" /> class.
+ /// </summary>
+ public BaseApplicationConfiguration()
+ {
+ EnableAutoUpdate = true;
+ LogFileRetentionDays = 3;
+ }
+ }
+}