Added protobuf support for serializing ServerConfiguration

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-09-08 16:25:56 -04:00
parent 8b39ed2f63
commit 50f88997ba
4 changed files with 22 additions and 10 deletions

View File

@@ -1,13 +1,24 @@
using MediaBrowser.Model.Weather;
using ProtoBuf;
namespace MediaBrowser.Model.Configuration
{
/// <summary>
/// Represents the server configuration.
/// </summary>
[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()