From 50f88997bab58f4cfcbd3f420521776a54eb372d Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sat, 8 Sep 2012 16:25:56 -0400 Subject: Added protobuf support for serializing ServerConfiguration --- MediaBrowser.Model/Configuration/ServerConfiguration.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'MediaBrowser.Model/Configuration/ServerConfiguration.cs') diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index c229ca556..5bcd09ef0 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -1,13 +1,24 @@ using MediaBrowser.Model.Weather; +using ProtoBuf; namespace MediaBrowser.Model.Configuration { + /// + /// Represents the server configuration. + /// + [ProtoContract] public class ServerConfiguration : BaseApplicationConfiguration { + [ProtoMember(3)] public bool EnableInternetProviders { get; set; } + + [ProtoMember(4)] public bool EnableUserProfiles { get; set; } + [ProtoMember(5)] public string WeatherZipCode { get; set; } + + [ProtoMember(6)] public WeatherUnits WeatherUnit { get; set; } public ServerConfiguration() -- cgit v1.2.3