Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions DeviceStatusCheckerService.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.18.1" />
<PackageReference Include="Onvif.Core" Version="2.2.2" />
<PackageReference Include="Rssdp" Version="4.0.4" />
<PackageReference Include="Scriban" Version="5.9.0" />
</ItemGroup>

<ItemGroup>
Expand All @@ -20,4 +21,10 @@
</Content>
</ItemGroup>

<ItemGroup>
<Folder Include="wwwroot\js\" />
<Folder Include="wwwroot\css\" />
<Folder Include="wwwroot\lib\" />
</ItemGroup>

</Project>
7 changes: 6 additions & 1 deletion Models/DeviceModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class DeviceModel
public string Password { get; set; } = "";
public string DescriptionLocation { get; set; } = "";
public string PresentationURL { get; set; } = "";
public List<StreamSetup> Streams { get; set; } = new List<StreamSetup>();

public DeviceActiveStatus DeviceActiveStatus { get; set; } = DeviceActiveStatus.UNKNOWN;
public string Notes { get; set; } = "";
public string LastCheckTime
Expand All @@ -49,12 +49,17 @@ public string LastCheckTime
return DateTimeOffset.FromUnixTimeMilliseconds(LastCheckTimeMs).ToString("MM/dd/yyyy HH:mm:ss.fff");
}
}

public long LastCheckTimeMs { get; set; } = 0;

public DeviceModel? Clone()
{

var obj = System.Text.Json.JsonSerializer.Serialize(this);
return System.Text.Json.JsonSerializer.Deserialize<DeviceModel>(obj);

}
public List<StreamSetup> Streams { get; set; } = new List<StreamSetup>();

}
}
Loading