Add a new interface for asynchronous image translation.

This commit is contained in:
sdk-team
2020-11-16 08:05:20 +00:00
parent 5c14e9a77f
commit 80fbf35ea7
3 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
2020-11-16 Version: patch
- Add a new interface for asynchronous image translation.
2020-11-16 Version: patch
- Update videoenhan.

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct Data
{
std::string orc;
std::string pictureEditor;
std::string url;
};

View File

@@ -44,6 +44,8 @@ void GetImageTranslateResult::parse(const std::string &payload)
data_.url = dataNode["Url"].asString();
if(!dataNode["Orc"].isNull())
data_.orc = dataNode["Orc"].asString();
if(!dataNode["PictureEditor"].isNull())
data_.pictureEditor = dataNode["PictureEditor"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())