Weather updates

This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-09-02 13:34:12 -04:00
parent b6bc22ae63
commit 3c47375229
7 changed files with 47 additions and 13 deletions

View File

@@ -1,17 +1,19 @@

using MediaBrowser.Model.Weather;
namespace MediaBrowser.Model.Configuration
{
public class ServerConfiguration : BaseApplicationConfiguration
{
public bool EnableInternetProviders { get; set; }
public string WeatherZipCode { get; set; }
public bool EnableUserProfiles { get; set; }
public string WeatherZipCode { get; set; }
public WeatherUnits WeatherUnit { get; set; }
public ServerConfiguration()
: base()
{
EnableUserProfiles = true;
WeatherZipCode = "02116";
}
}
}

View File

@@ -61,6 +61,7 @@
<Compile Include="Weather\WeatherForecast.cs" />
<Compile Include="Weather\WeatherInfo.cs" />
<Compile Include="Weather\WeatherStatus.cs" />
<Compile Include="Weather\WeatherUnits.cs" />
</ItemGroup>
<ItemGroup>
<Reference Include="protobuf-net">

View File

@@ -0,0 +1,9 @@

namespace MediaBrowser.Model.Weather
{
public enum WeatherUnits
{
Fahrenheit,
Celsius
}
}