mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[x] Fix @ActionOutput annotations (#17673)
Related to #17636 Signed-off-by: Laith Budairi <laith.budairi@exalt.ps> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
4b6d78203a
commit
a83c961ad8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user