From 42c3fc4bfdd51468584c167dd97e660c6e58a355 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 16 Oct 2023 09:53:14 +0200 Subject: [PATCH] Add rateable to response --- .../chat/RESTfulChatResponse.java | 12 ++++++++++++ .../model/IncomingMessage.java | 9 +++++++++ 2 files changed, 21 insertions(+) diff --git a/social-bot-manager/src/main/java/i5/las2peer/services/socialBotManagerService/chat/RESTfulChatResponse.java b/social-bot-manager/src/main/java/i5/las2peer/services/socialBotManagerService/chat/RESTfulChatResponse.java index c121a52a..ad5381ed 100644 --- a/social-bot-manager/src/main/java/i5/las2peer/services/socialBotManagerService/chat/RESTfulChatResponse.java +++ b/social-bot-manager/src/main/java/i5/las2peer/services/socialBotManagerService/chat/RESTfulChatResponse.java @@ -16,6 +16,7 @@ public class RESTfulChatResponse { private InteractiveChatElementType type; private JSONObject reqBody; private boolean isFile; + private boolean rateable; public RESTfulChatResponse(String text, HashMap hashMap, String type) { @@ -34,6 +35,9 @@ public RESTfulChatResponse(String text, HashMap hashMap if(value.expectsFile()){ isFile = true; } + if(value.isRateable()){ + rateable = true; + } icel.add(ice); } } @@ -92,4 +96,12 @@ public boolean isFile() { public void setFile(boolean isFile) { this.isFile = isFile; } + + public boolean isRateable() { + return rateable; + } + + public void setRateable(boolean rateable) { + this.rateable = rateable; + } } diff --git a/social-bot-manager/src/main/java/i5/las2peer/services/socialBotManagerService/model/IncomingMessage.java b/social-bot-manager/src/main/java/i5/las2peer/services/socialBotManagerService/model/IncomingMessage.java index 662ea3c2..245a1649 100644 --- a/social-bot-manager/src/main/java/i5/las2peer/services/socialBotManagerService/model/IncomingMessage.java +++ b/social-bot-manager/src/main/java/i5/las2peer/services/socialBotManagerService/model/IncomingMessage.java @@ -216,4 +216,13 @@ public void setFollowupMessageType(String followupMessageType) { public void setFreezeMessageSend(boolean flag) { this.freezeMessageSend = flag; } + + public boolean isRateable() { + return isRateable; + } + + + public void setRateable(boolean isRateable) { + this.isRateable = isRateable; + } }