Generated 2019-05-10 for ltl.
This commit is contained in:
1781
ltl/src/LtlClient.cc
Normal file
1781
ltl/src/LtlClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
63
ltl/src/model/ApplyDataModelConfigInfoRequest.cc
Normal file
63
ltl/src/model/ApplyDataModelConfigInfoRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ApplyDataModelConfigInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::ApplyDataModelConfigInfoRequest;
|
||||
|
||||
ApplyDataModelConfigInfoRequest::ApplyDataModelConfigInfoRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "ApplyDataModelConfigInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApplyDataModelConfigInfoRequest::~ApplyDataModelConfigInfoRequest() {}
|
||||
|
||||
std::string ApplyDataModelConfigInfoRequest::getConfiguration() const {
|
||||
return configuration_;
|
||||
}
|
||||
|
||||
void ApplyDataModelConfigInfoRequest::setConfiguration(const std::string &configuration) {
|
||||
configuration_ = configuration;
|
||||
setParameter(std::string("Configuration"), configuration);
|
||||
}
|
||||
|
||||
std::string ApplyDataModelConfigInfoRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void ApplyDataModelConfigInfoRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string ApplyDataModelConfigInfoRequest::getProductKey() const {
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void ApplyDataModelConfigInfoRequest::setProductKey(const std::string &productKey) {
|
||||
productKey_ = productKey;
|
||||
setParameter(std::string("ProductKey"), productKey);
|
||||
}
|
||||
|
||||
std::string ApplyDataModelConfigInfoRequest::getDataModelCode() const {
|
||||
return dataModelCode_;
|
||||
}
|
||||
|
||||
void ApplyDataModelConfigInfoRequest::setDataModelCode(const std::string &dataModelCode) {
|
||||
dataModelCode_ = dataModelCode;
|
||||
setParameter(std::string("DataModelCode"), dataModelCode);
|
||||
}
|
||||
|
||||
72
ltl/src/model/ApplyDataModelConfigInfoResult.cc
Normal file
72
ltl/src/model/ApplyDataModelConfigInfoResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ApplyDataModelConfigInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
ApplyDataModelConfigInfoResult::ApplyDataModelConfigInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ApplyDataModelConfigInfoResult::ApplyDataModelConfigInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ApplyDataModelConfigInfoResult::~ApplyDataModelConfigInfoResult()
|
||||
{}
|
||||
|
||||
void ApplyDataModelConfigInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ApplyDataModelConfigInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ApplyDataModelConfigInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ApplyDataModelConfigInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ApplyDataModelConfigInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
ltl/src/model/AttachDataRequest.cc
Normal file
72
ltl/src/model/AttachDataRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/AttachDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::AttachDataRequest;
|
||||
|
||||
AttachDataRequest::AttachDataRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "AttachData") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachDataRequest::~AttachDataRequest() {}
|
||||
|
||||
std::string AttachDataRequest::getBusinessId() const {
|
||||
return businessId_;
|
||||
}
|
||||
|
||||
void AttachDataRequest::setBusinessId(const std::string &businessId) {
|
||||
businessId_ = businessId;
|
||||
setParameter(std::string("BusinessId"), businessId);
|
||||
}
|
||||
|
||||
std::string AttachDataRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void AttachDataRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string AttachDataRequest::getProductKey() const {
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void AttachDataRequest::setProductKey(const std::string &productKey) {
|
||||
productKey_ = productKey;
|
||||
setParameter(std::string("ProductKey"), productKey);
|
||||
}
|
||||
|
||||
std::string AttachDataRequest::getValue() const {
|
||||
return value_;
|
||||
}
|
||||
|
||||
void AttachDataRequest::setValue(const std::string &value) {
|
||||
value_ = value;
|
||||
setParameter(std::string("Value"), value);
|
||||
}
|
||||
|
||||
std::string AttachDataRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void AttachDataRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
72
ltl/src/model/AttachDataResult.cc
Normal file
72
ltl/src/model/AttachDataResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/AttachDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
AttachDataResult::AttachDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachDataResult::AttachDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachDataResult::~AttachDataResult()
|
||||
{}
|
||||
|
||||
void AttachDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AttachDataResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AttachDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AttachDataResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AttachDataResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
126
ltl/src/model/AttachDataWithSignatureRequest.cc
Normal file
126
ltl/src/model/AttachDataWithSignatureRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/AttachDataWithSignatureRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::AttachDataWithSignatureRequest;
|
||||
|
||||
AttachDataWithSignatureRequest::AttachDataWithSignatureRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "AttachDataWithSignature") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachDataWithSignatureRequest::~AttachDataWithSignatureRequest() {}
|
||||
|
||||
std::string AttachDataWithSignatureRequest::getIotSignature() const {
|
||||
return iotSignature_;
|
||||
}
|
||||
|
||||
void AttachDataWithSignatureRequest::setIotSignature(const std::string &iotSignature) {
|
||||
iotSignature_ = iotSignature;
|
||||
setParameter(std::string("IotSignature"), iotSignature);
|
||||
}
|
||||
|
||||
std::string AttachDataWithSignatureRequest::getIotAuthType() const {
|
||||
return iotAuthType_;
|
||||
}
|
||||
|
||||
void AttachDataWithSignatureRequest::setIotAuthType(const std::string &iotAuthType) {
|
||||
iotAuthType_ = iotAuthType;
|
||||
setParameter(std::string("IotAuthType"), iotAuthType);
|
||||
}
|
||||
|
||||
std::string AttachDataWithSignatureRequest::getIotIdSource() const {
|
||||
return iotIdSource_;
|
||||
}
|
||||
|
||||
void AttachDataWithSignatureRequest::setIotIdSource(const std::string &iotIdSource) {
|
||||
iotIdSource_ = iotIdSource;
|
||||
setParameter(std::string("IotIdSource"), iotIdSource);
|
||||
}
|
||||
|
||||
std::string AttachDataWithSignatureRequest::getBusinessId() const {
|
||||
return businessId_;
|
||||
}
|
||||
|
||||
void AttachDataWithSignatureRequest::setBusinessId(const std::string &businessId) {
|
||||
businessId_ = businessId;
|
||||
setParameter(std::string("BusinessId"), businessId);
|
||||
}
|
||||
|
||||
std::string AttachDataWithSignatureRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void AttachDataWithSignatureRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string AttachDataWithSignatureRequest::getProductKey() const {
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void AttachDataWithSignatureRequest::setProductKey(const std::string &productKey) {
|
||||
productKey_ = productKey;
|
||||
setParameter(std::string("ProductKey"), productKey);
|
||||
}
|
||||
|
||||
std::string AttachDataWithSignatureRequest::getIotId() const {
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void AttachDataWithSignatureRequest::setIotId(const std::string &iotId) {
|
||||
iotId_ = iotId;
|
||||
setParameter(std::string("IotId"), iotId);
|
||||
}
|
||||
|
||||
std::string AttachDataWithSignatureRequest::getIotDataDigest() const {
|
||||
return iotDataDigest_;
|
||||
}
|
||||
|
||||
void AttachDataWithSignatureRequest::setIotDataDigest(const std::string &iotDataDigest) {
|
||||
iotDataDigest_ = iotDataDigest;
|
||||
setParameter(std::string("IotDataDigest"), iotDataDigest);
|
||||
}
|
||||
|
||||
std::string AttachDataWithSignatureRequest::getIotIdServiceProvider() const {
|
||||
return iotIdServiceProvider_;
|
||||
}
|
||||
|
||||
void AttachDataWithSignatureRequest::setIotIdServiceProvider(const std::string &iotIdServiceProvider) {
|
||||
iotIdServiceProvider_ = iotIdServiceProvider;
|
||||
setParameter(std::string("IotIdServiceProvider"), iotIdServiceProvider);
|
||||
}
|
||||
|
||||
std::string AttachDataWithSignatureRequest::getValue() const {
|
||||
return value_;
|
||||
}
|
||||
|
||||
void AttachDataWithSignatureRequest::setValue(const std::string &value) {
|
||||
value_ = value;
|
||||
setParameter(std::string("Value"), value);
|
||||
}
|
||||
|
||||
std::string AttachDataWithSignatureRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void AttachDataWithSignatureRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
72
ltl/src/model/AttachDataWithSignatureResult.cc
Normal file
72
ltl/src/model/AttachDataWithSignatureResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/AttachDataWithSignatureResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
AttachDataWithSignatureResult::AttachDataWithSignatureResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachDataWithSignatureResult::AttachDataWithSignatureResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachDataWithSignatureResult::~AttachDataWithSignatureResult()
|
||||
{}
|
||||
|
||||
void AttachDataWithSignatureResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AttachDataWithSignatureResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AttachDataWithSignatureResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AttachDataWithSignatureResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AttachDataWithSignatureResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
ltl/src/model/AuthorizeDeviceGroupRequest.cc
Normal file
54
ltl/src/model/AuthorizeDeviceGroupRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/AuthorizeDeviceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::AuthorizeDeviceGroupRequest;
|
||||
|
||||
AuthorizeDeviceGroupRequest::AuthorizeDeviceGroupRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "AuthorizeDeviceGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AuthorizeDeviceGroupRequest::~AuthorizeDeviceGroupRequest() {}
|
||||
|
||||
std::string AuthorizeDeviceGroupRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void AuthorizeDeviceGroupRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string AuthorizeDeviceGroupRequest::getDeviceGroupId() const {
|
||||
return deviceGroupId_;
|
||||
}
|
||||
|
||||
void AuthorizeDeviceGroupRequest::setDeviceGroupId(const std::string &deviceGroupId) {
|
||||
deviceGroupId_ = deviceGroupId;
|
||||
setParameter(std::string("DeviceGroupId"), deviceGroupId);
|
||||
}
|
||||
|
||||
std::string AuthorizeDeviceGroupRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void AuthorizeDeviceGroupRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/AuthorizeDeviceGroupResult.cc
Normal file
72
ltl/src/model/AuthorizeDeviceGroupResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/AuthorizeDeviceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
AuthorizeDeviceGroupResult::AuthorizeDeviceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AuthorizeDeviceGroupResult::AuthorizeDeviceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AuthorizeDeviceGroupResult::~AuthorizeDeviceGroupResult()
|
||||
{}
|
||||
|
||||
void AuthorizeDeviceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AuthorizeDeviceGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AuthorizeDeviceGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AuthorizeDeviceGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AuthorizeDeviceGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
ltl/src/model/AuthorizeDeviceRequest.cc
Normal file
63
ltl/src/model/AuthorizeDeviceRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/AuthorizeDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::AuthorizeDeviceRequest;
|
||||
|
||||
AuthorizeDeviceRequest::AuthorizeDeviceRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "AuthorizeDevice") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AuthorizeDeviceRequest::~AuthorizeDeviceRequest() {}
|
||||
|
||||
std::string AuthorizeDeviceRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void AuthorizeDeviceRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string AuthorizeDeviceRequest::getDeviceId() const {
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void AuthorizeDeviceRequest::setDeviceId(const std::string &deviceId) {
|
||||
deviceId_ = deviceId;
|
||||
setParameter(std::string("DeviceId"), deviceId);
|
||||
}
|
||||
|
||||
std::string AuthorizeDeviceRequest::getDeviceGroupId() const {
|
||||
return deviceGroupId_;
|
||||
}
|
||||
|
||||
void AuthorizeDeviceRequest::setDeviceGroupId(const std::string &deviceGroupId) {
|
||||
deviceGroupId_ = deviceGroupId;
|
||||
setParameter(std::string("DeviceGroupId"), deviceGroupId);
|
||||
}
|
||||
|
||||
std::string AuthorizeDeviceRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void AuthorizeDeviceRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/AuthorizeDeviceResult.cc
Normal file
72
ltl/src/model/AuthorizeDeviceResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/AuthorizeDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
AuthorizeDeviceResult::AuthorizeDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AuthorizeDeviceResult::AuthorizeDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AuthorizeDeviceResult::~AuthorizeDeviceResult()
|
||||
{}
|
||||
|
||||
void AuthorizeDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AuthorizeDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AuthorizeDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AuthorizeDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AuthorizeDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
126
ltl/src/model/BatchUploadMPCoSPhaseDigestInfoByDeviceRequest.cc
Normal file
126
ltl/src/model/BatchUploadMPCoSPhaseDigestInfoByDeviceRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/BatchUploadMPCoSPhaseDigestInfoByDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::BatchUploadMPCoSPhaseDigestInfoByDeviceRequest;
|
||||
|
||||
BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::BatchUploadMPCoSPhaseDigestInfoByDeviceRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "BatchUploadMPCoSPhaseDigestInfoByDevice") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::~BatchUploadMPCoSPhaseDigestInfoByDeviceRequest() {}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::getIotSignature() const {
|
||||
return iotSignature_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::setIotSignature(const std::string &iotSignature) {
|
||||
iotSignature_ = iotSignature;
|
||||
setParameter(std::string("IotSignature"), iotSignature);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::getIotAuthType() const {
|
||||
return iotAuthType_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::setIotAuthType(const std::string &iotAuthType) {
|
||||
iotAuthType_ = iotAuthType;
|
||||
setParameter(std::string("IotAuthType"), iotAuthType);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::getIotIdSource() const {
|
||||
return iotIdSource_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::setIotIdSource(const std::string &iotIdSource) {
|
||||
iotIdSource_ = iotIdSource;
|
||||
setParameter(std::string("IotIdSource"), iotIdSource);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::getPhaseId() const {
|
||||
return phaseId_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::setPhaseId(const std::string &phaseId) {
|
||||
phaseId_ = phaseId;
|
||||
setParameter(std::string("PhaseId"), phaseId);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::getPhaseDataList() const {
|
||||
return phaseDataList_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::setPhaseDataList(std::map<std::string, std::string> phaseDataList) {
|
||||
phaseDataList_ = phaseDataList;
|
||||
setParameter(std::string("PhaseDataList"), phaseDataList);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::getIotId() const {
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::setIotId(const std::string &iotId) {
|
||||
iotId_ = iotId;
|
||||
setParameter(std::string("IotId"), iotId);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::getIotDataDigest() const {
|
||||
return iotDataDigest_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::setIotDataDigest(const std::string &iotDataDigest) {
|
||||
iotDataDigest_ = iotDataDigest;
|
||||
setParameter(std::string("IotDataDigest"), iotDataDigest);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::getIotIdServiceProvider() const {
|
||||
return iotIdServiceProvider_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoByDeviceRequest::setIotIdServiceProvider(const std::string &iotIdServiceProvider) {
|
||||
iotIdServiceProvider_ = iotIdServiceProvider;
|
||||
setParameter(std::string("IotIdServiceProvider"), iotIdServiceProvider);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/BatchUploadMPCoSPhaseDigestInfoByDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
BatchUploadMPCoSPhaseDigestInfoByDeviceResult::BatchUploadMPCoSPhaseDigestInfoByDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchUploadMPCoSPhaseDigestInfoByDeviceResult::BatchUploadMPCoSPhaseDigestInfoByDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchUploadMPCoSPhaseDigestInfoByDeviceResult::~BatchUploadMPCoSPhaseDigestInfoByDeviceResult()
|
||||
{}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoByDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoByDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoByDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int BatchUploadMPCoSPhaseDigestInfoByDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchUploadMPCoSPhaseDigestInfoByDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
ltl/src/model/BatchUploadMPCoSPhaseDigestInfoRequest.cc
Normal file
72
ltl/src/model/BatchUploadMPCoSPhaseDigestInfoRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/BatchUploadMPCoSPhaseDigestInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::BatchUploadMPCoSPhaseDigestInfoRequest;
|
||||
|
||||
BatchUploadMPCoSPhaseDigestInfoRequest::BatchUploadMPCoSPhaseDigestInfoRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "BatchUploadMPCoSPhaseDigestInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchUploadMPCoSPhaseDigestInfoRequest::~BatchUploadMPCoSPhaseDigestInfoRequest() {}
|
||||
|
||||
std::map<std::string, std::string> BatchUploadMPCoSPhaseDigestInfoRequest::getPhaseDataList() const {
|
||||
return phaseDataList_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoRequest::setPhaseDataList(std::map<std::string, std::string> phaseDataList) {
|
||||
phaseDataList_ = phaseDataList;
|
||||
setParameter(std::string("PhaseDataList"), phaseDataList);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoRequest::getPhaseId() const {
|
||||
return phaseId_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoRequest::setPhaseId(const std::string &phaseId) {
|
||||
phaseId_ = phaseId;
|
||||
setParameter(std::string("PhaseId"), phaseId);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/BatchUploadMPCoSPhaseDigestInfoResult.cc
Normal file
72
ltl/src/model/BatchUploadMPCoSPhaseDigestInfoResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/BatchUploadMPCoSPhaseDigestInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
BatchUploadMPCoSPhaseDigestInfoResult::BatchUploadMPCoSPhaseDigestInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchUploadMPCoSPhaseDigestInfoResult::BatchUploadMPCoSPhaseDigestInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchUploadMPCoSPhaseDigestInfoResult::~BatchUploadMPCoSPhaseDigestInfoResult()
|
||||
{}
|
||||
|
||||
void BatchUploadMPCoSPhaseDigestInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseDigestInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int BatchUploadMPCoSPhaseDigestInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchUploadMPCoSPhaseDigestInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
126
ltl/src/model/BatchUploadMPCoSPhaseTextInfoByDeviceRequest.cc
Normal file
126
ltl/src/model/BatchUploadMPCoSPhaseTextInfoByDeviceRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/BatchUploadMPCoSPhaseTextInfoByDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::BatchUploadMPCoSPhaseTextInfoByDeviceRequest;
|
||||
|
||||
BatchUploadMPCoSPhaseTextInfoByDeviceRequest::BatchUploadMPCoSPhaseTextInfoByDeviceRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "BatchUploadMPCoSPhaseTextInfoByDevice") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchUploadMPCoSPhaseTextInfoByDeviceRequest::~BatchUploadMPCoSPhaseTextInfoByDeviceRequest() {}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoByDeviceRequest::getIotSignature() const {
|
||||
return iotSignature_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoByDeviceRequest::setIotSignature(const std::string &iotSignature) {
|
||||
iotSignature_ = iotSignature;
|
||||
setParameter(std::string("IotSignature"), iotSignature);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoByDeviceRequest::getIotAuthType() const {
|
||||
return iotAuthType_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoByDeviceRequest::setIotAuthType(const std::string &iotAuthType) {
|
||||
iotAuthType_ = iotAuthType;
|
||||
setParameter(std::string("IotAuthType"), iotAuthType);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoByDeviceRequest::getIotIdSource() const {
|
||||
return iotIdSource_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoByDeviceRequest::setIotIdSource(const std::string &iotIdSource) {
|
||||
iotIdSource_ = iotIdSource;
|
||||
setParameter(std::string("IotIdSource"), iotIdSource);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoByDeviceRequest::getPhaseId() const {
|
||||
return phaseId_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoByDeviceRequest::setPhaseId(const std::string &phaseId) {
|
||||
phaseId_ = phaseId;
|
||||
setParameter(std::string("PhaseId"), phaseId);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoByDeviceRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoByDeviceRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoByDeviceRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoByDeviceRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> BatchUploadMPCoSPhaseTextInfoByDeviceRequest::getPhaseDataList() const {
|
||||
return phaseDataList_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoByDeviceRequest::setPhaseDataList(std::map<std::string, std::string> phaseDataList) {
|
||||
phaseDataList_ = phaseDataList;
|
||||
setParameter(std::string("PhaseDataList"), phaseDataList);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoByDeviceRequest::getIotId() const {
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoByDeviceRequest::setIotId(const std::string &iotId) {
|
||||
iotId_ = iotId;
|
||||
setParameter(std::string("IotId"), iotId);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoByDeviceRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoByDeviceRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoByDeviceRequest::getIotDataDigest() const {
|
||||
return iotDataDigest_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoByDeviceRequest::setIotDataDigest(const std::string &iotDataDigest) {
|
||||
iotDataDigest_ = iotDataDigest;
|
||||
setParameter(std::string("IotDataDigest"), iotDataDigest);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoByDeviceRequest::getIotIdServiceProvider() const {
|
||||
return iotIdServiceProvider_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoByDeviceRequest::setIotIdServiceProvider(const std::string &iotIdServiceProvider) {
|
||||
iotIdServiceProvider_ = iotIdServiceProvider;
|
||||
setParameter(std::string("IotIdServiceProvider"), iotIdServiceProvider);
|
||||
}
|
||||
|
||||
72
ltl/src/model/BatchUploadMPCoSPhaseTextInfoByDeviceResult.cc
Normal file
72
ltl/src/model/BatchUploadMPCoSPhaseTextInfoByDeviceResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/BatchUploadMPCoSPhaseTextInfoByDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
BatchUploadMPCoSPhaseTextInfoByDeviceResult::BatchUploadMPCoSPhaseTextInfoByDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchUploadMPCoSPhaseTextInfoByDeviceResult::BatchUploadMPCoSPhaseTextInfoByDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchUploadMPCoSPhaseTextInfoByDeviceResult::~BatchUploadMPCoSPhaseTextInfoByDeviceResult()
|
||||
{}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoByDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoByDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoByDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int BatchUploadMPCoSPhaseTextInfoByDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchUploadMPCoSPhaseTextInfoByDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
ltl/src/model/BatchUploadMPCoSPhaseTextInfoRequest.cc
Normal file
72
ltl/src/model/BatchUploadMPCoSPhaseTextInfoRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/BatchUploadMPCoSPhaseTextInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::BatchUploadMPCoSPhaseTextInfoRequest;
|
||||
|
||||
BatchUploadMPCoSPhaseTextInfoRequest::BatchUploadMPCoSPhaseTextInfoRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "BatchUploadMPCoSPhaseTextInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchUploadMPCoSPhaseTextInfoRequest::~BatchUploadMPCoSPhaseTextInfoRequest() {}
|
||||
|
||||
std::map<std::string, std::string> BatchUploadMPCoSPhaseTextInfoRequest::getPhaseDataList() const {
|
||||
return phaseDataList_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoRequest::setPhaseDataList(std::map<std::string, std::string> phaseDataList) {
|
||||
phaseDataList_ = phaseDataList;
|
||||
setParameter(std::string("PhaseDataList"), phaseDataList);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoRequest::getPhaseId() const {
|
||||
return phaseId_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoRequest::setPhaseId(const std::string &phaseId) {
|
||||
phaseId_ = phaseId;
|
||||
setParameter(std::string("PhaseId"), phaseId);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/BatchUploadMPCoSPhaseTextInfoResult.cc
Normal file
72
ltl/src/model/BatchUploadMPCoSPhaseTextInfoResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/BatchUploadMPCoSPhaseTextInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
BatchUploadMPCoSPhaseTextInfoResult::BatchUploadMPCoSPhaseTextInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchUploadMPCoSPhaseTextInfoResult::BatchUploadMPCoSPhaseTextInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchUploadMPCoSPhaseTextInfoResult::~BatchUploadMPCoSPhaseTextInfoResult()
|
||||
{}
|
||||
|
||||
void BatchUploadMPCoSPhaseTextInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BatchUploadMPCoSPhaseTextInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int BatchUploadMPCoSPhaseTextInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchUploadMPCoSPhaseTextInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
ltl/src/model/CreateMPCoSPhaseGroupRequest.cc
Normal file
63
ltl/src/model/CreateMPCoSPhaseGroupRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/CreateMPCoSPhaseGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::CreateMPCoSPhaseGroupRequest;
|
||||
|
||||
CreateMPCoSPhaseGroupRequest::CreateMPCoSPhaseGroupRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "CreateMPCoSPhaseGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMPCoSPhaseGroupRequest::~CreateMPCoSPhaseGroupRequest() {}
|
||||
|
||||
std::string CreateMPCoSPhaseGroupRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateMPCoSPhaseGroupRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateMPCoSPhaseGroupRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void CreateMPCoSPhaseGroupRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string CreateMPCoSPhaseGroupRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void CreateMPCoSPhaseGroupRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string CreateMPCoSPhaseGroupRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void CreateMPCoSPhaseGroupRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/CreateMPCoSPhaseGroupResult.cc
Normal file
72
ltl/src/model/CreateMPCoSPhaseGroupResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/CreateMPCoSPhaseGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
CreateMPCoSPhaseGroupResult::CreateMPCoSPhaseGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMPCoSPhaseGroupResult::CreateMPCoSPhaseGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMPCoSPhaseGroupResult::~CreateMPCoSPhaseGroupResult()
|
||||
{}
|
||||
|
||||
void CreateMPCoSPhaseGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMPCoSPhaseGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateMPCoSPhaseGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateMPCoSPhaseGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateMPCoSPhaseGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
ltl/src/model/CreateMPCoSPhaseRequest.cc
Normal file
72
ltl/src/model/CreateMPCoSPhaseRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/CreateMPCoSPhaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::CreateMPCoSPhaseRequest;
|
||||
|
||||
CreateMPCoSPhaseRequest::CreateMPCoSPhaseRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "CreateMPCoSPhase") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMPCoSPhaseRequest::~CreateMPCoSPhaseRequest() {}
|
||||
|
||||
std::string CreateMPCoSPhaseRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateMPCoSPhaseRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateMPCoSPhaseRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void CreateMPCoSPhaseRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
std::string CreateMPCoSPhaseRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void CreateMPCoSPhaseRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string CreateMPCoSPhaseRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void CreateMPCoSPhaseRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string CreateMPCoSPhaseRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void CreateMPCoSPhaseRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/CreateMPCoSPhaseResult.cc
Normal file
72
ltl/src/model/CreateMPCoSPhaseResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/CreateMPCoSPhaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
CreateMPCoSPhaseResult::CreateMPCoSPhaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMPCoSPhaseResult::CreateMPCoSPhaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMPCoSPhaseResult::~CreateMPCoSPhaseResult()
|
||||
{}
|
||||
|
||||
void CreateMPCoSPhaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMPCoSPhaseResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateMPCoSPhaseResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateMPCoSPhaseResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateMPCoSPhaseResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
90
ltl/src/model/CreateMemberRequest.cc
Normal file
90
ltl/src/model/CreateMemberRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/CreateMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::CreateMemberRequest;
|
||||
|
||||
CreateMemberRequest::CreateMemberRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "CreateMember") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMemberRequest::~CreateMemberRequest() {}
|
||||
|
||||
std::string CreateMemberRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void CreateMemberRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string CreateMemberRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void CreateMemberRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string CreateMemberRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void CreateMemberRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
std::string CreateMemberRequest::getMemberUid() const {
|
||||
return memberUid_;
|
||||
}
|
||||
|
||||
void CreateMemberRequest::setMemberUid(const std::string &memberUid) {
|
||||
memberUid_ = memberUid;
|
||||
setParameter(std::string("MemberUid"), memberUid);
|
||||
}
|
||||
|
||||
std::string CreateMemberRequest::getMemberContact() const {
|
||||
return memberContact_;
|
||||
}
|
||||
|
||||
void CreateMemberRequest::setMemberContact(const std::string &memberContact) {
|
||||
memberContact_ = memberContact;
|
||||
setParameter(std::string("MemberContact"), memberContact);
|
||||
}
|
||||
|
||||
std::string CreateMemberRequest::getMemberPhone() const {
|
||||
return memberPhone_;
|
||||
}
|
||||
|
||||
void CreateMemberRequest::setMemberPhone(const std::string &memberPhone) {
|
||||
memberPhone_ = memberPhone;
|
||||
setParameter(std::string("MemberPhone"), memberPhone);
|
||||
}
|
||||
|
||||
std::string CreateMemberRequest::getMemberName() const {
|
||||
return memberName_;
|
||||
}
|
||||
|
||||
void CreateMemberRequest::setMemberName(const std::string &memberName) {
|
||||
memberName_ = memberName;
|
||||
setParameter(std::string("MemberName"), memberName);
|
||||
}
|
||||
|
||||
72
ltl/src/model/CreateMemberResult.cc
Normal file
72
ltl/src/model/CreateMemberResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/CreateMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
CreateMemberResult::CreateMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMemberResult::CreateMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMemberResult::~CreateMemberResult()
|
||||
{}
|
||||
|
||||
void CreateMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateMemberResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateMemberResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateMemberResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateMemberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
ltl/src/model/DescribeCapacityInfoRequest.cc
Normal file
45
ltl/src/model/DescribeCapacityInfoRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/DescribeCapacityInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::DescribeCapacityInfoRequest;
|
||||
|
||||
DescribeCapacityInfoRequest::DescribeCapacityInfoRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "DescribeCapacityInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCapacityInfoRequest::~DescribeCapacityInfoRequest() {}
|
||||
|
||||
std::string DescribeCapacityInfoRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void DescribeCapacityInfoRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string DescribeCapacityInfoRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void DescribeCapacityInfoRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
83
ltl/src/model/DescribeCapacityInfoResult.cc
Normal file
83
ltl/src/model/DescribeCapacityInfoResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/DescribeCapacityInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
DescribeCapacityInfoResult::DescribeCapacityInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCapacityInfoResult::DescribeCapacityInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCapacityInfoResult::~DescribeCapacityInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeCapacityInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CountQuota"].isNull())
|
||||
data_.countQuota = std::stol(dataNode["CountQuota"].asString());
|
||||
if(!dataNode["CapacityQuota"].isNull())
|
||||
data_.capacityQuota = std::stol(dataNode["CapacityQuota"].asString());
|
||||
if(!dataNode["UsedCount"].isNull())
|
||||
data_.usedCount = std::stol(dataNode["UsedCount"].asString());
|
||||
if(!dataNode["UsedCapacity"].isNull())
|
||||
data_.usedCapacity = std::stol(dataNode["UsedCapacity"].asString());
|
||||
if(!dataNode["MemberUsedCapacity"].isNull())
|
||||
data_.memberUsedCapacity = std::stol(dataNode["MemberUsedCapacity"].asString());
|
||||
if(!dataNode["MemberUsedCount"].isNull())
|
||||
data_.memberUsedCount = std::stol(dataNode["MemberUsedCount"].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 DescribeCapacityInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeCapacityInfoResult::Data DescribeCapacityInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DescribeCapacityInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeCapacityInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
ltl/src/model/DescribeMPCoSAuthorizedInfoRequest.cc
Normal file
63
ltl/src/model/DescribeMPCoSAuthorizedInfoRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/DescribeMPCoSAuthorizedInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::DescribeMPCoSAuthorizedInfoRequest;
|
||||
|
||||
DescribeMPCoSAuthorizedInfoRequest::DescribeMPCoSAuthorizedInfoRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "DescribeMPCoSAuthorizedInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMPCoSAuthorizedInfoRequest::~DescribeMPCoSAuthorizedInfoRequest() {}
|
||||
|
||||
std::string DescribeMPCoSAuthorizedInfoRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void DescribeMPCoSAuthorizedInfoRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeMPCoSAuthorizedInfoRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void DescribeMPCoSAuthorizedInfoRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string DescribeMPCoSAuthorizedInfoRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void DescribeMPCoSAuthorizedInfoRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
std::string DescribeMPCoSAuthorizedInfoRequest::getMemberId() const {
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void DescribeMPCoSAuthorizedInfoRequest::setMemberId(const std::string &memberId) {
|
||||
memberId_ = memberId;
|
||||
setParameter(std::string("MemberId"), memberId);
|
||||
}
|
||||
|
||||
91
ltl/src/model/DescribeMPCoSAuthorizedInfoResult.cc
Normal file
91
ltl/src/model/DescribeMPCoSAuthorizedInfoResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/DescribeMPCoSAuthorizedInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
DescribeMPCoSAuthorizedInfoResult::DescribeMPCoSAuthorizedInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMPCoSAuthorizedInfoResult::DescribeMPCoSAuthorizedInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMPCoSAuthorizedInfoResult::~DescribeMPCoSAuthorizedInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeMPCoSAuthorizedInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allAuthorizedPhaseListNode = dataNode["AuthorizedPhaseList"]["AuthorizedPhase"];
|
||||
for (auto dataNodeAuthorizedPhaseListAuthorizedPhase : allAuthorizedPhaseListNode)
|
||||
{
|
||||
Data::AuthorizedPhase authorizedPhaseObject;
|
||||
if(!dataNodeAuthorizedPhaseListAuthorizedPhase["PhaseName"].isNull())
|
||||
authorizedPhaseObject.phaseName = dataNodeAuthorizedPhaseListAuthorizedPhase["PhaseName"].asString();
|
||||
if(!dataNodeAuthorizedPhaseListAuthorizedPhase["PhaseId"].isNull())
|
||||
authorizedPhaseObject.phaseId = dataNodeAuthorizedPhaseListAuthorizedPhase["PhaseId"].asString();
|
||||
data_.authorizedPhaseList.push_back(authorizedPhaseObject);
|
||||
}
|
||||
auto allUnAuthorizedPhaseListNode = dataNode["UnAuthorizedPhaseList"]["UnAuthorizedPhase"];
|
||||
for (auto dataNodeUnAuthorizedPhaseListUnAuthorizedPhase : allUnAuthorizedPhaseListNode)
|
||||
{
|
||||
Data::UnAuthorizedPhase unAuthorizedPhaseObject;
|
||||
if(!dataNodeUnAuthorizedPhaseListUnAuthorizedPhase["PhaseName"].isNull())
|
||||
unAuthorizedPhaseObject.phaseName = dataNodeUnAuthorizedPhaseListUnAuthorizedPhase["PhaseName"].asString();
|
||||
if(!dataNodeUnAuthorizedPhaseListUnAuthorizedPhase["PhaseId"].isNull())
|
||||
unAuthorizedPhaseObject.phaseId = dataNodeUnAuthorizedPhaseListUnAuthorizedPhase["PhaseId"].asString();
|
||||
data_.unAuthorizedPhaseList.push_back(unAuthorizedPhaseObject);
|
||||
}
|
||||
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 DescribeMPCoSAuthorizedInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeMPCoSAuthorizedInfoResult::Data DescribeMPCoSAuthorizedInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DescribeMPCoSAuthorizedInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeMPCoSAuthorizedInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
ltl/src/model/DescribeMPCoSPhaseInfoRequest.cc
Normal file
81
ltl/src/model/DescribeMPCoSPhaseInfoRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/DescribeMPCoSPhaseInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::DescribeMPCoSPhaseInfoRequest;
|
||||
|
||||
DescribeMPCoSPhaseInfoRequest::DescribeMPCoSPhaseInfoRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "DescribeMPCoSPhaseInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMPCoSPhaseInfoRequest::~DescribeMPCoSPhaseInfoRequest() {}
|
||||
|
||||
std::string DescribeMPCoSPhaseInfoRequest::getDataKey() const {
|
||||
return dataKey_;
|
||||
}
|
||||
|
||||
void DescribeMPCoSPhaseInfoRequest::setDataKey(const std::string &dataKey) {
|
||||
dataKey_ = dataKey;
|
||||
setParameter(std::string("DataKey"), dataKey);
|
||||
}
|
||||
|
||||
std::string DescribeMPCoSPhaseInfoRequest::getDataSeq() const {
|
||||
return dataSeq_;
|
||||
}
|
||||
|
||||
void DescribeMPCoSPhaseInfoRequest::setDataSeq(const std::string &dataSeq) {
|
||||
dataSeq_ = dataSeq;
|
||||
setParameter(std::string("DataSeq"), dataSeq);
|
||||
}
|
||||
|
||||
std::string DescribeMPCoSPhaseInfoRequest::getPhaseId() const {
|
||||
return phaseId_;
|
||||
}
|
||||
|
||||
void DescribeMPCoSPhaseInfoRequest::setPhaseId(const std::string &phaseId) {
|
||||
phaseId_ = phaseId;
|
||||
setParameter(std::string("PhaseId"), phaseId);
|
||||
}
|
||||
|
||||
std::string DescribeMPCoSPhaseInfoRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void DescribeMPCoSPhaseInfoRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeMPCoSPhaseInfoRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void DescribeMPCoSPhaseInfoRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string DescribeMPCoSPhaseInfoRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void DescribeMPCoSPhaseInfoRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
105
ltl/src/model/DescribeMPCoSPhaseInfoResult.cc
Normal file
105
ltl/src/model/DescribeMPCoSPhaseInfoResult.cc
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/DescribeMPCoSPhaseInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
DescribeMPCoSPhaseInfoResult::DescribeMPCoSPhaseInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMPCoSPhaseInfoResult::DescribeMPCoSPhaseInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMPCoSPhaseInfoResult::~DescribeMPCoSPhaseInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeMPCoSPhaseInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PreviousHash"].isNull())
|
||||
data_.previousHash = dataNode["PreviousHash"].asString();
|
||||
if(!dataNode["ProductKey"].isNull())
|
||||
data_.productKey = dataNode["ProductKey"].asString();
|
||||
if(!dataNode["DataHash"].isNull())
|
||||
data_.dataHash = dataNode["DataHash"].asString();
|
||||
if(!dataNode["DataValue"].isNull())
|
||||
data_.dataValue = dataNode["DataValue"].asString();
|
||||
if(!dataNode["Timestamp"].isNull())
|
||||
data_.timestamp = std::stol(dataNode["Timestamp"].asString());
|
||||
if(!dataNode["TransactionHash"].isNull())
|
||||
data_.transactionHash = dataNode["TransactionHash"].asString();
|
||||
if(!dataNode["BlockHash"].isNull())
|
||||
data_.blockHash = dataNode["BlockHash"].asString();
|
||||
if(!dataNode["BlockNumber"].isNull())
|
||||
data_.blockNumber = std::stol(dataNode["BlockNumber"].asString());
|
||||
if(!dataNode["IotId"].isNull())
|
||||
data_.iotId = dataNode["IotId"].asString();
|
||||
auto allRelatedDataListNode = dataNode["RelatedDataList"]["RelatedData"];
|
||||
for (auto dataNodeRelatedDataListRelatedData : allRelatedDataListNode)
|
||||
{
|
||||
Data::RelatedData relatedDataObject;
|
||||
if(!dataNodeRelatedDataListRelatedData["RelatedDataKey"].isNull())
|
||||
relatedDataObject.relatedDataKey = dataNodeRelatedDataListRelatedData["RelatedDataKey"].asString();
|
||||
if(!dataNodeRelatedDataListRelatedData["RelatedPhaseDataHash"].isNull())
|
||||
relatedDataObject.relatedPhaseDataHash = dataNodeRelatedDataListRelatedData["RelatedPhaseDataHash"].asString();
|
||||
if(!dataNodeRelatedDataListRelatedData["RelatedDataSeq"].isNull())
|
||||
relatedDataObject.relatedDataSeq = dataNodeRelatedDataListRelatedData["RelatedDataSeq"].asString();
|
||||
if(!dataNodeRelatedDataListRelatedData["RelatedPhaseName"].isNull())
|
||||
relatedDataObject.relatedPhaseName = dataNodeRelatedDataListRelatedData["RelatedPhaseName"].asString();
|
||||
if(!dataNodeRelatedDataListRelatedData["RelatedPhaseId"].isNull())
|
||||
relatedDataObject.relatedPhaseId = dataNodeRelatedDataListRelatedData["RelatedPhaseId"].asString();
|
||||
data_.relatedDataList.push_back(relatedDataObject);
|
||||
}
|
||||
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 DescribeMPCoSPhaseInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeMPCoSPhaseInfoResult::Data DescribeMPCoSPhaseInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DescribeMPCoSPhaseInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeMPCoSPhaseInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
ltl/src/model/DescribeMPCoSResourceInfoRequest.cc
Normal file
45
ltl/src/model/DescribeMPCoSResourceInfoRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/DescribeMPCoSResourceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::DescribeMPCoSResourceInfoRequest;
|
||||
|
||||
DescribeMPCoSResourceInfoRequest::DescribeMPCoSResourceInfoRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "DescribeMPCoSResourceInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMPCoSResourceInfoRequest::~DescribeMPCoSResourceInfoRequest() {}
|
||||
|
||||
std::string DescribeMPCoSResourceInfoRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void DescribeMPCoSResourceInfoRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string DescribeMPCoSResourceInfoRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void DescribeMPCoSResourceInfoRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
93
ltl/src/model/DescribeMPCoSResourceInfoResult.cc
Normal file
93
ltl/src/model/DescribeMPCoSResourceInfoResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/DescribeMPCoSResourceInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
DescribeMPCoSResourceInfoResult::DescribeMPCoSResourceInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMPCoSResourceInfoResult::DescribeMPCoSResourceInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMPCoSResourceInfoResult::~DescribeMPCoSResourceInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeMPCoSResourceInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PhaseGroupQuota"].isNull())
|
||||
data_.phaseGroupQuota = std::stol(dataNode["PhaseGroupQuota"].asString());
|
||||
if(!dataNode["MemberQuota"].isNull())
|
||||
data_.memberQuota = std::stol(dataNode["MemberQuota"].asString());
|
||||
if(!dataNode["UsedMember"].isNull())
|
||||
data_.usedMember = std::stol(dataNode["UsedMember"].asString());
|
||||
if(!dataNode["UsedPhaseGroup"].isNull())
|
||||
data_.usedPhaseGroup = std::stol(dataNode["UsedPhaseGroup"].asString());
|
||||
auto allPhaseQuotaInfoListNode = dataNode["PhaseQuotaInfoList"]["PhaseQuotaInfo"];
|
||||
for (auto dataNodePhaseQuotaInfoListPhaseQuotaInfo : allPhaseQuotaInfoListNode)
|
||||
{
|
||||
Data::PhaseQuotaInfo phaseQuotaInfoObject;
|
||||
if(!dataNodePhaseQuotaInfoListPhaseQuotaInfo["PhaseGroupId"].isNull())
|
||||
phaseQuotaInfoObject.phaseGroupId = dataNodePhaseQuotaInfoListPhaseQuotaInfo["PhaseGroupId"].asString();
|
||||
if(!dataNodePhaseQuotaInfoListPhaseQuotaInfo["PhaseGroupName"].isNull())
|
||||
phaseQuotaInfoObject.phaseGroupName = dataNodePhaseQuotaInfoListPhaseQuotaInfo["PhaseGroupName"].asString();
|
||||
if(!dataNodePhaseQuotaInfoListPhaseQuotaInfo["PhaseQuota"].isNull())
|
||||
phaseQuotaInfoObject.phaseQuota = std::stol(dataNodePhaseQuotaInfoListPhaseQuotaInfo["PhaseQuota"].asString());
|
||||
if(!dataNodePhaseQuotaInfoListPhaseQuotaInfo["UsedPhase"].isNull())
|
||||
phaseQuotaInfoObject.usedPhase = std::stol(dataNodePhaseQuotaInfoListPhaseQuotaInfo["UsedPhase"].asString());
|
||||
data_.phaseQuotaInfoList.push_back(phaseQuotaInfoObject);
|
||||
}
|
||||
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 DescribeMPCoSResourceInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeMPCoSResourceInfoResult::Data DescribeMPCoSResourceInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DescribeMPCoSResourceInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeMPCoSResourceInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
ltl/src/model/DescribeMemberCapacityInfoRequest.cc
Normal file
45
ltl/src/model/DescribeMemberCapacityInfoRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/DescribeMemberCapacityInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::DescribeMemberCapacityInfoRequest;
|
||||
|
||||
DescribeMemberCapacityInfoRequest::DescribeMemberCapacityInfoRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "DescribeMemberCapacityInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMemberCapacityInfoRequest::~DescribeMemberCapacityInfoRequest() {}
|
||||
|
||||
std::string DescribeMemberCapacityInfoRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void DescribeMemberCapacityInfoRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string DescribeMemberCapacityInfoRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void DescribeMemberCapacityInfoRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
86
ltl/src/model/DescribeMemberCapacityInfoResult.cc
Normal file
86
ltl/src/model/DescribeMemberCapacityInfoResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/DescribeMemberCapacityInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
DescribeMemberCapacityInfoResult::DescribeMemberCapacityInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMemberCapacityInfoResult::DescribeMemberCapacityInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMemberCapacityInfoResult::~DescribeMemberCapacityInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeMemberCapacityInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["MemberCapacityInfo"];
|
||||
for (auto valueDataMemberCapacityInfo : allDataNode)
|
||||
{
|
||||
MemberCapacityInfo dataObject;
|
||||
if(!valueDataMemberCapacityInfo["UsedCapacity"].isNull())
|
||||
dataObject.usedCapacity = valueDataMemberCapacityInfo["UsedCapacity"].asString();
|
||||
if(!valueDataMemberCapacityInfo["MemberId"].isNull())
|
||||
dataObject.memberId = valueDataMemberCapacityInfo["MemberId"].asString();
|
||||
if(!valueDataMemberCapacityInfo["MemberName"].isNull())
|
||||
dataObject.memberName = valueDataMemberCapacityInfo["MemberName"].asString();
|
||||
if(!valueDataMemberCapacityInfo["UsedCount"].isNull())
|
||||
dataObject.usedCount = valueDataMemberCapacityInfo["UsedCount"].asString();
|
||||
if(!valueDataMemberCapacityInfo["MemberUid"].isNull())
|
||||
dataObject.memberUid = valueDataMemberCapacityInfo["MemberUid"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
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 DescribeMemberCapacityInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<DescribeMemberCapacityInfoResult::MemberCapacityInfo> DescribeMemberCapacityInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DescribeMemberCapacityInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeMemberCapacityInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
ltl/src/model/DescribeResourceInfoRequest.cc
Normal file
45
ltl/src/model/DescribeResourceInfoRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/DescribeResourceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::DescribeResourceInfoRequest;
|
||||
|
||||
DescribeResourceInfoRequest::DescribeResourceInfoRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "DescribeResourceInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeResourceInfoRequest::~DescribeResourceInfoRequest() {}
|
||||
|
||||
std::string DescribeResourceInfoRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void DescribeResourceInfoRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string DescribeResourceInfoRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void DescribeResourceInfoRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
81
ltl/src/model/DescribeResourceInfoResult.cc
Normal file
81
ltl/src/model/DescribeResourceInfoResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/DescribeResourceInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
DescribeResourceInfoResult::DescribeResourceInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeResourceInfoResult::DescribeResourceInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeResourceInfoResult::~DescribeResourceInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeResourceInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["EffectiveTime"].isNull())
|
||||
data_.effectiveTime = std::stol(dataNode["EffectiveTime"].asString());
|
||||
if(!dataNode["AuthorizeType"].isNull())
|
||||
data_.authorizeType = dataNode["AuthorizeType"].asString();
|
||||
if(!dataNode["ExpiredTime"].isNull())
|
||||
data_.expiredTime = std::stol(dataNode["ExpiredTime"].asString());
|
||||
if(!dataNode["Region"].isNull())
|
||||
data_.region = dataNode["Region"].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 DescribeResourceInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeResourceInfoResult::Data DescribeResourceInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DescribeResourceInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeResourceInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
ltl/src/model/GetBlockChainInfoRequest.cc
Normal file
63
ltl/src/model/GetBlockChainInfoRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/GetBlockChainInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::GetBlockChainInfoRequest;
|
||||
|
||||
GetBlockChainInfoRequest::GetBlockChainInfoRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "GetBlockChainInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetBlockChainInfoRequest::~GetBlockChainInfoRequest() {}
|
||||
|
||||
std::string GetBlockChainInfoRequest::getBusinessId() const {
|
||||
return businessId_;
|
||||
}
|
||||
|
||||
void GetBlockChainInfoRequest::setBusinessId(const std::string &businessId) {
|
||||
businessId_ = businessId;
|
||||
setParameter(std::string("BusinessId"), businessId);
|
||||
}
|
||||
|
||||
std::string GetBlockChainInfoRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void GetBlockChainInfoRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string GetBlockChainInfoRequest::getProductKey() const {
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void GetBlockChainInfoRequest::setProductKey(const std::string &productKey) {
|
||||
productKey_ = productKey;
|
||||
setParameter(std::string("ProductKey"), productKey);
|
||||
}
|
||||
|
||||
std::string GetBlockChainInfoRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void GetBlockChainInfoRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
72
ltl/src/model/GetBlockChainInfoResult.cc
Normal file
72
ltl/src/model/GetBlockChainInfoResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/GetBlockChainInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
GetBlockChainInfoResult::GetBlockChainInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetBlockChainInfoResult::GetBlockChainInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetBlockChainInfoResult::~GetBlockChainInfoResult()
|
||||
{}
|
||||
|
||||
void GetBlockChainInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetBlockChainInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetBlockChainInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetBlockChainInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetBlockChainInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
ltl/src/model/GetDataModelConfigInfoRequest.cc
Normal file
54
ltl/src/model/GetDataModelConfigInfoRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/GetDataModelConfigInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::GetDataModelConfigInfoRequest;
|
||||
|
||||
GetDataModelConfigInfoRequest::GetDataModelConfigInfoRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "GetDataModelConfigInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataModelConfigInfoRequest::~GetDataModelConfigInfoRequest() {}
|
||||
|
||||
std::string GetDataModelConfigInfoRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void GetDataModelConfigInfoRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string GetDataModelConfigInfoRequest::getProductKey() const {
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void GetDataModelConfigInfoRequest::setProductKey(const std::string &productKey) {
|
||||
productKey_ = productKey;
|
||||
setParameter(std::string("ProductKey"), productKey);
|
||||
}
|
||||
|
||||
std::string GetDataModelConfigInfoRequest::getDataModelCode() const {
|
||||
return dataModelCode_;
|
||||
}
|
||||
|
||||
void GetDataModelConfigInfoRequest::setDataModelCode(const std::string &dataModelCode) {
|
||||
dataModelCode_ = dataModelCode;
|
||||
setParameter(std::string("DataModelCode"), dataModelCode);
|
||||
}
|
||||
|
||||
72
ltl/src/model/GetDataModelConfigInfoResult.cc
Normal file
72
ltl/src/model/GetDataModelConfigInfoResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/GetDataModelConfigInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
GetDataModelConfigInfoResult::GetDataModelConfigInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDataModelConfigInfoResult::GetDataModelConfigInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDataModelConfigInfoResult::~GetDataModelConfigInfoResult()
|
||||
{}
|
||||
|
||||
void GetDataModelConfigInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetDataModelConfigInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetDataModelConfigInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetDataModelConfigInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetDataModelConfigInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
ltl/src/model/GetDataRequest.cc
Normal file
63
ltl/src/model/GetDataRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/GetDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::GetDataRequest;
|
||||
|
||||
GetDataRequest::GetDataRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "GetData") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataRequest::~GetDataRequest() {}
|
||||
|
||||
std::string GetDataRequest::getBusinessId() const {
|
||||
return businessId_;
|
||||
}
|
||||
|
||||
void GetDataRequest::setBusinessId(const std::string &businessId) {
|
||||
businessId_ = businessId;
|
||||
setParameter(std::string("BusinessId"), businessId);
|
||||
}
|
||||
|
||||
std::string GetDataRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void GetDataRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string GetDataRequest::getProductKey() const {
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void GetDataRequest::setProductKey(const std::string &productKey) {
|
||||
productKey_ = productKey;
|
||||
setParameter(std::string("ProductKey"), productKey);
|
||||
}
|
||||
|
||||
std::string GetDataRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void GetDataRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
72
ltl/src/model/GetDataResult.cc
Normal file
72
ltl/src/model/GetDataResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/GetDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
GetDataResult::GetDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDataResult::GetDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDataResult::~GetDataResult()
|
||||
{}
|
||||
|
||||
void GetDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetDataResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetDataResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetDataResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
ltl/src/model/GetHistoryDataCountRequest.cc
Normal file
72
ltl/src/model/GetHistoryDataCountRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/GetHistoryDataCountRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::GetHistoryDataCountRequest;
|
||||
|
||||
GetHistoryDataCountRequest::GetHistoryDataCountRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "GetHistoryDataCount") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetHistoryDataCountRequest::~GetHistoryDataCountRequest() {}
|
||||
|
||||
long GetHistoryDataCountRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetHistoryDataCountRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string GetHistoryDataCountRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void GetHistoryDataCountRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
long GetHistoryDataCountRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetHistoryDataCountRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetHistoryDataCountRequest::getProductKey() const {
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void GetHistoryDataCountRequest::setProductKey(const std::string &productKey) {
|
||||
productKey_ = productKey;
|
||||
setParameter(std::string("ProductKey"), productKey);
|
||||
}
|
||||
|
||||
std::string GetHistoryDataCountRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void GetHistoryDataCountRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
72
ltl/src/model/GetHistoryDataCountResult.cc
Normal file
72
ltl/src/model/GetHistoryDataCountResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/GetHistoryDataCountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
GetHistoryDataCountResult::GetHistoryDataCountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetHistoryDataCountResult::GetHistoryDataCountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetHistoryDataCountResult::~GetHistoryDataCountResult()
|
||||
{}
|
||||
|
||||
void GetHistoryDataCountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetHistoryDataCountResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetHistoryDataCountResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetHistoryDataCountResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetHistoryDataCountResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
90
ltl/src/model/GetHistoryDataListRequest.cc
Normal file
90
ltl/src/model/GetHistoryDataListRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/GetHistoryDataListRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::GetHistoryDataListRequest;
|
||||
|
||||
GetHistoryDataListRequest::GetHistoryDataListRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "GetHistoryDataList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetHistoryDataListRequest::~GetHistoryDataListRequest() {}
|
||||
|
||||
long GetHistoryDataListRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetHistoryDataListRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string GetHistoryDataListRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void GetHistoryDataListRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
int GetHistoryDataListRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void GetHistoryDataListRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long GetHistoryDataListRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetHistoryDataListRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string GetHistoryDataListRequest::getProductKey() const {
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void GetHistoryDataListRequest::setProductKey(const std::string &productKey) {
|
||||
productKey_ = productKey;
|
||||
setParameter(std::string("ProductKey"), productKey);
|
||||
}
|
||||
|
||||
int GetHistoryDataListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetHistoryDataListRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string GetHistoryDataListRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void GetHistoryDataListRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
73
ltl/src/model/GetHistoryDataListResult.cc
Normal file
73
ltl/src/model/GetHistoryDataListResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/GetHistoryDataListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
GetHistoryDataListResult::GetHistoryDataListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetHistoryDataListResult::GetHistoryDataListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetHistoryDataListResult::~GetHistoryDataListResult()
|
||||
{}
|
||||
|
||||
void GetHistoryDataListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["Data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.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 GetHistoryDataListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetHistoryDataListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetHistoryDataListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetHistoryDataListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
ltl/src/model/ListDependentDataModelsRequest.cc
Normal file
45
ltl/src/model/ListDependentDataModelsRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListDependentDataModelsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::ListDependentDataModelsRequest;
|
||||
|
||||
ListDependentDataModelsRequest::ListDependentDataModelsRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "ListDependentDataModels") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDependentDataModelsRequest::~ListDependentDataModelsRequest() {}
|
||||
|
||||
std::string ListDependentDataModelsRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void ListDependentDataModelsRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string ListDependentDataModelsRequest::getProductKey() const {
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void ListDependentDataModelsRequest::setProductKey(const std::string &productKey) {
|
||||
productKey_ = productKey;
|
||||
setParameter(std::string("ProductKey"), productKey);
|
||||
}
|
||||
|
||||
80
ltl/src/model/ListDependentDataModelsResult.cc
Normal file
80
ltl/src/model/ListDependentDataModelsResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListDependentDataModelsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
ListDependentDataModelsResult::ListDependentDataModelsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDependentDataModelsResult::ListDependentDataModelsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDependentDataModelsResult::~ListDependentDataModelsResult()
|
||||
{}
|
||||
|
||||
void ListDependentDataModelsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataModelInfo"];
|
||||
for (auto valueDataDataModelInfo : allDataNode)
|
||||
{
|
||||
DataModelInfo dataObject;
|
||||
if(!valueDataDataModelInfo["DataModelName"].isNull())
|
||||
dataObject.dataModelName = valueDataDataModelInfo["DataModelName"].asString();
|
||||
if(!valueDataDataModelInfo["DataModelCode"].isNull())
|
||||
dataObject.dataModelCode = valueDataDataModelInfo["DataModelCode"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
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 ListDependentDataModelsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListDependentDataModelsResult::DataModelInfo> ListDependentDataModelsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListDependentDataModelsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListDependentDataModelsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
ltl/src/model/ListDeviceGroupRequest.cc
Normal file
72
ltl/src/model/ListDeviceGroupRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListDeviceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::ListDeviceGroupRequest;
|
||||
|
||||
ListDeviceGroupRequest::ListDeviceGroupRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "ListDeviceGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDeviceGroupRequest::~ListDeviceGroupRequest() {}
|
||||
|
||||
int ListDeviceGroupRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void ListDeviceGroupRequest::setSize(int size) {
|
||||
size_ = size;
|
||||
setParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
int ListDeviceGroupRequest::getNum() const {
|
||||
return num_;
|
||||
}
|
||||
|
||||
void ListDeviceGroupRequest::setNum(int num) {
|
||||
num_ = num;
|
||||
setParameter(std::string("Num"), std::to_string(num));
|
||||
}
|
||||
|
||||
std::string ListDeviceGroupRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void ListDeviceGroupRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string ListDeviceGroupRequest::getProductKey() const {
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void ListDeviceGroupRequest::setProductKey(const std::string &productKey) {
|
||||
productKey_ = productKey;
|
||||
setParameter(std::string("ProductKey"), productKey);
|
||||
}
|
||||
|
||||
std::string ListDeviceGroupRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void ListDeviceGroupRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
97
ltl/src/model/ListDeviceGroupResult.cc
Normal file
97
ltl/src/model/ListDeviceGroupResult.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListDeviceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
ListDeviceGroupResult::ListDeviceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDeviceGroupResult::ListDeviceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDeviceGroupResult::~ListDeviceGroupResult()
|
||||
{}
|
||||
|
||||
void ListDeviceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Num"].isNull())
|
||||
data_.num = std::stoi(dataNode["Num"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["Size"].isNull())
|
||||
data_.size = std::stoi(dataNode["Size"].asString());
|
||||
auto allPageDataNode = dataNode["PageData"]["DeviceGroupInfo"];
|
||||
for (auto dataNodePageDataDeviceGroupInfo : allPageDataNode)
|
||||
{
|
||||
Data::DeviceGroupInfo deviceGroupInfoObject;
|
||||
if(!dataNodePageDataDeviceGroupInfo["Status"].isNull())
|
||||
deviceGroupInfoObject.status = dataNodePageDataDeviceGroupInfo["Status"].asString();
|
||||
if(!dataNodePageDataDeviceGroupInfo["DeviceGroupId"].isNull())
|
||||
deviceGroupInfoObject.deviceGroupId = dataNodePageDataDeviceGroupInfo["DeviceGroupId"].asString();
|
||||
if(!dataNodePageDataDeviceGroupInfo["ProductKey"].isNull())
|
||||
deviceGroupInfoObject.productKey = dataNodePageDataDeviceGroupInfo["ProductKey"].asString();
|
||||
if(!dataNodePageDataDeviceGroupInfo["Remark"].isNull())
|
||||
deviceGroupInfoObject.remark = dataNodePageDataDeviceGroupInfo["Remark"].asString();
|
||||
if(!dataNodePageDataDeviceGroupInfo["AuthorizeType"].isNull())
|
||||
deviceGroupInfoObject.authorizeType = dataNodePageDataDeviceGroupInfo["AuthorizeType"].asString();
|
||||
if(!dataNodePageDataDeviceGroupInfo["OwnerName"].isNull())
|
||||
deviceGroupInfoObject.ownerName = dataNodePageDataDeviceGroupInfo["OwnerName"].asString();
|
||||
if(!dataNodePageDataDeviceGroupInfo["OwnerUid"].isNull())
|
||||
deviceGroupInfoObject.ownerUid = dataNodePageDataDeviceGroupInfo["OwnerUid"].asString();
|
||||
data_.pageData.push_back(deviceGroupInfoObject);
|
||||
}
|
||||
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 ListDeviceGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListDeviceGroupResult::Data ListDeviceGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListDeviceGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListDeviceGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
ltl/src/model/ListDeviceRequest.cc
Normal file
81
ltl/src/model/ListDeviceRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::ListDeviceRequest;
|
||||
|
||||
ListDeviceRequest::ListDeviceRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "ListDevice") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDeviceRequest::~ListDeviceRequest() {}
|
||||
|
||||
std::string ListDeviceRequest::getIotId() const {
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void ListDeviceRequest::setIotId(const std::string &iotId) {
|
||||
iotId_ = iotId;
|
||||
setParameter(std::string("IotId"), iotId);
|
||||
}
|
||||
|
||||
int ListDeviceRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void ListDeviceRequest::setSize(int size) {
|
||||
size_ = size;
|
||||
setParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
int ListDeviceRequest::getNum() const {
|
||||
return num_;
|
||||
}
|
||||
|
||||
void ListDeviceRequest::setNum(int num) {
|
||||
num_ = num;
|
||||
setParameter(std::string("Num"), std::to_string(num));
|
||||
}
|
||||
|
||||
std::string ListDeviceRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void ListDeviceRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string ListDeviceRequest::getDeviceGroupId() const {
|
||||
return deviceGroupId_;
|
||||
}
|
||||
|
||||
void ListDeviceRequest::setDeviceGroupId(const std::string &deviceGroupId) {
|
||||
deviceGroupId_ = deviceGroupId;
|
||||
setParameter(std::string("DeviceGroupId"), deviceGroupId);
|
||||
}
|
||||
|
||||
std::string ListDeviceRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void ListDeviceRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
91
ltl/src/model/ListDeviceResult.cc
Normal file
91
ltl/src/model/ListDeviceResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
ListDeviceResult::ListDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDeviceResult::ListDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDeviceResult::~ListDeviceResult()
|
||||
{}
|
||||
|
||||
void ListDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Num"].isNull())
|
||||
data_.num = std::stoi(dataNode["Num"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["Size"].isNull())
|
||||
data_.size = std::stoi(dataNode["Size"].asString());
|
||||
auto allPageDataNode = dataNode["PageData"]["DeviceInfo"];
|
||||
for (auto dataNodePageDataDeviceInfo : allPageDataNode)
|
||||
{
|
||||
Data::DeviceInfo deviceInfoObject;
|
||||
if(!dataNodePageDataDeviceInfo["Status"].isNull())
|
||||
deviceInfoObject.status = dataNodePageDataDeviceInfo["Status"].asString();
|
||||
if(!dataNodePageDataDeviceInfo["LastSaveTime"].isNull())
|
||||
deviceInfoObject.lastSaveTime = std::stol(dataNodePageDataDeviceInfo["LastSaveTime"].asString());
|
||||
if(!dataNodePageDataDeviceInfo["DeviceId"].isNull())
|
||||
deviceInfoObject.deviceId = dataNodePageDataDeviceInfo["DeviceId"].asString();
|
||||
if(!dataNodePageDataDeviceInfo["IotId"].isNull())
|
||||
deviceInfoObject.iotId = dataNodePageDataDeviceInfo["IotId"].asString();
|
||||
data_.pageData.push_back(deviceInfoObject);
|
||||
}
|
||||
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 ListDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListDeviceResult::Data ListDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
ltl/src/model/ListMPCoSPhaseGroupRequest.cc
Normal file
72
ltl/src/model/ListMPCoSPhaseGroupRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListMPCoSPhaseGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::ListMPCoSPhaseGroupRequest;
|
||||
|
||||
ListMPCoSPhaseGroupRequest::ListMPCoSPhaseGroupRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "ListMPCoSPhaseGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMPCoSPhaseGroupRequest::~ListMPCoSPhaseGroupRequest() {}
|
||||
|
||||
int ListMPCoSPhaseGroupRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseGroupRequest::setSize(int size) {
|
||||
size_ = size;
|
||||
setParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
int ListMPCoSPhaseGroupRequest::getNum() const {
|
||||
return num_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseGroupRequest::setNum(int num) {
|
||||
num_ = num;
|
||||
setParameter(std::string("Num"), std::to_string(num));
|
||||
}
|
||||
|
||||
std::string ListMPCoSPhaseGroupRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseGroupRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string ListMPCoSPhaseGroupRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseGroupRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string ListMPCoSPhaseGroupRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseGroupRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
89
ltl/src/model/ListMPCoSPhaseGroupResult.cc
Normal file
89
ltl/src/model/ListMPCoSPhaseGroupResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListMPCoSPhaseGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
ListMPCoSPhaseGroupResult::ListMPCoSPhaseGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMPCoSPhaseGroupResult::ListMPCoSPhaseGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMPCoSPhaseGroupResult::~ListMPCoSPhaseGroupResult()
|
||||
{}
|
||||
|
||||
void ListMPCoSPhaseGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Num"].isNull())
|
||||
data_.num = std::stoi(dataNode["Num"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["Size"].isNull())
|
||||
data_.size = std::stoi(dataNode["Size"].asString());
|
||||
auto allPageDataNode = dataNode["PageData"]["PhaseGroupInfo"];
|
||||
for (auto dataNodePageDataPhaseGroupInfo : allPageDataNode)
|
||||
{
|
||||
Data::PhaseGroupInfo phaseGroupInfoObject;
|
||||
if(!dataNodePageDataPhaseGroupInfo["PhaseGroupId"].isNull())
|
||||
phaseGroupInfoObject.phaseGroupId = dataNodePageDataPhaseGroupInfo["PhaseGroupId"].asString();
|
||||
if(!dataNodePageDataPhaseGroupInfo["Name"].isNull())
|
||||
phaseGroupInfoObject.name = dataNodePageDataPhaseGroupInfo["Name"].asString();
|
||||
if(!dataNodePageDataPhaseGroupInfo["Remark"].isNull())
|
||||
phaseGroupInfoObject.remark = dataNodePageDataPhaseGroupInfo["Remark"].asString();
|
||||
data_.pageData.push_back(phaseGroupInfoObject);
|
||||
}
|
||||
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 ListMPCoSPhaseGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListMPCoSPhaseGroupResult::Data ListMPCoSPhaseGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListMPCoSPhaseGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListMPCoSPhaseGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
108
ltl/src/model/ListMPCoSPhaseHistoryRequest.cc
Normal file
108
ltl/src/model/ListMPCoSPhaseHistoryRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListMPCoSPhaseHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::ListMPCoSPhaseHistoryRequest;
|
||||
|
||||
ListMPCoSPhaseHistoryRequest::ListMPCoSPhaseHistoryRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "ListMPCoSPhaseHistory") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMPCoSPhaseHistoryRequest::~ListMPCoSPhaseHistoryRequest() {}
|
||||
|
||||
int ListMPCoSPhaseHistoryRequest::getNum() const {
|
||||
return num_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseHistoryRequest::setNum(int num) {
|
||||
num_ = num;
|
||||
setParameter(std::string("Num"), std::to_string(num));
|
||||
}
|
||||
|
||||
std::string ListMPCoSPhaseHistoryRequest::getPhaseId() const {
|
||||
return phaseId_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseHistoryRequest::setPhaseId(const std::string &phaseId) {
|
||||
phaseId_ = phaseId;
|
||||
setParameter(std::string("PhaseId"), phaseId);
|
||||
}
|
||||
|
||||
long ListMPCoSPhaseHistoryRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseHistoryRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string ListMPCoSPhaseHistoryRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseHistoryRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
long ListMPCoSPhaseHistoryRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseHistoryRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string ListMPCoSPhaseHistoryRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseHistoryRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
std::string ListMPCoSPhaseHistoryRequest::getDataKey() const {
|
||||
return dataKey_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseHistoryRequest::setDataKey(const std::string &dataKey) {
|
||||
dataKey_ = dataKey;
|
||||
setParameter(std::string("DataKey"), dataKey);
|
||||
}
|
||||
|
||||
int ListMPCoSPhaseHistoryRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseHistoryRequest::setSize(int size) {
|
||||
size_ = size;
|
||||
setParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
std::string ListMPCoSPhaseHistoryRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseHistoryRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
103
ltl/src/model/ListMPCoSPhaseHistoryResult.cc
Normal file
103
ltl/src/model/ListMPCoSPhaseHistoryResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListMPCoSPhaseHistoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
ListMPCoSPhaseHistoryResult::ListMPCoSPhaseHistoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMPCoSPhaseHistoryResult::ListMPCoSPhaseHistoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMPCoSPhaseHistoryResult::~ListMPCoSPhaseHistoryResult()
|
||||
{}
|
||||
|
||||
void ListMPCoSPhaseHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Num"].isNull())
|
||||
data_.num = std::stoi(dataNode["Num"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["Size"].isNull())
|
||||
data_.size = std::stoi(dataNode["Size"].asString());
|
||||
auto allPageDataNode = dataNode["PageData"]["HistoryDataInfo"];
|
||||
for (auto dataNodePageDataHistoryDataInfo : allPageDataNode)
|
||||
{
|
||||
Data::HistoryDataInfo historyDataInfoObject;
|
||||
if(!dataNodePageDataHistoryDataInfo["ProductKey"].isNull())
|
||||
historyDataInfoObject.productKey = dataNodePageDataHistoryDataInfo["ProductKey"].asString();
|
||||
if(!dataNodePageDataHistoryDataInfo["PreviousHash"].isNull())
|
||||
historyDataInfoObject.previousHash = dataNodePageDataHistoryDataInfo["PreviousHash"].asString();
|
||||
if(!dataNodePageDataHistoryDataInfo["DataHash"].isNull())
|
||||
historyDataInfoObject.dataHash = dataNodePageDataHistoryDataInfo["DataHash"].asString();
|
||||
if(!dataNodePageDataHistoryDataInfo["DataSeq"].isNull())
|
||||
historyDataInfoObject.dataSeq = dataNodePageDataHistoryDataInfo["DataSeq"].asString();
|
||||
if(!dataNodePageDataHistoryDataInfo["DataValue"].isNull())
|
||||
historyDataInfoObject.dataValue = dataNodePageDataHistoryDataInfo["DataValue"].asString();
|
||||
if(!dataNodePageDataHistoryDataInfo["Timestamp"].isNull())
|
||||
historyDataInfoObject.timestamp = std::stol(dataNodePageDataHistoryDataInfo["Timestamp"].asString());
|
||||
if(!dataNodePageDataHistoryDataInfo["TransactionHash"].isNull())
|
||||
historyDataInfoObject.transactionHash = dataNodePageDataHistoryDataInfo["TransactionHash"].asString();
|
||||
if(!dataNodePageDataHistoryDataInfo["BlockHash"].isNull())
|
||||
historyDataInfoObject.blockHash = dataNodePageDataHistoryDataInfo["BlockHash"].asString();
|
||||
if(!dataNodePageDataHistoryDataInfo["BlockNumber"].isNull())
|
||||
historyDataInfoObject.blockNumber = std::stol(dataNodePageDataHistoryDataInfo["BlockNumber"].asString());
|
||||
if(!dataNodePageDataHistoryDataInfo["IotId"].isNull())
|
||||
historyDataInfoObject.iotId = dataNodePageDataHistoryDataInfo["IotId"].asString();
|
||||
data_.pageData.push_back(historyDataInfoObject);
|
||||
}
|
||||
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 ListMPCoSPhaseHistoryResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListMPCoSPhaseHistoryResult::Data ListMPCoSPhaseHistoryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListMPCoSPhaseHistoryResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListMPCoSPhaseHistoryResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
ltl/src/model/ListMPCoSPhaseRequest.cc
Normal file
81
ltl/src/model/ListMPCoSPhaseRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListMPCoSPhaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::ListMPCoSPhaseRequest;
|
||||
|
||||
ListMPCoSPhaseRequest::ListMPCoSPhaseRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "ListMPCoSPhase") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMPCoSPhaseRequest::~ListMPCoSPhaseRequest() {}
|
||||
|
||||
int ListMPCoSPhaseRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseRequest::setSize(int size) {
|
||||
size_ = size;
|
||||
setParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
int ListMPCoSPhaseRequest::getNum() const {
|
||||
return num_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseRequest::setNum(int num) {
|
||||
num_ = num;
|
||||
setParameter(std::string("Num"), std::to_string(num));
|
||||
}
|
||||
|
||||
std::string ListMPCoSPhaseRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string ListMPCoSPhaseRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
std::string ListMPCoSPhaseRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string ListMPCoSPhaseRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void ListMPCoSPhaseRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
91
ltl/src/model/ListMPCoSPhaseResult.cc
Normal file
91
ltl/src/model/ListMPCoSPhaseResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListMPCoSPhaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
ListMPCoSPhaseResult::ListMPCoSPhaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMPCoSPhaseResult::ListMPCoSPhaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMPCoSPhaseResult::~ListMPCoSPhaseResult()
|
||||
{}
|
||||
|
||||
void ListMPCoSPhaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Num"].isNull())
|
||||
data_.num = std::stoi(dataNode["Num"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["Size"].isNull())
|
||||
data_.size = std::stoi(dataNode["Size"].asString());
|
||||
auto allPageDataNode = dataNode["PageData"]["PhaseInfo"];
|
||||
for (auto dataNodePageDataPhaseInfo : allPageDataNode)
|
||||
{
|
||||
Data::PhaseInfo phaseInfoObject;
|
||||
if(!dataNodePageDataPhaseInfo["Name"].isNull())
|
||||
phaseInfoObject.name = dataNodePageDataPhaseInfo["Name"].asString();
|
||||
if(!dataNodePageDataPhaseInfo["Remark"].isNull())
|
||||
phaseInfoObject.remark = dataNodePageDataPhaseInfo["Remark"].asString();
|
||||
if(!dataNodePageDataPhaseInfo["AccessPermission"].isNull())
|
||||
phaseInfoObject.accessPermission = std::stoi(dataNodePageDataPhaseInfo["AccessPermission"].asString());
|
||||
if(!dataNodePageDataPhaseInfo["PhaseId"].isNull())
|
||||
phaseInfoObject.phaseId = dataNodePageDataPhaseInfo["PhaseId"].asString();
|
||||
data_.pageData.push_back(phaseInfoObject);
|
||||
}
|
||||
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 ListMPCoSPhaseResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListMPCoSPhaseResult::Data ListMPCoSPhaseResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListMPCoSPhaseResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListMPCoSPhaseResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
ltl/src/model/ListMemberRequest.cc
Normal file
72
ltl/src/model/ListMemberRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::ListMemberRequest;
|
||||
|
||||
ListMemberRequest::ListMemberRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "ListMember") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMemberRequest::~ListMemberRequest() {}
|
||||
|
||||
int ListMemberRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void ListMemberRequest::setSize(int size) {
|
||||
size_ = size;
|
||||
setParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
std::string ListMemberRequest::getMemberUid() const {
|
||||
return memberUid_;
|
||||
}
|
||||
|
||||
void ListMemberRequest::setMemberUid(const std::string &memberUid) {
|
||||
memberUid_ = memberUid;
|
||||
setParameter(std::string("MemberUid"), memberUid);
|
||||
}
|
||||
|
||||
int ListMemberRequest::getNum() const {
|
||||
return num_;
|
||||
}
|
||||
|
||||
void ListMemberRequest::setNum(int num) {
|
||||
num_ = num;
|
||||
setParameter(std::string("Num"), std::to_string(num));
|
||||
}
|
||||
|
||||
std::string ListMemberRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void ListMemberRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string ListMemberRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void ListMemberRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
97
ltl/src/model/ListMemberResult.cc
Normal file
97
ltl/src/model/ListMemberResult.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
ListMemberResult::ListMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMemberResult::ListMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMemberResult::~ListMemberResult()
|
||||
{}
|
||||
|
||||
void ListMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Num"].isNull())
|
||||
data_.num = std::stoi(dataNode["Num"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["Size"].isNull())
|
||||
data_.size = std::stoi(dataNode["Size"].asString());
|
||||
auto allPageDataNode = dataNode["PageData"]["MemberInfo"];
|
||||
for (auto dataNodePageDataMemberInfo : allPageDataNode)
|
||||
{
|
||||
Data::MemberInfo memberInfoObject;
|
||||
if(!dataNodePageDataMemberInfo["Status"].isNull())
|
||||
memberInfoObject.status = dataNodePageDataMemberInfo["Status"].asString();
|
||||
if(!dataNodePageDataMemberInfo["MemberName"].isNull())
|
||||
memberInfoObject.memberName = dataNodePageDataMemberInfo["MemberName"].asString();
|
||||
if(!dataNodePageDataMemberInfo["Remark"].isNull())
|
||||
memberInfoObject.remark = dataNodePageDataMemberInfo["Remark"].asString();
|
||||
if(!dataNodePageDataMemberInfo["MemberUid"].isNull())
|
||||
memberInfoObject.memberUid = dataNodePageDataMemberInfo["MemberUid"].asString();
|
||||
if(!dataNodePageDataMemberInfo["MemberPhone"].isNull())
|
||||
memberInfoObject.memberPhone = dataNodePageDataMemberInfo["MemberPhone"].asString();
|
||||
if(!dataNodePageDataMemberInfo["MemberId"].isNull())
|
||||
memberInfoObject.memberId = dataNodePageDataMemberInfo["MemberId"].asString();
|
||||
if(!dataNodePageDataMemberInfo["MemberContact"].isNull())
|
||||
memberInfoObject.memberContact = dataNodePageDataMemberInfo["MemberContact"].asString();
|
||||
data_.pageData.push_back(memberInfoObject);
|
||||
}
|
||||
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 ListMemberResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListMemberResult::Data ListMemberResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListMemberResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListMemberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
ltl/src/model/ListMultiPartyCollaborationChainRequest.cc
Normal file
63
ltl/src/model/ListMultiPartyCollaborationChainRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListMultiPartyCollaborationChainRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::ListMultiPartyCollaborationChainRequest;
|
||||
|
||||
ListMultiPartyCollaborationChainRequest::ListMultiPartyCollaborationChainRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "ListMultiPartyCollaborationChain") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMultiPartyCollaborationChainRequest::~ListMultiPartyCollaborationChainRequest() {}
|
||||
|
||||
int ListMultiPartyCollaborationChainRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void ListMultiPartyCollaborationChainRequest::setSize(int size) {
|
||||
size_ = size;
|
||||
setParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
int ListMultiPartyCollaborationChainRequest::getNum() const {
|
||||
return num_;
|
||||
}
|
||||
|
||||
void ListMultiPartyCollaborationChainRequest::setNum(int num) {
|
||||
num_ = num;
|
||||
setParameter(std::string("Num"), std::to_string(num));
|
||||
}
|
||||
|
||||
std::string ListMultiPartyCollaborationChainRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListMultiPartyCollaborationChainRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string ListMultiPartyCollaborationChainRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void ListMultiPartyCollaborationChainRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
91
ltl/src/model/ListMultiPartyCollaborationChainResult.cc
Normal file
91
ltl/src/model/ListMultiPartyCollaborationChainResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListMultiPartyCollaborationChainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
ListMultiPartyCollaborationChainResult::ListMultiPartyCollaborationChainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMultiPartyCollaborationChainResult::ListMultiPartyCollaborationChainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMultiPartyCollaborationChainResult::~ListMultiPartyCollaborationChainResult()
|
||||
{}
|
||||
|
||||
void ListMultiPartyCollaborationChainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Num"].isNull())
|
||||
data_.num = std::stoi(dataNode["Num"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["Size"].isNull())
|
||||
data_.size = std::stoi(dataNode["Size"].asString());
|
||||
auto allPageDataNode = dataNode["PageData"]["MultiPartyCollaborationChainInfo"];
|
||||
for (auto dataNodePageDataMultiPartyCollaborationChainInfo : allPageDataNode)
|
||||
{
|
||||
Data::MultiPartyCollaborationChainInfo multiPartyCollaborationChainInfoObject;
|
||||
if(!dataNodePageDataMultiPartyCollaborationChainInfo["Name"].isNull())
|
||||
multiPartyCollaborationChainInfoObject.name = dataNodePageDataMultiPartyCollaborationChainInfo["Name"].asString();
|
||||
if(!dataNodePageDataMultiPartyCollaborationChainInfo["Remark"].isNull())
|
||||
multiPartyCollaborationChainInfoObject.remark = dataNodePageDataMultiPartyCollaborationChainInfo["Remark"].asString();
|
||||
if(!dataNodePageDataMultiPartyCollaborationChainInfo["RoleType"].isNull())
|
||||
multiPartyCollaborationChainInfoObject.roleType = dataNodePageDataMultiPartyCollaborationChainInfo["RoleType"].asString();
|
||||
if(!dataNodePageDataMultiPartyCollaborationChainInfo["BizChainId"].isNull())
|
||||
multiPartyCollaborationChainInfoObject.bizChainId = dataNodePageDataMultiPartyCollaborationChainInfo["BizChainId"].asString();
|
||||
data_.pageData.push_back(multiPartyCollaborationChainInfoObject);
|
||||
}
|
||||
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 ListMultiPartyCollaborationChainResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListMultiPartyCollaborationChainResult::Data ListMultiPartyCollaborationChainResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListMultiPartyCollaborationChainResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListMultiPartyCollaborationChainResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
ltl/src/model/ListPSMemberDataTypeCodeRequest.cc
Normal file
72
ltl/src/model/ListPSMemberDataTypeCodeRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListPSMemberDataTypeCodeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::ListPSMemberDataTypeCodeRequest;
|
||||
|
||||
ListPSMemberDataTypeCodeRequest::ListPSMemberDataTypeCodeRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "ListPSMemberDataTypeCode") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPSMemberDataTypeCodeRequest::~ListPSMemberDataTypeCodeRequest() {}
|
||||
|
||||
int ListPSMemberDataTypeCodeRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void ListPSMemberDataTypeCodeRequest::setSize(int size) {
|
||||
size_ = size;
|
||||
setParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
std::string ListPSMemberDataTypeCodeRequest::getMemberUid() const {
|
||||
return memberUid_;
|
||||
}
|
||||
|
||||
void ListPSMemberDataTypeCodeRequest::setMemberUid(const std::string &memberUid) {
|
||||
memberUid_ = memberUid;
|
||||
setParameter(std::string("MemberUid"), memberUid);
|
||||
}
|
||||
|
||||
int ListPSMemberDataTypeCodeRequest::getNum() const {
|
||||
return num_;
|
||||
}
|
||||
|
||||
void ListPSMemberDataTypeCodeRequest::setNum(int num) {
|
||||
num_ = num;
|
||||
setParameter(std::string("Num"), std::to_string(num));
|
||||
}
|
||||
|
||||
std::string ListPSMemberDataTypeCodeRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void ListPSMemberDataTypeCodeRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string ListPSMemberDataTypeCodeRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void ListPSMemberDataTypeCodeRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
91
ltl/src/model/ListPSMemberDataTypeCodeResult.cc
Normal file
91
ltl/src/model/ListPSMemberDataTypeCodeResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListPSMemberDataTypeCodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
ListPSMemberDataTypeCodeResult::ListPSMemberDataTypeCodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPSMemberDataTypeCodeResult::ListPSMemberDataTypeCodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPSMemberDataTypeCodeResult::~ListPSMemberDataTypeCodeResult()
|
||||
{}
|
||||
|
||||
void ListPSMemberDataTypeCodeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Num"].isNull())
|
||||
data_.num = std::stoi(dataNode["Num"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["Size"].isNull())
|
||||
data_.size = std::stoi(dataNode["Size"].asString());
|
||||
auto allPageDataNode = dataNode["PageData"]["MemberInfo"];
|
||||
for (auto dataNodePageDataMemberInfo : allPageDataNode)
|
||||
{
|
||||
Data::MemberInfo memberInfoObject;
|
||||
if(!dataNodePageDataMemberInfo["MemberId"].isNull())
|
||||
memberInfoObject.memberId = dataNodePageDataMemberInfo["MemberId"].asString();
|
||||
if(!dataNodePageDataMemberInfo["DataTypeCode"].isNull())
|
||||
memberInfoObject.dataTypeCode = dataNodePageDataMemberInfo["DataTypeCode"].asString();
|
||||
if(!dataNodePageDataMemberInfo["MemberName"].isNull())
|
||||
memberInfoObject.memberName = dataNodePageDataMemberInfo["MemberName"].asString();
|
||||
if(!dataNodePageDataMemberInfo["MemberUid"].isNull())
|
||||
memberInfoObject.memberUid = dataNodePageDataMemberInfo["MemberUid"].asString();
|
||||
data_.pageData.push_back(memberInfoObject);
|
||||
}
|
||||
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 ListPSMemberDataTypeCodeResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListPSMemberDataTypeCodeResult::Data ListPSMemberDataTypeCodeResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListPSMemberDataTypeCodeResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListPSMemberDataTypeCodeResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
ltl/src/model/ListProofChainRequest.cc
Normal file
63
ltl/src/model/ListProofChainRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListProofChainRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::ListProofChainRequest;
|
||||
|
||||
ListProofChainRequest::ListProofChainRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "ListProofChain") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListProofChainRequest::~ListProofChainRequest() {}
|
||||
|
||||
int ListProofChainRequest::getSize() const {
|
||||
return size_;
|
||||
}
|
||||
|
||||
void ListProofChainRequest::setSize(int size) {
|
||||
size_ = size;
|
||||
setParameter(std::string("Size"), std::to_string(size));
|
||||
}
|
||||
|
||||
int ListProofChainRequest::getNum() const {
|
||||
return num_;
|
||||
}
|
||||
|
||||
void ListProofChainRequest::setNum(int num) {
|
||||
num_ = num;
|
||||
setParameter(std::string("Num"), std::to_string(num));
|
||||
}
|
||||
|
||||
std::string ListProofChainRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListProofChainRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string ListProofChainRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void ListProofChainRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
95
ltl/src/model/ListProofChainResult.cc
Normal file
95
ltl/src/model/ListProofChainResult.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ListProofChainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
ListProofChainResult::ListProofChainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListProofChainResult::ListProofChainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListProofChainResult::~ListProofChainResult()
|
||||
{}
|
||||
|
||||
void ListProofChainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Num"].isNull())
|
||||
data_.num = std::stoi(dataNode["Num"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["Size"].isNull())
|
||||
data_.size = std::stoi(dataNode["Size"].asString());
|
||||
auto allPageDataNode = dataNode["PageData"]["ProofChainInfo"];
|
||||
for (auto dataNodePageDataProofChainInfo : allPageDataNode)
|
||||
{
|
||||
Data::ProofChainInfo proofChainInfoObject;
|
||||
if(!dataNodePageDataProofChainInfo["Remark"].isNull())
|
||||
proofChainInfoObject.remark = dataNodePageDataProofChainInfo["Remark"].asString();
|
||||
if(!dataNodePageDataProofChainInfo["BizChainId"].isNull())
|
||||
proofChainInfoObject.bizChainId = dataNodePageDataProofChainInfo["BizChainId"].asString();
|
||||
if(!dataNodePageDataProofChainInfo["RoleType"].isNull())
|
||||
proofChainInfoObject.roleType = dataNodePageDataProofChainInfo["RoleType"].asString();
|
||||
if(!dataNodePageDataProofChainInfo["BizChainCode"].isNull())
|
||||
proofChainInfoObject.bizChainCode = dataNodePageDataProofChainInfo["BizChainCode"].asString();
|
||||
if(!dataNodePageDataProofChainInfo["Name"].isNull())
|
||||
proofChainInfoObject.name = dataNodePageDataProofChainInfo["Name"].asString();
|
||||
if(!dataNodePageDataProofChainInfo["DataTypeCode"].isNull())
|
||||
proofChainInfoObject.dataTypeCode = dataNodePageDataProofChainInfo["DataTypeCode"].asString();
|
||||
data_.pageData.push_back(proofChainInfoObject);
|
||||
}
|
||||
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 ListProofChainResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListProofChainResult::Data ListProofChainResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListProofChainResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListProofChainResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
ltl/src/model/LockMemberRequest.cc
Normal file
54
ltl/src/model/LockMemberRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/LockMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::LockMemberRequest;
|
||||
|
||||
LockMemberRequest::LockMemberRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "LockMember") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
LockMemberRequest::~LockMemberRequest() {}
|
||||
|
||||
std::string LockMemberRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void LockMemberRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string LockMemberRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void LockMemberRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
std::string LockMemberRequest::getMemberId() const {
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void LockMemberRequest::setMemberId(const std::string &memberId) {
|
||||
memberId_ = memberId;
|
||||
setParameter(std::string("MemberId"), memberId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/LockMemberResult.cc
Normal file
72
ltl/src/model/LockMemberResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/LockMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
LockMemberResult::LockMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
LockMemberResult::LockMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
LockMemberResult::~LockMemberResult()
|
||||
{}
|
||||
|
||||
void LockMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string LockMemberResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string LockMemberResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int LockMemberResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool LockMemberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
ltl/src/model/ModifyMPCoSPhaseGroupRequest.cc
Normal file
72
ltl/src/model/ModifyMPCoSPhaseGroupRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ModifyMPCoSPhaseGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::ModifyMPCoSPhaseGroupRequest;
|
||||
|
||||
ModifyMPCoSPhaseGroupRequest::ModifyMPCoSPhaseGroupRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "ModifyMPCoSPhaseGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyMPCoSPhaseGroupRequest::~ModifyMPCoSPhaseGroupRequest() {}
|
||||
|
||||
std::string ModifyMPCoSPhaseGroupRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ModifyMPCoSPhaseGroupRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string ModifyMPCoSPhaseGroupRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void ModifyMPCoSPhaseGroupRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyMPCoSPhaseGroupRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void ModifyMPCoSPhaseGroupRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string ModifyMPCoSPhaseGroupRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void ModifyMPCoSPhaseGroupRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string ModifyMPCoSPhaseGroupRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void ModifyMPCoSPhaseGroupRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/ModifyMPCoSPhaseGroupResult.cc
Normal file
72
ltl/src/model/ModifyMPCoSPhaseGroupResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ModifyMPCoSPhaseGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
ModifyMPCoSPhaseGroupResult::ModifyMPCoSPhaseGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyMPCoSPhaseGroupResult::ModifyMPCoSPhaseGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyMPCoSPhaseGroupResult::~ModifyMPCoSPhaseGroupResult()
|
||||
{}
|
||||
|
||||
void ModifyMPCoSPhaseGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyMPCoSPhaseGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ModifyMPCoSPhaseGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ModifyMPCoSPhaseGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ModifyMPCoSPhaseGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
ltl/src/model/ModifyMPCoSPhaseRequest.cc
Normal file
72
ltl/src/model/ModifyMPCoSPhaseRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ModifyMPCoSPhaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::ModifyMPCoSPhaseRequest;
|
||||
|
||||
ModifyMPCoSPhaseRequest::ModifyMPCoSPhaseRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "ModifyMPCoSPhase") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyMPCoSPhaseRequest::~ModifyMPCoSPhaseRequest() {}
|
||||
|
||||
std::string ModifyMPCoSPhaseRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ModifyMPCoSPhaseRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string ModifyMPCoSPhaseRequest::getPhaseId() const {
|
||||
return phaseId_;
|
||||
}
|
||||
|
||||
void ModifyMPCoSPhaseRequest::setPhaseId(const std::string &phaseId) {
|
||||
phaseId_ = phaseId;
|
||||
setParameter(std::string("PhaseId"), phaseId);
|
||||
}
|
||||
|
||||
std::string ModifyMPCoSPhaseRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void ModifyMPCoSPhaseRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string ModifyMPCoSPhaseRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void ModifyMPCoSPhaseRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string ModifyMPCoSPhaseRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void ModifyMPCoSPhaseRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/ModifyMPCoSPhaseResult.cc
Normal file
72
ltl/src/model/ModifyMPCoSPhaseResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ModifyMPCoSPhaseResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
ModifyMPCoSPhaseResult::ModifyMPCoSPhaseResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyMPCoSPhaseResult::ModifyMPCoSPhaseResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyMPCoSPhaseResult::~ModifyMPCoSPhaseResult()
|
||||
{}
|
||||
|
||||
void ModifyMPCoSPhaseResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyMPCoSPhaseResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ModifyMPCoSPhaseResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ModifyMPCoSPhaseResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ModifyMPCoSPhaseResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
99
ltl/src/model/ModifyMemberRequest.cc
Normal file
99
ltl/src/model/ModifyMemberRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ModifyMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::ModifyMemberRequest;
|
||||
|
||||
ModifyMemberRequest::ModifyMemberRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "ModifyMember") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyMemberRequest::~ModifyMemberRequest() {}
|
||||
|
||||
std::string ModifyMemberRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void ModifyMemberRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string ModifyMemberRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void ModifyMemberRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string ModifyMemberRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void ModifyMemberRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
std::string ModifyMemberRequest::getMemberUid() const {
|
||||
return memberUid_;
|
||||
}
|
||||
|
||||
void ModifyMemberRequest::setMemberUid(const std::string &memberUid) {
|
||||
memberUid_ = memberUid;
|
||||
setParameter(std::string("MemberUid"), memberUid);
|
||||
}
|
||||
|
||||
std::string ModifyMemberRequest::getMemberContact() const {
|
||||
return memberContact_;
|
||||
}
|
||||
|
||||
void ModifyMemberRequest::setMemberContact(const std::string &memberContact) {
|
||||
memberContact_ = memberContact;
|
||||
setParameter(std::string("MemberContact"), memberContact);
|
||||
}
|
||||
|
||||
std::string ModifyMemberRequest::getMemberPhone() const {
|
||||
return memberPhone_;
|
||||
}
|
||||
|
||||
void ModifyMemberRequest::setMemberPhone(const std::string &memberPhone) {
|
||||
memberPhone_ = memberPhone;
|
||||
setParameter(std::string("MemberPhone"), memberPhone);
|
||||
}
|
||||
|
||||
std::string ModifyMemberRequest::getMemberName() const {
|
||||
return memberName_;
|
||||
}
|
||||
|
||||
void ModifyMemberRequest::setMemberName(const std::string &memberName) {
|
||||
memberName_ = memberName;
|
||||
setParameter(std::string("MemberName"), memberName);
|
||||
}
|
||||
|
||||
std::string ModifyMemberRequest::getMemberId() const {
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void ModifyMemberRequest::setMemberId(const std::string &memberId) {
|
||||
memberId_ = memberId;
|
||||
setParameter(std::string("MemberId"), memberId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/ModifyMemberResult.cc
Normal file
72
ltl/src/model/ModifyMemberResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/ModifyMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
ModifyMemberResult::ModifyMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyMemberResult::ModifyMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyMemberResult::~ModifyMemberResult()
|
||||
{}
|
||||
|
||||
void ModifyMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyMemberResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ModifyMemberResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ModifyMemberResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ModifyMemberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
ltl/src/model/RegisterDeviceGroupRequest.cc
Normal file
81
ltl/src/model/RegisterDeviceGroupRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/RegisterDeviceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::RegisterDeviceGroupRequest;
|
||||
|
||||
RegisterDeviceGroupRequest::RegisterDeviceGroupRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "RegisterDeviceGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RegisterDeviceGroupRequest::~RegisterDeviceGroupRequest() {}
|
||||
|
||||
std::string RegisterDeviceGroupRequest::getAuthorizeType() const {
|
||||
return authorizeType_;
|
||||
}
|
||||
|
||||
void RegisterDeviceGroupRequest::setAuthorizeType(const std::string &authorizeType) {
|
||||
authorizeType_ = authorizeType;
|
||||
setParameter(std::string("AuthorizeType"), authorizeType);
|
||||
}
|
||||
|
||||
std::string RegisterDeviceGroupRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void RegisterDeviceGroupRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string RegisterDeviceGroupRequest::getRemark() const {
|
||||
return remark_;
|
||||
}
|
||||
|
||||
void RegisterDeviceGroupRequest::setRemark(const std::string &remark) {
|
||||
remark_ = remark;
|
||||
setParameter(std::string("Remark"), remark);
|
||||
}
|
||||
|
||||
std::string RegisterDeviceGroupRequest::getProductKey() const {
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void RegisterDeviceGroupRequest::setProductKey(const std::string &productKey) {
|
||||
productKey_ = productKey;
|
||||
setParameter(std::string("ProductKey"), productKey);
|
||||
}
|
||||
|
||||
std::string RegisterDeviceGroupRequest::getDeviceGroupName() const {
|
||||
return deviceGroupName_;
|
||||
}
|
||||
|
||||
void RegisterDeviceGroupRequest::setDeviceGroupName(const std::string &deviceGroupName) {
|
||||
deviceGroupName_ = deviceGroupName;
|
||||
setParameter(std::string("DeviceGroupName"), deviceGroupName);
|
||||
}
|
||||
|
||||
std::string RegisterDeviceGroupRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void RegisterDeviceGroupRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/RegisterDeviceGroupResult.cc
Normal file
72
ltl/src/model/RegisterDeviceGroupResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/RegisterDeviceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
RegisterDeviceGroupResult::RegisterDeviceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RegisterDeviceGroupResult::RegisterDeviceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RegisterDeviceGroupResult::~RegisterDeviceGroupResult()
|
||||
{}
|
||||
|
||||
void RegisterDeviceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string RegisterDeviceGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string RegisterDeviceGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int RegisterDeviceGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool RegisterDeviceGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
ltl/src/model/SetDataRequest.cc
Normal file
63
ltl/src/model/SetDataRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/SetDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::SetDataRequest;
|
||||
|
||||
SetDataRequest::SetDataRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "SetData") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetDataRequest::~SetDataRequest() {}
|
||||
|
||||
std::string SetDataRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void SetDataRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string SetDataRequest::getProductKey() const {
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void SetDataRequest::setProductKey(const std::string &productKey) {
|
||||
productKey_ = productKey;
|
||||
setParameter(std::string("ProductKey"), productKey);
|
||||
}
|
||||
|
||||
std::string SetDataRequest::getValue() const {
|
||||
return value_;
|
||||
}
|
||||
|
||||
void SetDataRequest::setValue(const std::string &value) {
|
||||
value_ = value;
|
||||
setParameter(std::string("Value"), value);
|
||||
}
|
||||
|
||||
std::string SetDataRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void SetDataRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
72
ltl/src/model/SetDataResult.cc
Normal file
72
ltl/src/model/SetDataResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/SetDataResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
SetDataResult::SetDataResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetDataResult::SetDataResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetDataResult::~SetDataResult()
|
||||
{}
|
||||
|
||||
void SetDataResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SetDataResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SetDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int SetDataResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SetDataResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
117
ltl/src/model/SetDataWithSignatureRequest.cc
Normal file
117
ltl/src/model/SetDataWithSignatureRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/SetDataWithSignatureRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::SetDataWithSignatureRequest;
|
||||
|
||||
SetDataWithSignatureRequest::SetDataWithSignatureRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "SetDataWithSignature") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetDataWithSignatureRequest::~SetDataWithSignatureRequest() {}
|
||||
|
||||
std::string SetDataWithSignatureRequest::getIotSignature() const {
|
||||
return iotSignature_;
|
||||
}
|
||||
|
||||
void SetDataWithSignatureRequest::setIotSignature(const std::string &iotSignature) {
|
||||
iotSignature_ = iotSignature;
|
||||
setParameter(std::string("IotSignature"), iotSignature);
|
||||
}
|
||||
|
||||
std::string SetDataWithSignatureRequest::getIotAuthType() const {
|
||||
return iotAuthType_;
|
||||
}
|
||||
|
||||
void SetDataWithSignatureRequest::setIotAuthType(const std::string &iotAuthType) {
|
||||
iotAuthType_ = iotAuthType;
|
||||
setParameter(std::string("IotAuthType"), iotAuthType);
|
||||
}
|
||||
|
||||
std::string SetDataWithSignatureRequest::getIotIdSource() const {
|
||||
return iotIdSource_;
|
||||
}
|
||||
|
||||
void SetDataWithSignatureRequest::setIotIdSource(const std::string &iotIdSource) {
|
||||
iotIdSource_ = iotIdSource;
|
||||
setParameter(std::string("IotIdSource"), iotIdSource);
|
||||
}
|
||||
|
||||
std::string SetDataWithSignatureRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void SetDataWithSignatureRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string SetDataWithSignatureRequest::getProductKey() const {
|
||||
return productKey_;
|
||||
}
|
||||
|
||||
void SetDataWithSignatureRequest::setProductKey(const std::string &productKey) {
|
||||
productKey_ = productKey;
|
||||
setParameter(std::string("ProductKey"), productKey);
|
||||
}
|
||||
|
||||
std::string SetDataWithSignatureRequest::getIotId() const {
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void SetDataWithSignatureRequest::setIotId(const std::string &iotId) {
|
||||
iotId_ = iotId;
|
||||
setParameter(std::string("IotId"), iotId);
|
||||
}
|
||||
|
||||
std::string SetDataWithSignatureRequest::getIotDataDigest() const {
|
||||
return iotDataDigest_;
|
||||
}
|
||||
|
||||
void SetDataWithSignatureRequest::setIotDataDigest(const std::string &iotDataDigest) {
|
||||
iotDataDigest_ = iotDataDigest;
|
||||
setParameter(std::string("IotDataDigest"), iotDataDigest);
|
||||
}
|
||||
|
||||
std::string SetDataWithSignatureRequest::getIotIdServiceProvider() const {
|
||||
return iotIdServiceProvider_;
|
||||
}
|
||||
|
||||
void SetDataWithSignatureRequest::setIotIdServiceProvider(const std::string &iotIdServiceProvider) {
|
||||
iotIdServiceProvider_ = iotIdServiceProvider;
|
||||
setParameter(std::string("IotIdServiceProvider"), iotIdServiceProvider);
|
||||
}
|
||||
|
||||
std::string SetDataWithSignatureRequest::getValue() const {
|
||||
return value_;
|
||||
}
|
||||
|
||||
void SetDataWithSignatureRequest::setValue(const std::string &value) {
|
||||
value_ = value;
|
||||
setParameter(std::string("Value"), value);
|
||||
}
|
||||
|
||||
std::string SetDataWithSignatureRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void SetDataWithSignatureRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
72
ltl/src/model/SetDataWithSignatureResult.cc
Normal file
72
ltl/src/model/SetDataWithSignatureResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/SetDataWithSignatureResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
SetDataWithSignatureResult::SetDataWithSignatureResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetDataWithSignatureResult::SetDataWithSignatureResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetDataWithSignatureResult::~SetDataWithSignatureResult()
|
||||
{}
|
||||
|
||||
void SetDataWithSignatureResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SetDataWithSignatureResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SetDataWithSignatureResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int SetDataWithSignatureResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SetDataWithSignatureResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
ltl/src/model/UnAuthorizeDeviceGroupRequest.cc
Normal file
54
ltl/src/model/UnAuthorizeDeviceGroupRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UnAuthorizeDeviceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::UnAuthorizeDeviceGroupRequest;
|
||||
|
||||
UnAuthorizeDeviceGroupRequest::UnAuthorizeDeviceGroupRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "UnAuthorizeDeviceGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnAuthorizeDeviceGroupRequest::~UnAuthorizeDeviceGroupRequest() {}
|
||||
|
||||
std::string UnAuthorizeDeviceGroupRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void UnAuthorizeDeviceGroupRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string UnAuthorizeDeviceGroupRequest::getDeviceGroupId() const {
|
||||
return deviceGroupId_;
|
||||
}
|
||||
|
||||
void UnAuthorizeDeviceGroupRequest::setDeviceGroupId(const std::string &deviceGroupId) {
|
||||
deviceGroupId_ = deviceGroupId;
|
||||
setParameter(std::string("DeviceGroupId"), deviceGroupId);
|
||||
}
|
||||
|
||||
std::string UnAuthorizeDeviceGroupRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void UnAuthorizeDeviceGroupRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/UnAuthorizeDeviceGroupResult.cc
Normal file
72
ltl/src/model/UnAuthorizeDeviceGroupResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UnAuthorizeDeviceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
UnAuthorizeDeviceGroupResult::UnAuthorizeDeviceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnAuthorizeDeviceGroupResult::UnAuthorizeDeviceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnAuthorizeDeviceGroupResult::~UnAuthorizeDeviceGroupResult()
|
||||
{}
|
||||
|
||||
void UnAuthorizeDeviceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UnAuthorizeDeviceGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UnAuthorizeDeviceGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UnAuthorizeDeviceGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UnAuthorizeDeviceGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
ltl/src/model/UnAuthorizeDeviceRequest.cc
Normal file
63
ltl/src/model/UnAuthorizeDeviceRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UnAuthorizeDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::UnAuthorizeDeviceRequest;
|
||||
|
||||
UnAuthorizeDeviceRequest::UnAuthorizeDeviceRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "UnAuthorizeDevice") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnAuthorizeDeviceRequest::~UnAuthorizeDeviceRequest() {}
|
||||
|
||||
std::string UnAuthorizeDeviceRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void UnAuthorizeDeviceRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string UnAuthorizeDeviceRequest::getDeviceId() const {
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void UnAuthorizeDeviceRequest::setDeviceId(const std::string &deviceId) {
|
||||
deviceId_ = deviceId;
|
||||
setParameter(std::string("DeviceId"), deviceId);
|
||||
}
|
||||
|
||||
std::string UnAuthorizeDeviceRequest::getDeviceGroupId() const {
|
||||
return deviceGroupId_;
|
||||
}
|
||||
|
||||
void UnAuthorizeDeviceRequest::setDeviceGroupId(const std::string &deviceGroupId) {
|
||||
deviceGroupId_ = deviceGroupId;
|
||||
setParameter(std::string("DeviceGroupId"), deviceGroupId);
|
||||
}
|
||||
|
||||
std::string UnAuthorizeDeviceRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void UnAuthorizeDeviceRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/UnAuthorizeDeviceResult.cc
Normal file
72
ltl/src/model/UnAuthorizeDeviceResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UnAuthorizeDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
UnAuthorizeDeviceResult::UnAuthorizeDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnAuthorizeDeviceResult::UnAuthorizeDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnAuthorizeDeviceResult::~UnAuthorizeDeviceResult()
|
||||
{}
|
||||
|
||||
void UnAuthorizeDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UnAuthorizeDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UnAuthorizeDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UnAuthorizeDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UnAuthorizeDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
ltl/src/model/UnLockMemberRequest.cc
Normal file
54
ltl/src/model/UnLockMemberRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UnLockMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::UnLockMemberRequest;
|
||||
|
||||
UnLockMemberRequest::UnLockMemberRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "UnLockMember") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnLockMemberRequest::~UnLockMemberRequest() {}
|
||||
|
||||
std::string UnLockMemberRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void UnLockMemberRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string UnLockMemberRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void UnLockMemberRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
std::string UnLockMemberRequest::getMemberId() const {
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void UnLockMemberRequest::setMemberId(const std::string &memberId) {
|
||||
memberId_ = memberId;
|
||||
setParameter(std::string("MemberId"), memberId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/UnLockMemberResult.cc
Normal file
72
ltl/src/model/UnLockMemberResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UnLockMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
UnLockMemberResult::UnLockMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnLockMemberResult::UnLockMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnLockMemberResult::~UnLockMemberResult()
|
||||
{}
|
||||
|
||||
void UnLockMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UnLockMemberResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UnLockMemberResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UnLockMemberResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UnLockMemberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
ltl/src/model/UpdateMPCoSAuthorizedInfoRequest.cc
Normal file
72
ltl/src/model/UpdateMPCoSAuthorizedInfoRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UpdateMPCoSAuthorizedInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::UpdateMPCoSAuthorizedInfoRequest;
|
||||
|
||||
UpdateMPCoSAuthorizedInfoRequest::UpdateMPCoSAuthorizedInfoRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "UpdateMPCoSAuthorizedInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateMPCoSAuthorizedInfoRequest::~UpdateMPCoSAuthorizedInfoRequest() {}
|
||||
|
||||
std::string UpdateMPCoSAuthorizedInfoRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void UpdateMPCoSAuthorizedInfoRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
std::string UpdateMPCoSAuthorizedInfoRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void UpdateMPCoSAuthorizedInfoRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> UpdateMPCoSAuthorizedInfoRequest::getAuthorizedPhaseList() const {
|
||||
return authorizedPhaseList_;
|
||||
}
|
||||
|
||||
void UpdateMPCoSAuthorizedInfoRequest::setAuthorizedPhaseList(std::map<std::string, std::string> authorizedPhaseList) {
|
||||
authorizedPhaseList_ = authorizedPhaseList;
|
||||
setParameter(std::string("AuthorizedPhaseList"), authorizedPhaseList);
|
||||
}
|
||||
|
||||
std::string UpdateMPCoSAuthorizedInfoRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void UpdateMPCoSAuthorizedInfoRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
std::string UpdateMPCoSAuthorizedInfoRequest::getMemberId() const {
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void UpdateMPCoSAuthorizedInfoRequest::setMemberId(const std::string &memberId) {
|
||||
memberId_ = memberId;
|
||||
setParameter(std::string("MemberId"), memberId);
|
||||
}
|
||||
|
||||
72
ltl/src/model/UpdateMPCoSAuthorizedInfoResult.cc
Normal file
72
ltl/src/model/UpdateMPCoSAuthorizedInfoResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UpdateMPCoSAuthorizedInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
UpdateMPCoSAuthorizedInfoResult::UpdateMPCoSAuthorizedInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateMPCoSAuthorizedInfoResult::UpdateMPCoSAuthorizedInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateMPCoSAuthorizedInfoResult::~UpdateMPCoSAuthorizedInfoResult()
|
||||
{}
|
||||
|
||||
void UpdateMPCoSAuthorizedInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateMPCoSAuthorizedInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateMPCoSAuthorizedInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UpdateMPCoSAuthorizedInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateMPCoSAuthorizedInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
153
ltl/src/model/UploadMPCoSPhaseDigestInfoByDeviceRequest.cc
Normal file
153
ltl/src/model/UploadMPCoSPhaseDigestInfoByDeviceRequest.cc
Normal file
@@ -0,0 +1,153 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UploadMPCoSPhaseDigestInfoByDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::UploadMPCoSPhaseDigestInfoByDeviceRequest;
|
||||
|
||||
UploadMPCoSPhaseDigestInfoByDeviceRequest::UploadMPCoSPhaseDigestInfoByDeviceRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "UploadMPCoSPhaseDigestInfoByDevice") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UploadMPCoSPhaseDigestInfoByDeviceRequest::~UploadMPCoSPhaseDigestInfoByDeviceRequest() {}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceRequest::getIotSignature() const {
|
||||
return iotSignature_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceRequest::setIotSignature(const std::string &iotSignature) {
|
||||
iotSignature_ = iotSignature;
|
||||
setParameter(std::string("IotSignature"), iotSignature);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceRequest::getIotAuthType() const {
|
||||
return iotAuthType_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceRequest::setIotAuthType(const std::string &iotAuthType) {
|
||||
iotAuthType_ = iotAuthType;
|
||||
setParameter(std::string("IotAuthType"), iotAuthType);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceRequest::getIotIdSource() const {
|
||||
return iotIdSource_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceRequest::setIotIdSource(const std::string &iotIdSource) {
|
||||
iotIdSource_ = iotIdSource;
|
||||
setParameter(std::string("IotIdSource"), iotIdSource);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceRequest::getPhaseData() const {
|
||||
return phaseData_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceRequest::setPhaseData(const std::string &phaseData) {
|
||||
phaseData_ = phaseData;
|
||||
setParameter(std::string("PhaseData"), phaseData);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceRequest::getPhaseId() const {
|
||||
return phaseId_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceRequest::setPhaseId(const std::string &phaseId) {
|
||||
phaseId_ = phaseId;
|
||||
setParameter(std::string("PhaseId"), phaseId);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceRequest::getDataKey() const {
|
||||
return dataKey_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceRequest::setDataKey(const std::string &dataKey) {
|
||||
dataKey_ = dataKey;
|
||||
setParameter(std::string("DataKey"), dataKey);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceRequest::getDataSeq() const {
|
||||
return dataSeq_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceRequest::setDataSeq(const std::string &dataSeq) {
|
||||
dataSeq_ = dataSeq;
|
||||
setParameter(std::string("DataSeq"), dataSeq);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceRequest::getIotId() const {
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceRequest::setIotId(const std::string &iotId) {
|
||||
iotId_ = iotId;
|
||||
setParameter(std::string("IotId"), iotId);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceRequest::getIotDataDigest() const {
|
||||
return iotDataDigest_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceRequest::setIotDataDigest(const std::string &iotDataDigest) {
|
||||
iotDataDigest_ = iotDataDigest;
|
||||
setParameter(std::string("IotDataDigest"), iotDataDigest);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceRequest::getIotIdServiceProvider() const {
|
||||
return iotIdServiceProvider_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceRequest::setIotIdServiceProvider(const std::string &iotIdServiceProvider) {
|
||||
iotIdServiceProvider_ = iotIdServiceProvider;
|
||||
setParameter(std::string("IotIdServiceProvider"), iotIdServiceProvider);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> UploadMPCoSPhaseDigestInfoByDeviceRequest::getRelatedDataList() const {
|
||||
return relatedDataList_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceRequest::setRelatedDataList(std::map<std::string, std::string> relatedDataList) {
|
||||
relatedDataList_ = relatedDataList;
|
||||
setParameter(std::string("RelatedDataList"), relatedDataList);
|
||||
}
|
||||
|
||||
72
ltl/src/model/UploadMPCoSPhaseDigestInfoByDeviceResult.cc
Normal file
72
ltl/src/model/UploadMPCoSPhaseDigestInfoByDeviceResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UploadMPCoSPhaseDigestInfoByDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
UploadMPCoSPhaseDigestInfoByDeviceResult::UploadMPCoSPhaseDigestInfoByDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UploadMPCoSPhaseDigestInfoByDeviceResult::UploadMPCoSPhaseDigestInfoByDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UploadMPCoSPhaseDigestInfoByDeviceResult::~UploadMPCoSPhaseDigestInfoByDeviceResult()
|
||||
{}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoByDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoByDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UploadMPCoSPhaseDigestInfoByDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UploadMPCoSPhaseDigestInfoByDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
99
ltl/src/model/UploadMPCoSPhaseDigestInfoRequest.cc
Normal file
99
ltl/src/model/UploadMPCoSPhaseDigestInfoRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UploadMPCoSPhaseDigestInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::UploadMPCoSPhaseDigestInfoRequest;
|
||||
|
||||
UploadMPCoSPhaseDigestInfoRequest::UploadMPCoSPhaseDigestInfoRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "UploadMPCoSPhaseDigestInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UploadMPCoSPhaseDigestInfoRequest::~UploadMPCoSPhaseDigestInfoRequest() {}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoRequest::getPhaseData() const {
|
||||
return phaseData_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoRequest::setPhaseData(const std::string &phaseData) {
|
||||
phaseData_ = phaseData;
|
||||
setParameter(std::string("PhaseData"), phaseData);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoRequest::getPhaseId() const {
|
||||
return phaseId_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoRequest::setPhaseId(const std::string &phaseId) {
|
||||
phaseId_ = phaseId;
|
||||
setParameter(std::string("PhaseId"), phaseId);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoRequest::getDataKey() const {
|
||||
return dataKey_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoRequest::setDataKey(const std::string &dataKey) {
|
||||
dataKey_ = dataKey;
|
||||
setParameter(std::string("DataKey"), dataKey);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoRequest::getDataSeq() const {
|
||||
return dataSeq_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoRequest::setDataSeq(const std::string &dataSeq) {
|
||||
dataSeq_ = dataSeq;
|
||||
setParameter(std::string("DataSeq"), dataSeq);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> UploadMPCoSPhaseDigestInfoRequest::getRelatedDataList() const {
|
||||
return relatedDataList_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoRequest::setRelatedDataList(std::map<std::string, std::string> relatedDataList) {
|
||||
relatedDataList_ = relatedDataList;
|
||||
setParameter(std::string("RelatedDataList"), relatedDataList);
|
||||
}
|
||||
|
||||
72
ltl/src/model/UploadMPCoSPhaseDigestInfoResult.cc
Normal file
72
ltl/src/model/UploadMPCoSPhaseDigestInfoResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UploadMPCoSPhaseDigestInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
UploadMPCoSPhaseDigestInfoResult::UploadMPCoSPhaseDigestInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UploadMPCoSPhaseDigestInfoResult::UploadMPCoSPhaseDigestInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UploadMPCoSPhaseDigestInfoResult::~UploadMPCoSPhaseDigestInfoResult()
|
||||
{}
|
||||
|
||||
void UploadMPCoSPhaseDigestInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseDigestInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UploadMPCoSPhaseDigestInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UploadMPCoSPhaseDigestInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
153
ltl/src/model/UploadMPCoSPhaseTextInfoByDeviceRequest.cc
Normal file
153
ltl/src/model/UploadMPCoSPhaseTextInfoByDeviceRequest.cc
Normal file
@@ -0,0 +1,153 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UploadMPCoSPhaseTextInfoByDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::UploadMPCoSPhaseTextInfoByDeviceRequest;
|
||||
|
||||
UploadMPCoSPhaseTextInfoByDeviceRequest::UploadMPCoSPhaseTextInfoByDeviceRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "UploadMPCoSPhaseTextInfoByDevice") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UploadMPCoSPhaseTextInfoByDeviceRequest::~UploadMPCoSPhaseTextInfoByDeviceRequest() {}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceRequest::getIotSignature() const {
|
||||
return iotSignature_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceRequest::setIotSignature(const std::string &iotSignature) {
|
||||
iotSignature_ = iotSignature;
|
||||
setParameter(std::string("IotSignature"), iotSignature);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceRequest::getIotAuthType() const {
|
||||
return iotAuthType_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceRequest::setIotAuthType(const std::string &iotAuthType) {
|
||||
iotAuthType_ = iotAuthType;
|
||||
setParameter(std::string("IotAuthType"), iotAuthType);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceRequest::getIotIdSource() const {
|
||||
return iotIdSource_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceRequest::setIotIdSource(const std::string &iotIdSource) {
|
||||
iotIdSource_ = iotIdSource;
|
||||
setParameter(std::string("IotIdSource"), iotIdSource);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceRequest::getPhaseData() const {
|
||||
return phaseData_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceRequest::setPhaseData(const std::string &phaseData) {
|
||||
phaseData_ = phaseData;
|
||||
setParameter(std::string("PhaseData"), phaseData);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceRequest::getPhaseId() const {
|
||||
return phaseId_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceRequest::setPhaseId(const std::string &phaseId) {
|
||||
phaseId_ = phaseId;
|
||||
setParameter(std::string("PhaseId"), phaseId);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceRequest::getDataKey() const {
|
||||
return dataKey_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceRequest::setDataKey(const std::string &dataKey) {
|
||||
dataKey_ = dataKey;
|
||||
setParameter(std::string("DataKey"), dataKey);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceRequest::getDataSeq() const {
|
||||
return dataSeq_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceRequest::setDataSeq(const std::string &dataSeq) {
|
||||
dataSeq_ = dataSeq;
|
||||
setParameter(std::string("DataSeq"), dataSeq);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceRequest::getIotId() const {
|
||||
return iotId_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceRequest::setIotId(const std::string &iotId) {
|
||||
iotId_ = iotId;
|
||||
setParameter(std::string("IotId"), iotId);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceRequest::getIotDataDigest() const {
|
||||
return iotDataDigest_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceRequest::setIotDataDigest(const std::string &iotDataDigest) {
|
||||
iotDataDigest_ = iotDataDigest;
|
||||
setParameter(std::string("IotDataDigest"), iotDataDigest);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceRequest::getIotIdServiceProvider() const {
|
||||
return iotIdServiceProvider_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceRequest::setIotIdServiceProvider(const std::string &iotIdServiceProvider) {
|
||||
iotIdServiceProvider_ = iotIdServiceProvider;
|
||||
setParameter(std::string("IotIdServiceProvider"), iotIdServiceProvider);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> UploadMPCoSPhaseTextInfoByDeviceRequest::getRelatedDataList() const {
|
||||
return relatedDataList_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceRequest::setRelatedDataList(std::map<std::string, std::string> relatedDataList) {
|
||||
relatedDataList_ = relatedDataList;
|
||||
setParameter(std::string("RelatedDataList"), relatedDataList);
|
||||
}
|
||||
|
||||
72
ltl/src/model/UploadMPCoSPhaseTextInfoByDeviceResult.cc
Normal file
72
ltl/src/model/UploadMPCoSPhaseTextInfoByDeviceResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UploadMPCoSPhaseTextInfoByDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
UploadMPCoSPhaseTextInfoByDeviceResult::UploadMPCoSPhaseTextInfoByDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UploadMPCoSPhaseTextInfoByDeviceResult::UploadMPCoSPhaseTextInfoByDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UploadMPCoSPhaseTextInfoByDeviceResult::~UploadMPCoSPhaseTextInfoByDeviceResult()
|
||||
{}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoByDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoByDeviceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UploadMPCoSPhaseTextInfoByDeviceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UploadMPCoSPhaseTextInfoByDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
99
ltl/src/model/UploadMPCoSPhaseTextInfoRequest.cc
Normal file
99
ltl/src/model/UploadMPCoSPhaseTextInfoRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UploadMPCoSPhaseTextInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Ltl::Model::UploadMPCoSPhaseTextInfoRequest;
|
||||
|
||||
UploadMPCoSPhaseTextInfoRequest::UploadMPCoSPhaseTextInfoRequest()
|
||||
: RpcServiceRequest("ltl", "2019-05-10", "UploadMPCoSPhaseTextInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UploadMPCoSPhaseTextInfoRequest::~UploadMPCoSPhaseTextInfoRequest() {}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoRequest::getPhaseData() const {
|
||||
return phaseData_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoRequest::setPhaseData(const std::string &phaseData) {
|
||||
phaseData_ = phaseData;
|
||||
setParameter(std::string("PhaseData"), phaseData);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoRequest::getPhaseId() const {
|
||||
return phaseId_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoRequest::setPhaseId(const std::string &phaseId) {
|
||||
phaseId_ = phaseId;
|
||||
setParameter(std::string("PhaseId"), phaseId);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoRequest::getApiVersion() const {
|
||||
return apiVersion_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoRequest::setApiVersion(const std::string &apiVersion) {
|
||||
apiVersion_ = apiVersion;
|
||||
setParameter(std::string("ApiVersion"), apiVersion);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoRequest::getBizChainId() const {
|
||||
return bizChainId_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoRequest::setBizChainId(const std::string &bizChainId) {
|
||||
bizChainId_ = bizChainId;
|
||||
setParameter(std::string("BizChainId"), bizChainId);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoRequest::getDataKey() const {
|
||||
return dataKey_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoRequest::setDataKey(const std::string &dataKey) {
|
||||
dataKey_ = dataKey;
|
||||
setParameter(std::string("DataKey"), dataKey);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoRequest::getDataSeq() const {
|
||||
return dataSeq_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoRequest::setDataSeq(const std::string &dataSeq) {
|
||||
dataSeq_ = dataSeq;
|
||||
setParameter(std::string("DataSeq"), dataSeq);
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoRequest::getPhaseGroupId() const {
|
||||
return phaseGroupId_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoRequest::setPhaseGroupId(const std::string &phaseGroupId) {
|
||||
phaseGroupId_ = phaseGroupId;
|
||||
setParameter(std::string("PhaseGroupId"), phaseGroupId);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> UploadMPCoSPhaseTextInfoRequest::getRelatedDataList() const {
|
||||
return relatedDataList_;
|
||||
}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoRequest::setRelatedDataList(std::map<std::string, std::string> relatedDataList) {
|
||||
relatedDataList_ = relatedDataList;
|
||||
setParameter(std::string("RelatedDataList"), relatedDataList);
|
||||
}
|
||||
|
||||
72
ltl/src/model/UploadMPCoSPhaseTextInfoResult.cc
Normal file
72
ltl/src/model/UploadMPCoSPhaseTextInfoResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ltl/model/UploadMPCoSPhaseTextInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ltl;
|
||||
using namespace AlibabaCloud::Ltl::Model;
|
||||
|
||||
UploadMPCoSPhaseTextInfoResult::UploadMPCoSPhaseTextInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UploadMPCoSPhaseTextInfoResult::UploadMPCoSPhaseTextInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UploadMPCoSPhaseTextInfoResult::~UploadMPCoSPhaseTextInfoResult()
|
||||
{}
|
||||
|
||||
void UploadMPCoSPhaseTextInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UploadMPCoSPhaseTextInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UploadMPCoSPhaseTextInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UploadMPCoSPhaseTextInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user