From 862c7223edb28f43661c0cc8dc060ca1ae0c18cd Mon Sep 17 00:00:00 2001 From: Laith-Budairi <48382142+Laith-Budairi@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:47:44 +0200 Subject: [PATCH] [webexteams] Fix @ActionOutput annotations (#17653) (#17656) Related to #17636 Signed-off-by: Laith Budairi Co-authored-by: Laith Budairi --- .../webexteams/internal/WebexTeamsActions.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bundles/org.openhab.binding.webexteams/src/main/java/org/openhab/binding/webexteams/internal/WebexTeamsActions.java b/bundles/org.openhab.binding.webexteams/src/main/java/org/openhab/binding/webexteams/internal/WebexTeamsActions.java index feee6c1fe03dc..c1ad07848cd6b 100644 --- a/bundles/org.openhab.binding.webexteams/src/main/java/org/openhab/binding/webexteams/internal/WebexTeamsActions.java +++ b/bundles/org.openhab.binding.webexteams/src/main/java/org/openhab/binding/webexteams/internal/WebexTeamsActions.java @@ -39,7 +39,7 @@ public class WebexTeamsActions implements ThingActions { private @Nullable WebexTeamsHandler handler; @RuleAction(label = "@text/sendMessageActionLabel", description = "@text/sendMessageActionDescription") - public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendMessage( + public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendMessage( @ActionInput(name = "text") @Nullable String text) { if (text == null) { logger.warn("Cannot send Message as text is missing."); @@ -56,7 +56,7 @@ public class WebexTeamsActions implements ThingActions { } @RuleAction(label = "@text/sendMessageAttActionLabel", description = "@text/sendMessageAttActionDescription") - public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendMessage( + public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendMessage( @ActionInput(name = "text") @Nullable String text, @ActionInput(name = "attach") @Nullable String attach) { if (text == null) { logger.warn("Cannot send Message as text is missing."); @@ -77,7 +77,7 @@ public class WebexTeamsActions implements ThingActions { } @RuleAction(label = "@text/sendRoomMessageActionLabel", description = "@text/sendRoomMessageActionDescription") - public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendRoomMessage( + public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendRoomMessage( @ActionInput(name = "roomId") @Nullable String roomId, @ActionInput(name = "text") @Nullable String text) { if (text == null) { logger.warn("Cannot send Message as text is missing."); @@ -98,7 +98,7 @@ public class WebexTeamsActions implements ThingActions { } @RuleAction(label = "@text/sendRoomMessageAttActionLabel", description = "@text/sendRoomMessageAttActionDescription") - public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendRoomMessage( + public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendRoomMessage( @ActionInput(name = "roomId") @Nullable String roomId, @ActionInput(name = "text") @Nullable String text, @ActionInput(name = "attach") @Nullable String attach) { if (text == null) { @@ -123,7 +123,7 @@ public class WebexTeamsActions implements ThingActions { } @RuleAction(label = "@text/sendPersonMessageActionLabel", description = "@text/sendPersonMessageActionDescription") - public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPersonMessage( + public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPersonMessage( @ActionInput(name = "personEmail") @Nullable String personEmail, @ActionInput(name = "text") @Nullable String text) { if (text == null) { @@ -145,7 +145,7 @@ public class WebexTeamsActions implements ThingActions { } @RuleAction(label = "@text/sendPersonMessageAttActionLabel", description = "@text/sendPersonMessageAttActionDescription") - public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPersonMessage( + public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPersonMessage( @ActionInput(name = "personEmail") @Nullable String personEmail, @ActionInput(name = "text") @Nullable String text, @ActionInput(name = "attach") @Nullable String attach) { if (text == null) {