Add Template API Support.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
183
cloudesl/src/model/AddCompanyTemplateRequest.cc
Normal file
183
cloudesl/src/model/AddCompanyTemplateRequest.cc
Normal file
@@ -0,0 +1,183 @@
|
||||
/*
|
||||
* 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/cloudesl/model/AddCompanyTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::AddCompanyTemplateRequest;
|
||||
|
||||
AddCompanyTemplateRequest::AddCompanyTemplateRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "AddCompanyTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddCompanyTemplateRequest::~AddCompanyTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string AddCompanyTemplateRequest::getExtraParams()const
|
||||
{
|
||||
return extraParams_;
|
||||
}
|
||||
|
||||
void AddCompanyTemplateRequest::setExtraParams(const std::string& extraParams)
|
||||
{
|
||||
extraParams_ = extraParams;
|
||||
setBodyParameter("ExtraParams", extraParams);
|
||||
}
|
||||
|
||||
std::string AddCompanyTemplateRequest::getEslSize()const
|
||||
{
|
||||
return eslSize_;
|
||||
}
|
||||
|
||||
void AddCompanyTemplateRequest::setEslSize(const std::string& eslSize)
|
||||
{
|
||||
eslSize_ = eslSize;
|
||||
setBodyParameter("EslSize", eslSize);
|
||||
}
|
||||
|
||||
bool AddCompanyTemplateRequest::getIfPromotion()const
|
||||
{
|
||||
return ifPromotion_;
|
||||
}
|
||||
|
||||
void AddCompanyTemplateRequest::setIfPromotion(bool ifPromotion)
|
||||
{
|
||||
ifPromotion_ = ifPromotion;
|
||||
setBodyParameter("IfPromotion", ifPromotion ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddCompanyTemplateRequest::getDeviceType()const
|
||||
{
|
||||
return deviceType_;
|
||||
}
|
||||
|
||||
void AddCompanyTemplateRequest::setDeviceType(const std::string& deviceType)
|
||||
{
|
||||
deviceType_ = deviceType;
|
||||
setBodyParameter("DeviceType", deviceType);
|
||||
}
|
||||
|
||||
std::string AddCompanyTemplateRequest::getScene()const
|
||||
{
|
||||
return scene_;
|
||||
}
|
||||
|
||||
void AddCompanyTemplateRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setBodyParameter("Scene", scene);
|
||||
}
|
||||
|
||||
std::string AddCompanyTemplateRequest::getTemplateVersion()const
|
||||
{
|
||||
return templateVersion_;
|
||||
}
|
||||
|
||||
void AddCompanyTemplateRequest::setTemplateVersion(const std::string& templateVersion)
|
||||
{
|
||||
templateVersion_ = templateVersion;
|
||||
setBodyParameter("TemplateVersion", templateVersion);
|
||||
}
|
||||
|
||||
std::string AddCompanyTemplateRequest::getTemplateType()const
|
||||
{
|
||||
return templateType_;
|
||||
}
|
||||
|
||||
void AddCompanyTemplateRequest::setTemplateType(const std::string& templateType)
|
||||
{
|
||||
templateType_ = templateType;
|
||||
setBodyParameter("TemplateType", templateType);
|
||||
}
|
||||
|
||||
std::string AddCompanyTemplateRequest::getVendor()const
|
||||
{
|
||||
return vendor_;
|
||||
}
|
||||
|
||||
void AddCompanyTemplateRequest::setVendor(const std::string& vendor)
|
||||
{
|
||||
vendor_ = vendor;
|
||||
setBodyParameter("Vendor", vendor);
|
||||
}
|
||||
|
||||
bool AddCompanyTemplateRequest::getIfDefault()const
|
||||
{
|
||||
return ifDefault_;
|
||||
}
|
||||
|
||||
void AddCompanyTemplateRequest::setIfDefault(bool ifDefault)
|
||||
{
|
||||
ifDefault_ = ifDefault;
|
||||
setBodyParameter("IfDefault", ifDefault ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddCompanyTemplateRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void AddCompanyTemplateRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setBodyParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
bool AddCompanyTemplateRequest::getIfSourceCode()const
|
||||
{
|
||||
return ifSourceCode_;
|
||||
}
|
||||
|
||||
void AddCompanyTemplateRequest::setIfSourceCode(bool ifSourceCode)
|
||||
{
|
||||
ifSourceCode_ = ifSourceCode;
|
||||
setBodyParameter("IfSourceCode", ifSourceCode ? "true" : "false");
|
||||
}
|
||||
|
||||
bool AddCompanyTemplateRequest::getIfMember()const
|
||||
{
|
||||
return ifMember_;
|
||||
}
|
||||
|
||||
void AddCompanyTemplateRequest::setIfMember(bool ifMember)
|
||||
{
|
||||
ifMember_ = ifMember;
|
||||
setBodyParameter("IfMember", ifMember ? "true" : "false");
|
||||
}
|
||||
|
||||
int AddCompanyTemplateRequest::getLayout()const
|
||||
{
|
||||
return layout_;
|
||||
}
|
||||
|
||||
void AddCompanyTemplateRequest::setLayout(int layout)
|
||||
{
|
||||
layout_ = layout;
|
||||
setBodyParameter("Layout", std::to_string(layout));
|
||||
}
|
||||
|
||||
bool AddCompanyTemplateRequest::getIfOutOfInventory()const
|
||||
{
|
||||
return ifOutOfInventory_;
|
||||
}
|
||||
|
||||
void AddCompanyTemplateRequest::setIfOutOfInventory(bool ifOutOfInventory)
|
||||
{
|
||||
ifOutOfInventory_ = ifOutOfInventory;
|
||||
setBodyParameter("IfOutOfInventory", ifOutOfInventory ? "true" : "false");
|
||||
}
|
||||
|
||||
93
cloudesl/src/model/AddCompanyTemplateResult.cc
Normal file
93
cloudesl/src/model/AddCompanyTemplateResult.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/cloudesl/model/AddCompanyTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
AddCompanyTemplateResult::AddCompanyTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddCompanyTemplateResult::AddCompanyTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddCompanyTemplateResult::~AddCompanyTemplateResult()
|
||||
{}
|
||||
|
||||
void AddCompanyTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddCompanyTemplateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AddCompanyTemplateResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string AddCompanyTemplateResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string AddCompanyTemplateResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string AddCompanyTemplateResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string AddCompanyTemplateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddCompanyTemplateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
cloudesl/src/model/AddMaterialRequest.cc
Normal file
51
cloudesl/src/model/AddMaterialRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/cloudesl/model/AddMaterialRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::AddMaterialRequest;
|
||||
|
||||
AddMaterialRequest::AddMaterialRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "AddMaterial")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddMaterialRequest::~AddMaterialRequest()
|
||||
{}
|
||||
|
||||
std::string AddMaterialRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void AddMaterialRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string AddMaterialRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void AddMaterialRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
109
cloudesl/src/model/AddMaterialResult.cc
Normal file
109
cloudesl/src/model/AddMaterialResult.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* 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/cloudesl/model/AddMaterialResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
AddMaterialResult::AddMaterialResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddMaterialResult::AddMaterialResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddMaterialResult::~AddMaterialResult()
|
||||
{}
|
||||
|
||||
void AddMaterialResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Success"].isNull())
|
||||
result_.success = resultNode["Success"].asString() == "true";
|
||||
if(!resultNode["Message"].isNull())
|
||||
result_.message = resultNode["Message"].asString();
|
||||
if(!resultNode["DynamicMessage"].isNull())
|
||||
result_.dynamicMessage = resultNode["DynamicMessage"].asString();
|
||||
if(!resultNode["DynamicCode"].isNull())
|
||||
result_.dynamicCode = resultNode["DynamicCode"].asString();
|
||||
if(!resultNode["ErrorCode"].isNull())
|
||||
result_.errorCode = resultNode["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddMaterialResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AddMaterialResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string AddMaterialResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string AddMaterialResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string AddMaterialResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string AddMaterialResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddMaterialResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
AddMaterialResult::Result AddMaterialResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/cloudesl/model/ApplyCompanyTemplateVersionToStoresRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::ApplyCompanyTemplateVersionToStoresRequest;
|
||||
|
||||
ApplyCompanyTemplateVersionToStoresRequest::ApplyCompanyTemplateVersionToStoresRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "ApplyCompanyTemplateVersionToStores")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApplyCompanyTemplateVersionToStoresRequest::~ApplyCompanyTemplateVersionToStoresRequest()
|
||||
{}
|
||||
|
||||
std::string ApplyCompanyTemplateVersionToStoresRequest::getStores()const
|
||||
{
|
||||
return stores_;
|
||||
}
|
||||
|
||||
void ApplyCompanyTemplateVersionToStoresRequest::setStores(const std::string& stores)
|
||||
{
|
||||
stores_ = stores;
|
||||
setBodyParameter("Stores", stores);
|
||||
}
|
||||
|
||||
std::string ApplyCompanyTemplateVersionToStoresRequest::getTemplateVersion()const
|
||||
{
|
||||
return templateVersion_;
|
||||
}
|
||||
|
||||
void ApplyCompanyTemplateVersionToStoresRequest::setTemplateVersion(const std::string& templateVersion)
|
||||
{
|
||||
templateVersion_ = templateVersion;
|
||||
setBodyParameter("TemplateVersion", templateVersion);
|
||||
}
|
||||
|
||||
@@ -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/cloudesl/model/ApplyCompanyTemplateVersionToStoresResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
ApplyCompanyTemplateVersionToStoresResult::ApplyCompanyTemplateVersionToStoresResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ApplyCompanyTemplateVersionToStoresResult::ApplyCompanyTemplateVersionToStoresResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ApplyCompanyTemplateVersionToStoresResult::~ApplyCompanyTemplateVersionToStoresResult()
|
||||
{}
|
||||
|
||||
void ApplyCompanyTemplateVersionToStoresResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ApplyCompanyTemplateVersionToStoresResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ApplyCompanyTemplateVersionToStoresResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string ApplyCompanyTemplateVersionToStoresResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ApplyCompanyTemplateVersionToStoresResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string ApplyCompanyTemplateVersionToStoresResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string ApplyCompanyTemplateVersionToStoresResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ApplyCompanyTemplateVersionToStoresResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
cloudesl/src/model/ApplyImageDitheringRequest.cc
Normal file
84
cloudesl/src/model/ApplyImageDitheringRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/cloudesl/model/ApplyImageDitheringRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::ApplyImageDitheringRequest;
|
||||
|
||||
ApplyImageDitheringRequest::ApplyImageDitheringRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "ApplyImageDithering")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApplyImageDitheringRequest::~ApplyImageDitheringRequest()
|
||||
{}
|
||||
|
||||
std::string ApplyImageDitheringRequest::getExtraParams()const
|
||||
{
|
||||
return extraParams_;
|
||||
}
|
||||
|
||||
void ApplyImageDitheringRequest::setExtraParams(const std::string& extraParams)
|
||||
{
|
||||
extraParams_ = extraParams;
|
||||
setBodyParameter("ExtraParams", extraParams);
|
||||
}
|
||||
|
||||
std::string ApplyImageDitheringRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void ApplyImageDitheringRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string ApplyImageDitheringRequest::getDeviceType()const
|
||||
{
|
||||
return deviceType_;
|
||||
}
|
||||
|
||||
void ApplyImageDitheringRequest::setDeviceType(const std::string& deviceType)
|
||||
{
|
||||
deviceType_ = deviceType;
|
||||
setBodyParameter("DeviceType", deviceType);
|
||||
}
|
||||
|
||||
int ApplyImageDitheringRequest::getHeight()const
|
||||
{
|
||||
return height_;
|
||||
}
|
||||
|
||||
void ApplyImageDitheringRequest::setHeight(int height)
|
||||
{
|
||||
height_ = height;
|
||||
setBodyParameter("Height", std::to_string(height));
|
||||
}
|
||||
|
||||
int ApplyImageDitheringRequest::getWidth()const
|
||||
{
|
||||
return width_;
|
||||
}
|
||||
|
||||
void ApplyImageDitheringRequest::setWidth(int width)
|
||||
{
|
||||
width_ = width;
|
||||
setBodyParameter("Width", std::to_string(width));
|
||||
}
|
||||
|
||||
100
cloudesl/src/model/ApplyImageDitheringResult.cc
Normal file
100
cloudesl/src/model/ApplyImageDitheringResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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/cloudesl/model/ApplyImageDitheringResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
ApplyImageDitheringResult::ApplyImageDitheringResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ApplyImageDitheringResult::ApplyImageDitheringResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ApplyImageDitheringResult::~ApplyImageDitheringResult()
|
||||
{}
|
||||
|
||||
void ApplyImageDitheringResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Content"].isNull())
|
||||
content_ = value["Content"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ApplyImageDitheringResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ApplyImageDitheringResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
std::string ApplyImageDitheringResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string ApplyImageDitheringResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ApplyImageDitheringResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string ApplyImageDitheringResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string ApplyImageDitheringResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ApplyImageDitheringResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -83,17 +83,20 @@ void BatchInsertItemsRequest::setItemInfo(const std::vector<ItemInfo>& itemInfo)
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureK", itemInfoObj.customizeFeatureK);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureL", itemInfoObj.customizeFeatureL);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureM", itemInfoObj.customizeFeatureM);
|
||||
setParameter(itemInfoObjStr + ".BePromotion", itemInfoObj.bePromotion ? "true" : "false");
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureN", itemInfoObj.customizeFeatureN);
|
||||
setParameter(itemInfoObjStr + ".BePromotion", itemInfoObj.bePromotion ? "true" : "false");
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureO", itemInfoObj.customizeFeatureO);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureP", itemInfoObj.customizeFeatureP);
|
||||
setParameter(itemInfoObjStr + ".PromotionEnd", itemInfoObj.promotionEnd);
|
||||
setParameter(itemInfoObjStr + ".ItemTitle", itemInfoObj.itemTitle);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureQ", itemInfoObj.customizeFeatureQ);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureR", itemInfoObj.customizeFeatureR);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureC", itemInfoObj.customizeFeatureC);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureD", itemInfoObj.customizeFeatureD);
|
||||
setParameter(itemInfoObjStr + ".ItemQrCode", itemInfoObj.itemQrCode);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureE", itemInfoObj.customizeFeatureE);
|
||||
setParameter(itemInfoObjStr + ".InventoryStatus", itemInfoObj.inventoryStatus);
|
||||
setParameter(itemInfoObjStr + ".PromotionReason", itemInfoObj.promotionReason);
|
||||
setParameter(itemInfoObjStr + ".InventoryStatus", itemInfoObj.inventoryStatus);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureF", itemInfoObj.customizeFeatureF);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureG", itemInfoObj.customizeFeatureG);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureH", itemInfoObj.customizeFeatureH);
|
||||
@@ -104,16 +107,24 @@ void BatchInsertItemsRequest::setItemInfo(const std::vector<ItemInfo>& itemInfo)
|
||||
setParameter(itemInfoObjStr + ".SuggestPrice", std::to_string(itemInfoObj.suggestPrice));
|
||||
setParameter(itemInfoObjStr + ".ForestFirstId", itemInfoObj.forestFirstId);
|
||||
setParameter(itemInfoObjStr + ".ProductionPlace", itemInfoObj.productionPlace);
|
||||
setParameter(itemInfoObjStr + ".Manufacturer", itemInfoObj.manufacturer);
|
||||
setParameter(itemInfoObjStr + ".SourceCode", itemInfoObj.sourceCode);
|
||||
setParameter(itemInfoObjStr + ".Manufacturer", itemInfoObj.manufacturer);
|
||||
setParameter(itemInfoObjStr + ".ItemId", itemInfoObj.itemId);
|
||||
setParameter(itemInfoObjStr + ".BeMember", itemInfoObj.beMember ? "true" : "false");
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureS", itemInfoObj.customizeFeatureS);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureT", itemInfoObj.customizeFeatureT);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureU", itemInfoObj.customizeFeatureU);
|
||||
setParameter(itemInfoObjStr + ".TemplateSceneId", itemInfoObj.templateSceneId);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureV", itemInfoObj.customizeFeatureV);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureW", itemInfoObj.customizeFeatureW);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureX", itemInfoObj.customizeFeatureX);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureY", itemInfoObj.customizeFeatureY);
|
||||
setParameter(itemInfoObjStr + ".CustomizeFeatureZ", itemInfoObj.customizeFeatureZ);
|
||||
setParameter(itemInfoObjStr + ".SalesPrice", std::to_string(itemInfoObj.salesPrice));
|
||||
setParameter(itemInfoObjStr + ".OriginalPrice", std::to_string(itemInfoObj.originalPrice));
|
||||
setParameter(itemInfoObjStr + ".ItemShortTitle", itemInfoObj.itemShortTitle);
|
||||
setParameter(itemInfoObjStr + ".ForestSecondId", itemInfoObj.forestSecondId);
|
||||
setParameter(itemInfoObjStr + ".ItemPicUrl", itemInfoObj.itemPicUrl);
|
||||
setParameter(itemInfoObjStr + ".ForestSecondId", itemInfoObj.forestSecondId);
|
||||
setParameter(itemInfoObjStr + ".SupplierName", itemInfoObj.supplierName);
|
||||
setParameter(itemInfoObjStr + ".Material", itemInfoObj.material);
|
||||
setParameter(itemInfoObjStr + ".ModelNumber", itemInfoObj.modelNumber);
|
||||
|
||||
@@ -43,30 +43,30 @@ void BatchInsertItemsResult::parse(const std::string &payload)
|
||||
for (auto valueBatchResultsBatchResult : allBatchResultsNode)
|
||||
{
|
||||
BatchResult batchResultsObject;
|
||||
if(!valueBatchResultsBatchResult["Message"].isNull())
|
||||
batchResultsObject.message = valueBatchResultsBatchResult["Message"].asString();
|
||||
if(!valueBatchResultsBatchResult["Index"].isNull())
|
||||
batchResultsObject.index = std::stoi(valueBatchResultsBatchResult["Index"].asString());
|
||||
if(!valueBatchResultsBatchResult["ErrorCode"].isNull())
|
||||
batchResultsObject.errorCode = valueBatchResultsBatchResult["ErrorCode"].asString();
|
||||
if(!valueBatchResultsBatchResult["Message"].isNull())
|
||||
batchResultsObject.message = valueBatchResultsBatchResult["Message"].asString();
|
||||
if(!valueBatchResultsBatchResult["Success"].isNull())
|
||||
batchResultsObject.success = valueBatchResultsBatchResult["Success"].asString() == "true";
|
||||
if(!valueBatchResultsBatchResult["ErrorCode"].isNull())
|
||||
batchResultsObject.errorCode = valueBatchResultsBatchResult["ErrorCode"].asString();
|
||||
batchResults_.push_back(batchResultsObject);
|
||||
}
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
40
cloudesl/src/model/BatchUpdateEventRequest.cc
Normal file
40
cloudesl/src/model/BatchUpdateEventRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/cloudesl/model/BatchUpdateEventRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::BatchUpdateEventRequest;
|
||||
|
||||
BatchUpdateEventRequest::BatchUpdateEventRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "BatchUpdateEvent")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchUpdateEventRequest::~BatchUpdateEventRequest()
|
||||
{}
|
||||
|
||||
std::string BatchUpdateEventRequest::getEvents()const
|
||||
{
|
||||
return events_;
|
||||
}
|
||||
|
||||
void BatchUpdateEventRequest::setEvents(const std::string& events)
|
||||
{
|
||||
events_ = events;
|
||||
setBodyParameter("Events", events);
|
||||
}
|
||||
|
||||
93
cloudesl/src/model/BatchUpdateEventResult.cc
Normal file
93
cloudesl/src/model/BatchUpdateEventResult.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/cloudesl/model/BatchUpdateEventResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
BatchUpdateEventResult::BatchUpdateEventResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchUpdateEventResult::BatchUpdateEventResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchUpdateEventResult::~BatchUpdateEventResult()
|
||||
{}
|
||||
|
||||
void BatchUpdateEventResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BatchUpdateEventResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BatchUpdateEventResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string BatchUpdateEventResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string BatchUpdateEventResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string BatchUpdateEventResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string BatchUpdateEventResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchUpdateEventResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -41,18 +41,18 @@ void BindEslDeviceResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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/cloudesl/model/CheckServiceLinkedRoleForDeletingRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::CheckServiceLinkedRoleForDeletingRequest;
|
||||
|
||||
CheckServiceLinkedRoleForDeletingRequest::CheckServiceLinkedRoleForDeletingRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "CheckServiceLinkedRoleForDeleting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckServiceLinkedRoleForDeletingRequest::~CheckServiceLinkedRoleForDeletingRequest()
|
||||
{}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getExtraParams()const
|
||||
{
|
||||
return extraParams_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setExtraParams(const std::string& extraParams)
|
||||
{
|
||||
extraParams_ = extraParams;
|
||||
setBodyParameter("ExtraParams", extraParams);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getDeletionTaskId()const
|
||||
{
|
||||
return deletionTaskId_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setDeletionTaskId(const std::string& deletionTaskId)
|
||||
{
|
||||
deletionTaskId_ = deletionTaskId;
|
||||
setParameter("DeletionTaskId", deletionTaskId);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long CheckServiceLinkedRoleForDeletingRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getSPIRegionId()const
|
||||
{
|
||||
return sPIRegionId_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setSPIRegionId(const std::string& sPIRegionId)
|
||||
{
|
||||
sPIRegionId_ = sPIRegionId;
|
||||
setParameter("SPIRegionId", sPIRegionId);
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingRequest::getRoleArn()const
|
||||
{
|
||||
return roleArn_;
|
||||
}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingRequest::setRoleArn(const std::string& roleArn)
|
||||
{
|
||||
roleArn_ = roleArn;
|
||||
setParameter("RoleArn", roleArn);
|
||||
}
|
||||
|
||||
115
cloudesl/src/model/CheckServiceLinkedRoleForDeletingResult.cc
Normal file
115
cloudesl/src/model/CheckServiceLinkedRoleForDeletingResult.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/cloudesl/model/CheckServiceLinkedRoleForDeletingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
CheckServiceLinkedRoleForDeletingResult::CheckServiceLinkedRoleForDeletingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckServiceLinkedRoleForDeletingResult::CheckServiceLinkedRoleForDeletingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckServiceLinkedRoleForDeletingResult::~CheckServiceLinkedRoleForDeletingResult()
|
||||
{}
|
||||
|
||||
void CheckServiceLinkedRoleForDeletingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRoleUsagesNode = value["RoleUsages"]["RoleUsage"];
|
||||
for (auto valueRoleUsagesRoleUsage : allRoleUsagesNode)
|
||||
{
|
||||
RoleUsage roleUsagesObject;
|
||||
if(!valueRoleUsagesRoleUsage["Region"].isNull())
|
||||
roleUsagesObject.region = valueRoleUsagesRoleUsage["Region"].asString();
|
||||
if(!valueRoleUsagesRoleUsage["Resources"].isNull())
|
||||
roleUsagesObject.resources = valueRoleUsagesRoleUsage["Resources"].asString();
|
||||
roleUsages_.push_back(roleUsagesObject);
|
||||
}
|
||||
if(!value["Deletable"].isNull())
|
||||
deletable_ = value["Deletable"].asString() == "true";
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool CheckServiceLinkedRoleForDeletingResult::getDeletable()const
|
||||
{
|
||||
return deletable_;
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::vector<CheckServiceLinkedRoleForDeletingResult::RoleUsage> CheckServiceLinkedRoleForDeletingResult::getRoleUsages()const
|
||||
{
|
||||
return roleUsages_;
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string CheckServiceLinkedRoleForDeletingResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CheckServiceLinkedRoleForDeletingResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudesl/model/DescribeClientPackageRequest.h>
|
||||
#include <alibabacloud/cloudesl/model/DeleteCompanyTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::DescribeClientPackageRequest;
|
||||
using AlibabaCloud::Cloudesl::Model::DeleteCompanyTemplateRequest;
|
||||
|
||||
DescribeClientPackageRequest::DescribeClientPackageRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeClientPackage")
|
||||
DeleteCompanyTemplateRequest::DeleteCompanyTemplateRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DeleteCompanyTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClientPackageRequest::~DescribeClientPackageRequest()
|
||||
DeleteCompanyTemplateRequest::~DeleteCompanyTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeClientPackageRequest::getClientType()const
|
||||
{
|
||||
return clientType_;
|
||||
}
|
||||
|
||||
void DescribeClientPackageRequest::setClientType(const std::string& clientType)
|
||||
{
|
||||
clientType_ = clientType;
|
||||
setBodyParameter("ClientType", clientType);
|
||||
}
|
||||
|
||||
std::string DescribeClientPackageRequest::getExtraParams()const
|
||||
std::string DeleteCompanyTemplateRequest::getExtraParams()const
|
||||
{
|
||||
return extraParams_;
|
||||
}
|
||||
|
||||
void DescribeClientPackageRequest::setExtraParams(const std::string& extraParams)
|
||||
void DeleteCompanyTemplateRequest::setExtraParams(const std::string& extraParams)
|
||||
{
|
||||
extraParams_ = extraParams;
|
||||
setBodyParameter("ExtraParams", extraParams);
|
||||
}
|
||||
|
||||
std::string DeleteCompanyTemplateRequest::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void DeleteCompanyTemplateRequest::setTemplateId(const std::string& templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setBodyParameter("TemplateId", templateId);
|
||||
}
|
||||
|
||||
93
cloudesl/src/model/DeleteCompanyTemplateResult.cc
Normal file
93
cloudesl/src/model/DeleteCompanyTemplateResult.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/cloudesl/model/DeleteCompanyTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DeleteCompanyTemplateResult::DeleteCompanyTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteCompanyTemplateResult::DeleteCompanyTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteCompanyTemplateResult::~DeleteCompanyTemplateResult()
|
||||
{}
|
||||
|
||||
void DeleteCompanyTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteCompanyTemplateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteCompanyTemplateResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DeleteCompanyTemplateResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteCompanyTemplateResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteCompanyTemplateResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteCompanyTemplateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteCompanyTemplateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
cloudesl/src/model/DeleteMaterialRequest.cc
Normal file
40
cloudesl/src/model/DeleteMaterialRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DeleteMaterialRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::DeleteMaterialRequest;
|
||||
|
||||
DeleteMaterialRequest::DeleteMaterialRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DeleteMaterial")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMaterialRequest::~DeleteMaterialRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteMaterialRequest::getMaterialId()const
|
||||
{
|
||||
return materialId_;
|
||||
}
|
||||
|
||||
void DeleteMaterialRequest::setMaterialId(const std::string& materialId)
|
||||
{
|
||||
materialId_ = materialId;
|
||||
setBodyParameter("MaterialId", materialId);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudesl/model/ConfirmServerLocationResult.h>
|
||||
#include <alibabacloud/cloudesl/model/DeleteMaterialResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
ConfirmServerLocationResult::ConfirmServerLocationResult() :
|
||||
DeleteMaterialResult::DeleteMaterialResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConfirmServerLocationResult::ConfirmServerLocationResult(const std::string &payload) :
|
||||
DeleteMaterialResult::DeleteMaterialResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConfirmServerLocationResult::~ConfirmServerLocationResult()
|
||||
DeleteMaterialResult::~DeleteMaterialResult()
|
||||
{}
|
||||
|
||||
void ConfirmServerLocationResult::parse(const std::string &payload)
|
||||
void DeleteMaterialResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -41,31 +41,52 @@ void ConfirmServerLocationResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ConfirmServerLocationResult::getMessage()const
|
||||
std::string DeleteMaterialResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ConfirmServerLocationResult::getErrorCode()const
|
||||
std::string DeleteMaterialResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DeleteMaterialResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ConfirmServerLocationResult::getErrorMessage()const
|
||||
std::string DeleteMaterialResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteMaterialResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ConfirmServerLocationResult::getSuccess()const
|
||||
std::string DeleteMaterialResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteMaterialResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
73
cloudesl/src/model/DescribeAvailableEslModelsRequest.cc
Normal file
73
cloudesl/src/model/DescribeAvailableEslModelsRequest.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/cloudesl/model/DescribeAvailableEslModelsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::DescribeAvailableEslModelsRequest;
|
||||
|
||||
DescribeAvailableEslModelsRequest::DescribeAvailableEslModelsRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeAvailableEslModels")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAvailableEslModelsRequest::~DescribeAvailableEslModelsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAvailableEslModelsRequest::getModelId()const
|
||||
{
|
||||
return modelId_;
|
||||
}
|
||||
|
||||
void DescribeAvailableEslModelsRequest::setModelId(const std::string& modelId)
|
||||
{
|
||||
modelId_ = modelId;
|
||||
setBodyParameter("ModelId", modelId);
|
||||
}
|
||||
|
||||
int DescribeAvailableEslModelsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeAvailableEslModelsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeAvailableEslModelsRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeAvailableEslModelsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
int DescribeAvailableEslModelsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAvailableEslModelsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
139
cloudesl/src/model/DescribeAvailableEslModelsResult.cc
Normal file
139
cloudesl/src/model/DescribeAvailableEslModelsResult.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeAvailableEslModelsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DescribeAvailableEslModelsResult::DescribeAvailableEslModelsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAvailableEslModelsResult::DescribeAvailableEslModelsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAvailableEslModelsResult::~DescribeAvailableEslModelsResult()
|
||||
{}
|
||||
|
||||
void DescribeAvailableEslModelsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEslModelsNode = value["EslModels"]["SelectItemInfo"];
|
||||
for (auto valueEslModelsSelectItemInfo : allEslModelsNode)
|
||||
{
|
||||
SelectItemInfo eslModelsObject;
|
||||
if(!valueEslModelsSelectItemInfo["ModelId"].isNull())
|
||||
eslModelsObject.modelId = valueEslModelsSelectItemInfo["ModelId"].asString();
|
||||
if(!valueEslModelsSelectItemInfo["Name"].isNull())
|
||||
eslModelsObject.name = valueEslModelsSelectItemInfo["Name"].asString();
|
||||
if(!valueEslModelsSelectItemInfo["DeviceType"].isNull())
|
||||
eslModelsObject.deviceType = valueEslModelsSelectItemInfo["DeviceType"].asString();
|
||||
if(!valueEslModelsSelectItemInfo["Vendor"].isNull())
|
||||
eslModelsObject.vendor = valueEslModelsSelectItemInfo["Vendor"].asString();
|
||||
if(!valueEslModelsSelectItemInfo["ScreenWidth"].isNull())
|
||||
eslModelsObject.screenWidth = std::stoi(valueEslModelsSelectItemInfo["ScreenWidth"].asString());
|
||||
if(!valueEslModelsSelectItemInfo["ScreenHeight"].isNull())
|
||||
eslModelsObject.screenHeight = std::stoi(valueEslModelsSelectItemInfo["ScreenHeight"].asString());
|
||||
if(!valueEslModelsSelectItemInfo["EslSize"].isNull())
|
||||
eslModelsObject.eslSize = valueEslModelsSelectItemInfo["EslSize"].asString();
|
||||
eslModels_.push_back(eslModelsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAvailableEslModelsResult::SelectItemInfo> DescribeAvailableEslModelsResult::getEslModels()const
|
||||
{
|
||||
return eslModels_;
|
||||
}
|
||||
|
||||
int DescribeAvailableEslModelsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeAvailableEslModelsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeAvailableEslModelsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeAvailableEslModelsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeAvailableEslModelsResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeAvailableEslModelsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeAvailableEslModelsResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeAvailableEslModelsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeAvailableEslModelsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeAvailableEslModelsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeCompanyTemplateAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::DescribeCompanyTemplateAttributeRequest;
|
||||
|
||||
DescribeCompanyTemplateAttributeRequest::DescribeCompanyTemplateAttributeRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeCompanyTemplateAttribute")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCompanyTemplateAttributeRequest::~DescribeCompanyTemplateAttributeRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCompanyTemplateAttributeRequest::getExtraParams()const
|
||||
{
|
||||
return extraParams_;
|
||||
}
|
||||
|
||||
void DescribeCompanyTemplateAttributeRequest::setExtraParams(const std::string& extraParams)
|
||||
{
|
||||
extraParams_ = extraParams;
|
||||
setBodyParameter("ExtraParams", extraParams);
|
||||
}
|
||||
|
||||
168
cloudesl/src/model/DescribeCompanyTemplateAttributeResult.cc
Normal file
168
cloudesl/src/model/DescribeCompanyTemplateAttributeResult.cc
Normal file
@@ -0,0 +1,168 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeCompanyTemplateAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DescribeCompanyTemplateAttributeResult::DescribeCompanyTemplateAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCompanyTemplateAttributeResult::DescribeCompanyTemplateAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCompanyTemplateAttributeResult::~DescribeCompanyTemplateAttributeResult()
|
||||
{}
|
||||
|
||||
void DescribeCompanyTemplateAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCategoryFieldNode = value["CategoryField"]["SelectItemInfo"];
|
||||
for (auto valueCategoryFieldSelectItemInfo : allCategoryFieldNode)
|
||||
{
|
||||
SelectItemInfo categoryFieldObject;
|
||||
if(!valueCategoryFieldSelectItemInfo["Label"].isNull())
|
||||
categoryFieldObject.label = valueCategoryFieldSelectItemInfo["Label"].asString();
|
||||
if(!valueCategoryFieldSelectItemInfo["Value"].isNull())
|
||||
categoryFieldObject.value = valueCategoryFieldSelectItemInfo["Value"].asString();
|
||||
categoryField_.push_back(categoryFieldObject);
|
||||
}
|
||||
auto allFontTypeNode = value["FontType"]["SelectItemInfo"];
|
||||
for (auto valueFontTypeSelectItemInfo : allFontTypeNode)
|
||||
{
|
||||
SelectItemInfo fontTypeObject;
|
||||
if(!valueFontTypeSelectItemInfo["Label"].isNull())
|
||||
fontTypeObject.label = valueFontTypeSelectItemInfo["Label"].asString();
|
||||
if(!valueFontTypeSelectItemInfo["Value"].isNull())
|
||||
fontTypeObject.value = valueFontTypeSelectItemInfo["Value"].asString();
|
||||
fontType_.push_back(fontTypeObject);
|
||||
}
|
||||
auto allDeviceTypeNode = value["DeviceType"]["SelectItemInfo"];
|
||||
for (auto valueDeviceTypeSelectItemInfo : allDeviceTypeNode)
|
||||
{
|
||||
SelectItemInfo deviceTypeObject;
|
||||
if(!valueDeviceTypeSelectItemInfo["Label"].isNull())
|
||||
deviceTypeObject.label = valueDeviceTypeSelectItemInfo["Label"].asString();
|
||||
if(!valueDeviceTypeSelectItemInfo["Value"].isNull())
|
||||
deviceTypeObject.value = valueDeviceTypeSelectItemInfo["Value"].asString();
|
||||
deviceType_.push_back(deviceTypeObject);
|
||||
}
|
||||
auto allTemplateTypeNode = value["TemplateType"]["SelectItemInfo"];
|
||||
for (auto valueTemplateTypeSelectItemInfo : allTemplateTypeNode)
|
||||
{
|
||||
SelectItemInfo templateTypeObject;
|
||||
if(!valueTemplateTypeSelectItemInfo["Label"].isNull())
|
||||
templateTypeObject.label = valueTemplateTypeSelectItemInfo["Label"].asString();
|
||||
if(!valueTemplateTypeSelectItemInfo["Value"].isNull())
|
||||
templateTypeObject.value = valueTemplateTypeSelectItemInfo["Value"].asString();
|
||||
templateType_.push_back(templateTypeObject);
|
||||
}
|
||||
auto allSizeTypeNode = value["SizeType"]["SelectItemInfo"];
|
||||
for (auto valueSizeTypeSelectItemInfo : allSizeTypeNode)
|
||||
{
|
||||
SelectItemInfo sizeTypeObject;
|
||||
if(!valueSizeTypeSelectItemInfo["Label"].isNull())
|
||||
sizeTypeObject.label = valueSizeTypeSelectItemInfo["Label"].asString();
|
||||
if(!valueSizeTypeSelectItemInfo["Value"].isNull())
|
||||
sizeTypeObject.value = valueSizeTypeSelectItemInfo["Value"].asString();
|
||||
sizeType_.push_back(sizeTypeObject);
|
||||
}
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCompanyTemplateAttributeResult::SelectItemInfo> DescribeCompanyTemplateAttributeResult::getCategoryField()const
|
||||
{
|
||||
return categoryField_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCompanyTemplateAttributeResult::SelectItemInfo> DescribeCompanyTemplateAttributeResult::getDeviceType()const
|
||||
{
|
||||
return deviceType_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateAttributeResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateAttributeResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCompanyTemplateAttributeResult::SelectItemInfo> DescribeCompanyTemplateAttributeResult::getTemplateType()const
|
||||
{
|
||||
return templateType_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateAttributeResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateAttributeResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCompanyTemplateAttributeResult::SelectItemInfo> DescribeCompanyTemplateAttributeResult::getFontType()const
|
||||
{
|
||||
return fontType_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateAttributeResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCompanyTemplateAttributeResult::SelectItemInfo> DescribeCompanyTemplateAttributeResult::getSizeType()const
|
||||
{
|
||||
return sizeType_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateAttributeResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeCompanyTemplateAttributeResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
cloudesl/src/model/DescribeCompanyTemplateVersionsRequest.cc
Normal file
51
cloudesl/src/model/DescribeCompanyTemplateVersionsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeCompanyTemplateVersionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::DescribeCompanyTemplateVersionsRequest;
|
||||
|
||||
DescribeCompanyTemplateVersionsRequest::DescribeCompanyTemplateVersionsRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeCompanyTemplateVersions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCompanyTemplateVersionsRequest::~DescribeCompanyTemplateVersionsRequest()
|
||||
{}
|
||||
|
||||
int DescribeCompanyTemplateVersionsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeCompanyTemplateVersionsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeCompanyTemplateVersionsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeCompanyTemplateVersionsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
127
cloudesl/src/model/DescribeCompanyTemplateVersionsResult.cc
Normal file
127
cloudesl/src/model/DescribeCompanyTemplateVersionsResult.cc
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeCompanyTemplateVersionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DescribeCompanyTemplateVersionsResult::DescribeCompanyTemplateVersionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCompanyTemplateVersionsResult::DescribeCompanyTemplateVersionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCompanyTemplateVersionsResult::~DescribeCompanyTemplateVersionsResult()
|
||||
{}
|
||||
|
||||
void DescribeCompanyTemplateVersionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVersionsNode = value["Versions"]["SelectItemInfo"];
|
||||
for (auto valueVersionsSelectItemInfo : allVersionsNode)
|
||||
{
|
||||
SelectItemInfo versionsObject;
|
||||
if(!valueVersionsSelectItemInfo["Version"].isNull())
|
||||
versionsObject.version = valueVersionsSelectItemInfo["Version"].asString();
|
||||
versions_.push_back(versionsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeCompanyTemplateVersionsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCompanyTemplateVersionsResult::SelectItemInfo> DescribeCompanyTemplateVersionsResult::getVersions()const
|
||||
{
|
||||
return versions_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateVersionsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeCompanyTemplateVersionsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeCompanyTemplateVersionsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateVersionsResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateVersionsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateVersionsResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateVersionsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateVersionsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeCompanyTemplateVersionsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
cloudesl/src/model/DescribeCompanyTemplateViewRequest.cc
Normal file
51
cloudesl/src/model/DescribeCompanyTemplateViewRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeCompanyTemplateViewRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::DescribeCompanyTemplateViewRequest;
|
||||
|
||||
DescribeCompanyTemplateViewRequest::DescribeCompanyTemplateViewRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeCompanyTemplateView")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCompanyTemplateViewRequest::~DescribeCompanyTemplateViewRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCompanyTemplateViewRequest::getExtraParams()const
|
||||
{
|
||||
return extraParams_;
|
||||
}
|
||||
|
||||
void DescribeCompanyTemplateViewRequest::setExtraParams(const std::string& extraParams)
|
||||
{
|
||||
extraParams_ = extraParams;
|
||||
setBodyParameter("ExtraParams", extraParams);
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateViewRequest::getTemplateId()const
|
||||
{
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void DescribeCompanyTemplateViewRequest::setTemplateId(const std::string& templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setBodyParameter("TemplateId", templateId);
|
||||
}
|
||||
|
||||
100
cloudesl/src/model/DescribeCompanyTemplateViewResult.cc
Normal file
100
cloudesl/src/model/DescribeCompanyTemplateViewResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeCompanyTemplateViewResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DescribeCompanyTemplateViewResult::DescribeCompanyTemplateViewResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCompanyTemplateViewResult::DescribeCompanyTemplateViewResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCompanyTemplateViewResult::~DescribeCompanyTemplateViewResult()
|
||||
{}
|
||||
|
||||
void DescribeCompanyTemplateViewResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateViewResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateViewResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateViewResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateViewResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateViewResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateViewResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeCompanyTemplateViewResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeCompanyTemplateViewResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeEslDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::DescribeEslDeviceRequest;
|
||||
|
||||
DescribeEslDeviceRequest::DescribeEslDeviceRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeEslDevice")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeEslDeviceRequest::~DescribeEslDeviceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeEslDeviceRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void DescribeEslDeviceRequest::setStoreId(const std::string& storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setBodyParameter("StoreId", storeId);
|
||||
}
|
||||
|
||||
long DescribeEslDeviceRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeEslDeviceRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeEslDeviceRequest::getFromDate()const
|
||||
{
|
||||
return fromDate_;
|
||||
}
|
||||
|
||||
void DescribeEslDeviceRequest::setFromDate(const std::string& fromDate)
|
||||
{
|
||||
fromDate_ = fromDate;
|
||||
setBodyParameter("FromDate", fromDate);
|
||||
}
|
||||
|
||||
std::string DescribeEslDeviceRequest::getToDate()const
|
||||
{
|
||||
return toDate_;
|
||||
}
|
||||
|
||||
void DescribeEslDeviceRequest::setToDate(const std::string& toDate)
|
||||
{
|
||||
toDate_ = toDate;
|
||||
setBodyParameter("ToDate", toDate);
|
||||
}
|
||||
|
||||
long DescribeEslDeviceRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeEslDeviceRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeEslDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DescribeEslDeviceResult::DescribeEslDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEslDeviceResult::DescribeEslDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEslDeviceResult::~DescribeEslDeviceResult()
|
||||
{}
|
||||
|
||||
void DescribeEslDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEslDetailsNode = value["EslDetails"]["eslDetailsItem"];
|
||||
for (auto valueEslDetailseslDetailsItem : allEslDetailsNode)
|
||||
{
|
||||
EslDetailsItem eslDetailsObject;
|
||||
if(!valueEslDetailseslDetailsItem["EslBarCode"].isNull())
|
||||
eslDetailsObject.eslBarCode = valueEslDetailseslDetailsItem["EslBarCode"].asString();
|
||||
if(!valueEslDetailseslDetailsItem["LastUpdateTime"].isNull())
|
||||
eslDetailsObject.lastUpdateTime = valueEslDetailseslDetailsItem["LastUpdateTime"].asString();
|
||||
if(!valueEslDetailseslDetailsItem["ItemBarCode"].isNull())
|
||||
eslDetailsObject.itemBarCode = std::stol(valueEslDetailseslDetailsItem["ItemBarCode"].asString());
|
||||
if(!valueEslDetailseslDetailsItem["ItemId"].isNull())
|
||||
eslDetailsObject.itemId = std::stol(valueEslDetailseslDetailsItem["ItemId"].asString());
|
||||
if(!valueEslDetailseslDetailsItem["ItemShortTitle"].isNull())
|
||||
eslDetailsObject.itemShortTitle = valueEslDetailseslDetailsItem["ItemShortTitle"].asString();
|
||||
if(!valueEslDetailseslDetailsItem["Status"].isNull())
|
||||
eslDetailsObject.status = valueEslDetailseslDetailsItem["Status"].asString();
|
||||
if(!valueEslDetailseslDetailsItem["StoreId"].isNull())
|
||||
eslDetailsObject.storeId = valueEslDetailseslDetailsItem["StoreId"].asString();
|
||||
eslDetails_.push_back(eslDetailsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
long DescribeEslDeviceResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribeEslDeviceResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeEslDeviceResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeEslDeviceResult::EslDetailsItem> DescribeEslDeviceResult::getEslDetails()const
|
||||
{
|
||||
return eslDetails_;
|
||||
}
|
||||
|
||||
bool DescribeEslDeviceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -93,6 +93,17 @@ void DescribeEslDevicesRequest::setPageSize(int pageSize)
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeEslDevicesRequest::getTypeEncode()const
|
||||
{
|
||||
return typeEncode_;
|
||||
}
|
||||
|
||||
void DescribeEslDevicesRequest::setTypeEncode(const std::string& typeEncode)
|
||||
{
|
||||
typeEncode_ = typeEncode;
|
||||
setBodyParameter("TypeEncode", typeEncode);
|
||||
}
|
||||
|
||||
std::string DescribeEslDevicesRequest::getEslStatus()const
|
||||
{
|
||||
return eslStatus_;
|
||||
|
||||
@@ -43,50 +43,52 @@ void DescribeEslDevicesResult::parse(const std::string &payload)
|
||||
for (auto valueEslDevicesEslDeviceInfo : allEslDevicesNode)
|
||||
{
|
||||
EslDeviceInfo eslDevicesObject;
|
||||
if(!valueEslDevicesEslDeviceInfo["LastCommunicateTime"].isNull())
|
||||
eslDevicesObject.lastCommunicateTime = valueEslDevicesEslDeviceInfo["LastCommunicateTime"].asString();
|
||||
if(!valueEslDevicesEslDeviceInfo["Model"].isNull())
|
||||
eslDevicesObject.model = valueEslDevicesEslDeviceInfo["Model"].asString();
|
||||
if(!valueEslDevicesEslDeviceInfo["EslStatus"].isNull())
|
||||
eslDevicesObject.eslStatus = valueEslDevicesEslDeviceInfo["EslStatus"].asString();
|
||||
if(!valueEslDevicesEslDeviceInfo["Type"].isNull())
|
||||
eslDevicesObject.type = valueEslDevicesEslDeviceInfo["Type"].asString();
|
||||
if(!valueEslDevicesEslDeviceInfo["StoreId"].isNull())
|
||||
eslDevicesObject.storeId = valueEslDevicesEslDeviceInfo["StoreId"].asString();
|
||||
if(!valueEslDevicesEslDeviceInfo["EslBarCode"].isNull())
|
||||
eslDevicesObject.eslBarCode = valueEslDevicesEslDeviceInfo["EslBarCode"].asString();
|
||||
if(!valueEslDevicesEslDeviceInfo["Type"].isNull())
|
||||
eslDevicesObject.type = valueEslDevicesEslDeviceInfo["Type"].asString();
|
||||
if(!valueEslDevicesEslDeviceInfo["Mac"].isNull())
|
||||
eslDevicesObject.mac = valueEslDevicesEslDeviceInfo["Mac"].asString();
|
||||
if(!valueEslDevicesEslDeviceInfo["BatteryLevel"].isNull())
|
||||
eslDevicesObject.batteryLevel = std::stoi(valueEslDevicesEslDeviceInfo["BatteryLevel"].asString());
|
||||
if(!valueEslDevicesEslDeviceInfo["ScreenWidth"].isNull())
|
||||
eslDevicesObject.screenWidth = std::stoi(valueEslDevicesEslDeviceInfo["ScreenWidth"].asString());
|
||||
if(!valueEslDevicesEslDeviceInfo["Model"].isNull())
|
||||
eslDevicesObject.model = valueEslDevicesEslDeviceInfo["Model"].asString();
|
||||
if(!valueEslDevicesEslDeviceInfo["LastCommunicateTime"].isNull())
|
||||
eslDevicesObject.lastCommunicateTime = valueEslDevicesEslDeviceInfo["LastCommunicateTime"].asString();
|
||||
if(!valueEslDevicesEslDeviceInfo["ScreenHeight"].isNull())
|
||||
eslDevicesObject.screenHeight = std::stoi(valueEslDevicesEslDeviceInfo["ScreenHeight"].asString());
|
||||
if(!valueEslDevicesEslDeviceInfo["ScreenWidth"].isNull())
|
||||
eslDevicesObject.screenWidth = std::stoi(valueEslDevicesEslDeviceInfo["ScreenWidth"].asString());
|
||||
if(!valueEslDevicesEslDeviceInfo["EslSignal"].isNull())
|
||||
eslDevicesObject.eslSignal = std::stoi(valueEslDevicesEslDeviceInfo["EslSignal"].asString());
|
||||
if(!valueEslDevicesEslDeviceInfo["BatteryLevel"].isNull())
|
||||
eslDevicesObject.batteryLevel = std::stoi(valueEslDevicesEslDeviceInfo["BatteryLevel"].asString());
|
||||
if(!valueEslDevicesEslDeviceInfo["EslStatus"].isNull())
|
||||
eslDevicesObject.eslStatus = valueEslDevicesEslDeviceInfo["EslStatus"].asString();
|
||||
if(!valueEslDevicesEslDeviceInfo["Mac"].isNull())
|
||||
eslDevicesObject.mac = valueEslDevicesEslDeviceInfo["Mac"].asString();
|
||||
if(!valueEslDevicesEslDeviceInfo["TypeEncode"].isNull())
|
||||
eslDevicesObject.typeEncode = valueEslDevicesEslDeviceInfo["TypeEncode"].asString();
|
||||
eslDevices_.push_back(eslDevicesObject);
|
||||
}
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
@@ -95,16 +97,16 @@ int DescribeEslDevicesResult::getTotalCount()const
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeEslDevicesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeEslDevicesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeEslDevicesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeEslDevicesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeEslModelByTemplateVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::DescribeEslModelByTemplateVersionRequest;
|
||||
|
||||
DescribeEslModelByTemplateVersionRequest::DescribeEslModelByTemplateVersionRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeEslModelByTemplateVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeEslModelByTemplateVersionRequest::~DescribeEslModelByTemplateVersionRequest()
|
||||
{}
|
||||
|
||||
int DescribeEslModelByTemplateVersionRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeEslModelByTemplateVersionRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeEslModelByTemplateVersionRequest::getTemplateVersion()const
|
||||
{
|
||||
return templateVersion_;
|
||||
}
|
||||
|
||||
void DescribeEslModelByTemplateVersionRequest::setTemplateVersion(const std::string& templateVersion)
|
||||
{
|
||||
templateVersion_ = templateVersion;
|
||||
setBodyParameter("TemplateVersion", templateVersion);
|
||||
}
|
||||
|
||||
int DescribeEslModelByTemplateVersionRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeEslModelByTemplateVersionRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
143
cloudesl/src/model/DescribeEslModelByTemplateVersionResult.cc
Normal file
143
cloudesl/src/model/DescribeEslModelByTemplateVersionResult.cc
Normal file
@@ -0,0 +1,143 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeEslModelByTemplateVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DescribeEslModelByTemplateVersionResult::DescribeEslModelByTemplateVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEslModelByTemplateVersionResult::DescribeEslModelByTemplateVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEslModelByTemplateVersionResult::~DescribeEslModelByTemplateVersionResult()
|
||||
{}
|
||||
|
||||
void DescribeEslModelByTemplateVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEslModelsNode = value["EslModels"]["SelectItemInfo"];
|
||||
for (auto valueEslModelsSelectItemInfo : allEslModelsNode)
|
||||
{
|
||||
SelectItemInfo eslModelsObject;
|
||||
if(!valueEslModelsSelectItemInfo["ModelId"].isNull())
|
||||
eslModelsObject.modelId = valueEslModelsSelectItemInfo["ModelId"].asString();
|
||||
if(!valueEslModelsSelectItemInfo["Name"].isNull())
|
||||
eslModelsObject.name = valueEslModelsSelectItemInfo["Name"].asString();
|
||||
if(!valueEslModelsSelectItemInfo["Image"].isNull())
|
||||
eslModelsObject.image = valueEslModelsSelectItemInfo["Image"].asString();
|
||||
if(!valueEslModelsSelectItemInfo["DeviceType"].isNull())
|
||||
eslModelsObject.deviceType = valueEslModelsSelectItemInfo["DeviceType"].asString();
|
||||
if(!valueEslModelsSelectItemInfo["Vendor"].isNull())
|
||||
eslModelsObject.vendor = valueEslModelsSelectItemInfo["Vendor"].asString();
|
||||
if(!valueEslModelsSelectItemInfo["ScreenWidth"].isNull())
|
||||
eslModelsObject.screenWidth = std::stoi(valueEslModelsSelectItemInfo["ScreenWidth"].asString());
|
||||
if(!valueEslModelsSelectItemInfo["ScreenHeight"].isNull())
|
||||
eslModelsObject.screenHeight = std::stoi(valueEslModelsSelectItemInfo["ScreenHeight"].asString());
|
||||
if(!valueEslModelsSelectItemInfo["EslSize"].isNull())
|
||||
eslModelsObject.eslSize = valueEslModelsSelectItemInfo["EslSize"].asString();
|
||||
if(!valueEslModelsSelectItemInfo["EslPhysicalSize"].isNull())
|
||||
eslModelsObject.eslPhysicalSize = valueEslModelsSelectItemInfo["EslPhysicalSize"].asString();
|
||||
eslModels_.push_back(eslModelsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeEslModelByTemplateVersionResult::SelectItemInfo> DescribeEslModelByTemplateVersionResult::getEslModels()const
|
||||
{
|
||||
return eslModels_;
|
||||
}
|
||||
|
||||
int DescribeEslModelByTemplateVersionResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeEslModelByTemplateVersionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeEslModelByTemplateVersionResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeEslModelByTemplateVersionResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeEslModelByTemplateVersionResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeEslModelByTemplateVersionResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeEslModelByTemplateVersionResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeEslModelByTemplateVersionResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeEslModelByTemplateVersionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeEslModelByTemplateVersionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
cloudesl/src/model/DescribeEventReasonRequest.cc
Normal file
40
cloudesl/src/model/DescribeEventReasonRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeEventReasonRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::DescribeEventReasonRequest;
|
||||
|
||||
DescribeEventReasonRequest::DescribeEventReasonRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeEventReason")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeEventReasonRequest::~DescribeEventReasonRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeEventReasonRequest::getExtraParams()const
|
||||
{
|
||||
return extraParams_;
|
||||
}
|
||||
|
||||
void DescribeEventReasonRequest::setExtraParams(const std::string& extraParams)
|
||||
{
|
||||
extraParams_ = extraParams;
|
||||
setBodyParameter("ExtraParams", extraParams);
|
||||
}
|
||||
|
||||
112
cloudesl/src/model/DescribeEventReasonResult.cc
Normal file
112
cloudesl/src/model/DescribeEventReasonResult.cc
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeEventReasonResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DescribeEventReasonResult::DescribeEventReasonResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEventReasonResult::DescribeEventReasonResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEventReasonResult::~DescribeEventReasonResult()
|
||||
{}
|
||||
|
||||
void DescribeEventReasonResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allEventReasonsNode = value["EventReasons"]["EventReason"];
|
||||
for (auto valueEventReasonsEventReason : allEventReasonsNode)
|
||||
{
|
||||
EventReason eventReasonsObject;
|
||||
if(!valueEventReasonsEventReason["Category"].isNull())
|
||||
eventReasonsObject.category = valueEventReasonsEventReason["Category"].asString();
|
||||
auto allReasons = value["Reasons"]["Reason"];
|
||||
for (auto value : allReasons)
|
||||
eventReasonsObject.reasons.push_back(value.asString());
|
||||
auto allReasonI18ns = value["ReasonI18ns"]["ReasonI18n"];
|
||||
for (auto value : allReasonI18ns)
|
||||
eventReasonsObject.reasonI18ns.push_back(value.asString());
|
||||
eventReasons_.push_back(eventReasonsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeEventReasonResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeEventReasonResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeEventReasonResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeEventReasonResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeEventReasonResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeEventReasonResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeEventReasonResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<DescribeEventReasonResult::EventReason> DescribeEventReasonResult::getEventReasons()const
|
||||
{
|
||||
return eventReasons_;
|
||||
}
|
||||
|
||||
106
cloudesl/src/model/DescribeEventsRequest.cc
Normal file
106
cloudesl/src/model/DescribeEventsRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeEventsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::DescribeEventsRequest;
|
||||
|
||||
DescribeEventsRequest::DescribeEventsRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeEvents")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeEventsRequest::~DescribeEventsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeEventsRequest::getApMac()const
|
||||
{
|
||||
return apMac_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setApMac(const std::string& apMac)
|
||||
{
|
||||
apMac_ = apMac;
|
||||
setBodyParameter("ApMac", apMac);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setStoreId(const std::string& storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setBodyParameter("StoreId", storeId);
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
int DescribeEventsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getEslBarCode()const
|
||||
{
|
||||
return eslBarCode_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setEslBarCode(const std::string& eslBarCode)
|
||||
{
|
||||
eslBarCode_ = eslBarCode;
|
||||
setBodyParameter("EslBarCode", eslBarCode);
|
||||
}
|
||||
|
||||
int DescribeEventsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeEventsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeEventsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setBodyParameter("Status", status);
|
||||
}
|
||||
|
||||
153
cloudesl/src/model/DescribeEventsResult.cc
Normal file
153
cloudesl/src/model/DescribeEventsResult.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/cloudesl/model/DescribeEventsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DescribeEventsResult::DescribeEventsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEventsResult::DescribeEventsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEventsResult::~DescribeEventsResult()
|
||||
{}
|
||||
|
||||
void DescribeEventsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["EventInfoVO"];
|
||||
for (auto valueItemsEventInfoVO : allItemsNode)
|
||||
{
|
||||
EventInfoVO itemsObject;
|
||||
if(!valueItemsEventInfoVO["EventId"].isNull())
|
||||
itemsObject.eventId = valueItemsEventInfoVO["EventId"].asString();
|
||||
if(!valueItemsEventInfoVO["EventTime"].isNull())
|
||||
itemsObject.eventTime = valueItemsEventInfoVO["EventTime"].asString();
|
||||
if(!valueItemsEventInfoVO["Category"].isNull())
|
||||
itemsObject.category = valueItemsEventInfoVO["Category"].asString();
|
||||
if(!valueItemsEventInfoVO["EslBarCode"].isNull())
|
||||
itemsObject.eslBarCode = valueItemsEventInfoVO["EslBarCode"].asString();
|
||||
if(!valueItemsEventInfoVO["ApMac"].isNull())
|
||||
itemsObject.apMac = valueItemsEventInfoVO["ApMac"].asString();
|
||||
if(!valueItemsEventInfoVO["StoreId"].isNull())
|
||||
itemsObject.storeId = valueItemsEventInfoVO["StoreId"].asString();
|
||||
if(!valueItemsEventInfoVO["ItemBarCode"].isNull())
|
||||
itemsObject.itemBarCode = valueItemsEventInfoVO["ItemBarCode"].asString();
|
||||
if(!valueItemsEventInfoVO["ItemId"].isNull())
|
||||
itemsObject.itemId = valueItemsEventInfoVO["ItemId"].asString();
|
||||
if(!valueItemsEventInfoVO["ItemTitle"].isNull())
|
||||
itemsObject.itemTitle = valueItemsEventInfoVO["ItemTitle"].asString();
|
||||
if(!valueItemsEventInfoVO["Content"].isNull())
|
||||
itemsObject.content = valueItemsEventInfoVO["Content"].asString();
|
||||
if(!valueItemsEventInfoVO["Status"].isNull())
|
||||
itemsObject.status = valueItemsEventInfoVO["Status"].asString();
|
||||
if(!valueItemsEventInfoVO["Staff"].isNull())
|
||||
itemsObject.staff = valueItemsEventInfoVO["Staff"].asString();
|
||||
if(!valueItemsEventInfoVO["ProcessTime"].isNull())
|
||||
itemsObject.processTime = valueItemsEventInfoVO["ProcessTime"].asString();
|
||||
if(!valueItemsEventInfoVO["Reason"].isNull())
|
||||
itemsObject.reason = valueItemsEventInfoVO["Reason"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeEventsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeEventsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeEventsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeEventsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeEventsResult::EventInfoVO> DescribeEventsResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
std::string DescribeEventsResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeEventsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeEventsResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeEventsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeEventsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeEventsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
cloudesl/src/model/DescribeItemMaterialsRequest.cc
Normal file
95
cloudesl/src/model/DescribeItemMaterialsRequest.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/cloudesl/model/DescribeItemMaterialsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::DescribeItemMaterialsRequest;
|
||||
|
||||
DescribeItemMaterialsRequest::DescribeItemMaterialsRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeItemMaterials")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeItemMaterialsRequest::~DescribeItemMaterialsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeItemMaterialsRequest::getMaterialName()const
|
||||
{
|
||||
return materialName_;
|
||||
}
|
||||
|
||||
void DescribeItemMaterialsRequest::setMaterialName(const std::string& materialName)
|
||||
{
|
||||
materialName_ = materialName;
|
||||
setBodyParameter("MaterialName", materialName);
|
||||
}
|
||||
|
||||
std::string DescribeItemMaterialsRequest::getMaterialId()const
|
||||
{
|
||||
return materialId_;
|
||||
}
|
||||
|
||||
void DescribeItemMaterialsRequest::setMaterialId(const std::string& materialId)
|
||||
{
|
||||
materialId_ = materialId;
|
||||
setBodyParameter("MaterialId", materialId);
|
||||
}
|
||||
|
||||
int DescribeItemMaterialsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeItemMaterialsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeItemMaterialsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeItemMaterialsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeItemMaterialsRequest::getBarCode()const
|
||||
{
|
||||
return barCode_;
|
||||
}
|
||||
|
||||
void DescribeItemMaterialsRequest::setBarCode(const std::string& barCode)
|
||||
{
|
||||
barCode_ = barCode;
|
||||
setBodyParameter("BarCode", barCode);
|
||||
}
|
||||
|
||||
std::string DescribeItemMaterialsRequest::getItemName()const
|
||||
{
|
||||
return itemName_;
|
||||
}
|
||||
|
||||
void DescribeItemMaterialsRequest::setItemName(const std::string& itemName)
|
||||
{
|
||||
itemName_ = itemName;
|
||||
setBodyParameter("ItemName", itemName);
|
||||
}
|
||||
|
||||
131
cloudesl/src/model/DescribeItemMaterialsResult.cc
Normal file
131
cloudesl/src/model/DescribeItemMaterialsResult.cc
Normal file
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeItemMaterialsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DescribeItemMaterialsResult::DescribeItemMaterialsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeItemMaterialsResult::DescribeItemMaterialsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeItemMaterialsResult::~DescribeItemMaterialsResult()
|
||||
{}
|
||||
|
||||
void DescribeItemMaterialsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMaterialsNode = value["Materials"]["ItemMaterialInfo"];
|
||||
for (auto valueMaterialsItemMaterialInfo : allMaterialsNode)
|
||||
{
|
||||
ItemMaterialInfo materialsObject;
|
||||
if(!valueMaterialsItemMaterialInfo["BarCode"].isNull())
|
||||
materialsObject.barCode = valueMaterialsItemMaterialInfo["BarCode"].asString();
|
||||
if(!valueMaterialsItemMaterialInfo["ItemName"].isNull())
|
||||
materialsObject.itemName = valueMaterialsItemMaterialInfo["ItemName"].asString();
|
||||
if(!valueMaterialsItemMaterialInfo["GmtCreate"].isNull())
|
||||
materialsObject.gmtCreate = valueMaterialsItemMaterialInfo["GmtCreate"].asString();
|
||||
materials_.push_back(materialsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
int DescribeItemMaterialsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeItemMaterialsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeItemMaterialsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeItemMaterialsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeItemMaterialsResult::ItemMaterialInfo> DescribeItemMaterialsResult::getMaterials()const
|
||||
{
|
||||
return materials_;
|
||||
}
|
||||
|
||||
std::string DescribeItemMaterialsResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeItemMaterialsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeItemMaterialsResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeItemMaterialsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeItemMaterialsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeItemMaterialsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -43,138 +43,160 @@ void DescribeItemsResult::parse(const std::string &payload)
|
||||
for (auto valueItemsItemInfo : allItemsNode)
|
||||
{
|
||||
ItemInfo itemsObject;
|
||||
if(!valueItemsItemInfo["CategoryName"].isNull())
|
||||
itemsObject.categoryName = valueItemsItemInfo["CategoryName"].asString();
|
||||
if(!valueItemsItemInfo["EnergyEfficiency"].isNull())
|
||||
itemsObject.energyEfficiency = valueItemsItemInfo["EnergyEfficiency"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureO"].isNull())
|
||||
itemsObject.customizeFeatureO = valueItemsItemInfo["CustomizeFeatureO"].asString();
|
||||
if(!valueItemsItemInfo["Manufacturer"].isNull())
|
||||
itemsObject.manufacturer = valueItemsItemInfo["Manufacturer"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureM"].isNull())
|
||||
itemsObject.customizeFeatureM = valueItemsItemInfo["CustomizeFeatureM"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureN"].isNull())
|
||||
itemsObject.customizeFeatureN = valueItemsItemInfo["CustomizeFeatureN"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureK"].isNull())
|
||||
itemsObject.customizeFeatureK = valueItemsItemInfo["CustomizeFeatureK"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureL"].isNull())
|
||||
itemsObject.customizeFeatureL = valueItemsItemInfo["CustomizeFeatureL"].asString();
|
||||
if(!valueItemsItemInfo["PromotionEnd"].isNull())
|
||||
itemsObject.promotionEnd = valueItemsItemInfo["PromotionEnd"].asString();
|
||||
if(!valueItemsItemInfo["OriginalPrice"].isNull())
|
||||
itemsObject.originalPrice = std::stoi(valueItemsItemInfo["OriginalPrice"].asString());
|
||||
if(!valueItemsItemInfo["CustomizeFeatureI"].isNull())
|
||||
itemsObject.customizeFeatureI = valueItemsItemInfo["CustomizeFeatureI"].asString();
|
||||
if(!valueItemsItemInfo["ItemTitle"].isNull())
|
||||
itemsObject.itemTitle = valueItemsItemInfo["ItemTitle"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureJ"].isNull())
|
||||
itemsObject.customizeFeatureJ = valueItemsItemInfo["CustomizeFeatureJ"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureG"].isNull())
|
||||
itemsObject.customizeFeatureG = valueItemsItemInfo["CustomizeFeatureG"].asString();
|
||||
if(!valueItemsItemInfo["SaleSpec"].isNull())
|
||||
itemsObject.saleSpec = valueItemsItemInfo["SaleSpec"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureH"].isNull())
|
||||
itemsObject.customizeFeatureH = valueItemsItemInfo["CustomizeFeatureH"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureE"].isNull())
|
||||
itemsObject.customizeFeatureE = valueItemsItemInfo["CustomizeFeatureE"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureF"].isNull())
|
||||
itemsObject.customizeFeatureF = valueItemsItemInfo["CustomizeFeatureF"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureC"].isNull())
|
||||
itemsObject.customizeFeatureC = valueItemsItemInfo["CustomizeFeatureC"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureD"].isNull())
|
||||
itemsObject.customizeFeatureD = valueItemsItemInfo["CustomizeFeatureD"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureA"].isNull())
|
||||
itemsObject.customizeFeatureA = valueItemsItemInfo["CustomizeFeatureA"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureB"].isNull())
|
||||
itemsObject.customizeFeatureB = valueItemsItemInfo["CustomizeFeatureB"].asString();
|
||||
if(!valueItemsItemInfo["TaxFee"].isNull())
|
||||
itemsObject.taxFee = valueItemsItemInfo["TaxFee"].asString();
|
||||
if(!valueItemsItemInfo["PromotionText"].isNull())
|
||||
itemsObject.promotionText = valueItemsItemInfo["PromotionText"].asString();
|
||||
if(!valueItemsItemInfo["MemberPrice"].isNull())
|
||||
itemsObject.memberPrice = std::stoi(valueItemsItemInfo["MemberPrice"].asString());
|
||||
if(!valueItemsItemInfo["SupplierName"].isNull())
|
||||
itemsObject.supplierName = valueItemsItemInfo["SupplierName"].asString();
|
||||
if(!valueItemsItemInfo["ForestFirstId"].isNull())
|
||||
itemsObject.forestFirstId = valueItemsItemInfo["ForestFirstId"].asString();
|
||||
if(!valueItemsItemInfo["ModelNumber"].isNull())
|
||||
itemsObject.modelNumber = valueItemsItemInfo["ModelNumber"].asString();
|
||||
if(!valueItemsItemInfo["ItemShortTitle"].isNull())
|
||||
itemsObject.itemShortTitle = valueItemsItemInfo["ItemShortTitle"].asString();
|
||||
if(!valueItemsItemInfo["Material"].isNull())
|
||||
itemsObject.material = valueItemsItemInfo["Material"].asString();
|
||||
if(!valueItemsItemInfo["BePromotion"].isNull())
|
||||
itemsObject.bePromotion = valueItemsItemInfo["BePromotion"].asString() == "true";
|
||||
if(!valueItemsItemInfo["ForestSecondId"].isNull())
|
||||
itemsObject.forestSecondId = valueItemsItemInfo["ForestSecondId"].asString();
|
||||
if(!valueItemsItemInfo["BeSourceCode"].isNull())
|
||||
itemsObject.beSourceCode = valueItemsItemInfo["BeSourceCode"].asString() == "true";
|
||||
if(!valueItemsItemInfo["SalesPrice"].isNull())
|
||||
itemsObject.salesPrice = std::stoi(valueItemsItemInfo["SalesPrice"].asString());
|
||||
if(!valueItemsItemInfo["ItemPicUrl"].isNull())
|
||||
itemsObject.itemPicUrl = valueItemsItemInfo["ItemPicUrl"].asString();
|
||||
if(!valueItemsItemInfo["SkuId"].isNull())
|
||||
itemsObject.skuId = valueItemsItemInfo["SkuId"].asString();
|
||||
if(!valueItemsItemInfo["SuggestPrice"].isNull())
|
||||
itemsObject.suggestPrice = std::stoi(valueItemsItemInfo["SuggestPrice"].asString());
|
||||
if(!valueItemsItemInfo["Rank"].isNull())
|
||||
itemsObject.rank = valueItemsItemInfo["Rank"].asString();
|
||||
if(!valueItemsItemInfo["SourceCode"].isNull())
|
||||
itemsObject.sourceCode = valueItemsItemInfo["SourceCode"].asString();
|
||||
if(!valueItemsItemInfo["ProductionPlace"].isNull())
|
||||
itemsObject.productionPlace = valueItemsItemInfo["ProductionPlace"].asString();
|
||||
if(!valueItemsItemInfo["ItemInfoIndex"].isNull())
|
||||
itemsObject.itemInfoIndex = std::stoi(valueItemsItemInfo["ItemInfoIndex"].asString());
|
||||
if(!valueItemsItemInfo["InventoryStatus"].isNull())
|
||||
itemsObject.inventoryStatus = valueItemsItemInfo["InventoryStatus"].asString();
|
||||
if(!valueItemsItemInfo["PriceUnit"].isNull())
|
||||
itemsObject.priceUnit = valueItemsItemInfo["PriceUnit"].asString();
|
||||
if(!valueItemsItemInfo["ActionPrice"].isNull())
|
||||
itemsObject.actionPrice = std::stoi(valueItemsItemInfo["ActionPrice"].asString());
|
||||
if(!valueItemsItemInfo["ItemTitle"].isNull())
|
||||
itemsObject.itemTitle = valueItemsItemInfo["ItemTitle"].asString();
|
||||
if(!valueItemsItemInfo["BrandName"].isNull())
|
||||
itemsObject.brandName = valueItemsItemInfo["BrandName"].asString();
|
||||
if(!valueItemsItemInfo["ItemQrCode"].isNull())
|
||||
itemsObject.itemQrCode = valueItemsItemInfo["ItemQrCode"].asString();
|
||||
if(!valueItemsItemInfo["PromotionReason"].isNull())
|
||||
itemsObject.promotionReason = valueItemsItemInfo["PromotionReason"].asString();
|
||||
if(!valueItemsItemInfo["ItemBarCode"].isNull())
|
||||
itemsObject.itemBarCode = valueItemsItemInfo["ItemBarCode"].asString();
|
||||
if(!valueItemsItemInfo["ItemId"].isNull())
|
||||
itemsObject.itemId = valueItemsItemInfo["ItemId"].asString();
|
||||
if(!valueItemsItemInfo["PromotionStart"].isNull())
|
||||
itemsObject.promotionStart = valueItemsItemInfo["PromotionStart"].asString();
|
||||
if(!valueItemsItemInfo["GmtCreate"].isNull())
|
||||
itemsObject.gmtCreate = valueItemsItemInfo["GmtCreate"].asString();
|
||||
if(!valueItemsItemInfo["GmtModified"].isNull())
|
||||
itemsObject.gmtModified = valueItemsItemInfo["GmtModified"].asString();
|
||||
if(!valueItemsItemInfo["BeMember"].isNull())
|
||||
itemsObject.beMember = valueItemsItemInfo["BeMember"].asString() == "true";
|
||||
if(!valueItemsItemInfo["SourceCode"].isNull())
|
||||
itemsObject.sourceCode = valueItemsItemInfo["SourceCode"].asString();
|
||||
if(!valueItemsItemInfo["PriceUnit"].isNull())
|
||||
itemsObject.priceUnit = valueItemsItemInfo["PriceUnit"].asString();
|
||||
if(!valueItemsItemInfo["ForestFirstId"].isNull())
|
||||
itemsObject.forestFirstId = valueItemsItemInfo["ForestFirstId"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureF"].isNull())
|
||||
itemsObject.customizeFeatureF = valueItemsItemInfo["CustomizeFeatureF"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureA"].isNull())
|
||||
itemsObject.customizeFeatureA = valueItemsItemInfo["CustomizeFeatureA"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureK"].isNull())
|
||||
itemsObject.customizeFeatureK = valueItemsItemInfo["CustomizeFeatureK"].asString();
|
||||
if(!valueItemsItemInfo["TemplateSceneId"].isNull())
|
||||
itemsObject.templateSceneId = valueItemsItemInfo["TemplateSceneId"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureD"].isNull())
|
||||
itemsObject.customizeFeatureD = valueItemsItemInfo["CustomizeFeatureD"].asString();
|
||||
if(!valueItemsItemInfo["MemberPrice"].isNull())
|
||||
itemsObject.memberPrice = std::stoi(valueItemsItemInfo["MemberPrice"].asString());
|
||||
if(!valueItemsItemInfo["PromotionStart"].isNull())
|
||||
itemsObject.promotionStart = valueItemsItemInfo["PromotionStart"].asString();
|
||||
if(!valueItemsItemInfo["ModelNumber"].isNull())
|
||||
itemsObject.modelNumber = valueItemsItemInfo["ModelNumber"].asString();
|
||||
if(!valueItemsItemInfo["CategoryName"].isNull())
|
||||
itemsObject.categoryName = valueItemsItemInfo["CategoryName"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureE"].isNull())
|
||||
itemsObject.customizeFeatureE = valueItemsItemInfo["CustomizeFeatureE"].asString();
|
||||
if(!valueItemsItemInfo["SuggestPrice"].isNull())
|
||||
itemsObject.suggestPrice = std::stoi(valueItemsItemInfo["SuggestPrice"].asString());
|
||||
if(!valueItemsItemInfo["SaleSpec"].isNull())
|
||||
itemsObject.saleSpec = valueItemsItemInfo["SaleSpec"].asString();
|
||||
if(!valueItemsItemInfo["PromotionText"].isNull())
|
||||
itemsObject.promotionText = valueItemsItemInfo["PromotionText"].asString();
|
||||
if(!valueItemsItemInfo["Rank"].isNull())
|
||||
itemsObject.rank = valueItemsItemInfo["Rank"].asString();
|
||||
if(!valueItemsItemInfo["PromotionReason"].isNull())
|
||||
itemsObject.promotionReason = valueItemsItemInfo["PromotionReason"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureG"].isNull())
|
||||
itemsObject.customizeFeatureG = valueItemsItemInfo["CustomizeFeatureG"].asString();
|
||||
if(!valueItemsItemInfo["SalesPrice"].isNull())
|
||||
itemsObject.salesPrice = std::stoi(valueItemsItemInfo["SalesPrice"].asString());
|
||||
if(!valueItemsItemInfo["CustomizeFeatureH"].isNull())
|
||||
itemsObject.customizeFeatureH = valueItemsItemInfo["CustomizeFeatureH"].asString();
|
||||
if(!valueItemsItemInfo["OriginalPrice"].isNull())
|
||||
itemsObject.originalPrice = std::stoi(valueItemsItemInfo["OriginalPrice"].asString());
|
||||
if(!valueItemsItemInfo["GmtModified"].isNull())
|
||||
itemsObject.gmtModified = valueItemsItemInfo["GmtModified"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureI"].isNull())
|
||||
itemsObject.customizeFeatureI = valueItemsItemInfo["CustomizeFeatureI"].asString();
|
||||
if(!valueItemsItemInfo["ProductionPlace"].isNull())
|
||||
itemsObject.productionPlace = valueItemsItemInfo["ProductionPlace"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureB"].isNull())
|
||||
itemsObject.customizeFeatureB = valueItemsItemInfo["CustomizeFeatureB"].asString();
|
||||
if(!valueItemsItemInfo["ItemShortTitle"].isNull())
|
||||
itemsObject.itemShortTitle = valueItemsItemInfo["ItemShortTitle"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureN"].isNull())
|
||||
itemsObject.customizeFeatureN = valueItemsItemInfo["CustomizeFeatureN"].asString();
|
||||
if(!valueItemsItemInfo["BeMember"].isNull())
|
||||
itemsObject.beMember = valueItemsItemInfo["BeMember"].asString() == "true";
|
||||
if(!valueItemsItemInfo["TaxFee"].isNull())
|
||||
itemsObject.taxFee = valueItemsItemInfo["TaxFee"].asString();
|
||||
if(!valueItemsItemInfo["InventoryStatus"].isNull())
|
||||
itemsObject.inventoryStatus = valueItemsItemInfo["InventoryStatus"].asString();
|
||||
if(!valueItemsItemInfo["SupplierName"].isNull())
|
||||
itemsObject.supplierName = valueItemsItemInfo["SupplierName"].asString();
|
||||
if(!valueItemsItemInfo["ItemPicUrl"].isNull())
|
||||
itemsObject.itemPicUrl = valueItemsItemInfo["ItemPicUrl"].asString();
|
||||
if(!valueItemsItemInfo["EnergyEfficiency"].isNull())
|
||||
itemsObject.energyEfficiency = valueItemsItemInfo["EnergyEfficiency"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureL"].isNull())
|
||||
itemsObject.customizeFeatureL = valueItemsItemInfo["CustomizeFeatureL"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureC"].isNull())
|
||||
itemsObject.customizeFeatureC = valueItemsItemInfo["CustomizeFeatureC"].asString();
|
||||
if(!valueItemsItemInfo["ItemId"].isNull())
|
||||
itemsObject.itemId = valueItemsItemInfo["ItemId"].asString();
|
||||
if(!valueItemsItemInfo["Manufacturer"].isNull())
|
||||
itemsObject.manufacturer = valueItemsItemInfo["Manufacturer"].asString();
|
||||
if(!valueItemsItemInfo["Material"].isNull())
|
||||
itemsObject.material = valueItemsItemInfo["Material"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureO"].isNull())
|
||||
itemsObject.customizeFeatureO = valueItemsItemInfo["CustomizeFeatureO"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureP"].isNull())
|
||||
itemsObject.customizeFeatureP = valueItemsItemInfo["CustomizeFeatureP"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureQ"].isNull())
|
||||
itemsObject.customizeFeatureQ = valueItemsItemInfo["CustomizeFeatureQ"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureR"].isNull())
|
||||
itemsObject.customizeFeatureR = valueItemsItemInfo["CustomizeFeatureR"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureS"].isNull())
|
||||
itemsObject.customizeFeatureS = valueItemsItemInfo["CustomizeFeatureS"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureT"].isNull())
|
||||
itemsObject.customizeFeatureT = valueItemsItemInfo["CustomizeFeatureT"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureU"].isNull())
|
||||
itemsObject.customizeFeatureU = valueItemsItemInfo["CustomizeFeatureU"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureV"].isNull())
|
||||
itemsObject.customizeFeatureV = valueItemsItemInfo["CustomizeFeatureV"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureW"].isNull())
|
||||
itemsObject.customizeFeatureW = valueItemsItemInfo["CustomizeFeatureW"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureX"].isNull())
|
||||
itemsObject.customizeFeatureX = valueItemsItemInfo["CustomizeFeatureX"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureY"].isNull())
|
||||
itemsObject.customizeFeatureY = valueItemsItemInfo["CustomizeFeatureY"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureZ"].isNull())
|
||||
itemsObject.customizeFeatureZ = valueItemsItemInfo["CustomizeFeatureZ"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureJ"].isNull())
|
||||
itemsObject.customizeFeatureJ = valueItemsItemInfo["CustomizeFeatureJ"].asString();
|
||||
if(!valueItemsItemInfo["GmtCreate"].isNull())
|
||||
itemsObject.gmtCreate = valueItemsItemInfo["GmtCreate"].asString();
|
||||
if(!valueItemsItemInfo["CustomizeFeatureM"].isNull())
|
||||
itemsObject.customizeFeatureM = valueItemsItemInfo["CustomizeFeatureM"].asString();
|
||||
if(!valueItemsItemInfo["BePromotion"].isNull())
|
||||
itemsObject.bePromotion = valueItemsItemInfo["BePromotion"].asString() == "true";
|
||||
if(!valueItemsItemInfo["SkuId"].isNull())
|
||||
itemsObject.skuId = valueItemsItemInfo["SkuId"].asString();
|
||||
if(!valueItemsItemInfo["BeSourceCode"].isNull())
|
||||
itemsObject.beSourceCode = valueItemsItemInfo["BeSourceCode"].asString() == "true";
|
||||
if(!valueItemsItemInfo["ForestSecondId"].isNull())
|
||||
itemsObject.forestSecondId = valueItemsItemInfo["ForestSecondId"].asString();
|
||||
if(!valueItemsItemInfo["ItemQrCode"].isNull())
|
||||
itemsObject.itemQrCode = valueItemsItemInfo["ItemQrCode"].asString();
|
||||
if(!valueItemsItemInfo["ItemInfoIndex"].isNull())
|
||||
itemsObject.itemInfoIndex = std::stoi(valueItemsItemInfo["ItemInfoIndex"].asString());
|
||||
if(!valueItemsItemInfo["PromotionEnd"].isNull())
|
||||
itemsObject.promotionEnd = valueItemsItemInfo["PromotionEnd"].asString();
|
||||
if(!valueItemsItemInfo["ItemBarCode"].isNull())
|
||||
itemsObject.itemBarCode = valueItemsItemInfo["ItemBarCode"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TemplateSceneId"].isNull())
|
||||
templateSceneId_ = value["TemplateSceneId"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TemplateSceneId"].isNull())
|
||||
templateSceneId_ = value["TemplateSceneId"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -208,19 +230,14 @@ std::string DescribeItemsResult::getDynamicCode()const
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeItemsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeItemsResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeItemsResult::getErrorMessage()const
|
||||
std::string DescribeItemsResult::getErrorCode()const
|
||||
{
|
||||
return errorMessage_;
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeItemsResult::getTemplateSceneId()const
|
||||
@@ -228,6 +245,11 @@ std::string DescribeItemsResult::getTemplateSceneId()const
|
||||
return templateSceneId_;
|
||||
}
|
||||
|
||||
std::string DescribeItemsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeItemsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
|
||||
106
cloudesl/src/model/DescribeMaterialsRequest.cc
Normal file
106
cloudesl/src/model/DescribeMaterialsRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeMaterialsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::DescribeMaterialsRequest;
|
||||
|
||||
DescribeMaterialsRequest::DescribeMaterialsRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeMaterials")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMaterialsRequest::~DescribeMaterialsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeMaterialsRequest::getSource()const
|
||||
{
|
||||
return source_;
|
||||
}
|
||||
|
||||
void DescribeMaterialsRequest::setSource(const std::string& source)
|
||||
{
|
||||
source_ = source;
|
||||
setBodyParameter("Source", source);
|
||||
}
|
||||
|
||||
int DescribeMaterialsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribeMaterialsRequest::setType(int type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", std::to_string(type));
|
||||
}
|
||||
|
||||
std::string DescribeMaterialsRequest::getMaterialId()const
|
||||
{
|
||||
return materialId_;
|
||||
}
|
||||
|
||||
void DescribeMaterialsRequest::setMaterialId(const std::string& materialId)
|
||||
{
|
||||
materialId_ = materialId;
|
||||
setBodyParameter("MaterialId", materialId);
|
||||
}
|
||||
|
||||
int DescribeMaterialsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeMaterialsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeMaterialsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeMaterialsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeMaterialsRequest::getSize()const
|
||||
{
|
||||
return size_;
|
||||
}
|
||||
|
||||
void DescribeMaterialsRequest::setSize(const std::string& size)
|
||||
{
|
||||
size_ = size;
|
||||
setBodyParameter("Size", size);
|
||||
}
|
||||
|
||||
std::string DescribeMaterialsRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeMaterialsRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
141
cloudesl/src/model/DescribeMaterialsResult.cc
Normal file
141
cloudesl/src/model/DescribeMaterialsResult.cc
Normal file
@@ -0,0 +1,141 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeMaterialsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DescribeMaterialsResult::DescribeMaterialsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMaterialsResult::DescribeMaterialsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMaterialsResult::~DescribeMaterialsResult()
|
||||
{}
|
||||
|
||||
void DescribeMaterialsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMaterialsNode = value["Materials"]["Material"];
|
||||
for (auto valueMaterialsMaterial : allMaterialsNode)
|
||||
{
|
||||
Material materialsObject;
|
||||
if(!valueMaterialsMaterial["MaterialId"].isNull())
|
||||
materialsObject.materialId = valueMaterialsMaterial["MaterialId"].asString();
|
||||
if(!valueMaterialsMaterial["Size"].isNull())
|
||||
materialsObject.size = valueMaterialsMaterial["Size"].asString();
|
||||
if(!valueMaterialsMaterial["Period"].isNull())
|
||||
materialsObject.period = std::stoi(valueMaterialsMaterial["Period"].asString());
|
||||
if(!valueMaterialsMaterial["Content"].isNull())
|
||||
materialsObject.content = valueMaterialsMaterial["Content"].asString();
|
||||
if(!valueMaterialsMaterial["Thumbnail"].isNull())
|
||||
materialsObject.thumbnail = valueMaterialsMaterial["Thumbnail"].asString();
|
||||
if(!valueMaterialsMaterial["Type"].isNull())
|
||||
materialsObject.type = std::stoi(valueMaterialsMaterial["Type"].asString());
|
||||
if(!valueMaterialsMaterial["Source"].isNull())
|
||||
materialsObject.source = valueMaterialsMaterial["Source"].asString();
|
||||
if(!valueMaterialsMaterial["Name"].isNull())
|
||||
materialsObject.name = valueMaterialsMaterial["Name"].asString();
|
||||
materials_.push_back(materialsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
int DescribeMaterialsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeMaterialsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeMaterialsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeMaterialsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeMaterialsResult::Material> DescribeMaterialsResult::getMaterials()const
|
||||
{
|
||||
return materials_;
|
||||
}
|
||||
|
||||
std::string DescribeMaterialsResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeMaterialsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeMaterialsResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeMaterialsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeMaterialsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeMaterialsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -14,16 +14,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudesl/model/ConfirmServerLocationRequest.h>
|
||||
#include <alibabacloud/cloudesl/model/DescribeNotificationConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::ConfirmServerLocationRequest;
|
||||
using AlibabaCloud::Cloudesl::Model::DescribeNotificationConfigRequest;
|
||||
|
||||
ConfirmServerLocationRequest::ConfirmServerLocationRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "ConfirmServerLocation")
|
||||
DescribeNotificationConfigRequest::DescribeNotificationConfigRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeNotificationConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConfirmServerLocationRequest::~ConfirmServerLocationRequest()
|
||||
DescribeNotificationConfigRequest::~DescribeNotificationConfigRequest()
|
||||
{}
|
||||
|
||||
128
cloudesl/src/model/DescribeNotificationConfigResult.cc
Normal file
128
cloudesl/src/model/DescribeNotificationConfigResult.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeNotificationConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DescribeNotificationConfigResult::DescribeNotificationConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNotificationConfigResult::DescribeNotificationConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNotificationConfigResult::~DescribeNotificationConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeNotificationConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["Topic"].isNull())
|
||||
topic_ = value["Topic"].asString();
|
||||
if(!value["GroupId"].isNull())
|
||||
groupId_ = value["GroupId"].asString();
|
||||
if(!value["Endpoint"].isNull())
|
||||
endpoint_ = value["Endpoint"].asString();
|
||||
if(!value["Tag"].isNull())
|
||||
tag_ = value["Tag"].asString();
|
||||
if(!value["Enable"].isNull())
|
||||
enable_ = value["Enable"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeNotificationConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeNotificationConfigResult::getEndpoint()const
|
||||
{
|
||||
return endpoint_;
|
||||
}
|
||||
|
||||
bool DescribeNotificationConfigResult::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
std::string DescribeNotificationConfigResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeNotificationConfigResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeNotificationConfigResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeNotificationConfigResult::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
std::string DescribeNotificationConfigResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeNotificationConfigResult::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
}
|
||||
|
||||
std::string DescribeNotificationConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeNotificationConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DescribeNotificationConfigResult::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
40
cloudesl/src/model/DescribeStoreByTemplateVersionRequest.cc
Normal file
40
cloudesl/src/model/DescribeStoreByTemplateVersionRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeStoreByTemplateVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::DescribeStoreByTemplateVersionRequest;
|
||||
|
||||
DescribeStoreByTemplateVersionRequest::DescribeStoreByTemplateVersionRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeStoreByTemplateVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeStoreByTemplateVersionRequest::~DescribeStoreByTemplateVersionRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeStoreByTemplateVersionRequest::getTemplateVersion()const
|
||||
{
|
||||
return templateVersion_;
|
||||
}
|
||||
|
||||
void DescribeStoreByTemplateVersionRequest::setTemplateVersion(const std::string& templateVersion)
|
||||
{
|
||||
templateVersion_ = templateVersion;
|
||||
setBodyParameter("TemplateVersion", templateVersion);
|
||||
}
|
||||
|
||||
122
cloudesl/src/model/DescribeStoreByTemplateVersionResult.cc
Normal file
122
cloudesl/src/model/DescribeStoreByTemplateVersionResult.cc
Normal file
@@ -0,0 +1,122 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeStoreByTemplateVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DescribeStoreByTemplateVersionResult::DescribeStoreByTemplateVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeStoreByTemplateVersionResult::DescribeStoreByTemplateVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeStoreByTemplateVersionResult::~DescribeStoreByTemplateVersionResult()
|
||||
{}
|
||||
|
||||
void DescribeStoreByTemplateVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStoresNode = value["Stores"]["SelectItemInfo"];
|
||||
for (auto valueStoresSelectItemInfo : allStoresNode)
|
||||
{
|
||||
SelectItemInfo storesObject;
|
||||
if(!valueStoresSelectItemInfo["StoreName"].isNull())
|
||||
storesObject.storeName = valueStoresSelectItemInfo["StoreName"].asString();
|
||||
if(!valueStoresSelectItemInfo["StoreId"].isNull())
|
||||
storesObject.storeId = valueStoresSelectItemInfo["StoreId"].asString();
|
||||
if(!valueStoresSelectItemInfo["ParentId"].isNull())
|
||||
storesObject.parentId = valueStoresSelectItemInfo["ParentId"].asString();
|
||||
if(!valueStoresSelectItemInfo["UserStoreCode"].isNull())
|
||||
storesObject.userStoreCode = valueStoresSelectItemInfo["UserStoreCode"].asString();
|
||||
if(!valueStoresSelectItemInfo["GmtModified"].isNull())
|
||||
storesObject.gmtModified = valueStoresSelectItemInfo["GmtModified"].asString();
|
||||
if(!valueStoresSelectItemInfo["Phone"].isNull())
|
||||
storesObject.phone = valueStoresSelectItemInfo["Phone"].asString();
|
||||
if(!valueStoresSelectItemInfo["Level"].isNull())
|
||||
storesObject.level = valueStoresSelectItemInfo["Level"].asString();
|
||||
if(!valueStoresSelectItemInfo["TemplateVersion"].isNull())
|
||||
storesObject.templateVersion = valueStoresSelectItemInfo["TemplateVersion"].asString();
|
||||
if(!valueStoresSelectItemInfo["TimeZone"].isNull())
|
||||
storesObject.timeZone = valueStoresSelectItemInfo["TimeZone"].asString();
|
||||
stores_.push_back(storesObject);
|
||||
}
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeStoreByTemplateVersionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeStoreByTemplateVersionResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::vector<DescribeStoreByTemplateVersionResult::SelectItemInfo> DescribeStoreByTemplateVersionResult::getStores()const
|
||||
{
|
||||
return stores_;
|
||||
}
|
||||
|
||||
std::string DescribeStoreByTemplateVersionResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeStoreByTemplateVersionResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeStoreByTemplateVersionResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeStoreByTemplateVersionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeStoreByTemplateVersionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -40,28 +40,44 @@ void DescribeStoreConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto storeConfigInfoNode = value["StoreConfigInfo"];
|
||||
if(!storeConfigInfoNode["StoreId"].isNull())
|
||||
storeConfigInfo_.storeId = storeConfigInfoNode["StoreId"].asString();
|
||||
if(!storeConfigInfoNode["EnableNotification"].isNull())
|
||||
storeConfigInfo_.enableNotification = storeConfigInfoNode["EnableNotification"].asString() == "true";
|
||||
if(!storeConfigInfoNode["NotificationWebHook"].isNull())
|
||||
storeConfigInfo_.notificationWebHook = storeConfigInfoNode["NotificationWebHook"].asString();
|
||||
if(!storeConfigInfoNode["NotificationSilentTimes"].isNull())
|
||||
storeConfigInfo_.notificationSilentTimes = storeConfigInfoNode["NotificationSilentTimes"].asString();
|
||||
if(!storeConfigInfoNode["StoreId"].isNull())
|
||||
storeConfigInfo_.storeId = storeConfigInfoNode["StoreId"].asString();
|
||||
auto allSubscribeContentsNode = storeConfigInfoNode["SubscribeContents"]["subscribeContent"];
|
||||
for (auto storeConfigInfoNodeSubscribeContentssubscribeContent : allSubscribeContentsNode)
|
||||
{
|
||||
StoreConfigInfo::SubscribeContent subscribeContentObject;
|
||||
if(!storeConfigInfoNodeSubscribeContentssubscribeContent["Category"].isNull())
|
||||
subscribeContentObject.category = storeConfigInfoNodeSubscribeContentssubscribeContent["Category"].asString();
|
||||
if(!storeConfigInfoNodeSubscribeContentssubscribeContent["Enable"].isNull())
|
||||
subscribeContentObject.enable = storeConfigInfoNodeSubscribeContentssubscribeContent["Enable"].asString() == "true";
|
||||
if(!storeConfigInfoNodeSubscribeContentssubscribeContent["Threshold"].isNull())
|
||||
subscribeContentObject.threshold = storeConfigInfoNodeSubscribeContentssubscribeContent["Threshold"].asString();
|
||||
if(!storeConfigInfoNodeSubscribeContentssubscribeContent["AtAll"].isNull())
|
||||
subscribeContentObject.atAll = storeConfigInfoNodeSubscribeContentssubscribeContent["AtAll"].asString() == "true";
|
||||
if(!storeConfigInfoNodeSubscribeContentssubscribeContent["AtMobileList"].isNull())
|
||||
subscribeContentObject.atMobileList = storeConfigInfoNodeSubscribeContentssubscribeContent["AtMobileList"].asString();
|
||||
storeConfigInfo_.subscribeContents.push_back(subscribeContentObject);
|
||||
}
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
84
cloudesl/src/model/DescribeTemplateByModelRequest.cc
Normal file
84
cloudesl/src/model/DescribeTemplateByModelRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeTemplateByModelRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::DescribeTemplateByModelRequest;
|
||||
|
||||
DescribeTemplateByModelRequest::DescribeTemplateByModelRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "DescribeTemplateByModel")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTemplateByModelRequest::~DescribeTemplateByModelRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTemplateByModelRequest::getEslSize()const
|
||||
{
|
||||
return eslSize_;
|
||||
}
|
||||
|
||||
void DescribeTemplateByModelRequest::setEslSize(const std::string& eslSize)
|
||||
{
|
||||
eslSize_ = eslSize;
|
||||
setBodyParameter("EslSize", eslSize);
|
||||
}
|
||||
|
||||
std::string DescribeTemplateByModelRequest::getDeviceType()const
|
||||
{
|
||||
return deviceType_;
|
||||
}
|
||||
|
||||
void DescribeTemplateByModelRequest::setDeviceType(const std::string& deviceType)
|
||||
{
|
||||
deviceType_ = deviceType;
|
||||
setBodyParameter("DeviceType", deviceType);
|
||||
}
|
||||
|
||||
int DescribeTemplateByModelRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeTemplateByModelRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeTemplateByModelRequest::getTemplateVersion()const
|
||||
{
|
||||
return templateVersion_;
|
||||
}
|
||||
|
||||
void DescribeTemplateByModelRequest::setTemplateVersion(const std::string& templateVersion)
|
||||
{
|
||||
templateVersion_ = templateVersion;
|
||||
setBodyParameter("TemplateVersion", templateVersion);
|
||||
}
|
||||
|
||||
int DescribeTemplateByModelRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeTemplateByModelRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
147
cloudesl/src/model/DescribeTemplateByModelResult.cc
Normal file
147
cloudesl/src/model/DescribeTemplateByModelResult.cc
Normal file
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
* 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/cloudesl/model/DescribeTemplateByModelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DescribeTemplateByModelResult::DescribeTemplateByModelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTemplateByModelResult::DescribeTemplateByModelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTemplateByModelResult::~DescribeTemplateByModelResult()
|
||||
{}
|
||||
|
||||
void DescribeTemplateByModelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["SelectItemInfo"];
|
||||
for (auto valueItemsSelectItemInfo : allItemsNode)
|
||||
{
|
||||
SelectItemInfo itemsObject;
|
||||
if(!valueItemsSelectItemInfo["BasePicture"].isNull())
|
||||
itemsObject.basePicture = valueItemsSelectItemInfo["BasePicture"].asString();
|
||||
if(!valueItemsSelectItemInfo["TemplateId"].isNull())
|
||||
itemsObject.templateId = valueItemsSelectItemInfo["TemplateId"].asString();
|
||||
if(!valueItemsSelectItemInfo["TemplateName"].isNull())
|
||||
itemsObject.templateName = valueItemsSelectItemInfo["TemplateName"].asString();
|
||||
if(!valueItemsSelectItemInfo["EslSize"].isNull())
|
||||
itemsObject.eslSize = valueItemsSelectItemInfo["EslSize"].asString();
|
||||
if(!valueItemsSelectItemInfo["EslType"].isNull())
|
||||
itemsObject.eslType = valueItemsSelectItemInfo["EslType"].asString();
|
||||
if(!valueItemsSelectItemInfo["Width"].isNull())
|
||||
itemsObject.width = std::stol(valueItemsSelectItemInfo["Width"].asString());
|
||||
if(!valueItemsSelectItemInfo["Height"].isNull())
|
||||
itemsObject.height = std::stol(valueItemsSelectItemInfo["Height"].asString());
|
||||
if(!valueItemsSelectItemInfo["TemplateVersion"].isNull())
|
||||
itemsObject.templateVersion = valueItemsSelectItemInfo["TemplateVersion"].asString();
|
||||
if(!valueItemsSelectItemInfo["Layout"].isNull())
|
||||
itemsObject.layout = valueItemsSelectItemInfo["Layout"].asString();
|
||||
if(!valueItemsSelectItemInfo["Scene"].isNull())
|
||||
itemsObject.scene = valueItemsSelectItemInfo["Scene"].asString();
|
||||
if(!valueItemsSelectItemInfo["Brand"].isNull())
|
||||
itemsObject.brand = valueItemsSelectItemInfo["Brand"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeTemplateByModelResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeTemplateByModelResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeTemplateByModelResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeTemplateByModelResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeTemplateByModelResult::SelectItemInfo> DescribeTemplateByModelResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
std::string DescribeTemplateByModelResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeTemplateByModelResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeTemplateByModelResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeTemplateByModelResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeTemplateByModelResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeTemplateByModelResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -43,66 +43,68 @@ void DescribeUserLogResult::parse(const std::string &payload)
|
||||
for (auto valueUserLogsUserLogInfo : allUserLogsNode)
|
||||
{
|
||||
UserLogInfo userLogsObject;
|
||||
if(!valueUserLogsUserLogInfo["ResultCode"].isNull())
|
||||
userLogsObject.resultCode = valueUserLogsUserLogInfo["ResultCode"].asString();
|
||||
if(!valueUserLogsUserLogInfo["EslBarCode"].isNull())
|
||||
userLogsObject.eslBarCode = valueUserLogsUserLogInfo["EslBarCode"].asString();
|
||||
if(!valueUserLogsUserLogInfo["OperationSendTime"].isNull())
|
||||
userLogsObject.operationSendTime = valueUserLogsUserLogInfo["OperationSendTime"].asString();
|
||||
if(!valueUserLogsUserLogInfo["GmtCreate"].isNull())
|
||||
userLogsObject.gmtCreate = valueUserLogsUserLogInfo["GmtCreate"].asString();
|
||||
if(!valueUserLogsUserLogInfo["StoreId"].isNull())
|
||||
userLogsObject.storeId = valueUserLogsUserLogInfo["StoreId"].asString();
|
||||
if(!valueUserLogsUserLogInfo["GmtModified"].isNull())
|
||||
userLogsObject.gmtModified = valueUserLogsUserLogInfo["GmtModified"].asString();
|
||||
if(!valueUserLogsUserLogInfo["ActionPrice"].isNull())
|
||||
userLogsObject.actionPrice = valueUserLogsUserLogInfo["ActionPrice"].asString();
|
||||
if(!valueUserLogsUserLogInfo["OperationStatus"].isNull())
|
||||
userLogsObject.operationStatus = valueUserLogsUserLogInfo["OperationStatus"].asString();
|
||||
if(!valueUserLogsUserLogInfo["UserId"].isNull())
|
||||
userLogsObject.userId = valueUserLogsUserLogInfo["UserId"].asString();
|
||||
if(!valueUserLogsUserLogInfo["PriceUnit"].isNull())
|
||||
userLogsObject.priceUnit = valueUserLogsUserLogInfo["PriceUnit"].asString();
|
||||
if(!valueUserLogsUserLogInfo["LogId"].isNull())
|
||||
userLogsObject.logId = valueUserLogsUserLogInfo["LogId"].asString();
|
||||
if(!valueUserLogsUserLogInfo["ItemShortTitle"].isNull())
|
||||
userLogsObject.itemShortTitle = valueUserLogsUserLogInfo["ItemShortTitle"].asString();
|
||||
if(!valueUserLogsUserLogInfo["ResultCode"].isNull())
|
||||
userLogsObject.resultCode = valueUserLogsUserLogInfo["ResultCode"].asString();
|
||||
if(!valueUserLogsUserLogInfo["ItemId"].isNull())
|
||||
userLogsObject.itemId = valueUserLogsUserLogInfo["ItemId"].asString();
|
||||
if(!valueUserLogsUserLogInfo["GmtModified"].isNull())
|
||||
userLogsObject.gmtModified = valueUserLogsUserLogInfo["GmtModified"].asString();
|
||||
if(!valueUserLogsUserLogInfo["OperationType"].isNull())
|
||||
userLogsObject.operationType = valueUserLogsUserLogInfo["OperationType"].asString();
|
||||
if(!valueUserLogsUserLogInfo["OperationResponseTime"].isNull())
|
||||
userLogsObject.operationResponseTime = valueUserLogsUserLogInfo["OperationResponseTime"].asString();
|
||||
if(!valueUserLogsUserLogInfo["SpendTime"].isNull())
|
||||
userLogsObject.spendTime = valueUserLogsUserLogInfo["SpendTime"].asString();
|
||||
if(!valueUserLogsUserLogInfo["EslBarCode"].isNull())
|
||||
userLogsObject.eslBarCode = valueUserLogsUserLogInfo["EslBarCode"].asString();
|
||||
if(!valueUserLogsUserLogInfo["ItemId"].isNull())
|
||||
userLogsObject.itemId = valueUserLogsUserLogInfo["ItemId"].asString();
|
||||
if(!valueUserLogsUserLogInfo["ItemBarCode"].isNull())
|
||||
userLogsObject.itemBarCode = valueUserLogsUserLogInfo["ItemBarCode"].asString();
|
||||
if(!valueUserLogsUserLogInfo["OperationStatus"].isNull())
|
||||
userLogsObject.operationStatus = valueUserLogsUserLogInfo["OperationStatus"].asString();
|
||||
if(!valueUserLogsUserLogInfo["StoreId"].isNull())
|
||||
userLogsObject.storeId = valueUserLogsUserLogInfo["StoreId"].asString();
|
||||
if(!valueUserLogsUserLogInfo["ItemShortTitle"].isNull())
|
||||
userLogsObject.itemShortTitle = valueUserLogsUserLogInfo["ItemShortTitle"].asString();
|
||||
if(!valueUserLogsUserLogInfo["LogId"].isNull())
|
||||
userLogsObject.logId = valueUserLogsUserLogInfo["LogId"].asString();
|
||||
if(!valueUserLogsUserLogInfo["BePromotion"].isNull())
|
||||
userLogsObject.bePromotion = valueUserLogsUserLogInfo["BePromotion"].asString() == "true";
|
||||
if(!valueUserLogsUserLogInfo["UserId"].isNull())
|
||||
userLogsObject.userId = valueUserLogsUserLogInfo["UserId"].asString();
|
||||
if(!valueUserLogsUserLogInfo["GmtCreate"].isNull())
|
||||
userLogsObject.gmtCreate = valueUserLogsUserLogInfo["GmtCreate"].asString();
|
||||
if(!valueUserLogsUserLogInfo["EslSignal"].isNull())
|
||||
userLogsObject.eslSignal = std::stoi(valueUserLogsUserLogInfo["EslSignal"].asString());
|
||||
if(!valueUserLogsUserLogInfo["SpendTime"].isNull())
|
||||
userLogsObject.spendTime = valueUserLogsUserLogInfo["SpendTime"].asString();
|
||||
if(!valueUserLogsUserLogInfo["ItemBarCode"].isNull())
|
||||
userLogsObject.itemBarCode = valueUserLogsUserLogInfo["ItemBarCode"].asString();
|
||||
if(!valueUserLogsUserLogInfo["I18nResultKey"].isNull())
|
||||
userLogsObject.i18nResultKey = valueUserLogsUserLogInfo["I18nResultKey"].asString();
|
||||
userLogs_.push_back(userLogsObject);
|
||||
}
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
150
cloudesl/src/model/ExportEslDevicesRequest.cc
Normal file
150
cloudesl/src/model/ExportEslDevicesRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* 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/cloudesl/model/ExportEslDevicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::ExportEslDevicesRequest;
|
||||
|
||||
ExportEslDevicesRequest::ExportEslDevicesRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "ExportEslDevices")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ExportEslDevicesRequest::~ExportEslDevicesRequest()
|
||||
{}
|
||||
|
||||
std::string ExportEslDevicesRequest::getExtraParams()const
|
||||
{
|
||||
return extraParams_;
|
||||
}
|
||||
|
||||
void ExportEslDevicesRequest::setExtraParams(const std::string& extraParams)
|
||||
{
|
||||
extraParams_ = extraParams;
|
||||
setBodyParameter("ExtraParams", extraParams);
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesRequest::getLanguage()const
|
||||
{
|
||||
return language_;
|
||||
}
|
||||
|
||||
void ExportEslDevicesRequest::setLanguage(const std::string& language)
|
||||
{
|
||||
language_ = language;
|
||||
setBodyParameter("Language", language);
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ExportEslDevicesRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesRequest::getStoreId()const
|
||||
{
|
||||
return storeId_;
|
||||
}
|
||||
|
||||
void ExportEslDevicesRequest::setStoreId(const std::string& storeId)
|
||||
{
|
||||
storeId_ = storeId;
|
||||
setBodyParameter("StoreId", storeId);
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesRequest::getEslBarCode()const
|
||||
{
|
||||
return eslBarCode_;
|
||||
}
|
||||
|
||||
void ExportEslDevicesRequest::setEslBarCode(const std::string& eslBarCode)
|
||||
{
|
||||
eslBarCode_ = eslBarCode;
|
||||
setBodyParameter("EslBarCode", eslBarCode);
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesRequest::getTypeEncode()const
|
||||
{
|
||||
return typeEncode_;
|
||||
}
|
||||
|
||||
void ExportEslDevicesRequest::setTypeEncode(const std::string& typeEncode)
|
||||
{
|
||||
typeEncode_ = typeEncode;
|
||||
setBodyParameter("TypeEncode", typeEncode);
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesRequest::getEslStatus()const
|
||||
{
|
||||
return eslStatus_;
|
||||
}
|
||||
|
||||
void ExportEslDevicesRequest::setEslStatus(const std::string& eslStatus)
|
||||
{
|
||||
eslStatus_ = eslStatus;
|
||||
setBodyParameter("EslStatus", eslStatus);
|
||||
}
|
||||
|
||||
int ExportEslDevicesRequest::getToBatteryLevel()const
|
||||
{
|
||||
return toBatteryLevel_;
|
||||
}
|
||||
|
||||
void ExportEslDevicesRequest::setToBatteryLevel(int toBatteryLevel)
|
||||
{
|
||||
toBatteryLevel_ = toBatteryLevel;
|
||||
setBodyParameter("ToBatteryLevel", std::to_string(toBatteryLevel));
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesRequest::getLevelLower()const
|
||||
{
|
||||
return levelLower_;
|
||||
}
|
||||
|
||||
void ExportEslDevicesRequest::setLevelLower(const std::string& levelLower)
|
||||
{
|
||||
levelLower_ = levelLower;
|
||||
setBodyParameter("LevelLower", levelLower);
|
||||
}
|
||||
|
||||
int ExportEslDevicesRequest::getFromBatteryLevel()const
|
||||
{
|
||||
return fromBatteryLevel_;
|
||||
}
|
||||
|
||||
void ExportEslDevicesRequest::setFromBatteryLevel(int fromBatteryLevel)
|
||||
{
|
||||
fromBatteryLevel_ = fromBatteryLevel;
|
||||
setBodyParameter("FromBatteryLevel", std::to_string(fromBatteryLevel));
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesRequest::getLevelOrder()const
|
||||
{
|
||||
return levelOrder_;
|
||||
}
|
||||
|
||||
void ExportEslDevicesRequest::setLevelOrder(const std::string& levelOrder)
|
||||
{
|
||||
levelOrder_ = levelOrder;
|
||||
setBodyParameter("LevelOrder", levelOrder);
|
||||
}
|
||||
|
||||
100
cloudesl/src/model/ExportEslDevicesResult.cc
Normal file
100
cloudesl/src/model/ExportEslDevicesResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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/cloudesl/model/ExportEslDevicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
ExportEslDevicesResult::ExportEslDevicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ExportEslDevicesResult::ExportEslDevicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ExportEslDevicesResult::~ExportEslDevicesResult()
|
||||
{}
|
||||
|
||||
void ExportEslDevicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DownloadAddress"].isNull())
|
||||
downloadAddress_ = value["DownloadAddress"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesResult::getDownloadAddress()const
|
||||
{
|
||||
return downloadAddress_;
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string ExportEslDevicesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ExportEslDevicesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
cloudesl/src/model/GetCompanyTemplatePictureByJobRequest.cc
Normal file
40
cloudesl/src/model/GetCompanyTemplatePictureByJobRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/cloudesl/model/GetCompanyTemplatePictureByJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::GetCompanyTemplatePictureByJobRequest;
|
||||
|
||||
GetCompanyTemplatePictureByJobRequest::GetCompanyTemplatePictureByJobRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "GetCompanyTemplatePictureByJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetCompanyTemplatePictureByJobRequest::~GetCompanyTemplatePictureByJobRequest()
|
||||
{}
|
||||
|
||||
std::string GetCompanyTemplatePictureByJobRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void GetCompanyTemplatePictureByJobRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setBodyParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
121
cloudesl/src/model/GetCompanyTemplatePictureByJobResult.cc
Normal file
121
cloudesl/src/model/GetCompanyTemplatePictureByJobResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* 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/cloudesl/model/GetCompanyTemplatePictureByJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
GetCompanyTemplatePictureByJobResult::GetCompanyTemplatePictureByJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetCompanyTemplatePictureByJobResult::GetCompanyTemplatePictureByJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetCompanyTemplatePictureByJobResult::~GetCompanyTemplatePictureByJobResult()
|
||||
{}
|
||||
|
||||
void GetCompanyTemplatePictureByJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Base64Picture"].isNull())
|
||||
base64Picture_ = value["Base64Picture"].asString();
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["Url"].isNull())
|
||||
url_ = value["Url"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureByJobResult::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureByJobResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureByJobResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureByJobResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureByJobResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureByJobResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureByJobResult::getBase64Picture()const
|
||||
{
|
||||
return base64Picture_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureByJobResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureByJobResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureByJobResult::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
bool GetCompanyTemplatePictureByJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
cloudesl/src/model/GetCompanyTemplatePictureNewRequest.cc
Normal file
40
cloudesl/src/model/GetCompanyTemplatePictureNewRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/cloudesl/model/GetCompanyTemplatePictureNewRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::GetCompanyTemplatePictureNewRequest;
|
||||
|
||||
GetCompanyTemplatePictureNewRequest::GetCompanyTemplatePictureNewRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "GetCompanyTemplatePictureNew")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetCompanyTemplatePictureNewRequest::~GetCompanyTemplatePictureNewRequest()
|
||||
{}
|
||||
|
||||
std::string GetCompanyTemplatePictureNewRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void GetCompanyTemplatePictureNewRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setBodyParameter("Data", data);
|
||||
}
|
||||
|
||||
@@ -14,107 +14,107 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudesl/model/DescribeClientPackageResult.h>
|
||||
#include <alibabacloud/cloudesl/model/GetCompanyTemplatePictureNewResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
DescribeClientPackageResult::DescribeClientPackageResult() :
|
||||
GetCompanyTemplatePictureNewResult::GetCompanyTemplatePictureNewResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeClientPackageResult::DescribeClientPackageResult(const std::string &payload) :
|
||||
GetCompanyTemplatePictureNewResult::GetCompanyTemplatePictureNewResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeClientPackageResult::~DescribeClientPackageResult()
|
||||
GetCompanyTemplatePictureNewResult::~GetCompanyTemplatePictureNewResult()
|
||||
{}
|
||||
|
||||
void DescribeClientPackageResult::parse(const std::string &payload)
|
||||
void GetCompanyTemplatePictureNewResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["UpdateType"].isNull())
|
||||
updateType_ = value["UpdateType"].asString();
|
||||
if(!value["Base64Picture"].isNull())
|
||||
base64Picture_ = value["Base64Picture"].asString();
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["Url"].isNull())
|
||||
url_ = value["Url"].asString();
|
||||
if(!value["Version"].isNull())
|
||||
version_ = value["Version"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeClientPackageResult::getDescription()const
|
||||
std::string GetCompanyTemplatePictureNewResult::getType()const
|
||||
{
|
||||
return description_;
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string DescribeClientPackageResult::getMessage()const
|
||||
std::string GetCompanyTemplatePictureNewResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeClientPackageResult::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
std::string DescribeClientPackageResult::getDynamicCode()const
|
||||
std::string GetCompanyTemplatePictureNewResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeClientPackageResult::getErrorCode()const
|
||||
std::string GetCompanyTemplatePictureNewResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeClientPackageResult::getDynamicMessage()const
|
||||
std::string GetCompanyTemplatePictureNewResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeClientPackageResult::getErrorMessage()const
|
||||
std::string GetCompanyTemplatePictureNewResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeClientPackageResult::getUpdateType()const
|
||||
std::string GetCompanyTemplatePictureNewResult::getBase64Picture()const
|
||||
{
|
||||
return updateType_;
|
||||
return base64Picture_;
|
||||
}
|
||||
|
||||
std::string DescribeClientPackageResult::getCode()const
|
||||
std::string GetCompanyTemplatePictureNewResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string DescribeClientPackageResult::getUrl()const
|
||||
std::string GetCompanyTemplatePictureNewResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureNewResult::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
bool DescribeClientPackageResult::getSuccess()const
|
||||
bool GetCompanyTemplatePictureNewResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
51
cloudesl/src/model/GetCompanyTemplatePictureRequest.cc
Normal file
51
cloudesl/src/model/GetCompanyTemplatePictureRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/cloudesl/model/GetCompanyTemplatePictureRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::GetCompanyTemplatePictureRequest;
|
||||
|
||||
GetCompanyTemplatePictureRequest::GetCompanyTemplatePictureRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "GetCompanyTemplatePicture")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetCompanyTemplatePictureRequest::~GetCompanyTemplatePictureRequest()
|
||||
{}
|
||||
|
||||
std::string GetCompanyTemplatePictureRequest::getExtraParams()const
|
||||
{
|
||||
return extraParams_;
|
||||
}
|
||||
|
||||
void GetCompanyTemplatePictureRequest::setExtraParams(const std::string& extraParams)
|
||||
{
|
||||
extraParams_ = extraParams;
|
||||
setBodyParameter("ExtraParams", extraParams);
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void GetCompanyTemplatePictureRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setBodyParameter("Data", data);
|
||||
}
|
||||
|
||||
100
cloudesl/src/model/GetCompanyTemplatePictureResult.cc
Normal file
100
cloudesl/src/model/GetCompanyTemplatePictureResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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/cloudesl/model/GetCompanyTemplatePictureResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
GetCompanyTemplatePictureResult::GetCompanyTemplatePictureResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetCompanyTemplatePictureResult::GetCompanyTemplatePictureResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetCompanyTemplatePictureResult::~GetCompanyTemplatePictureResult()
|
||||
{}
|
||||
|
||||
void GetCompanyTemplatePictureResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Base64Picture"].isNull())
|
||||
base64Picture_ = value["Base64Picture"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string GetCompanyTemplatePictureResult::getBase64Picture()const
|
||||
{
|
||||
return base64Picture_;
|
||||
}
|
||||
|
||||
bool GetCompanyTemplatePictureResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
cloudesl/src/model/GetItemMaterialRequest.cc
Normal file
40
cloudesl/src/model/GetItemMaterialRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/cloudesl/model/GetItemMaterialRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::GetItemMaterialRequest;
|
||||
|
||||
GetItemMaterialRequest::GetItemMaterialRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "GetItemMaterial")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetItemMaterialRequest::~GetItemMaterialRequest()
|
||||
{}
|
||||
|
||||
std::string GetItemMaterialRequest::getBarCode()const
|
||||
{
|
||||
return barCode_;
|
||||
}
|
||||
|
||||
void GetItemMaterialRequest::setBarCode(const std::string& barCode)
|
||||
{
|
||||
barCode_ = barCode;
|
||||
setBodyParameter("BarCode", barCode);
|
||||
}
|
||||
|
||||
117
cloudesl/src/model/GetItemMaterialResult.cc
Normal file
117
cloudesl/src/model/GetItemMaterialResult.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/cloudesl/model/GetItemMaterialResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
GetItemMaterialResult::GetItemMaterialResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetItemMaterialResult::GetItemMaterialResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetItemMaterialResult::~GetItemMaterialResult()
|
||||
{}
|
||||
|
||||
void GetItemMaterialResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto materialInfoNode = value["MaterialInfo"];
|
||||
if(!materialInfoNode["ItemName"].isNull())
|
||||
materialInfo_.itemName = materialInfoNode["ItemName"].asString();
|
||||
if(!materialInfoNode["BarCode"].isNull())
|
||||
materialInfo_.barCode = materialInfoNode["BarCode"].asString();
|
||||
if(!materialInfoNode["GmtCreate"].isNull())
|
||||
materialInfo_.gmtCreate = materialInfoNode["GmtCreate"].asString();
|
||||
if(!materialInfoNode["MaterialName"].isNull())
|
||||
materialInfo_.materialName = materialInfoNode["MaterialName"].asString();
|
||||
if(!materialInfoNode["MaterialId"].isNull())
|
||||
materialInfo_.materialId = materialInfoNode["MaterialId"].asString();
|
||||
if(!materialInfoNode["MaterialFeatureA"].isNull())
|
||||
materialInfo_.materialFeatureA = materialInfoNode["MaterialFeatureA"].asString();
|
||||
if(!materialInfoNode["MaterialFeatureB"].isNull())
|
||||
materialInfo_.materialFeatureB = materialInfoNode["MaterialFeatureB"].asString();
|
||||
if(!materialInfoNode["MaterialFeatureC"].isNull())
|
||||
materialInfo_.materialFeatureC = materialInfoNode["MaterialFeatureC"].asString();
|
||||
if(!materialInfoNode["MaterialFeatureD"].isNull())
|
||||
materialInfo_.materialFeatureD = materialInfoNode["MaterialFeatureD"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetItemMaterialResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetItemMaterialResult::MaterialInfo GetItemMaterialResult::getMaterialInfo()const
|
||||
{
|
||||
return materialInfo_;
|
||||
}
|
||||
|
||||
std::string GetItemMaterialResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string GetItemMaterialResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetItemMaterialResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string GetItemMaterialResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GetItemMaterialResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetItemMaterialResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
cloudesl/src/model/SyncAddMaterialRequest.cc
Normal file
51
cloudesl/src/model/SyncAddMaterialRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/cloudesl/model/SyncAddMaterialRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::SyncAddMaterialRequest;
|
||||
|
||||
SyncAddMaterialRequest::SyncAddMaterialRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "SyncAddMaterial")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SyncAddMaterialRequest::~SyncAddMaterialRequest()
|
||||
{}
|
||||
|
||||
std::string SyncAddMaterialRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void SyncAddMaterialRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string SyncAddMaterialRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void SyncAddMaterialRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
109
cloudesl/src/model/SyncAddMaterialResult.cc
Normal file
109
cloudesl/src/model/SyncAddMaterialResult.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* 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/cloudesl/model/SyncAddMaterialResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
SyncAddMaterialResult::SyncAddMaterialResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SyncAddMaterialResult::SyncAddMaterialResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SyncAddMaterialResult::~SyncAddMaterialResult()
|
||||
{}
|
||||
|
||||
void SyncAddMaterialResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Success"].isNull())
|
||||
result_.success = resultNode["Success"].asString() == "true";
|
||||
if(!resultNode["Message"].isNull())
|
||||
result_.message = resultNode["Message"].asString();
|
||||
if(!resultNode["DynamicMessage"].isNull())
|
||||
result_.dynamicMessage = resultNode["DynamicMessage"].asString();
|
||||
if(!resultNode["DynamicCode"].isNull())
|
||||
result_.dynamicCode = resultNode["DynamicCode"].asString();
|
||||
if(!resultNode["ErrorCode"].isNull())
|
||||
result_.errorCode = resultNode["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SyncAddMaterialResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SyncAddMaterialResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string SyncAddMaterialResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string SyncAddMaterialResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string SyncAddMaterialResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string SyncAddMaterialResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SyncAddMaterialResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
SyncAddMaterialResult::Result SyncAddMaterialResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
106
cloudesl/src/model/UpdateItemMaterialRequest.cc
Normal file
106
cloudesl/src/model/UpdateItemMaterialRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/cloudesl/model/UpdateItemMaterialRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::UpdateItemMaterialRequest;
|
||||
|
||||
UpdateItemMaterialRequest::UpdateItemMaterialRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "UpdateItemMaterial")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateItemMaterialRequest::~UpdateItemMaterialRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateItemMaterialRequest::getMaterialId()const
|
||||
{
|
||||
return materialId_;
|
||||
}
|
||||
|
||||
void UpdateItemMaterialRequest::setMaterialId(const std::string& materialId)
|
||||
{
|
||||
materialId_ = materialId;
|
||||
setBodyParameter("MaterialId", materialId);
|
||||
}
|
||||
|
||||
std::string UpdateItemMaterialRequest::getBarCode()const
|
||||
{
|
||||
return barCode_;
|
||||
}
|
||||
|
||||
void UpdateItemMaterialRequest::setBarCode(const std::string& barCode)
|
||||
{
|
||||
barCode_ = barCode;
|
||||
setBodyParameter("BarCode", barCode);
|
||||
}
|
||||
|
||||
std::string UpdateItemMaterialRequest::getItemName()const
|
||||
{
|
||||
return itemName_;
|
||||
}
|
||||
|
||||
void UpdateItemMaterialRequest::setItemName(const std::string& itemName)
|
||||
{
|
||||
itemName_ = itemName;
|
||||
setBodyParameter("ItemName", itemName);
|
||||
}
|
||||
|
||||
std::string UpdateItemMaterialRequest::getMaterialFeatureA()const
|
||||
{
|
||||
return materialFeatureA_;
|
||||
}
|
||||
|
||||
void UpdateItemMaterialRequest::setMaterialFeatureA(const std::string& materialFeatureA)
|
||||
{
|
||||
materialFeatureA_ = materialFeatureA;
|
||||
setBodyParameter("MaterialFeatureA", materialFeatureA);
|
||||
}
|
||||
|
||||
std::string UpdateItemMaterialRequest::getMaterialFeatureB()const
|
||||
{
|
||||
return materialFeatureB_;
|
||||
}
|
||||
|
||||
void UpdateItemMaterialRequest::setMaterialFeatureB(const std::string& materialFeatureB)
|
||||
{
|
||||
materialFeatureB_ = materialFeatureB;
|
||||
setBodyParameter("MaterialFeatureB", materialFeatureB);
|
||||
}
|
||||
|
||||
std::string UpdateItemMaterialRequest::getMaterialFeatureC()const
|
||||
{
|
||||
return materialFeatureC_;
|
||||
}
|
||||
|
||||
void UpdateItemMaterialRequest::setMaterialFeatureC(const std::string& materialFeatureC)
|
||||
{
|
||||
materialFeatureC_ = materialFeatureC;
|
||||
setBodyParameter("MaterialFeatureC", materialFeatureC);
|
||||
}
|
||||
|
||||
std::string UpdateItemMaterialRequest::getMaterialFeatureD()const
|
||||
{
|
||||
return materialFeatureD_;
|
||||
}
|
||||
|
||||
void UpdateItemMaterialRequest::setMaterialFeatureD(const std::string& materialFeatureD)
|
||||
{
|
||||
materialFeatureD_ = materialFeatureD;
|
||||
setBodyParameter("MaterialFeatureD", materialFeatureD);
|
||||
}
|
||||
|
||||
93
cloudesl/src/model/UpdateItemMaterialResult.cc
Normal file
93
cloudesl/src/model/UpdateItemMaterialResult.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/cloudesl/model/UpdateItemMaterialResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
UpdateItemMaterialResult::UpdateItemMaterialResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateItemMaterialResult::UpdateItemMaterialResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateItemMaterialResult::~UpdateItemMaterialResult()
|
||||
{}
|
||||
|
||||
void UpdateItemMaterialResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateItemMaterialResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateItemMaterialResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string UpdateItemMaterialResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string UpdateItemMaterialResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string UpdateItemMaterialResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string UpdateItemMaterialResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateItemMaterialResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
cloudesl/src/model/UpdateNotificationConfigRequest.cc
Normal file
84
cloudesl/src/model/UpdateNotificationConfigRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/cloudesl/model/UpdateNotificationConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::UpdateNotificationConfigRequest;
|
||||
|
||||
UpdateNotificationConfigRequest::UpdateNotificationConfigRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "UpdateNotificationConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateNotificationConfigRequest::~UpdateNotificationConfigRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateNotificationConfigRequest::getEndpoint()const
|
||||
{
|
||||
return endpoint_;
|
||||
}
|
||||
|
||||
void UpdateNotificationConfigRequest::setEndpoint(const std::string& endpoint)
|
||||
{
|
||||
endpoint_ = endpoint;
|
||||
setBodyParameter("Endpoint", endpoint);
|
||||
}
|
||||
|
||||
bool UpdateNotificationConfigRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void UpdateNotificationConfigRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setBodyParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateNotificationConfigRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void UpdateNotificationConfigRequest::setTag(const std::string& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
setBodyParameter("Tag", tag);
|
||||
}
|
||||
|
||||
std::string UpdateNotificationConfigRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void UpdateNotificationConfigRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setBodyParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string UpdateNotificationConfigRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void UpdateNotificationConfigRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setBodyParameter("Topic", topic);
|
||||
}
|
||||
|
||||
93
cloudesl/src/model/UpdateNotificationConfigResult.cc
Normal file
93
cloudesl/src/model/UpdateNotificationConfigResult.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/cloudesl/model/UpdateNotificationConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
UpdateNotificationConfigResult::UpdateNotificationConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateNotificationConfigResult::UpdateNotificationConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateNotificationConfigResult::~UpdateNotificationConfigResult()
|
||||
{}
|
||||
|
||||
void UpdateNotificationConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateNotificationConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateNotificationConfigResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string UpdateNotificationConfigResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string UpdateNotificationConfigResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string UpdateNotificationConfigResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string UpdateNotificationConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateNotificationConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,17 @@ void UpdateStoreConfigRequest::setStoreId(const std::string& storeId)
|
||||
setBodyParameter("StoreId", storeId);
|
||||
}
|
||||
|
||||
std::string UpdateStoreConfigRequest::getSubscribeContents()const
|
||||
{
|
||||
return subscribeContents_;
|
||||
}
|
||||
|
||||
void UpdateStoreConfigRequest::setSubscribeContents(const std::string& subscribeContents)
|
||||
{
|
||||
subscribeContents_ = subscribeContents;
|
||||
setBodyParameter("SubscribeContents", subscribeContents);
|
||||
}
|
||||
|
||||
bool UpdateStoreConfigRequest::getEnableNotification()const
|
||||
{
|
||||
return enableNotification_;
|
||||
|
||||
@@ -41,18 +41,18 @@ void UpdateStoreConfigResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
73
cloudesl/src/model/VerifyNotificationConfigRequest.cc
Normal file
73
cloudesl/src/model/VerifyNotificationConfigRequest.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/cloudesl/model/VerifyNotificationConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudesl::Model::VerifyNotificationConfigRequest;
|
||||
|
||||
VerifyNotificationConfigRequest::VerifyNotificationConfigRequest() :
|
||||
RpcServiceRequest("cloudesl", "2020-02-01", "VerifyNotificationConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
VerifyNotificationConfigRequest::~VerifyNotificationConfigRequest()
|
||||
{}
|
||||
|
||||
std::string VerifyNotificationConfigRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void VerifyNotificationConfigRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setBodyParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string VerifyNotificationConfigRequest::getEndpoint()const
|
||||
{
|
||||
return endpoint_;
|
||||
}
|
||||
|
||||
void VerifyNotificationConfigRequest::setEndpoint(const std::string& endpoint)
|
||||
{
|
||||
endpoint_ = endpoint;
|
||||
setBodyParameter("Endpoint", endpoint);
|
||||
}
|
||||
|
||||
std::string VerifyNotificationConfigRequest::getTopic()const
|
||||
{
|
||||
return topic_;
|
||||
}
|
||||
|
||||
void VerifyNotificationConfigRequest::setTopic(const std::string& topic)
|
||||
{
|
||||
topic_ = topic;
|
||||
setBodyParameter("Topic", topic);
|
||||
}
|
||||
|
||||
std::string VerifyNotificationConfigRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void VerifyNotificationConfigRequest::setTag(const std::string& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
setBodyParameter("Tag", tag);
|
||||
}
|
||||
|
||||
114
cloudesl/src/model/VerifyNotificationConfigResult.cc
Normal file
114
cloudesl/src/model/VerifyNotificationConfigResult.cc
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* 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/cloudesl/model/VerifyNotificationConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudesl;
|
||||
using namespace AlibabaCloud::Cloudesl::Model;
|
||||
|
||||
VerifyNotificationConfigResult::VerifyNotificationConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
VerifyNotificationConfigResult::VerifyNotificationConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
VerifyNotificationConfigResult::~VerifyNotificationConfigResult()
|
||||
{}
|
||||
|
||||
void VerifyNotificationConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
if(!value["SendTime"].isNull())
|
||||
sendTime_ = value["SendTime"].asString();
|
||||
if(!value["ExceptionMessage"].isNull())
|
||||
exceptionMessage_ = value["ExceptionMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string VerifyNotificationConfigResult::getSendTime()const
|
||||
{
|
||||
return sendTime_;
|
||||
}
|
||||
|
||||
std::string VerifyNotificationConfigResult::getExceptionMessage()const
|
||||
{
|
||||
return exceptionMessage_;
|
||||
}
|
||||
|
||||
std::string VerifyNotificationConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string VerifyNotificationConfigResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string VerifyNotificationConfigResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string VerifyNotificationConfigResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string VerifyNotificationConfigResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string VerifyNotificationConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool VerifyNotificationConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
bool VerifyNotificationConfigResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user