Add a new interface for asynchronous image translation.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2020-11-16 Version: patch
|
||||
- Add a new interface for asynchronous image translation.
|
||||
|
||||
2020-11-16 Version: patch
|
||||
- Update videoenhan.
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
struct Data
|
||||
{
|
||||
std::string orc;
|
||||
std::string pictureEditor;
|
||||
std::string url;
|
||||
};
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user