Innovenergy_trunk/csharp/Lib/Victron/VictronVRM/Detail.cs

10 lines
309 B
C#
Raw Normal View History

2023-02-16 12:57:06 +00:00
using System.Text.Json.Nodes;
using InnovEnergy.Lib.Utils;
namespace InnovEnergy.Lib.Victron.VictronVRM;
public readonly record struct Detail(JsonNode Json)
{
public Int32 IdDataAttribute => Json.GetInt32("idDataAttribute");
public String FormattedValue => Json.GetString("formattedValue").Trim();
}