Skip to content

Commit

Permalink
[webexteams] Fix @ActionOutput annotations (#17653) (#17656)
Browse files Browse the repository at this point in the history
Related to #17636

Signed-off-by: Laith Budairi <[email protected]>
Co-authored-by: Laith Budairi <[email protected]>
  • Loading branch information
Laith-Budairi and LaithBudairi authored Oct 29, 2024
1 parent 4181395 commit 862c722
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 862c722

Please sign in to comment.