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

10 lines
309 B
C#

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();
}