Initial framework of the power service

This commit is contained in:
2019-10-13 09:18:57 -04:00
parent 5c3901951e
commit 43ae1061f8
16 changed files with 565 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace ChrisKaczor.HomeMonitor.Power.Service.Models
{
public class PowerSample
{
[JsonPropertyName("sensorId")]
public string SensorId { get; set; }
[JsonPropertyName("timestamp")]
public DateTimeOffset Timestamp { get; set; }
[JsonPropertyName("channels")]
public PowerChannel[] Channels { get; set; }
[JsonPropertyName("cts")]
public Dictionary<string, double>[] CurrentTransformers { get; set; }
}
}