aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Weather
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-06-23 11:02:53 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-06-23 11:02:53 -0400
commit189618a75159d604e425c9318984dc2d8a9cc3f9 (patch)
treea87beed88f3f90679b6178641a8469f4129986d7 /MediaBrowser.Model/Weather
parent0acc25735419b051c6f57a2c08b2ad6f3a969b83 (diff)
fixes #358 - Weather validation in Server configuration
Diffstat (limited to 'MediaBrowser.Model/Weather')
-rw-r--r--MediaBrowser.Model/Weather/WeatherForecast.cs46
-rw-r--r--MediaBrowser.Model/Weather/WeatherInfo.cs29
-rw-r--r--MediaBrowser.Model/Weather/WeatherStatus.cs84
-rw-r--r--MediaBrowser.Model/Weather/WeatherUnits.cs18
4 files changed, 0 insertions, 177 deletions
diff --git a/MediaBrowser.Model/Weather/WeatherForecast.cs b/MediaBrowser.Model/Weather/WeatherForecast.cs
deleted file mode 100644
index 0f9ecba5b..000000000
--- a/MediaBrowser.Model/Weather/WeatherForecast.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using System;
-
-namespace MediaBrowser.Model.Weather
-{
- /// <summary>
- /// Represents a weather forecast for a specific date
- /// </summary>
- public class WeatherForecast
- {
- /// <summary>
- /// Gets or sets the date.
- /// </summary>
- /// <value>The date.</value>
- public DateTime Date { get; set; }
-
- /// <summary>
- /// Gets or sets the high temperature fahrenheit.
- /// </summary>
- /// <value>The high temperature fahrenheit.</value>
- public int HighTemperatureFahrenheit { get; set; }
-
- /// <summary>
- /// Gets or sets the low temperature fahrenheit.
- /// </summary>
- /// <value>The low temperature fahrenheit.</value>
- public int LowTemperatureFahrenheit { get; set; }
-
- /// <summary>
- /// Gets or sets the high temperature celsius.
- /// </summary>
- /// <value>The high temperature celsius.</value>
- public int HighTemperatureCelsius { get; set; }
-
- /// <summary>
- /// Gets or sets the low temperature celsius.
- /// </summary>
- /// <value>The low temperature celsius.</value>
- public int LowTemperatureCelsius { get; set; }
-
- /// <summary>
- /// Gets or sets the condition.
- /// </summary>
- /// <value>The condition.</value>
- public WeatherConditions Condition { get; set; }
- }
-}
diff --git a/MediaBrowser.Model/Weather/WeatherInfo.cs b/MediaBrowser.Model/Weather/WeatherInfo.cs
deleted file mode 100644
index 8aad52cb2..000000000
--- a/MediaBrowser.Model/Weather/WeatherInfo.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-
-namespace MediaBrowser.Model.Weather
-{
- /// <summary>
- /// Class WeatherInfo
- /// </summary>
- public class WeatherInfo
- {
- /// <summary>
- /// Gets or sets the current weather.
- /// </summary>
- /// <value>The current weather.</value>
- public WeatherStatus CurrentWeather { get; set; }
-
- /// <summary>
- /// Gets or sets the forecasts.
- /// </summary>
- /// <value>The forecasts.</value>
- public WeatherForecast[] Forecasts { get; set; }
-
- /// <summary>
- /// Initializes a new instance of the <see cref="WeatherInfo"/> class.
- /// </summary>
- public WeatherInfo()
- {
- Forecasts = new WeatherForecast[] {};
- }
- }
-}
diff --git a/MediaBrowser.Model/Weather/WeatherStatus.cs b/MediaBrowser.Model/Weather/WeatherStatus.cs
deleted file mode 100644
index 36f27b631..000000000
--- a/MediaBrowser.Model/Weather/WeatherStatus.cs
+++ /dev/null
@@ -1,84 +0,0 @@
-
-namespace MediaBrowser.Model.Weather
-{
- /// <summary>
- /// Represents the current weather status
- /// </summary>
- public class WeatherStatus
- {
- /// <summary>
- /// Gets or sets the temperature fahrenheit.
- /// </summary>
- /// <value>The temperature fahrenheit.</value>
- public int TemperatureFahrenheit { get; set; }
-
- /// <summary>
- /// Gets or sets the temperature celsius.
- /// </summary>
- /// <value>The temperature celsius.</value>
- public int TemperatureCelsius { get; set; }
-
- /// <summary>
- /// Gets or sets the humidity.
- /// </summary>
- /// <value>The humidity.</value>
- public int Humidity { get; set; }
-
- /// <summary>
- /// Gets or sets the condition.
- /// </summary>
- /// <value>The condition.</value>
- public WeatherConditions Condition { get; set; }
- }
-
- /// <summary>
- /// Enum WeatherConditions
- /// </summary>
- public enum WeatherConditions
- {
- /// <summary>
- /// The sunny
- /// </summary>
- Sunny,
- /// <summary>
- /// The partly cloudy
- /// </summary>
- PartlyCloudy,
- /// <summary>
- /// The cloudy
- /// </summary>
- Cloudy,
- /// <summary>
- /// The overcast
- /// </summary>
- Overcast,
- /// <summary>
- /// The mist
- /// </summary>
- Mist,
- /// <summary>
- /// The snow
- /// </summary>
- Snow,
- /// <summary>
- /// The rain
- /// </summary>
- Rain,
- /// <summary>
- /// The sleet
- /// </summary>
- Sleet,
- /// <summary>
- /// The fog
- /// </summary>
- Fog,
- /// <summary>
- /// The blizzard
- /// </summary>
- Blizzard,
- /// <summary>
- /// The thunderstorm
- /// </summary>
- Thunderstorm
- }
-}
diff --git a/MediaBrowser.Model/Weather/WeatherUnits.cs b/MediaBrowser.Model/Weather/WeatherUnits.cs
deleted file mode 100644
index 86c11ce37..000000000
--- a/MediaBrowser.Model/Weather/WeatherUnits.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-
-namespace MediaBrowser.Model.Weather
-{
- /// <summary>
- /// Enum WeatherUnits
- /// </summary>
- public enum WeatherUnits
- {
- /// <summary>
- /// The fahrenheit
- /// </summary>
- Fahrenheit,
- /// <summary>
- /// The celsius
- /// </summary>
- Celsius
- }
-}