|
15 | 15 | import org.eclipse.jdt.annotation.NonNullByDefault;
|
16 | 16 | import org.openhab.binding.freeboxos.internal.handler.ActivePlayerHandler;
|
17 | 17 | import org.openhab.binding.freeboxos.internal.handler.PlayerHandler;
|
| 18 | +import org.openhab.core.automation.annotation.ActionInput; |
18 | 19 | import org.openhab.core.automation.annotation.RuleAction;
|
19 | 20 | import org.openhab.core.thing.binding.ThingActions;
|
20 | 21 | import org.openhab.core.thing.binding.ThingActionsScope;
|
@@ -52,4 +53,30 @@ public static void rebootPlayer(ThingActions actions) {
|
52 | 53 | throw new IllegalArgumentException("actions parameter is not an ActivePlayerActions class.");
|
53 | 54 | }
|
54 | 55 | }
|
| 56 | + |
| 57 | + @Override |
| 58 | + @RuleAction(label = "@text/action.sendKey.label", description = "@text/action.sendKey.description") |
| 59 | + public void sendKey(@ActionInput(name = "key", label = "@text/action.input.key.label") String key) { |
| 60 | + super.sendKey(key); |
| 61 | + } |
| 62 | + |
| 63 | + @Override |
| 64 | + @RuleAction(label = "@text/action.sendLongKey.label", description = "@text/action.sendLongKey.description") |
| 65 | + public void sendLongKey(@ActionInput(name = "key", label = "@text/action.input.key.label") String key) { |
| 66 | + super.sendLongKey(key); |
| 67 | + } |
| 68 | + |
| 69 | + @Override |
| 70 | + @RuleAction(label = "@text/action.sendMultipleKeys.label", description = "@text/action.sendMultipleKeys.description") |
| 71 | + public void sendMultipleKeys( |
| 72 | + @ActionInput(name = "keys", label = "@text/action.sendMultipleKeys.input.keys.label", description = "@text/action.sendMultipleKeys.input.keys.description") String keys) { |
| 73 | + super.sendMultipleKeys(keys); |
| 74 | + } |
| 75 | + |
| 76 | + @Override |
| 77 | + @RuleAction(label = "@text/action.sendKeyRepeat.label", description = "@text/action.sendKeyRepeat.description") |
| 78 | + public void sendKeyRepeat(@ActionInput(name = "key", label = "@text/action.input.key.label") String key, |
| 79 | + @ActionInput(name = "count", label = "@text/action.sendKeyRepeat.input.count.label", description = "@text/action.sendKeyRepeat.input.count.description") int count) { |
| 80 | + super.sendKeyRepeat(key, count); |
| 81 | + } |
55 | 82 | }
|
0 commit comments