Add source id for list face detail.

This commit is contained in:
sdk-team
2020-08-10 15:50:28 +08:00
parent fd4bd1e797
commit 91c8eee22c
10 changed files with 27 additions and 1 deletions

View File

@@ -94,6 +94,8 @@ void ListBodyAlgorithmResultsResult::parse(const std::string &payload)
recordsItemObject.coatColor = dataNodeRecordsRecordsItem["CoatColor"].asString();
if(!dataNodeRecordsRecordsItem["TrousersColor"].isNull())
recordsItemObject.trousersColor = dataNodeRecordsRecordsItem["TrousersColor"].asString();
if(!dataNodeRecordsRecordsItem["SourceId"].isNull())
recordsItemObject.sourceId = dataNodeRecordsRecordsItem["SourceId"].asString();
data_.records.push_back(recordsItemObject);
}
if(!value["Code"].isNull())

View File

@@ -82,6 +82,8 @@ void ListFaceAlgorithmResultsResult::parse(const std::string &payload)
recordsItemObject.picUrlPath = dataNodeRecordsRecordsItem["PicUrlPath"].asString();
if(!dataNodeRecordsRecordsItem["TargetPicUrlPath"].isNull())
recordsItemObject.targetPicUrlPath = dataNodeRecordsRecordsItem["TargetPicUrlPath"].asString();
if(!dataNodeRecordsRecordsItem["SourceId"].isNull())
recordsItemObject.sourceId = dataNodeRecordsRecordsItem["SourceId"].asString();
data_.records.push_back(recordsItemObject);
}
if(!value["Code"].isNull())

View File

@@ -92,6 +92,8 @@ void ListMotorAlgorithmResultsResult::parse(const std::string &payload)
recordsItemObject.safetyBelt = dataNodeRecordsRecordsItem["SafetyBelt"].asString();
if(!dataNodeRecordsRecordsItem["Calling"].isNull())
recordsItemObject.calling = dataNodeRecordsRecordsItem["Calling"].asString();
if(!dataNodeRecordsRecordsItem["SourceId"].isNull())
recordsItemObject.sourceId = dataNodeRecordsRecordsItem["SourceId"].asString();
data_.records.push_back(recordsItemObject);
}
if(!value["Code"].isNull())

View File

@@ -69,6 +69,17 @@ void ReportDeviceCapacityRequest::setPresetNum(const std::string& presetNum)
setBodyParameter("PresetNum", presetNum);
}
std::string ReportDeviceCapacityRequest::getDeviceTimeStamp()const
{
return deviceTimeStamp_;
}
void ReportDeviceCapacityRequest::setDeviceTimeStamp(const std::string& deviceTimeStamp)
{
deviceTimeStamp_ = deviceTimeStamp;
setBodyParameter("DeviceTimeStamp", deviceTimeStamp);
}
std::string ReportDeviceCapacityRequest::getDeviceSn()const
{
return deviceSn_;