From c5b68d7eadab2e53e5fac51c1fd038487193252e Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 7 Sep 2020 03:21:11 +0000 Subject: [PATCH] Add describes devices API. --- CHANGELOG | 3 +++ vcs/include/alibabacloud/vcs/model/DescribeDevicesResult.h | 2 +- vcs/src/model/DescribeDevicesResult.cc | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index a4a99c4a0..8303d8ffa 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-09-07 Version: patch +- Add describes devices API. + 2020-09-05 Version: patch - Add describes devices API. diff --git a/vcs/include/alibabacloud/vcs/model/DescribeDevicesResult.h b/vcs/include/alibabacloud/vcs/model/DescribeDevicesResult.h index 332c7259b..cdc1e4153 100644 --- a/vcs/include/alibabacloud/vcs/model/DescribeDevicesResult.h +++ b/vcs/include/alibabacloud/vcs/model/DescribeDevicesResult.h @@ -37,7 +37,7 @@ namespace AlibabaCloud struct Record { std::string inProtocol; - int status; + std::string status; std::string deviceType; std::string corpId; std::string deviceAddress; diff --git a/vcs/src/model/DescribeDevicesResult.cc b/vcs/src/model/DescribeDevicesResult.cc index e2bdfabc6..eb38b6a68 100644 --- a/vcs/src/model/DescribeDevicesResult.cc +++ b/vcs/src/model/DescribeDevicesResult.cc @@ -69,7 +69,7 @@ void DescribeDevicesResult::parse(const std::string &payload) if(!dataNodeRecordsRecord["Longitude"].isNull()) recordObject.longitude = dataNodeRecordsRecord["Longitude"].asString(); if(!dataNodeRecordsRecord["Status"].isNull()) - recordObject.status = std::stoi(dataNodeRecordsRecord["Status"].asString()); + recordObject.status = dataNodeRecordsRecord["Status"].asString(); if(!dataNodeRecordsRecord["Vendor"].isNull()) recordObject.vendor = dataNodeRecordsRecord["Vendor"].asString(); if(!dataNodeRecordsRecord["CorpId"].isNull())