Some cleanups
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user