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

@@ -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_;