Replace UnixTime dependency

This commit is contained in:
ig 2023-09-14 14:26:06 +02:00
parent 3728ae747f
commit f2c110dad0
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,4 @@
using System.Text.Json.Nodes; using System.Text.Json.Nodes;
using InnovEnergy.Lib.Time.Unix;
using InnovEnergy.Lib.Utils; using InnovEnergy.Lib.Utils;
// ReSharper disable StringLiteralTypo // ReSharper disable StringLiteralTypo
@ -9,8 +8,8 @@ namespace InnovEnergy.Lib.Victron.VictronVRM;
public readonly partial record struct Installation(VrmAccount VrmAccount, JsonNode Json) public readonly partial record struct Installation(VrmAccount VrmAccount, JsonNode Json)
{ {
public UInt64 IdSite => Json.GetUInt64("idSite"); public UInt64 IdSite => Json.GetUInt64("idSite");
public UnixTime Created => Json.GetUInt32("syscreated").Apply(UnixTime.FromTicks); public UInt32 Created => Json.GetUInt32("syscreated");
// Settings // Settings

View File

@ -17,7 +17,6 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="../../Utils/Utils.csproj" /> <ProjectReference Include="../../Utils/Utils.csproj" />
<ProjectReference Include="../../Time/Time.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>