Skip to content
Snippets Groups Projects

Added; base and added keywords for bid

All threads resolved!
Files
4
@@ -183,7 +183,7 @@ public class Generator {
* @param child
*/
public String buildValueWithHighestBid(Value child) {
stringBuilder.append("\"Bid\": [\"HighestBid\"");
stringBuilder.append("\"Bid\": [{\"Base\": \"HighestBid\"}");
if (!child.getChildren().isEmpty()) {
stringBuilder.append(",");
@@ -192,7 +192,7 @@ public class Generator {
for (int i = 0; i < child.getChildren().size(); i++) {
ASTNode val = child.getChildren().get(i);
if (val instanceof Price) {
stringBuilder.append(((Price)val).getPrice());
stringBuilder.append("{\"Added\":" + ((Price)val).getPrice()+"}");
}
String text = (i == child.getChildren().size() - 1) ? "" : ",";