Rework wind history API

This commit is contained in:
2019-10-11 16:26:21 -04:00
parent 7d1c3dced0
commit 618688ed08
8 changed files with 33 additions and 63 deletions

View File

@@ -1,12 +0,0 @@
using JetBrains.Annotations;
namespace ChrisKaczor.HomeMonitor.Weather.Service.Models
{
[PublicAPI]
public class WindDirectionReadingGrouped
{
public int WindDirection { get; set; }
public int Count { get; set; }
}
}

View File

@@ -0,0 +1,19 @@
using JetBrains.Annotations;
using System;
namespace ChrisKaczor.HomeMonitor.Weather.Service.Models
{
[PublicAPI]
public class WindHistoryGrouped
{
public DateTimeOffset Bucket { get; set; }
public decimal MinimumSpeed { get; set; }
public decimal AverageSpeed { get; set; }
public decimal MaximumSpeed { get; set; }
public decimal AverageDirection { get; set; }
}
}

View File

@@ -1,17 +0,0 @@
using JetBrains.Annotations;
using System;
namespace ChrisKaczor.HomeMonitor.Weather.Service.Models
{
[PublicAPI]
public class WindSpeedReadingGrouped
{
public DateTimeOffset Bucket { get; set; }
public decimal Minimum { get; set; }
public decimal Average { get; set; }
public decimal Maximum { get; set; }
}
}