mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-01-14 01:25:43 -05:00
Initial commit
This commit is contained in:
28
Values/WindDirectionReading.cs
Normal file
28
Values/WindDirectionReading.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Runtime.Serialization;
|
||||
using WeatherService.Common.Formatting;
|
||||
using WeatherService.Devices;
|
||||
|
||||
namespace WeatherService.Values
|
||||
{
|
||||
[DataContract]
|
||||
public class WindDirectionReading : ReadingBase
|
||||
{
|
||||
public WindDirectionReading(WeatherValueType valueType) : base(valueType)
|
||||
{
|
||||
}
|
||||
|
||||
[DataMember]
|
||||
public WindDirection WindDirectionValue
|
||||
{
|
||||
get { return (WindDirection) Value; }
|
||||
set { Value = (double) value; }
|
||||
}
|
||||
|
||||
[DataMember]
|
||||
public string WindDirectionString
|
||||
{
|
||||
get { return Format.GetShortDirectionString(WindDirectionValue); }
|
||||
set { }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user