Generate SDK by new Generator

This commit is contained in:
wb-hx510875
2019-09-18 11:18:56 +08:00
parent be86048a76
commit f3eaf1d292
9054 changed files with 325898 additions and 381375 deletions

View File

@@ -35,13 +35,9 @@ CreateGroupResult::~CreateGroupResult()
void CreateGroupResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());

View File

@@ -35,13 +35,9 @@ DeleteDeviceAllGroupResult::~DeleteDeviceAllGroupResult()
void DeleteDeviceAllGroupResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());

View File

@@ -35,13 +35,9 @@ DeleteDeviceGroupResult::~DeleteDeviceGroupResult()
void DeleteDeviceGroupResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());

View File

@@ -35,13 +35,9 @@ DeleteFaceResult::~DeleteFaceResult()
void DeleteFaceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());

View File

@@ -35,13 +35,9 @@ DeleteGroupResult::~DeleteGroupResult()
void DeleteGroupResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());

View File

@@ -35,13 +35,9 @@ LinkFaceResult::~LinkFaceResult()
void LinkFaceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());

View File

@@ -35,13 +35,9 @@ QueryAddUserInfoResult::~QueryAddUserInfoResult()
void QueryAddUserInfoResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allCurrentFaceInfos = value["CurrentFaceInfos"]["CurrentFaceInfosItem"];

View File

@@ -35,13 +35,9 @@ QueryAllGroupsResult::~QueryAllGroupsResult()
void QueryAllGroupsResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allGroups = dataNode["Groups"]["Groups"];

View File

@@ -36,6 +36,28 @@ void QueryAuthenticationRequest::setLicenseType(int licenseType)
setCoreParameter("LicenseType", std::to_string(licenseType));
}
int QueryAuthenticationRequest::getCurrentPage()const
{
return currentPage_;
}
void QueryAuthenticationRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string QueryAuthenticationRequest::getProductKey()const
{
return productKey_;
}
void QueryAuthenticationRequest::setProductKey(const std::string& productKey)
{
productKey_ = productKey;
setCoreParameter("ProductKey", productKey);
}
std::string QueryAuthenticationRequest::getIotId()const
{
return iotId_;
@@ -58,17 +80,6 @@ void QueryAuthenticationRequest::setPageSize(int pageSize)
setCoreParameter("PageSize", std::to_string(pageSize));
}
int QueryAuthenticationRequest::getCurrentPage()const
{
return currentPage_;
}
void QueryAuthenticationRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string QueryAuthenticationRequest::getDeviceName()const
{
return deviceName_;
@@ -80,14 +91,3 @@ void QueryAuthenticationRequest::setDeviceName(const std::string& deviceName)
setCoreParameter("DeviceName", deviceName);
}
std::string QueryAuthenticationRequest::getProductKey()const
{
return productKey_;
}
void QueryAuthenticationRequest::setProductKey(const std::string& productKey)
{
productKey_ = productKey;
setCoreParameter("ProductKey", productKey);
}

View File

@@ -35,13 +35,9 @@ QueryAuthenticationResult::~QueryAuthenticationResult()
void QueryAuthenticationResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["DataItem"];
for (auto value : allData)

View File

@@ -35,13 +35,9 @@ QueryFaceResult::~QueryFaceResult()
void QueryFaceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allUserFaceMetas = value["UserFaceMetas"]["UserFaceMetasItem"];

View File

@@ -35,13 +35,9 @@ QueryGroupUsersResult::~QueryGroupUsersResult()
void QueryGroupUsersResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["DataItem"];
for (auto value : allData)

View File

@@ -35,13 +35,9 @@ QueryLicensesResult::~QueryLicensesResult()
void QueryLicensesResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["DataItem"];
for (auto value : allData)

View File

@@ -35,13 +35,9 @@ QuerySyncPicScheduleResult::~QuerySyncPicScheduleResult()
void QuerySyncPicScheduleResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Rate"].isNull())

View File

@@ -35,13 +35,9 @@ RegisterFaceResult::~RegisterFaceResult()
void RegisterFaceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());

View File

@@ -35,13 +35,9 @@ SearchFaceResult::~SearchFaceResult()
void SearchFaceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allTopUserItem = value["TopUserItem"]["TopUserItemItem"];

View File

@@ -35,13 +35,9 @@ SyncFacePicturesResult::~SyncFacePicturesResult()
void SyncFacePicturesResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());

View File

@@ -35,13 +35,9 @@ UnlinkFaceResult::~UnlinkFaceResult()
void UnlinkFaceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());

View File

@@ -35,13 +35,9 @@ UpdateFaceResult::~UpdateFaceResult()
void UpdateFaceResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Reader reader;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());