CreateNode API add return NodeId.

This commit is contained in:
sdk-team
2020-04-15 14:44:32 +08:00
parent d7e14e0c1b
commit eeaeed4023
4 changed files with 13 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
2020-04-15 Version: 1.36.357
- CreateNode API add return NodeId.
2020-04-15 Version: 1.36.356
- Vision-poc response modified.

View File

@@ -1 +1 @@
1.36.356
1.36.357

View File

@@ -37,11 +37,13 @@ namespace AlibabaCloud
CreateNodeResult();
explicit CreateNodeResult(const std::string &payload);
~CreateNodeResult();
std::string getNodeId()const;
std::string getOrderId()const;
protected:
void parse(const std::string &payload);
private:
std::string nodeId_;
std::string orderId_;
};

View File

@@ -41,9 +41,16 @@ void CreateNodeResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
if(!value["NodeId"].isNull())
nodeId_ = value["NodeId"].asString();
}
std::string CreateNodeResult::getNodeId()const
{
return nodeId_;
}
std::string CreateNodeResult::getOrderId()const
{
return orderId_;