Update QueryFaceVideoTemplate.

This commit is contained in:
sdk-team
2024-05-30 09:56:01 +00:00
parent 192ded93b1
commit 22313c7d61
5 changed files with 16 additions and 1 deletions

View File

@@ -1 +1 @@
1.36.1918 1.36.1919

View File

@@ -34,6 +34,8 @@ public:
void setUserId(const std::string &userId); void setUserId(const std::string &userId);
std::string getVideoScene() const; std::string getVideoScene() const;
void setVideoScene(const std::string &videoScene); void setVideoScene(const std::string &videoScene);
bool getReturnTrans() const;
void setReturnTrans(bool returnTrans);
bool getAsync() const; bool getAsync() const;
void setAsync(bool async); void setAsync(bool async);
std::string getVideoURL() const; std::string getVideoURL() const;
@@ -42,6 +44,7 @@ public:
private: private:
std::string userId_; std::string userId_;
std::string videoScene_; std::string videoScene_;
bool returnTrans_;
bool async_; bool async_;
std::string videoURL_; std::string videoURL_;
}; };

View File

@@ -39,6 +39,7 @@ namespace AlibabaCloud
std::string templateFaceID; std::string templateFaceID;
std::string templateFaceURL; std::string templateFaceURL;
}; };
std::string transResult;
std::vector<FaceInfosItem> faceInfos; std::vector<FaceInfosItem> faceInfos;
std::string templateId; std::string templateId;
}; };

View File

@@ -43,6 +43,15 @@ void AddFaceVideoTemplateRequest::setVideoScene(const std::string &videoScene) {
setBodyParameter(std::string("VideoScene"), 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 { bool AddFaceVideoTemplateRequest::getAsync() const {
return async_; return async_;
} }

View File

@@ -42,6 +42,8 @@ void AddFaceVideoTemplateResult::parse(const std::string &payload)
auto dateNode = value["Date"]; auto dateNode = value["Date"];
if(!dateNode["TemplateId"].isNull()) if(!dateNode["TemplateId"].isNull())
date_.templateId = dateNode["TemplateId"].asString(); date_.templateId = dateNode["TemplateId"].asString();
if(!dateNode["TransResult"].isNull())
date_.transResult = dateNode["TransResult"].asString();
auto allFaceInfosNode = dateNode["FaceInfos"]["faceInfosItem"]; auto allFaceInfosNode = dateNode["FaceInfos"]["faceInfosItem"];
for (auto dateNodeFaceInfosfaceInfosItem : allFaceInfosNode) for (auto dateNodeFaceInfosfaceInfosItem : allFaceInfosNode)
{ {