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

13 lines
416 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;
// not used ATM, see Installation.Settings.cs & Installation.cs
public readonly record struct Settings(JsonNode Json)
{
public String Notes => Json.GetString("notes");
public String Name => Json.GetString("description");
public String PhoneNumber => Json.GetString("phonenumber");
}