mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
[x] Fix @ActionOutput annotations (#17673)
Related to #17636 Signed-off-by: Laith Budairi <laith.budairi@exalt.ps>
This commit is contained in:
+3
-3
@@ -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.");
|
||||
@@ -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.");
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user