aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Configuration/BaseApplicationConfiguration.cs
blob: 41eb1da2c88d870ffb411222cd99770eea8852e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
        }
    }
}