Update QueryFaceVideoTemplate.
This commit is contained in:
@@ -34,6 +34,8 @@ public:
|
||||
void setUserId(const std::string &userId);
|
||||
std::string getVideoScene() const;
|
||||
void setVideoScene(const std::string &videoScene);
|
||||
bool getReturnTrans() const;
|
||||
void setReturnTrans(bool returnTrans);
|
||||
bool getAsync() const;
|
||||
void setAsync(bool async);
|
||||
std::string getVideoURL() const;
|
||||
@@ -42,6 +44,7 @@ public:
|
||||
private:
|
||||
std::string userId_;
|
||||
std::string videoScene_;
|
||||
bool returnTrans_;
|
||||
bool async_;
|
||||
std::string videoURL_;
|
||||
};
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace AlibabaCloud
|
||||
std::string templateFaceID;
|
||||
std::string templateFaceURL;
|
||||
};
|
||||
std::string transResult;
|
||||
std::vector<FaceInfosItem> faceInfos;
|
||||
std::string templateId;
|
||||
};
|
||||
|
||||
@@ -43,6 +43,15 @@ void AddFaceVideoTemplateRequest::setVideoScene(const std::string &videoScene) {
|
||||
setBodyParameter(std::string("VideoScene"), videoScene);
|
||||
}
|
||||
|
||||
bool AddFaceVideoTemplateRequest::getReturnTrans() const {
|
||||
return returnTrans_;
|
||||
}
|
||||
|
||||
void AddFaceVideoTemplateRequest::setReturnTrans(bool returnTrans) {
|
||||
returnTrans_ = returnTrans;
|
||||
setBodyParameter(std::string("ReturnTrans"), returnTrans ? "true" : "false");
|
||||
}
|
||||
|
||||
bool AddFaceVideoTemplateRequest::getAsync() const {
|
||||
return async_;
|
||||
}
|
||||
|
||||
@@ -42,6 +42,8 @@ void AddFaceVideoTemplateResult::parse(const std::string &payload)
|
||||
auto dateNode = value["Date"];
|
||||
if(!dateNode["TemplateId"].isNull())
|
||||
date_.templateId = dateNode["TemplateId"].asString();
|
||||
if(!dateNode["TransResult"].isNull())
|
||||
date_.transResult = dateNode["TransResult"].asString();
|
||||
auto allFaceInfosNode = dateNode["FaceInfos"]["faceInfosItem"];
|
||||
for (auto dateNodeFaceInfosfaceInfosItem : allFaceInfosNode)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user