Replace UnixTime dependency
This commit is contained in:
parent
3728ae747f
commit
f2c110dad0
|
@ -1,5 +1,4 @@
|
|||
using System.Text.Json.Nodes;
|
||||
using InnovEnergy.Lib.Time.Unix;
|
||||
using InnovEnergy.Lib.Utils;
|
||||
|
||||
// ReSharper disable StringLiteralTypo
|
||||
|
@ -9,8 +8,8 @@ namespace InnovEnergy.Lib.Victron.VictronVRM;
|
|||
public readonly partial record struct Installation(VrmAccount VrmAccount, JsonNode Json)
|
||||
{
|
||||
|
||||
public UInt64 IdSite => Json.GetUInt64("idSite");
|
||||
public UnixTime Created => Json.GetUInt32("syscreated").Apply(UnixTime.FromTicks);
|
||||
public UInt64 IdSite => Json.GetUInt64("idSite");
|
||||
public UInt32 Created => Json.GetUInt32("syscreated");
|
||||
|
||||
// Settings
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../../Utils/Utils.csproj" />
|
||||
<ProjectReference Include="../../Time/Time.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Loading…
Reference in New Issue