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 --- .../Configuration/BaseApplicationConfiguration.cs | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs (limited to 'MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs') 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 +{ + /// + /// 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. + /// + public class BaseApplicationConfiguration + { + /// + /// Gets or sets a value indicating whether [enable debug level logging]. + /// + /// true if [enable debug level logging]; otherwise, false. + public bool EnableDebugLevelLogging { get; set; } + + /// + /// Enable automatically and silently updating of the application + /// + /// true if [enable auto update]; otherwise, false. + public bool EnableAutoUpdate { get; set; } + + /// + /// The number of days we should retain log files + /// + /// The log file retention days. + public int LogFileRetentionDays { get; set; } + + /// + /// Gets or sets a value indicating whether [run at startup]. + /// + /// true if [run at startup]; otherwise, false. + public bool RunAtStartup { get; set; } + + /// + /// Gets or sets a value indicating whether this instance is first run. + /// + /// true if this instance is first run; otherwise, false. + public bool IsStartupWizardCompleted { get; set; } + + /// + /// Gets or sets the cache path. + /// + /// The cache path. + public string CachePath { get; set; } + + /// + /// Initializes a new instance of the class. + /// + public BaseApplicationConfiguration() + { + EnableAutoUpdate = true; + LogFileRetentionDays = 3; + } + } +} -- cgit v1.2.3