aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Weather
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-02-20 20:33:05 -0500
committerLukePulverenti <luke.pulverenti@gmail.com>2013-02-20 20:33:05 -0500
commit767cdc1f6f6a63ce997fc9476911e2c361f9d402 (patch)
tree49add55976f895441167c66cfa95e5c7688d18ce /MediaBrowser.Model/Weather
parent845554722efaed872948a9e0f7202e3ef52f1b6e (diff)
Pushing missing changes
Diffstat (limited to 'MediaBrowser.Model/Weather')
-rw-r--r--MediaBrowser.Model/Weather/WeatherForecast.cs84
-rw-r--r--MediaBrowser.Model/Weather/WeatherInfo.cs39
-rw-r--r--MediaBrowser.Model/Weather/WeatherStatus.cs128
-rw-r--r--MediaBrowser.Model/Weather/WeatherUnits.cs27
4 files changed, 187 insertions, 91 deletions
diff --git a/MediaBrowser.Model/Weather/WeatherForecast.cs b/MediaBrowser.Model/Weather/WeatherForecast.cs
index f77d92366a..20cce37809 100644
--- a/MediaBrowser.Model/Weather/WeatherForecast.cs
+++ b/MediaBrowser.Model/Weather/WeatherForecast.cs
@@ -1,30 +1,54 @@
-using System;
-using ProtoBuf;
-
-namespace MediaBrowser.Model.Weather
-{
- /// <summary>
- /// Represents a weather forecase for a specific date
- /// </summary>
- [ProtoContract]
- public class WeatherForecast
- {
- [ProtoMember(1)]
- public DateTime Date { get; set; }
-
- [ProtoMember(2)]
- public int HighTemperatureFahrenheit { get; set; }
-
- [ProtoMember(3)]
- public int LowTemperatureFahrenheit { get; set; }
-
- [ProtoMember(4)]
- public int HighTemperatureCelsius { get; set; }
-
- [ProtoMember(5)]
- public int LowTemperatureCelsius { get; set; }
-
- [ProtoMember(6)]
- public WeatherConditions Condition { get; set; }
- }
-}
+using System;
+using ProtoBuf;
+
+namespace MediaBrowser.Model.Weather
+{
+ /// <summary>
+ /// Represents a weather forecast for a specific date
+ /// </summary>
+ [ProtoContract]
+ public class WeatherForecast
+ {
+ /// <summary>
+ /// Gets or sets the date.
+ /// </summary>
+ /// <value>The date.</value>
+ [ProtoMember(1)]
+ public DateTime Date { get; set; }
+
+ /// <summary>
+ /// Gets or sets the high temperature fahrenheit.
+ /// </summary>
+ /// <value>The high temperature fahrenheit.</value>
+ [ProtoMember(2)]
+ public int HighTemperatureFahrenheit { get; set; }
+
+ /// <summary>
+ /// Gets or sets the low temperature fahrenheit.
+ /// </summary>
+ /// <value>The low temperature fahrenheit.</value>
+ [ProtoMember(3)]
+ public int LowTemperatureFahrenheit { get; set; }
+
+ /// <summary>
+ /// Gets or sets the high temperature celsius.
+ /// </summary>
+ /// <value>The high temperature celsius.</value>
+ [ProtoMember(4)]
+ public int HighTemperatureCelsius { get; set; }
+
+ /// <summary>
+ /// Gets or sets the low temperature celsius.
+ /// </summary>
+ /// <value>The low temperature celsius.</value>
+ [ProtoMember(5)]
+ public int LowTemperatureCelsius { get; set; }
+
+ /// <summary>
+ /// Gets or sets the condition.
+ /// </summary>
+ /// <value>The condition.</value>
+ [ProtoMember(6)]
+ public WeatherConditions Condition { get; set; }
+ }
+}
diff --git a/MediaBrowser.Model/Weather/WeatherInfo.cs b/MediaBrowser.Model/Weather/WeatherInfo.cs
index 7cad4d2484..b423380f54 100644
--- a/MediaBrowser.Model/Weather/WeatherInfo.cs
+++ b/MediaBrowser.Model/Weather/WeatherInfo.cs
@@ -1,14 +1,25 @@
-using ProtoBuf;
-
-namespace MediaBrowser.Model.Weather
-{
- [ProtoContract]
- public class WeatherInfo
- {
- [ProtoMember(1)]
- public WeatherStatus CurrentWeather { get; set; }
-
- [ProtoMember(2)]
- public WeatherForecast[] Forecasts { get; set; }
- }
-}
+using ProtoBuf;
+
+namespace MediaBrowser.Model.Weather
+{
+ /// <summary>
+ /// Class WeatherInfo
+ /// </summary>
+ [ProtoContract]
+ public class WeatherInfo
+ {
+ /// <summary>
+ /// Gets or sets the current weather.
+ /// </summary>
+ /// <value>The current weather.</value>
+ [ProtoMember(1)]
+ public WeatherStatus CurrentWeather { get; set; }
+
+ /// <summary>
+ /// Gets or sets the forecasts.
+ /// </summary>
+ /// <value>The forecasts.</value>
+ [ProtoMember(2)]
+ public WeatherForecast[] Forecasts { get; set; }
+ }
+}
diff --git a/MediaBrowser.Model/Weather/WeatherStatus.cs b/MediaBrowser.Model/Weather/WeatherStatus.cs
index 7019d319b7..1e4eb10772 100644
--- a/MediaBrowser.Model/Weather/WeatherStatus.cs
+++ b/MediaBrowser.Model/Weather/WeatherStatus.cs
@@ -1,38 +1,90 @@
-using ProtoBuf;
-
-namespace MediaBrowser.Model.Weather
-{
- /// <summary>
- /// Represents the current weather status
- /// </summary>
- [ProtoContract]
- public class WeatherStatus
- {
- [ProtoMember(1)]
- public int TemperatureFahrenheit { get; set; }
-
- [ProtoMember(2)]
- public int TemperatureCelsius { get; set; }
-
- [ProtoMember(3)]
- public int Humidity { get; set; }
-
- [ProtoMember(4)]
- public WeatherConditions Condition { get; set; }
- }
-
- public enum WeatherConditions
- {
- Sunny,
- PartlyCloudy,
- Cloudy,
- Overcast,
- Mist,
- Snow,
- Rain,
- Sleet,
- Fog,
- Blizzard,
- Thunderstorm
- }
-}
+using ProtoBuf;
+
+namespace MediaBrowser.Model.Weather
+{
+ /// <summary>
+ /// Represents the current weather status
+ /// </summary>
+ [ProtoContract]
+ public class WeatherStatus
+ {
+ /// <summary>
+ /// Gets or sets the temperature fahrenheit.
+ /// </summary>
+ /// <value>The temperature fahrenheit.</value>
+ [ProtoMember(1)]
+ public int TemperatureFahrenheit { get; set; }
+
+ /// <summary>
+ /// Gets or sets the temperature celsius.
+ /// </summary>
+ /// <value>The temperature celsius.</value>
+ [ProtoMember(2)]
+ public int TemperatureCelsius { get; set; }
+
+ /// <summary>
+ /// Gets or sets the humidity.
+ /// </summary>
+ /// <value>The humidity.</value>
+ [ProtoMember(3)]
+ public int Humidity { get; set; }
+
+ /// <summary>
+ /// Gets or sets the condition.
+ /// </summary>
+ /// <value>The condition.</value>
+ [ProtoMember(4)]
+ 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
index 3bea67b9a4..86c11ce37e 100644
--- a/MediaBrowser.Model/Weather/WeatherUnits.cs
+++ b/MediaBrowser.Model/Weather/WeatherUnits.cs
@@ -1,9 +1,18 @@
-
-namespace MediaBrowser.Model.Weather
-{
- public enum WeatherUnits
- {
- Fahrenheit,
- Celsius
- }
-}
+
+namespace MediaBrowser.Model.Weather
+{
+ /// <summary>
+ /// Enum WeatherUnits
+ /// </summary>
+ public enum WeatherUnits
+ {
+ /// <summary>
+ /// The fahrenheit
+ /// </summary>
+ Fahrenheit,
+ /// <summary>
+ /// The celsius
+ /// </summary>
+ Celsius
+ }
+}