Skip to content

Commit

Permalink
[x] Fix @ActionOutput annotations (openhab#17673)
Browse files Browse the repository at this point in the history
Related to openhab#17636

Signed-off-by: Laith Budairi <laith.budairi@exalt.ps>
  • Loading branch information
Laith-Budairi authored Oct 30, 2024
1 parent a2eea9b commit e163410
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class XActions implements ThingActions {
private @Nullable XHandler handler;

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

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

@RuleAction(label = "@text/sendDirectMessageActionLabel", description = "@text/sendDirectMessageActionDescription")
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendDirectMessage(
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendDirectMessage(
@ActionInput(name = "recipient") @Nullable String recipient,
@ActionInput(name = "text") @Nullable String text) {
if (recipient == null) {
Expand Down

0 comments on commit e163410

Please sign in to comment.