Skip to content

Commit

Permalink
[p-s] Fix @ActionOutput annotations (openhab#17664)
Browse files Browse the repository at this point in the history
Related to openhab#17636

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
  • Loading branch information
lolodomo authored and KaaNee committed Nov 8, 2024
1 parent 03740b4 commit fd075c7
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void setThingHandler(@Nullable ThingHandler handler) {
}

@RuleAction(label = "@text/actionSendPushbulletNoteLabel", description = "@text/actionSendPushbulletNoteDesc")
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPushbulletNote(
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPushbulletNote(
@ActionInput(name = "recipient", label = "@text/actionSendPushbulletNoteInputRecipientLabel", description = "@text/actionSendPushbulletNoteInputRecipientDesc", type = "java.lang.String") @Nullable String recipient,
@ActionInput(name = "title", label = "@text/actionSendPushbulletNoteInputTitleLabel", description = "@text/actionSendPushbulletNoteInputTitleDesc", type = "java.lang.String") @Nullable String title,
@ActionInput(name = "message", label = "@text/actionSendPushbulletNoteInputMessageLabel", description = "@text/actionSendPushbulletNoteInputMessageDesc", type = "java.lang.String", required = true) String message) {
Expand All @@ -73,7 +73,7 @@ public static boolean sendPushbulletNote(ThingActions actions, @Nullable String
}

@RuleAction(label = "@text/actionSendPushbulletNoteLabel", description = "@text/actionSendPushbulletNoteDesc")
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPushbulletNote(
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPushbulletNote(
@ActionInput(name = "recipient", label = "@text/actionSendPushbulletNoteInputRecipientLabel", description = "@text/actionSendPushbulletNoteInputRecipientDesc", type = "java.lang.String") @Nullable String recipient,
@ActionInput(name = "message", label = "@text/actionSendPushbulletNoteInputMessageLabel", description = "@text/actionSendPushbulletNoteInputMessageDesc", type = "java.lang.String", required = true) String message) {
logger.trace("sendPushbulletNote '{}', '{}'", recipient, message);
Expand All @@ -92,7 +92,7 @@ public static boolean sendPushbulletNote(ThingActions actions, @Nullable String
}

@RuleAction(label = "@text/actionSendPushbulletLinkLabel", description = "@text/actionSendPushbulletLinkDesc")
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPushbulletLink(
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPushbulletLink(
@ActionInput(name = "recipient", label = "@text/actionSendPushbulletNoteInputRecipientLabel", description = "@text/actionSendPushbulletNoteInputRecipientDesc", type = "java.lang.String") @Nullable String recipient,
@ActionInput(name = "title", label = "@text/actionSendPushbulletNoteInputTitleLabel", description = "@text/actionSendPushbulletNoteInputTitleDesc", type = "java.lang.String") @Nullable String title,
@ActionInput(name = "message", label = "@text/actionSendPushbulletNoteInputMessageLabel", description = "@text/actionSendPushbulletNoteInputMessageDesc", type = "java.lang.String") @Nullable String message,
Expand All @@ -114,7 +114,7 @@ public static boolean sendPushbulletLink(ThingActions actions, @Nullable String
}

@RuleAction(label = "@text/actionSendPushbulletLinkLabel", description = "@text/actionSendPushbulletLinkDesc")
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPushbulletLink(
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPushbulletLink(
@ActionInput(name = "recipient", label = "@text/actionSendPushbulletNoteInputRecipientLabel", description = "@text/actionSendPushbulletNoteInputRecipientDesc", type = "java.lang.String") @Nullable String recipient,
@ActionInput(name = "url", label = "@text/actionSendPushbulletLinkInputUrlLabel", description = "@text/actionSendPushbulletLinkInputUrlDesc", type = "java.lang.String", required = true) String url) {
logger.trace("sendPushbulletLink '{}', '{}'", recipient, url);
Expand All @@ -133,7 +133,7 @@ public static boolean sendPushbulletLink(ThingActions actions, @Nullable String
}

@RuleAction(label = "@text/actionSendPushbulletFileLabel", description = "@text/actionSendPushbulletFileDesc")
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPushbulletFile(
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPushbulletFile(
@ActionInput(name = "recipient", label = "@text/actionSendPushbulletNoteInputRecipientLabel", description = "@text/actionSendPushbulletNoteInputRecipientDesc", type = "java.lang.String") @Nullable String recipient,
@ActionInput(name = "title", label = "@text/actionSendPushbulletNoteInputTitleLabel", description = "@text/actionSendPushbulletNoteInputTitleDesc", type = "java.lang.String") @Nullable String title,
@ActionInput(name = "message", label = "@text/actionSendPushbulletNoteInputMessageLabel", description = "@text/actionSendPushbulletNoteInputMessageDesc", type = "java.lang.String") @Nullable String message,
Expand All @@ -156,7 +156,7 @@ public static boolean sendPushbulletFile(ThingActions actions, @Nullable String
}

@RuleAction(label = "@text/actionSendPushbulletFileLabel", description = "@text/actionSendPushbulletFileDesc")
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPushbulletFile(
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPushbulletFile(
@ActionInput(name = "recipient", label = "@text/actionSendPushbulletNoteInputRecipientLabel", description = "@text/actionSendPushbulletNoteInputRecipientDesc", type = "java.lang.String") @Nullable String recipient,
@ActionInput(name = "title", label = "@text/actionSendPushbulletNoteInputTitleLabel", description = "@text/actionSendPushbulletNoteInputTitleDesc", type = "java.lang.String") @Nullable String title,
@ActionInput(name = "message", label = "@text/actionSendPushbulletNoteInputMessageLabel", description = "@text/actionSendPushbulletNoteInputMessageDesc", type = "java.lang.String") @Nullable String message,
Expand All @@ -178,7 +178,7 @@ public static boolean sendPushbulletFile(ThingActions actions, @Nullable String
}

@RuleAction(label = "@text/actionSendPushbulletFileLabel", description = "@text/actionSendPushbulletFileDesc")
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPushbulletFile(
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPushbulletFile(
@ActionInput(name = "recipient", label = "@text/actionSendPushbulletNoteInputRecipientLabel", description = "@text/actionSendPushbulletNoteInputRecipientDesc", type = "java.lang.String") @Nullable String recipient,
@ActionInput(name = "content", label = "@text/actionSendPushbulletFileInputContent", description = "@text/actionSendPushbulletFileInputContentDesc", type = "java.lang.String", required = true) String content) {
logger.trace("sendPushbulletFile '{}', '{}'", recipient, content);
Expand Down
Loading

0 comments on commit fd075c7

Please sign in to comment.