Update DetectVehicleIllegalParking DetectVehicleICongestion.

This commit is contained in:
sdk-team
2021-02-04 10:01:29 +00:00
parent ee902a7f28
commit 272a1c1466
3 changed files with 9 additions and 0 deletions

View File

@@ -40,6 +40,10 @@ void DetectIPCObjectResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Height"].isNull())
data_.height = std::stol(dataNode["Height"].asString());
if(!dataNode["Width"].isNull())
data_.width = std::stol(dataNode["Width"].asString());
auto allElementsNode = dataNode["Elements"]["Element"];
for (auto dataNodeElementsElement : allElementsNode)
{