aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2013-02-20 17:10:49 -0800
committerLuke <luke.pulverenti@gmail.com>2013-02-20 17:10:49 -0800
commit845554722efaed872948a9e0f7202e3ef52f1b6e (patch)
tree534ab2d11fe4824ed303bb01e885b330631b657e /MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs
parent2f142263f080f7b012a0ec2095d350ccf75b49b7 (diff)
parent14bbb6804718ef78a8118fe750896ba679e3b6cb (diff)
Merge pull request #1 from MediaBrowser/Repo
Repo
Diffstat (limited to 'MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs')
-rw-r--r--MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs b/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs
new file mode 100644
index 000000000..41eb1da2c
--- /dev/null
+++ b/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs
@@ -0,0 +1,24 @@
+using ProtoBuf;
+
+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>
+ [ProtoContract, ProtoInclude(50, typeof(ServerConfiguration))]
+ public class BaseApplicationConfiguration
+ {
+ [ProtoMember(1)]
+ public bool EnableDebugLevelLogging { get; set; }
+
+ [ProtoMember(2)]
+ public int HttpServerPortNumber { get; set; }
+
+ public BaseApplicationConfiguration()
+ {
+ HttpServerPortNumber = 8096;
+ }
+ }
+}