Some cleanups

This commit is contained in:
2026-01-15 00:10:22 +01:00
parent 0bbf7c2a30
commit 6c2cd0ced1
5 changed files with 52 additions and 433 deletions

View File

@@ -204,7 +204,18 @@ namespace RemoteControl
}
[Route(HttpVerbs.Get, "/networks")]
public Task<IList<string>> ListNetworks() => Task.FromResult(SubscriptionManager.GetProbes());
public Task<IList<string>> ListNetworks()
{
IList<string> probeNames = new List<string>();
GameDevice.AllDevices.ForEach(dev =>
{
if (dev is CableAnalyser analyser)
{
probeNames.Add(analyser.DisplayName);
}
});
return Task.FromResult(probeNames);
}
[Route(HttpVerbs.Get, "/networks/{networkId}")]
public Task<IDictionary<long, Device>> ListDevices(string networkId)