From 8ad9ac3b73c7aabee2574f0ce5b4a97362777f26 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 24 Jun 2013 10:06:25 -0400 Subject: [PATCH] restored weather settings --- .../MediaBrowser.Model.net35.csproj | 3 +++ .../Configuration/ServerConfiguration.cs | 12 ++++++++++++ MediaBrowser.Model/MediaBrowser.Model.csproj | 1 + MediaBrowser.Model/Weather/WeatherUnits.cs | 17 +++++++++++++++++ 4 files changed, 33 insertions(+) create mode 100644 MediaBrowser.Model/Weather/WeatherUnits.cs diff --git a/MediaBrowser.Model.net35/MediaBrowser.Model.net35.csproj b/MediaBrowser.Model.net35/MediaBrowser.Model.net35.csproj index e6eb01cd7..089a80e79 100644 --- a/MediaBrowser.Model.net35/MediaBrowser.Model.net35.csproj +++ b/MediaBrowser.Model.net35/MediaBrowser.Model.net35.csproj @@ -316,6 +316,9 @@ Updates\PackageVersionInfo.cs + + Weather\WeatherUnits.cs + Web\QueryStringDictionary.cs diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index 0446046c2..567f305bc 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -8,6 +8,18 @@ namespace MediaBrowser.Model.Configuration /// public class ServerConfiguration : BaseApplicationConfiguration { + /// + /// Gets or sets the zip code to use when displaying weather + /// + /// The weather location. + public string WeatherLocation { get; set; } + + /// + /// Gets or sets the weather unit to use when displaying weather + /// + /// The weather unit. + public WeatherUnits WeatherUnit { get; set; } + /// /// Gets or sets a value indicating whether [enable HTTP level logging]. /// diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj index 159ad386d..2068920d8 100644 --- a/MediaBrowser.Model/MediaBrowser.Model.csproj +++ b/MediaBrowser.Model/MediaBrowser.Model.csproj @@ -134,6 +134,7 @@ + diff --git a/MediaBrowser.Model/Weather/WeatherUnits.cs b/MediaBrowser.Model/Weather/WeatherUnits.cs new file mode 100644 index 000000000..d27982e95 --- /dev/null +++ b/MediaBrowser.Model/Weather/WeatherUnits.cs @@ -0,0 +1,17 @@ +namespace MediaBrowser.Model.Weather +{ + /// + /// Enum WeatherUnits + /// + public enum WeatherUnits + { + /// + /// The fahrenheit + /// + Fahrenheit, + /// + /// The celsius + /// + Celsius + } +} \ No newline at end of file