Skip to content

Commit e163410

Browse files
authoredOct 30, 2024
[x] Fix @ActionOutput annotations (openhab#17673)
Related to openhab#17636 Signed-off-by: Laith Budairi <laith.budairi@exalt.ps>
1 parent a2eea9b commit e163410

File tree

1 file changed

+3
-3
lines changed
  • bundles/org.openhab.binding.x/src/main/java/org/openhab/binding/x/internal/action

1 file changed

+3
-3
lines changed
 

‎bundles/org.openhab.binding.x/src/main/java/org/openhab/binding/x/internal/action/XActions.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class XActions implements ThingActions {
4141
private @Nullable XHandler handler;
4242

4343
@RuleAction(label = "@text/sendPostActionLabel", description = "@text/sendPostActionDescription")
44-
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPost(
44+
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPost(
4545
@ActionInput(name = "text") @Nullable String text) {
4646
if (text == null) {
4747
logger.warn("Cannot send Post as text is missing.");
@@ -58,7 +58,7 @@ public class XActions implements ThingActions {
5858
}
5959

6060
@RuleAction(label = "@text/sendAttachmentPostActionLabel", description = "@text/sendAttachmentPostActionDescription")
61-
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPostWithAttachment(
61+
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPostWithAttachment(
6262
@ActionInput(name = "text") @Nullable String text, @ActionInput(name = "url") @Nullable String urlString) {
6363
if (text == null) {
6464
logger.warn("Cannot send Post as text is missing.");
@@ -79,7 +79,7 @@ public class XActions implements ThingActions {
7979
}
8080

8181
@RuleAction(label = "@text/sendDirectMessageActionLabel", description = "@text/sendDirectMessageActionDescription")
82-
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendDirectMessage(
82+
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendDirectMessage(
8383
@ActionInput(name = "recipient") @Nullable String recipient,
8484
@ActionInput(name = "text") @Nullable String text) {
8585
if (recipient == null) {

0 commit comments

Comments
 (0)
Please sign in to comment.