mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-25 01:25:37 -05:00
Move weather update to model project
This commit is contained in:
37
Weather/Models/WeatherUpdateBase.cs
Normal file
37
Weather/Models/WeatherUpdateBase.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using JetBrains.Annotations;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Converters;
|
||||
using System;
|
||||
|
||||
namespace ChrisKaczor.HomeMonitor.Weather.Models
|
||||
{
|
||||
[PublicAPI]
|
||||
public class WeatherUpdateBase
|
||||
{
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public MessageType Type { get; set; }
|
||||
|
||||
public string Message { get; set; }
|
||||
public DateTimeOffset Timestamp { get; set; }
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public WindDirection WindDirection { get; set; }
|
||||
|
||||
public decimal WindSpeed { get; set; }
|
||||
public decimal Humidity { get; set; }
|
||||
public decimal Rain { get; set; }
|
||||
public decimal Pressure { get; set; }
|
||||
public decimal Temperature { get; set; }
|
||||
public decimal LightLevel { get; set; }
|
||||
public decimal Latitude { get; set; }
|
||||
public decimal Longitude { get; set; }
|
||||
public decimal Altitude { get; set; }
|
||||
public int SatelliteCount { get; set; }
|
||||
public DateTimeOffset GpsTimestamp { get; set; }
|
||||
public decimal? WindChill { get; set; }
|
||||
public decimal? HeatIndex { get; set; }
|
||||
public decimal DewPoint { get; set; }
|
||||
public decimal PressureDifferenceThreeHour { get; set; }
|
||||
public decimal RainLastHour { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user