LegacyTelogisServiceListInputs Method |
Namespace: Telogis.API
/* Output snippet: [Truck - Dave] -[VCore] -[Ignition]=[connected] -[Blue Wire]=[connected] -[Purple Wire]=[disconnected]*/ // get first 10 Units Unit[] units = service.ListUnits(0, 10); foreach (Unit u in units) { Console.WriteLine("[{0}]", u.Name); // get all devices connected to this Unit Device[] devices = service.ListDevices(u.ID); foreach (Device d in devices) { Console.WriteLine(" -[{0}]", d.Name); // get all inputs connected to this Device Input[] inputs = service.ListInputs(u.ID, d.ID); foreach (Input i in inputs) { Console.WriteLine(" -[{0}]=[{1}]", i.Name, i.Connected ? "connected" : "disconnected"); } } Console.WriteLine(""); }