mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-01-13 17:23:11 -05:00
28 lines
697 B
C#
28 lines
697 B
C#
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 { }
|
|
}
|
|
}
|
|
} |