fixes #358 - Weather validation in Server configuration

This commit is contained in:
Luke Pulverenti
2013-06-23 11:02:53 -04:00
parent 0acc257354
commit 189618a751
24 changed files with 15 additions and 685 deletions

View File

@@ -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; }
}
}

View File

@@ -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[] {};
}
}
}

View File

@@ -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
}
}

View File

@@ -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
}
}