/** * This method does the pressKey for a list of commands with a given delay between the commands. * * @see com.comcast.cats.provider.RemoteProvider#pressKeys(java.util.List, java.lang.Integer) */ @Override public boolean pressKeys(List<RemoteCommand> commands, Integer delay) { String commandStr = ""; for (RemoteCommand command : commands) { commandStr = commandStr + "," + command.name(); } return sleepOnTrue(irRest.pressKeys(keySet, commandStr, delay)); }
/** * This method takes a list of Remote commands, list of repeat counts and list of delays between * each remote command. * * @see com.comcast.cats.provider.RemoteProvider#enterCustomKeySequence(java.util.List, * java.util.List, java.util.List) */ @Override public boolean enterCustomKeySequence( List<RemoteCommand> commands, List<Integer> repeatCount, List<Integer> delay) { String commandStr = ""; for (RemoteCommand command : commands) { commandStr = commandStr + "," + command.name(); } String delayStr = ""; for (Integer delayInt : delay) { delayStr = delayStr + "," + delayInt; } String countStr = ""; for (Integer cnt : repeatCount) { countStr = countStr + "," + cnt; } return sleepOnTrue(irRest.enterCustomKeySequence(keySet, commandStr, delayStr, countStr)); }