LUBANCLOUD SDK Auto Released By benxiang.hhq,Version:1.30.0
Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
127
lubancloud/src/model/BuyOriginPicturesRequest.cc
Normal file
127
lubancloud/src/model/BuyOriginPicturesRequest.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/lubancloud/model/BuyOriginPicturesRequest.h>
|
||||
|
||||
using AlibabaCloud::Lubancloud::Model::BuyOriginPicturesRequest;
|
||||
|
||||
BuyOriginPicturesRequest::BuyOriginPicturesRequest() :
|
||||
RpcServiceRequest("lubancloud", "2018-05-09", "BuyOriginPictures")
|
||||
{}
|
||||
|
||||
BuyOriginPicturesRequest::~BuyOriginPicturesRequest()
|
||||
{}
|
||||
|
||||
bool BuyOriginPicturesRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void BuyOriginPicturesRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string BuyOriginPicturesRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void BuyOriginPicturesRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string BuyOriginPicturesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void BuyOriginPicturesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long BuyOriginPicturesRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void BuyOriginPicturesRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string BuyOriginPicturesRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void BuyOriginPicturesRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string BuyOriginPicturesRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void BuyOriginPicturesRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool BuyOriginPicturesRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void BuyOriginPicturesRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
long BuyOriginPicturesRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void BuyOriginPicturesRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::vector<long> BuyOriginPicturesRequest::getPictureId()const
|
||||
{
|
||||
return pictureId_;
|
||||
}
|
||||
|
||||
void BuyOriginPicturesRequest::setPictureId(const std::vector<long>& pictureId)
|
||||
{
|
||||
pictureId_ = pictureId;
|
||||
for(int i = 0; i!= pictureId.size(); i++)
|
||||
setParameter("PictureId."+ std::to_string(i), std::to_string(pictureId.at(i)));
|
||||
}
|
||||
|
||||
60
lubancloud/src/model/BuyOriginPicturesResult.cc
Normal file
60
lubancloud/src/model/BuyOriginPicturesResult.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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/lubancloud/model/BuyOriginPicturesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Lubancloud;
|
||||
using namespace AlibabaCloud::Lubancloud::Model;
|
||||
|
||||
BuyOriginPicturesResult::BuyOriginPicturesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BuyOriginPicturesResult::BuyOriginPicturesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BuyOriginPicturesResult::~BuyOriginPicturesResult()
|
||||
{}
|
||||
|
||||
void BuyOriginPicturesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPictures = value["Pictures"]["Picture"];
|
||||
for (auto value : allPictures)
|
||||
{
|
||||
Picture picturesObject;
|
||||
if(!value["Id"].isNull())
|
||||
picturesObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["OriginalPictureUrl"].isNull())
|
||||
picturesObject.originalPictureUrl = value["OriginalPictureUrl"].asString();
|
||||
pictures_.push_back(picturesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<BuyOriginPicturesResult::Picture> BuyOriginPicturesResult::getPictures()const
|
||||
{
|
||||
return pictures_;
|
||||
}
|
||||
|
||||
38
lubancloud/src/model/GetStylesRequest.cc
Normal file
38
lubancloud/src/model/GetStylesRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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/lubancloud/model/GetStylesRequest.h>
|
||||
|
||||
using AlibabaCloud::Lubancloud::Model::GetStylesRequest;
|
||||
|
||||
GetStylesRequest::GetStylesRequest() :
|
||||
RpcServiceRequest("lubancloud", "2018-05-09", "GetStyles")
|
||||
{}
|
||||
|
||||
GetStylesRequest::~GetStylesRequest()
|
||||
{}
|
||||
|
||||
std::string GetStylesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetStylesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
78
lubancloud/src/model/GetStylesResult.cc
Normal file
78
lubancloud/src/model/GetStylesResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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/lubancloud/model/GetStylesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Lubancloud;
|
||||
using namespace AlibabaCloud::Lubancloud::Model;
|
||||
|
||||
GetStylesResult::GetStylesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetStylesResult::GetStylesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetStylesResult::~GetStylesResult()
|
||||
{}
|
||||
|
||||
void GetStylesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStyles = value["Styles"]["Style"];
|
||||
for (auto value : allStyles)
|
||||
{
|
||||
Style stylesObject;
|
||||
if(!value["Id"].isNull())
|
||||
stylesObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
stylesObject.name = value["Name"].asString();
|
||||
if(!value["ParentId"].isNull())
|
||||
stylesObject.parentId = std::stol(value["ParentId"].asString());
|
||||
if(!value["PreviewUrl"].isNull())
|
||||
stylesObject.previewUrl = value["PreviewUrl"].asString();
|
||||
auto allSubStyles = value["SubStyles"]["SubStyle"];
|
||||
for (auto value : allSubStyles)
|
||||
{
|
||||
Style::SubStyle subStylesObject;
|
||||
if(!value["Id"].isNull())
|
||||
subStylesObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
subStylesObject.name = value["Name"].asString();
|
||||
if(!value["ParentId"].isNull())
|
||||
subStylesObject.parentId = std::stol(value["ParentId"].asString());
|
||||
if(!value["PreviewUrl"].isNull())
|
||||
subStylesObject.previewUrl = value["PreviewUrl"].asString();
|
||||
stylesObject.subStyles.push_back(subStylesObject);
|
||||
}
|
||||
styles_.push_back(stylesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetStylesResult::Style> GetStylesResult::getStyles()const
|
||||
{
|
||||
return styles_;
|
||||
}
|
||||
|
||||
126
lubancloud/src/model/QueryCutoutTaskResultRequest.cc
Normal file
126
lubancloud/src/model/QueryCutoutTaskResultRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/lubancloud/model/QueryCutoutTaskResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Lubancloud::Model::QueryCutoutTaskResultRequest;
|
||||
|
||||
QueryCutoutTaskResultRequest::QueryCutoutTaskResultRequest() :
|
||||
RpcServiceRequest("lubancloud", "2018-05-09", "QueryCutoutTaskResult")
|
||||
{}
|
||||
|
||||
QueryCutoutTaskResultRequest::~QueryCutoutTaskResultRequest()
|
||||
{}
|
||||
|
||||
bool QueryCutoutTaskResultRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void QueryCutoutTaskResultRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string QueryCutoutTaskResultRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void QueryCutoutTaskResultRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string QueryCutoutTaskResultRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void QueryCutoutTaskResultRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string QueryCutoutTaskResultRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void QueryCutoutTaskResultRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long QueryCutoutTaskResultRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void QueryCutoutTaskResultRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string QueryCutoutTaskResultRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void QueryCutoutTaskResultRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool QueryCutoutTaskResultRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void QueryCutoutTaskResultRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
long QueryCutoutTaskResultRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void QueryCutoutTaskResultRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
long QueryCutoutTaskResultRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void QueryCutoutTaskResultRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
105
lubancloud/src/model/QueryCutoutTaskResultResult.cc
Normal file
105
lubancloud/src/model/QueryCutoutTaskResultResult.cc
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/lubancloud/model/QueryCutoutTaskResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Lubancloud;
|
||||
using namespace AlibabaCloud::Lubancloud::Model;
|
||||
|
||||
QueryCutoutTaskResultResult::QueryCutoutTaskResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryCutoutTaskResultResult::QueryCutoutTaskResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryCutoutTaskResultResult::~QueryCutoutTaskResultResult()
|
||||
{}
|
||||
|
||||
void QueryCutoutTaskResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPictures = value["Pictures"]["Picture"];
|
||||
for (auto value : allPictures)
|
||||
{
|
||||
Picture picturesObject;
|
||||
if(!value["OriginUrl"].isNull())
|
||||
picturesObject.originUrl = value["OriginUrl"].asString();
|
||||
if(!value["CutoutUrl"].isNull())
|
||||
picturesObject.cutoutUrl = value["CutoutUrl"].asString();
|
||||
if(!value["Width"].isNull())
|
||||
picturesObject.width = std::stoi(value["Width"].asString());
|
||||
if(!value["Height"].isNull())
|
||||
picturesObject.height = std::stoi(value["Height"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
picturesObject.status = std::stoi(value["Status"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
picturesObject.errorCode = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
picturesObject.errorMessage = value["ErrorMessage"].asString();
|
||||
pictures_.push_back(picturesObject);
|
||||
}
|
||||
if(!value["TotalSize"].isNull())
|
||||
totalSize_ = std::stoi(value["TotalSize"].asString());
|
||||
if(!value["WaitSize"].isNull())
|
||||
waitSize_ = std::stoi(value["WaitSize"].asString());
|
||||
if(!value["SuccessSize"].isNull())
|
||||
successSize_ = std::stoi(value["SuccessSize"].asString());
|
||||
if(!value["FailSize"].isNull())
|
||||
failSize_ = std::stoi(value["FailSize"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = std::stoi(value["Status"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<QueryCutoutTaskResultResult::Picture> QueryCutoutTaskResultResult::getPictures()const
|
||||
{
|
||||
return pictures_;
|
||||
}
|
||||
|
||||
int QueryCutoutTaskResultResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
int QueryCutoutTaskResultResult::getSuccessSize()const
|
||||
{
|
||||
return successSize_;
|
||||
}
|
||||
|
||||
int QueryCutoutTaskResultResult::getFailSize()const
|
||||
{
|
||||
return failSize_;
|
||||
}
|
||||
|
||||
int QueryCutoutTaskResultResult::getTotalSize()const
|
||||
{
|
||||
return totalSize_;
|
||||
}
|
||||
|
||||
int QueryCutoutTaskResultResult::getWaitSize()const
|
||||
{
|
||||
return waitSize_;
|
||||
}
|
||||
|
||||
126
lubancloud/src/model/QueryGenerateTaskResultRequest.cc
Normal file
126
lubancloud/src/model/QueryGenerateTaskResultRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/lubancloud/model/QueryGenerateTaskResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Lubancloud::Model::QueryGenerateTaskResultRequest;
|
||||
|
||||
QueryGenerateTaskResultRequest::QueryGenerateTaskResultRequest() :
|
||||
RpcServiceRequest("lubancloud", "2018-05-09", "QueryGenerateTaskResult")
|
||||
{}
|
||||
|
||||
QueryGenerateTaskResultRequest::~QueryGenerateTaskResultRequest()
|
||||
{}
|
||||
|
||||
bool QueryGenerateTaskResultRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void QueryGenerateTaskResultRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string QueryGenerateTaskResultRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void QueryGenerateTaskResultRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string QueryGenerateTaskResultRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void QueryGenerateTaskResultRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string QueryGenerateTaskResultRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void QueryGenerateTaskResultRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
long QueryGenerateTaskResultRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void QueryGenerateTaskResultRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string QueryGenerateTaskResultRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void QueryGenerateTaskResultRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool QueryGenerateTaskResultRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void QueryGenerateTaskResultRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
long QueryGenerateTaskResultRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void QueryGenerateTaskResultRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
long QueryGenerateTaskResultRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void QueryGenerateTaskResultRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
103
lubancloud/src/model/QueryGenerateTaskResultResult.cc
Normal file
103
lubancloud/src/model/QueryGenerateTaskResultResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/lubancloud/model/QueryGenerateTaskResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Lubancloud;
|
||||
using namespace AlibabaCloud::Lubancloud::Model;
|
||||
|
||||
QueryGenerateTaskResultResult::QueryGenerateTaskResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryGenerateTaskResultResult::QueryGenerateTaskResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryGenerateTaskResultResult::~QueryGenerateTaskResultResult()
|
||||
{}
|
||||
|
||||
void QueryGenerateTaskResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPictures = value["Pictures"]["Picture"];
|
||||
for (auto value : allPictures)
|
||||
{
|
||||
Picture picturesObject;
|
||||
if(!value["Id"].isNull())
|
||||
picturesObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
picturesObject.name = value["Name"].asString();
|
||||
if(!value["PreviewUrl"].isNull())
|
||||
picturesObject.previewUrl = value["PreviewUrl"].asString();
|
||||
if(!value["Width"].isNull())
|
||||
picturesObject.width = std::stoi(value["Width"].asString());
|
||||
if(!value["Height"].isNull())
|
||||
picturesObject.height = std::stoi(value["Height"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
picturesObject.status = std::stoi(value["Status"].asString());
|
||||
pictures_.push_back(picturesObject);
|
||||
}
|
||||
if(!value["TotalSize"].isNull())
|
||||
totalSize_ = std::stoi(value["TotalSize"].asString());
|
||||
if(!value["WaitSize"].isNull())
|
||||
waitSize_ = std::stoi(value["WaitSize"].asString());
|
||||
if(!value["SuccessSize"].isNull())
|
||||
successSize_ = std::stoi(value["SuccessSize"].asString());
|
||||
if(!value["FailSize"].isNull())
|
||||
failSize_ = std::stoi(value["FailSize"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = std::stoi(value["Status"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<QueryGenerateTaskResultResult::Picture> QueryGenerateTaskResultResult::getPictures()const
|
||||
{
|
||||
return pictures_;
|
||||
}
|
||||
|
||||
int QueryGenerateTaskResultResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
int QueryGenerateTaskResultResult::getSuccessSize()const
|
||||
{
|
||||
return successSize_;
|
||||
}
|
||||
|
||||
int QueryGenerateTaskResultResult::getFailSize()const
|
||||
{
|
||||
return failSize_;
|
||||
}
|
||||
|
||||
int QueryGenerateTaskResultResult::getTotalSize()const
|
||||
{
|
||||
return totalSize_;
|
||||
}
|
||||
|
||||
int QueryGenerateTaskResultResult::getWaitSize()const
|
||||
{
|
||||
return waitSize_;
|
||||
}
|
||||
|
||||
127
lubancloud/src/model/SubmitCutoutTaskRequest.cc
Normal file
127
lubancloud/src/model/SubmitCutoutTaskRequest.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/lubancloud/model/SubmitCutoutTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Lubancloud::Model::SubmitCutoutTaskRequest;
|
||||
|
||||
SubmitCutoutTaskRequest::SubmitCutoutTaskRequest() :
|
||||
RpcServiceRequest("lubancloud", "2018-05-09", "SubmitCutoutTask")
|
||||
{}
|
||||
|
||||
SubmitCutoutTaskRequest::~SubmitCutoutTaskRequest()
|
||||
{}
|
||||
|
||||
bool SubmitCutoutTaskRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void SubmitCutoutTaskRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string SubmitCutoutTaskRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void SubmitCutoutTaskRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string SubmitCutoutTaskRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SubmitCutoutTaskRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long SubmitCutoutTaskRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void SubmitCutoutTaskRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string SubmitCutoutTaskRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void SubmitCutoutTaskRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string SubmitCutoutTaskRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void SubmitCutoutTaskRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool SubmitCutoutTaskRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void SubmitCutoutTaskRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
long SubmitCutoutTaskRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void SubmitCutoutTaskRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::vector<std::string> SubmitCutoutTaskRequest::getPictureUrl()const
|
||||
{
|
||||
return pictureUrl_;
|
||||
}
|
||||
|
||||
void SubmitCutoutTaskRequest::setPictureUrl(const std::vector<std::string>& pictureUrl)
|
||||
{
|
||||
pictureUrl_ = pictureUrl;
|
||||
for(int i = 0; i!= pictureUrl.size(); i++)
|
||||
setParameter("PictureUrl."+ std::to_string(i), pictureUrl.at(i));
|
||||
}
|
||||
|
||||
52
lubancloud/src/model/SubmitCutoutTaskResult.cc
Normal file
52
lubancloud/src/model/SubmitCutoutTaskResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/lubancloud/model/SubmitCutoutTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Lubancloud;
|
||||
using namespace AlibabaCloud::Lubancloud::Model;
|
||||
|
||||
SubmitCutoutTaskResult::SubmitCutoutTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitCutoutTaskResult::SubmitCutoutTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitCutoutTaskResult::~SubmitCutoutTaskResult()
|
||||
{}
|
||||
|
||||
void SubmitCutoutTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long SubmitCutoutTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
217
lubancloud/src/model/SubmitGenerateTaskRequest.cc
Normal file
217
lubancloud/src/model/SubmitGenerateTaskRequest.cc
Normal file
@@ -0,0 +1,217 @@
|
||||
/*
|
||||
* 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/lubancloud/model/SubmitGenerateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Lubancloud::Model::SubmitGenerateTaskRequest;
|
||||
|
||||
SubmitGenerateTaskRequest::SubmitGenerateTaskRequest() :
|
||||
RpcServiceRequest("lubancloud", "2018-05-09", "SubmitGenerateTask")
|
||||
{}
|
||||
|
||||
SubmitGenerateTaskRequest::~SubmitGenerateTaskRequest()
|
||||
{}
|
||||
|
||||
std::string SubmitGenerateTaskRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
int SubmitGenerateTaskRequest::getImageCount()const
|
||||
{
|
||||
return imageCount_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setImageCount(int imageCount)
|
||||
{
|
||||
imageCount_ = imageCount;
|
||||
setParameter("ImageCount", std::to_string(imageCount));
|
||||
}
|
||||
|
||||
long SubmitGenerateTaskRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string SubmitGenerateTaskRequest::getActionPoint()const
|
||||
{
|
||||
return actionPoint_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setActionPoint(const std::string& actionPoint)
|
||||
{
|
||||
actionPoint_ = actionPoint;
|
||||
setParameter("ActionPoint", actionPoint);
|
||||
}
|
||||
|
||||
std::string SubmitGenerateTaskRequest::getLogoImagePath()const
|
||||
{
|
||||
return logoImagePath_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setLogoImagePath(const std::string& logoImagePath)
|
||||
{
|
||||
logoImagePath_ = logoImagePath;
|
||||
setParameter("LogoImagePath", logoImagePath);
|
||||
}
|
||||
|
||||
int SubmitGenerateTaskRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setType(int type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", std::to_string(type));
|
||||
}
|
||||
|
||||
std::string SubmitGenerateTaskRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool SubmitGenerateTaskRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool SubmitGenerateTaskRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::vector<std::string> SubmitGenerateTaskRequest::getMajorImagePath()const
|
||||
{
|
||||
return majorImagePath_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setMajorImagePath(const std::vector<std::string>& majorImagePath)
|
||||
{
|
||||
majorImagePath_ = majorImagePath;
|
||||
for(int i = 0; i!= majorImagePath.size(); i++)
|
||||
setParameter("MajorImagePath."+ std::to_string(i), majorImagePath.at(i));
|
||||
}
|
||||
|
||||
std::string SubmitGenerateTaskRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SubmitGenerateTaskRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
int SubmitGenerateTaskRequest::getWidth()const
|
||||
{
|
||||
return width_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setWidth(int width)
|
||||
{
|
||||
width_ = width;
|
||||
setParameter("Width", std::to_string(width));
|
||||
}
|
||||
|
||||
std::vector<std::string> SubmitGenerateTaskRequest::getCopyWrite()const
|
||||
{
|
||||
return copyWrite_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setCopyWrite(const std::vector<std::string>& copyWrite)
|
||||
{
|
||||
copyWrite_ = copyWrite;
|
||||
for(int i = 0; i!= copyWrite.size(); i++)
|
||||
setParameter("CopyWrite."+ std::to_string(i), copyWrite.at(i));
|
||||
}
|
||||
|
||||
std::vector<long> SubmitGenerateTaskRequest::getPropertyId()const
|
||||
{
|
||||
return propertyId_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setPropertyId(const std::vector<long>& propertyId)
|
||||
{
|
||||
propertyId_ = propertyId;
|
||||
for(int i = 0; i!= propertyId.size(); i++)
|
||||
setParameter("PropertyId."+ std::to_string(i), std::to_string(propertyId.at(i)));
|
||||
}
|
||||
|
||||
long SubmitGenerateTaskRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
int SubmitGenerateTaskRequest::getHeight()const
|
||||
{
|
||||
return height_;
|
||||
}
|
||||
|
||||
void SubmitGenerateTaskRequest::setHeight(int height)
|
||||
{
|
||||
height_ = height;
|
||||
setParameter("Height", std::to_string(height));
|
||||
}
|
||||
|
||||
52
lubancloud/src/model/SubmitGenerateTaskResult.cc
Normal file
52
lubancloud/src/model/SubmitGenerateTaskResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/lubancloud/model/SubmitGenerateTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Lubancloud;
|
||||
using namespace AlibabaCloud::Lubancloud::Model;
|
||||
|
||||
SubmitGenerateTaskResult::SubmitGenerateTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitGenerateTaskResult::SubmitGenerateTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitGenerateTaskResult::~SubmitGenerateTaskResult()
|
||||
{}
|
||||
|
||||
void SubmitGenerateTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long SubmitGenerateTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user