Skip to content

Commit

Permalink
Add rateable to response
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderNeumann committed Oct 16, 2023
1 parent db3617d commit 42c3fc4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class RESTfulChatResponse {
private InteractiveChatElementType type;
private JSONObject reqBody;
private boolean isFile;
private boolean rateable;


public RESTfulChatResponse(String text, HashMap<String, IncomingMessage> hashMap, String type) {
Expand All @@ -34,6 +35,9 @@ public RESTfulChatResponse(String text, HashMap<String, IncomingMessage> hashMap
if(value.expectsFile()){
isFile = true;
}
if(value.isRateable()){
rateable = true;
}
icel.add(ice);
}
}
Expand Down Expand Up @@ -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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 42c3fc4

Please sign in to comment.