Merging received bidding into the model.
This commit is contained in:
@ -119,7 +119,7 @@ QList<bidding> JsonParser::extractBiddings(const QJsonDocument& jsonDoc) {
|
||||
// REFACTOR implement & use "JsonParser::parseServerResponse(const QJsonObject& object,
|
||||
// QHash<QString, int> entries)"
|
||||
QJsonObject itemJsonObject = value.toObject();
|
||||
bidding values{.userId = QUuid(itemJsonObject.value("user_id").toString()),
|
||||
bidding values{.userId = itemJsonObject.value("user_id").toString(),
|
||||
.biddingRound = itemJsonObject.value("bidding_round").toInt(),
|
||||
.amount = itemJsonObject.value("amount").toInt(),
|
||||
.depotWishOne = itemJsonObject.value("depot_wish_one").toString(),
|
||||
|
||||
Reference in New Issue
Block a user