Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chtrembl committed Feb 6, 2024
1 parent ceb6a18 commit ac95014
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public String viewcart() {
sb = new StringBuilder();
sb.append("Your order contains a ");
for (int i = 0; i < order.getProducts().size(); i++) {
sb.append(order.getProducts().get(i).getName()).append(" with a quantity ").append(order.getProducts().get(i).getQuantity());
sb.append(order.getProducts().get(i).getName()).append(" (").append(order.getProducts().get(i).getQuantity()).append(")");
if (i < order.getProducts().size() - 1) {
sb.append(", a ");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,13 @@ private CompletableFuture<Void> getDebug(TurnContext turnContext, String text,
{
List<String> cart = new ArrayList<String>() {
{
add("Ball (1)");
add("Plush Lamb (4)");
add("Scratcher (2)");
add("Product A (1)");
add("Product B (2)");
add("Product C (3)");
}
};

return turnContext.sendActivity(MessageFactory.suggestedActions(cart, "Your cart contains the following:")).thenApply(sendResult -> null);
return turnContext.sendActivity(MessageFactory.suggestedActions(cart, "Sample message, cart contains the following:")).thenApply(sendResult -> null);
}

return null;
Expand Down

0 comments on commit ac95014

Please sign in to comment.