protected CommandResult ExecutePowerCommand(string state) { AdbManager.Arguments adbArgs = new AdbManager.Arguments(); adbArgs.addProperty("state", state); return RunCommand(Command.LED_POWER, adbArgs, null); }
protected static CommandResult ExecuteCommand(Command command, int frequency, Func<int, int> usbManagementFunction) { AdbManager.Arguments adbArgs = new AdbManager.Arguments(); adbArgs.addProperty("frequency", frequency.ToString()); adbArgs.addProperty("delay", "5000"); return RunCommand(command, adbArgs, usbManagementFunction); }