Files
mapo-iob-libs/EgwProxy.Shelly/DTO/Gen2/EMDto.cs
T
2025-08-07 08:35:34 +02:00

66 lines
1.8 KiB
C#

using EgwProxy.Shelly.Converters;
using Newtonsoft.Json;
using System.Collections.Generic;
namespace EgwProxy.Shelly.DTO.Gen2
{
/// <summary>
/// EnergyMeter Info DTO (Realtime Data)
/// </summary>
//[JsonConverter(typeof(EMDtoConverter))]
public class EMDto
{
public int Id { get; set; }
/// <summary>
/// Phase A data
/// </summary>
public PhaseDataDto PhaseA { get; set; } = new PhaseDataDto();
/// <summary>
/// Phase B data
/// </summary>
public PhaseDataDto PhaseB { get; set; } = new PhaseDataDto();
/// <summary>
/// Phase C data
/// </summary>
public PhaseDataDto PhaseC { get; set; } = new PhaseDataDto();
/// <summary>
/// Corrente Neutro
/// </summary>
[JsonProperty("n_current")]
public double NeutralCurrent { get; set; } = 0;
/// <summary>
/// Corrente Totale
/// </summary>
[JsonProperty("total_current")]
public double TotalCurrent { get; set; } = 0;
/// <summary>
/// Corrente Totale Attiva
/// </summary>
[JsonProperty("total_act_power")]
public double TotalActivePower { get; set; } = 0;
/// <summary>
/// Corrente Totale Apparente
/// </summary>
[JsonProperty("total_aprt_power")]
public double TotalApparentPower { get; set; } = 0;
/// <summary>
/// Calibrazione fasi manuale
/// </summary>
[JsonProperty("user_calibrated_phase")]
public List<string> UserCalibratedPhase { get; set; } = new List<string>();
/// <summary>
/// Calibrazione fasi manuale
/// </summary>
[JsonProperty("errors")]
public List<string> Errors { get; set; } = new List<string>();
}
}