Update Nlp Automl SDK.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2019-11-20 Version 1.36.191
|
||||
- Update Nlp Automl SDK.
|
||||
|
||||
2019-11-20 Version 1.36.190
|
||||
- Add new OpenAPI.
|
||||
|
||||
|
||||
@@ -37,18 +37,12 @@ namespace AlibabaCloud
|
||||
GetPredictResultResult();
|
||||
explicit GetPredictResultResult(const std::string &payload);
|
||||
~GetPredictResultResult();
|
||||
std::string getMessage()const;
|
||||
std::string getContent()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string content_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -41,32 +41,11 @@ void GetPredictResultResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Content"].isNull())
|
||||
content_ = value["Content"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetPredictResultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetPredictResultResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
int GetPredictResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetPredictResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user