From 189618a75159d604e425c9318984dc2d8a9cc3f9 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 23 Jun 2013 11:02:53 -0400 Subject: fixes #358 - Weather validation in Server configuration --- MediaBrowser.Model/Weather/WeatherForecast.cs | 46 --------------- MediaBrowser.Model/Weather/WeatherInfo.cs | 29 --------- MediaBrowser.Model/Weather/WeatherStatus.cs | 84 --------------------------- MediaBrowser.Model/Weather/WeatherUnits.cs | 18 ------ 4 files changed, 177 deletions(-) delete mode 100644 MediaBrowser.Model/Weather/WeatherForecast.cs delete mode 100644 MediaBrowser.Model/Weather/WeatherInfo.cs delete mode 100644 MediaBrowser.Model/Weather/WeatherStatus.cs delete mode 100644 MediaBrowser.Model/Weather/WeatherUnits.cs (limited to 'MediaBrowser.Model/Weather') diff --git a/MediaBrowser.Model/Weather/WeatherForecast.cs b/MediaBrowser.Model/Weather/WeatherForecast.cs deleted file mode 100644 index 0f9ecba5b0..0000000000 --- a/MediaBrowser.Model/Weather/WeatherForecast.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; - -namespace MediaBrowser.Model.Weather -{ - /// - /// Represents a weather forecast for a specific date - /// - public class WeatherForecast - { - /// - /// Gets or sets the date. - /// - /// The date. - public DateTime Date { get; set; } - - /// - /// Gets or sets the high temperature fahrenheit. - /// - /// The high temperature fahrenheit. - public int HighTemperatureFahrenheit { get; set; } - - /// - /// Gets or sets the low temperature fahrenheit. - /// - /// The low temperature fahrenheit. - public int LowTemperatureFahrenheit { get; set; } - - /// - /// Gets or sets the high temperature celsius. - /// - /// The high temperature celsius. - public int HighTemperatureCelsius { get; set; } - - /// - /// Gets or sets the low temperature celsius. - /// - /// The low temperature celsius. - public int LowTemperatureCelsius { get; set; } - - /// - /// Gets or sets the condition. - /// - /// The condition. - public WeatherConditions Condition { get; set; } - } -} diff --git a/MediaBrowser.Model/Weather/WeatherInfo.cs b/MediaBrowser.Model/Weather/WeatherInfo.cs deleted file mode 100644 index 8aad52cb2e..0000000000 --- a/MediaBrowser.Model/Weather/WeatherInfo.cs +++ /dev/null @@ -1,29 +0,0 @@ - -namespace MediaBrowser.Model.Weather -{ - /// - /// Class WeatherInfo - /// - public class WeatherInfo - { - /// - /// Gets or sets the current weather. - /// - /// The current weather. - public WeatherStatus CurrentWeather { get; set; } - - /// - /// Gets or sets the forecasts. - /// - /// The forecasts. - public WeatherForecast[] Forecasts { get; set; } - - /// - /// Initializes a new instance of the class. - /// - public WeatherInfo() - { - Forecasts = new WeatherForecast[] {}; - } - } -} diff --git a/MediaBrowser.Model/Weather/WeatherStatus.cs b/MediaBrowser.Model/Weather/WeatherStatus.cs deleted file mode 100644 index 36f27b6312..0000000000 --- a/MediaBrowser.Model/Weather/WeatherStatus.cs +++ /dev/null @@ -1,84 +0,0 @@ - -namespace MediaBrowser.Model.Weather -{ - /// - /// Represents the current weather status - /// - public class WeatherStatus - { - /// - /// Gets or sets the temperature fahrenheit. - /// - /// The temperature fahrenheit. - public int TemperatureFahrenheit { get; set; } - - /// - /// Gets or sets the temperature celsius. - /// - /// The temperature celsius. - public int TemperatureCelsius { get; set; } - - /// - /// Gets or sets the humidity. - /// - /// The humidity. - public int Humidity { get; set; } - - /// - /// Gets or sets the condition. - /// - /// The condition. - public WeatherConditions Condition { get; set; } - } - - /// - /// Enum WeatherConditions - /// - public enum WeatherConditions - { - /// - /// The sunny - /// - Sunny, - /// - /// The partly cloudy - /// - PartlyCloudy, - /// - /// The cloudy - /// - Cloudy, - /// - /// The overcast - /// - Overcast, - /// - /// The mist - /// - Mist, - /// - /// The snow - /// - Snow, - /// - /// The rain - /// - Rain, - /// - /// The sleet - /// - Sleet, - /// - /// The fog - /// - Fog, - /// - /// The blizzard - /// - Blizzard, - /// - /// The thunderstorm - /// - Thunderstorm - } -} diff --git a/MediaBrowser.Model/Weather/WeatherUnits.cs b/MediaBrowser.Model/Weather/WeatherUnits.cs deleted file mode 100644 index 86c11ce37e..0000000000 --- a/MediaBrowser.Model/Weather/WeatherUnits.cs +++ /dev/null @@ -1,18 +0,0 @@ - -namespace MediaBrowser.Model.Weather -{ - /// - /// Enum WeatherUnits - /// - public enum WeatherUnits - { - /// - /// The fahrenheit - /// - Fahrenheit, - /// - /// The celsius - /// - Celsius - } -} -- cgit v1.2.3