Skip to content

Commit

Permalink
[webexteams] Fix @ActionOutput annotations (openhab#17653) (openhab#1…
Browse files Browse the repository at this point in the history
…7656)

Related to openhab#17636

Signed-off-by: Laith Budairi <laith.budairi@exalt.ps>
Co-authored-by: Laith Budairi <Laith.Budairi@exalt.ps>
  • Loading branch information
2 people authored and matchews committed Dec 16, 2024
1 parent 9c1727a commit 335225d
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class WebexTeamsActions implements ThingActions {
private @Nullable WebexTeamsHandler handler;

@RuleAction(label = "@text/sendMessageActionLabel", description = "@text/sendMessageActionDescription")
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendMessage(
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendMessage(
@ActionInput(name = "text") @Nullable String text) {
if (text == null) {
logger.warn("Cannot send Message as text is missing.");
Expand All @@ -56,7 +56,7 @@ public class WebexTeamsActions implements ThingActions {
}

@RuleAction(label = "@text/sendMessageAttActionLabel", description = "@text/sendMessageAttActionDescription")
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendMessage(
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendMessage(
@ActionInput(name = "text") @Nullable String text, @ActionInput(name = "attach") @Nullable String attach) {
if (text == null) {
logger.warn("Cannot send Message as text is missing.");
Expand All @@ -77,7 +77,7 @@ public class WebexTeamsActions implements ThingActions {
}

@RuleAction(label = "@text/sendRoomMessageActionLabel", description = "@text/sendRoomMessageActionDescription")
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendRoomMessage(
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendRoomMessage(
@ActionInput(name = "roomId") @Nullable String roomId, @ActionInput(name = "text") @Nullable String text) {
if (text == null) {
logger.warn("Cannot send Message as text is missing.");
Expand All @@ -98,7 +98,7 @@ public class WebexTeamsActions implements ThingActions {
}

@RuleAction(label = "@text/sendRoomMessageAttActionLabel", description = "@text/sendRoomMessageAttActionDescription")
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendRoomMessage(
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendRoomMessage(
@ActionInput(name = "roomId") @Nullable String roomId, @ActionInput(name = "text") @Nullable String text,
@ActionInput(name = "attach") @Nullable String attach) {
if (text == null) {
Expand All @@ -123,7 +123,7 @@ public class WebexTeamsActions implements ThingActions {
}

@RuleAction(label = "@text/sendPersonMessageActionLabel", description = "@text/sendPersonMessageActionDescription")
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPersonMessage(
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPersonMessage(
@ActionInput(name = "personEmail") @Nullable String personEmail,
@ActionInput(name = "text") @Nullable String text) {
if (text == null) {
Expand All @@ -145,7 +145,7 @@ public class WebexTeamsActions implements ThingActions {
}

@RuleAction(label = "@text/sendPersonMessageAttActionLabel", description = "@text/sendPersonMessageAttActionDescription")
public @ActionOutput(name = "success", type = "java.lang.Boolean") Boolean sendPersonMessage(
public @ActionOutput(label = "Success", type = "java.lang.Boolean") Boolean sendPersonMessage(
@ActionInput(name = "personEmail") @Nullable String personEmail,
@ActionInput(name = "text") @Nullable String text, @ActionInput(name = "attach") @Nullable String attach) {
if (text == null) {
Expand Down

0 comments on commit 335225d

Please sign in to comment.