Add new api.
This commit is contained in:
62
qualitycheck/src/model/AddBusinessCategoryRequest.cc
Normal file
62
qualitycheck/src/model/AddBusinessCategoryRequest.cc
Normal file
@@ -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/qualitycheck/model/AddBusinessCategoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::AddBusinessCategoryRequest;
|
||||
|
||||
AddBusinessCategoryRequest::AddBusinessCategoryRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "AddBusinessCategory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddBusinessCategoryRequest::~AddBusinessCategoryRequest()
|
||||
{}
|
||||
|
||||
long AddBusinessCategoryRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddBusinessCategoryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddBusinessCategoryRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void AddBusinessCategoryRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string AddBusinessCategoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddBusinessCategoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
qualitycheck/src/model/AddBusinessCategoryResult.cc
Normal file
72
qualitycheck/src/model/AddBusinessCategoryResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/AddBusinessCategoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
AddBusinessCategoryResult::AddBusinessCategoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddBusinessCategoryResult::AddBusinessCategoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddBusinessCategoryResult::~AddBusinessCategoryResult()
|
||||
{}
|
||||
|
||||
void AddBusinessCategoryResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddBusinessCategoryResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AddBusinessCategoryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AddBusinessCategoryResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddBusinessCategoryResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/AddRuleCategoryRequest.cc
Normal file
62
qualitycheck/src/model/AddRuleCategoryRequest.cc
Normal file
@@ -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/qualitycheck/model/AddRuleCategoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::AddRuleCategoryRequest;
|
||||
|
||||
AddRuleCategoryRequest::AddRuleCategoryRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "AddRuleCategory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddRuleCategoryRequest::~AddRuleCategoryRequest()
|
||||
{}
|
||||
|
||||
long AddRuleCategoryRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddRuleCategoryRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void AddRuleCategoryRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string AddRuleCategoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddRuleCategoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
73
qualitycheck/src/model/AddRuleCategoryResult.cc
Normal file
73
qualitycheck/src/model/AddRuleCategoryResult.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/qualitycheck/model/AddRuleCategoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
AddRuleCategoryResult::AddRuleCategoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddRuleCategoryResult::AddRuleCategoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddRuleCategoryResult::~AddRuleCategoryResult()
|
||||
{}
|
||||
|
||||
void AddRuleCategoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Select"].isNull())
|
||||
data_.select = dataNode["Select"].asString() == "true";
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddRuleCategoryResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AddRuleCategoryResult::Data AddRuleCategoryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AddRuleCategoryResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddRuleCategoryResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/AddThesaurusForApiRequest.cc
Normal file
62
qualitycheck/src/model/AddThesaurusForApiRequest.cc
Normal file
@@ -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/qualitycheck/model/AddThesaurusForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::AddThesaurusForApiRequest;
|
||||
|
||||
AddThesaurusForApiRequest::AddThesaurusForApiRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "AddThesaurusForApi")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddThesaurusForApiRequest::~AddThesaurusForApiRequest()
|
||||
{}
|
||||
|
||||
long AddThesaurusForApiRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddThesaurusForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void AddThesaurusForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string AddThesaurusForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddThesaurusForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
qualitycheck/src/model/AddThesaurusForApiResult.cc
Normal file
72
qualitycheck/src/model/AddThesaurusForApiResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/AddThesaurusForApiResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
AddThesaurusForApiResult::AddThesaurusForApiResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddThesaurusForApiResult::AddThesaurusForApiResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddThesaurusForApiResult::~AddThesaurusForApiResult()
|
||||
{}
|
||||
|
||||
void AddThesaurusForApiResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string AddThesaurusForApiResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long AddThesaurusForApiResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AddThesaurusForApiResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddThesaurusForApiResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/AssignReviewerRequest.cc
Normal file
62
qualitycheck/src/model/AssignReviewerRequest.cc
Normal file
@@ -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/qualitycheck/model/AssignReviewerRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::AssignReviewerRequest;
|
||||
|
||||
AssignReviewerRequest::AssignReviewerRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "AssignReviewer")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AssignReviewerRequest::~AssignReviewerRequest()
|
||||
{}
|
||||
|
||||
long AssignReviewerRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AssignReviewerRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AssignReviewerRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void AssignReviewerRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string AssignReviewerRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AssignReviewerRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
65
qualitycheck/src/model/AssignReviewerResult.cc
Normal file
65
qualitycheck/src/model/AssignReviewerResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/AssignReviewerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
AssignReviewerResult::AssignReviewerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AssignReviewerResult::AssignReviewerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AssignReviewerResult::~AssignReviewerResult()
|
||||
{}
|
||||
|
||||
void AssignReviewerResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AssignReviewerResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AssignReviewerResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AssignReviewerResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/CloseServiceRequest.cc
Normal file
62
qualitycheck/src/model/CloseServiceRequest.cc
Normal file
@@ -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/qualitycheck/model/CloseServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::CloseServiceRequest;
|
||||
|
||||
CloseServiceRequest::CloseServiceRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "CloseService")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CloseServiceRequest::~CloseServiceRequest()
|
||||
{}
|
||||
|
||||
long CloseServiceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CloseServiceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CloseServiceRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void CloseServiceRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string CloseServiceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CloseServiceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
65
qualitycheck/src/model/CloseServiceResult.cc
Normal file
65
qualitycheck/src/model/CloseServiceResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/CloseServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
CloseServiceResult::CloseServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CloseServiceResult::CloseServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CloseServiceResult::~CloseServiceResult()
|
||||
{}
|
||||
|
||||
void CloseServiceResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CloseServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CloseServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CloseServiceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/CreateAsrVocabRequest.cc
Normal file
62
qualitycheck/src/model/CreateAsrVocabRequest.cc
Normal file
@@ -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/qualitycheck/model/CreateAsrVocabRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::CreateAsrVocabRequest;
|
||||
|
||||
CreateAsrVocabRequest::CreateAsrVocabRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "CreateAsrVocab")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAsrVocabRequest::~CreateAsrVocabRequest()
|
||||
{}
|
||||
|
||||
long CreateAsrVocabRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateAsrVocabRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateAsrVocabRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void CreateAsrVocabRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string CreateAsrVocabRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateAsrVocabRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
qualitycheck/src/model/CreateAsrVocabResult.cc
Normal file
72
qualitycheck/src/model/CreateAsrVocabResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/CreateAsrVocabResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
CreateAsrVocabResult::CreateAsrVocabResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAsrVocabResult::CreateAsrVocabResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAsrVocabResult::~CreateAsrVocabResult()
|
||||
{}
|
||||
|
||||
void CreateAsrVocabResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAsrVocabResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateAsrVocabResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateAsrVocabResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateAsrVocabResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/CreateSkillGroupConfigRequest.cc
Normal file
62
qualitycheck/src/model/CreateSkillGroupConfigRequest.cc
Normal file
@@ -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/qualitycheck/model/CreateSkillGroupConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::CreateSkillGroupConfigRequest;
|
||||
|
||||
CreateSkillGroupConfigRequest::CreateSkillGroupConfigRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "CreateSkillGroupConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSkillGroupConfigRequest::~CreateSkillGroupConfigRequest()
|
||||
{}
|
||||
|
||||
long CreateSkillGroupConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupConfigRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupConfigRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
qualitycheck/src/model/CreateSkillGroupConfigResult.cc
Normal file
72
qualitycheck/src/model/CreateSkillGroupConfigResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/CreateSkillGroupConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
CreateSkillGroupConfigResult::CreateSkillGroupConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSkillGroupConfigResult::CreateSkillGroupConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSkillGroupConfigResult::~CreateSkillGroupConfigResult()
|
||||
{}
|
||||
|
||||
void CreateSkillGroupConfigResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long CreateSkillGroupConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateSkillGroupConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/CreateTaskAssignRuleRequest.cc
Normal file
62
qualitycheck/src/model/CreateTaskAssignRuleRequest.cc
Normal file
@@ -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/qualitycheck/model/CreateTaskAssignRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::CreateTaskAssignRuleRequest;
|
||||
|
||||
CreateTaskAssignRuleRequest::CreateTaskAssignRuleRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "CreateTaskAssignRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTaskAssignRuleRequest::~CreateTaskAssignRuleRequest()
|
||||
{}
|
||||
|
||||
long CreateTaskAssignRuleRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateTaskAssignRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateTaskAssignRuleRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void CreateTaskAssignRuleRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string CreateTaskAssignRuleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateTaskAssignRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
qualitycheck/src/model/CreateTaskAssignRuleResult.cc
Normal file
72
qualitycheck/src/model/CreateTaskAssignRuleResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/CreateTaskAssignRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
CreateTaskAssignRuleResult::CreateTaskAssignRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTaskAssignRuleResult::CreateTaskAssignRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTaskAssignRuleResult::~CreateTaskAssignRuleResult()
|
||||
{}
|
||||
|
||||
void CreateTaskAssignRuleResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateTaskAssignRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateTaskAssignRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateTaskAssignRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateTaskAssignRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/CreateUserRequest.cc
Normal file
62
qualitycheck/src/model/CreateUserRequest.cc
Normal file
@@ -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/qualitycheck/model/CreateUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::CreateUserRequest;
|
||||
|
||||
CreateUserRequest::CreateUserRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "CreateUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateUserRequest::~CreateUserRequest()
|
||||
{}
|
||||
|
||||
long CreateUserRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
65
qualitycheck/src/model/CreateUserResult.cc
Normal file
65
qualitycheck/src/model/CreateUserResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/CreateUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
CreateUserResult::CreateUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUserResult::CreateUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUserResult::~CreateUserResult()
|
||||
{}
|
||||
|
||||
void CreateUserResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateUserResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/CreateWarningConfigRequest.cc
Normal file
62
qualitycheck/src/model/CreateWarningConfigRequest.cc
Normal file
@@ -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/qualitycheck/model/CreateWarningConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::CreateWarningConfigRequest;
|
||||
|
||||
CreateWarningConfigRequest::CreateWarningConfigRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "CreateWarningConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateWarningConfigRequest::~CreateWarningConfigRequest()
|
||||
{}
|
||||
|
||||
long CreateWarningConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateWarningConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateWarningConfigRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void CreateWarningConfigRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string CreateWarningConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateWarningConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
qualitycheck/src/model/CreateWarningConfigResult.cc
Normal file
72
qualitycheck/src/model/CreateWarningConfigResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/CreateWarningConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
CreateWarningConfigResult::CreateWarningConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateWarningConfigResult::CreateWarningConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateWarningConfigResult::~CreateWarningConfigResult()
|
||||
{}
|
||||
|
||||
void CreateWarningConfigResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateWarningConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateWarningConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateWarningConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateWarningConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/DelRuleCategoryRequest.cc
Normal file
62
qualitycheck/src/model/DelRuleCategoryRequest.cc
Normal file
@@ -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/qualitycheck/model/DelRuleCategoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DelRuleCategoryRequest;
|
||||
|
||||
DelRuleCategoryRequest::DelRuleCategoryRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "DelRuleCategory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DelRuleCategoryRequest::~DelRuleCategoryRequest()
|
||||
{}
|
||||
|
||||
long DelRuleCategoryRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DelRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DelRuleCategoryRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void DelRuleCategoryRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string DelRuleCategoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DelRuleCategoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
73
qualitycheck/src/model/DelRuleCategoryResult.cc
Normal file
73
qualitycheck/src/model/DelRuleCategoryResult.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/qualitycheck/model/DelRuleCategoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
DelRuleCategoryResult::DelRuleCategoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DelRuleCategoryResult::DelRuleCategoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DelRuleCategoryResult::~DelRuleCategoryResult()
|
||||
{}
|
||||
|
||||
void DelRuleCategoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Select"].isNull())
|
||||
data_.select = dataNode["Select"].asString() == "true";
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DelRuleCategoryResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DelRuleCategoryResult::Data DelRuleCategoryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DelRuleCategoryResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DelRuleCategoryResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/DelThesaurusForApiRequest.cc
Normal file
62
qualitycheck/src/model/DelThesaurusForApiRequest.cc
Normal file
@@ -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/qualitycheck/model/DelThesaurusForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DelThesaurusForApiRequest;
|
||||
|
||||
DelThesaurusForApiRequest::DelThesaurusForApiRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "DelThesaurusForApi")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DelThesaurusForApiRequest::~DelThesaurusForApiRequest()
|
||||
{}
|
||||
|
||||
long DelThesaurusForApiRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DelThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DelThesaurusForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void DelThesaurusForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string DelThesaurusForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DelThesaurusForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
65
qualitycheck/src/model/DelThesaurusForApiResult.cc
Normal file
65
qualitycheck/src/model/DelThesaurusForApiResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/DelThesaurusForApiResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
DelThesaurusForApiResult::DelThesaurusForApiResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DelThesaurusForApiResult::DelThesaurusForApiResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DelThesaurusForApiResult::~DelThesaurusForApiResult()
|
||||
{}
|
||||
|
||||
void DelThesaurusForApiResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DelThesaurusForApiResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DelThesaurusForApiResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DelThesaurusForApiResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/DeleteAsrVocabRequest.cc
Normal file
62
qualitycheck/src/model/DeleteAsrVocabRequest.cc
Normal file
@@ -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/qualitycheck/model/DeleteAsrVocabRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteAsrVocabRequest;
|
||||
|
||||
DeleteAsrVocabRequest::DeleteAsrVocabRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteAsrVocab")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAsrVocabRequest::~DeleteAsrVocabRequest()
|
||||
{}
|
||||
|
||||
long DeleteAsrVocabRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteAsrVocabRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteAsrVocabRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void DeleteAsrVocabRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string DeleteAsrVocabRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteAsrVocabRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
qualitycheck/src/model/DeleteAsrVocabResult.cc
Normal file
72
qualitycheck/src/model/DeleteAsrVocabResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DeleteAsrVocabResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
DeleteAsrVocabResult::DeleteAsrVocabResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAsrVocabResult::DeleteAsrVocabResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAsrVocabResult::~DeleteAsrVocabResult()
|
||||
{}
|
||||
|
||||
void DeleteAsrVocabResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteAsrVocabResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteAsrVocabResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteAsrVocabResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteAsrVocabResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/DeleteBusinessCategoryRequest.cc
Normal file
62
qualitycheck/src/model/DeleteBusinessCategoryRequest.cc
Normal file
@@ -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/qualitycheck/model/DeleteBusinessCategoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteBusinessCategoryRequest;
|
||||
|
||||
DeleteBusinessCategoryRequest::DeleteBusinessCategoryRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteBusinessCategory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteBusinessCategoryRequest::~DeleteBusinessCategoryRequest()
|
||||
{}
|
||||
|
||||
long DeleteBusinessCategoryRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteBusinessCategoryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteBusinessCategoryRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void DeleteBusinessCategoryRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string DeleteBusinessCategoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteBusinessCategoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
qualitycheck/src/model/DeleteBusinessCategoryResult.cc
Normal file
72
qualitycheck/src/model/DeleteBusinessCategoryResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DeleteBusinessCategoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
DeleteBusinessCategoryResult::DeleteBusinessCategoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteBusinessCategoryResult::DeleteBusinessCategoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteBusinessCategoryResult::~DeleteBusinessCategoryResult()
|
||||
{}
|
||||
|
||||
void DeleteBusinessCategoryResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteBusinessCategoryResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteBusinessCategoryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteBusinessCategoryResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteBusinessCategoryResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/DeleteCustomizationConfigRequest.cc
Normal file
62
qualitycheck/src/model/DeleteCustomizationConfigRequest.cc
Normal file
@@ -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/qualitycheck/model/DeleteCustomizationConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteCustomizationConfigRequest;
|
||||
|
||||
DeleteCustomizationConfigRequest::DeleteCustomizationConfigRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteCustomizationConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteCustomizationConfigRequest::~DeleteCustomizationConfigRequest()
|
||||
{}
|
||||
|
||||
long DeleteCustomizationConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteCustomizationConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteCustomizationConfigRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void DeleteCustomizationConfigRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string DeleteCustomizationConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteCustomizationConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
qualitycheck/src/model/DeleteCustomizationConfigResult.cc
Normal file
72
qualitycheck/src/model/DeleteCustomizationConfigResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DeleteCustomizationConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
DeleteCustomizationConfigResult::DeleteCustomizationConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteCustomizationConfigResult::DeleteCustomizationConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteCustomizationConfigResult::~DeleteCustomizationConfigResult()
|
||||
{}
|
||||
|
||||
void DeleteCustomizationConfigResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteCustomizationConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteCustomizationConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteCustomizationConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteCustomizationConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/DeleteDataSetRequest.cc
Normal file
62
qualitycheck/src/model/DeleteDataSetRequest.cc
Normal file
@@ -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/qualitycheck/model/DeleteDataSetRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteDataSetRequest;
|
||||
|
||||
DeleteDataSetRequest::DeleteDataSetRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteDataSet")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDataSetRequest::~DeleteDataSetRequest()
|
||||
{}
|
||||
|
||||
long DeleteDataSetRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteDataSetRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteDataSetRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void DeleteDataSetRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string DeleteDataSetRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteDataSetRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
65
qualitycheck/src/model/DeleteDataSetResult.cc
Normal file
65
qualitycheck/src/model/DeleteDataSetResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/DeleteDataSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
DeleteDataSetResult::DeleteDataSetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDataSetResult::DeleteDataSetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDataSetResult::~DeleteDataSetResult()
|
||||
{}
|
||||
|
||||
void DeleteDataSetResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteDataSetResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteDataSetResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteDataSetResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/DeletePrecisionTaskRequest.cc
Normal file
62
qualitycheck/src/model/DeletePrecisionTaskRequest.cc
Normal file
@@ -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/qualitycheck/model/DeletePrecisionTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeletePrecisionTaskRequest;
|
||||
|
||||
DeletePrecisionTaskRequest::DeletePrecisionTaskRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "DeletePrecisionTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePrecisionTaskRequest::~DeletePrecisionTaskRequest()
|
||||
{}
|
||||
|
||||
long DeletePrecisionTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeletePrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeletePrecisionTaskRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void DeletePrecisionTaskRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string DeletePrecisionTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeletePrecisionTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
65
qualitycheck/src/model/DeletePrecisionTaskResult.cc
Normal file
65
qualitycheck/src/model/DeletePrecisionTaskResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/DeletePrecisionTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
DeletePrecisionTaskResult::DeletePrecisionTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePrecisionTaskResult::DeletePrecisionTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePrecisionTaskResult::~DeletePrecisionTaskResult()
|
||||
{}
|
||||
|
||||
void DeletePrecisionTaskResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeletePrecisionTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeletePrecisionTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeletePrecisionTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/DeleteScoreForApiRequest.cc
Normal file
62
qualitycheck/src/model/DeleteScoreForApiRequest.cc
Normal file
@@ -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/qualitycheck/model/DeleteScoreForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteScoreForApiRequest;
|
||||
|
||||
DeleteScoreForApiRequest::DeleteScoreForApiRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteScoreForApi")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteScoreForApiRequest::~DeleteScoreForApiRequest()
|
||||
{}
|
||||
|
||||
long DeleteScoreForApiRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteScoreForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteScoreForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void DeleteScoreForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string DeleteScoreForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteScoreForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
65
qualitycheck/src/model/DeleteScoreForApiResult.cc
Normal file
65
qualitycheck/src/model/DeleteScoreForApiResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/DeleteScoreForApiResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
DeleteScoreForApiResult::DeleteScoreForApiResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteScoreForApiResult::DeleteScoreForApiResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteScoreForApiResult::~DeleteScoreForApiResult()
|
||||
{}
|
||||
|
||||
void DeleteScoreForApiResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteScoreForApiResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteScoreForApiResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteScoreForApiResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/DeleteSkillGroupConfigRequest.cc
Normal file
62
qualitycheck/src/model/DeleteSkillGroupConfigRequest.cc
Normal file
@@ -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/qualitycheck/model/DeleteSkillGroupConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteSkillGroupConfigRequest;
|
||||
|
||||
DeleteSkillGroupConfigRequest::DeleteSkillGroupConfigRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteSkillGroupConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSkillGroupConfigRequest::~DeleteSkillGroupConfigRequest()
|
||||
{}
|
||||
|
||||
long DeleteSkillGroupConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteSkillGroupConfigRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void DeleteSkillGroupConfigRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string DeleteSkillGroupConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteSkillGroupConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
65
qualitycheck/src/model/DeleteSkillGroupConfigResult.cc
Normal file
65
qualitycheck/src/model/DeleteSkillGroupConfigResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/DeleteSkillGroupConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
DeleteSkillGroupConfigResult::DeleteSkillGroupConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSkillGroupConfigResult::DeleteSkillGroupConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSkillGroupConfigResult::~DeleteSkillGroupConfigResult()
|
||||
{}
|
||||
|
||||
void DeleteSkillGroupConfigResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteSkillGroupConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteSkillGroupConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteSkillGroupConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/DeleteSubScoreForApiRequest.cc
Normal file
62
qualitycheck/src/model/DeleteSubScoreForApiRequest.cc
Normal file
@@ -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/qualitycheck/model/DeleteSubScoreForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteSubScoreForApiRequest;
|
||||
|
||||
DeleteSubScoreForApiRequest::DeleteSubScoreForApiRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteSubScoreForApi")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSubScoreForApiRequest::~DeleteSubScoreForApiRequest()
|
||||
{}
|
||||
|
||||
long DeleteSubScoreForApiRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteSubScoreForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteSubScoreForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void DeleteSubScoreForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string DeleteSubScoreForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteSubScoreForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
65
qualitycheck/src/model/DeleteSubScoreForApiResult.cc
Normal file
65
qualitycheck/src/model/DeleteSubScoreForApiResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/DeleteSubScoreForApiResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
DeleteSubScoreForApiResult::DeleteSubScoreForApiResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSubScoreForApiResult::DeleteSubScoreForApiResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSubScoreForApiResult::~DeleteSubScoreForApiResult()
|
||||
{}
|
||||
|
||||
void DeleteSubScoreForApiResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteSubScoreForApiResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteSubScoreForApiResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteSubScoreForApiResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/DeleteTaskAssignRuleRequest.cc
Normal file
62
qualitycheck/src/model/DeleteTaskAssignRuleRequest.cc
Normal file
@@ -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/qualitycheck/model/DeleteTaskAssignRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteTaskAssignRuleRequest;
|
||||
|
||||
DeleteTaskAssignRuleRequest::DeleteTaskAssignRuleRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteTaskAssignRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTaskAssignRuleRequest::~DeleteTaskAssignRuleRequest()
|
||||
{}
|
||||
|
||||
long DeleteTaskAssignRuleRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteTaskAssignRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteTaskAssignRuleRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void DeleteTaskAssignRuleRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string DeleteTaskAssignRuleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteTaskAssignRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
65
qualitycheck/src/model/DeleteTaskAssignRuleResult.cc
Normal file
65
qualitycheck/src/model/DeleteTaskAssignRuleResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/DeleteTaskAssignRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
DeleteTaskAssignRuleResult::DeleteTaskAssignRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTaskAssignRuleResult::DeleteTaskAssignRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTaskAssignRuleResult::~DeleteTaskAssignRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteTaskAssignRuleResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteTaskAssignRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteTaskAssignRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteTaskAssignRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/DeleteUserRequest.cc
Normal file
62
qualitycheck/src/model/DeleteUserRequest.cc
Normal file
@@ -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/qualitycheck/model/DeleteUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteUserRequest;
|
||||
|
||||
DeleteUserRequest::DeleteUserRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteUserRequest::~DeleteUserRequest()
|
||||
{}
|
||||
|
||||
long DeleteUserRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
65
qualitycheck/src/model/DeleteUserResult.cc
Normal file
65
qualitycheck/src/model/DeleteUserResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/DeleteUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
DeleteUserResult::DeleteUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteUserResult::DeleteUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteUserResult::~DeleteUserResult()
|
||||
{}
|
||||
|
||||
void DeleteUserResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteUserResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/DeleteWarningConfigRequest.cc
Normal file
62
qualitycheck/src/model/DeleteWarningConfigRequest.cc
Normal file
@@ -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/qualitycheck/model/DeleteWarningConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteWarningConfigRequest;
|
||||
|
||||
DeleteWarningConfigRequest::DeleteWarningConfigRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteWarningConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteWarningConfigRequest::~DeleteWarningConfigRequest()
|
||||
{}
|
||||
|
||||
long DeleteWarningConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteWarningConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteWarningConfigRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void DeleteWarningConfigRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string DeleteWarningConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteWarningConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
65
qualitycheck/src/model/DeleteWarningConfigResult.cc
Normal file
65
qualitycheck/src/model/DeleteWarningConfigResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/DeleteWarningConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
DeleteWarningConfigResult::DeleteWarningConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteWarningConfigResult::DeleteWarningConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteWarningConfigResult::~DeleteWarningConfigResult()
|
||||
{}
|
||||
|
||||
void DeleteWarningConfigResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteWarningConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteWarningConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteWarningConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/EditThesaurusForApiRequest.cc
Normal file
62
qualitycheck/src/model/EditThesaurusForApiRequest.cc
Normal file
@@ -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/qualitycheck/model/EditThesaurusForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::EditThesaurusForApiRequest;
|
||||
|
||||
EditThesaurusForApiRequest::EditThesaurusForApiRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "EditThesaurusForApi")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EditThesaurusForApiRequest::~EditThesaurusForApiRequest()
|
||||
{}
|
||||
|
||||
long EditThesaurusForApiRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void EditThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string EditThesaurusForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void EditThesaurusForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string EditThesaurusForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void EditThesaurusForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
qualitycheck/src/model/EditThesaurusForApiResult.cc
Normal file
72
qualitycheck/src/model/EditThesaurusForApiResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/EditThesaurusForApiResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
EditThesaurusForApiResult::EditThesaurusForApiResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EditThesaurusForApiResult::EditThesaurusForApiResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EditThesaurusForApiResult::~EditThesaurusForApiResult()
|
||||
{}
|
||||
|
||||
void EditThesaurusForApiResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string EditThesaurusForApiResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long EditThesaurusForApiResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string EditThesaurusForApiResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool EditThesaurusForApiResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetAsrVocabRequest.cc
Normal file
62
qualitycheck/src/model/GetAsrVocabRequest.cc
Normal file
@@ -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/qualitycheck/model/GetAsrVocabRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetAsrVocabRequest;
|
||||
|
||||
GetAsrVocabRequest::GetAsrVocabRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetAsrVocab")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAsrVocabRequest::~GetAsrVocabRequest()
|
||||
{}
|
||||
|
||||
long GetAsrVocabRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetAsrVocabRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetAsrVocabRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetAsrVocabRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetAsrVocabRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetAsrVocabRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
83
qualitycheck/src/model/GetAsrVocabResult.cc
Normal file
83
qualitycheck/src/model/GetAsrVocabResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetAsrVocabResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetAsrVocabResult::GetAsrVocabResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAsrVocabResult::GetAsrVocabResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAsrVocabResult::~GetAsrVocabResult()
|
||||
{}
|
||||
|
||||
void GetAsrVocabResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
auto allWordsNode = dataNode["Words"]["Word"];
|
||||
for (auto dataNodeWordsWord : allWordsNode)
|
||||
{
|
||||
Data::Word wordObject;
|
||||
if(!dataNodeWordsWord["Word"].isNull())
|
||||
wordObject.word = dataNodeWordsWord["Word"].asString();
|
||||
if(!dataNodeWordsWord["Weight"].isNull())
|
||||
wordObject.weight = std::stoi(dataNodeWordsWord["Weight"].asString());
|
||||
data_.words.push_back(wordObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetAsrVocabResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetAsrVocabResult::Data GetAsrVocabResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetAsrVocabResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetAsrVocabResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetBusinessCategoryListRequest.cc
Normal file
62
qualitycheck/src/model/GetBusinessCategoryListRequest.cc
Normal file
@@ -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/qualitycheck/model/GetBusinessCategoryListRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetBusinessCategoryListRequest;
|
||||
|
||||
GetBusinessCategoryListRequest::GetBusinessCategoryListRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetBusinessCategoryList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetBusinessCategoryListRequest::~GetBusinessCategoryListRequest()
|
||||
{}
|
||||
|
||||
long GetBusinessCategoryListRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetBusinessCategoryListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetBusinessCategoryListRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetBusinessCategoryListRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetBusinessCategoryListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetBusinessCategoryListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
82
qualitycheck/src/model/GetBusinessCategoryListResult.cc
Normal file
82
qualitycheck/src/model/GetBusinessCategoryListResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/GetBusinessCategoryListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetBusinessCategoryListResult::GetBusinessCategoryListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetBusinessCategoryListResult::GetBusinessCategoryListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetBusinessCategoryListResult::~GetBusinessCategoryListResult()
|
||||
{}
|
||||
|
||||
void GetBusinessCategoryListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["BusinessCategoryBasicInfo"];
|
||||
for (auto valueDataBusinessCategoryBasicInfo : allDataNode)
|
||||
{
|
||||
BusinessCategoryBasicInfo dataObject;
|
||||
if(!valueDataBusinessCategoryBasicInfo["Bid"].isNull())
|
||||
dataObject.bid = std::stoi(valueDataBusinessCategoryBasicInfo["Bid"].asString());
|
||||
if(!valueDataBusinessCategoryBasicInfo["ServiceType"].isNull())
|
||||
dataObject.serviceType = std::stoi(valueDataBusinessCategoryBasicInfo["ServiceType"].asString());
|
||||
if(!valueDataBusinessCategoryBasicInfo["BusinessName"].isNull())
|
||||
dataObject.businessName = valueDataBusinessCategoryBasicInfo["BusinessName"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetBusinessCategoryListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetBusinessCategoryListResult::BusinessCategoryBasicInfo> GetBusinessCategoryListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetBusinessCategoryListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetBusinessCategoryListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetCustomizationConfigListRequest.cc
Normal file
62
qualitycheck/src/model/GetCustomizationConfigListRequest.cc
Normal file
@@ -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/qualitycheck/model/GetCustomizationConfigListRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetCustomizationConfigListRequest;
|
||||
|
||||
GetCustomizationConfigListRequest::GetCustomizationConfigListRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetCustomizationConfigList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetCustomizationConfigListRequest::~GetCustomizationConfigListRequest()
|
||||
{}
|
||||
|
||||
long GetCustomizationConfigListRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetCustomizationConfigListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetCustomizationConfigListRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetCustomizationConfigListRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetCustomizationConfigListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetCustomizationConfigListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
88
qualitycheck/src/model/GetCustomizationConfigListResult.cc
Normal file
88
qualitycheck/src/model/GetCustomizationConfigListResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/GetCustomizationConfigListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetCustomizationConfigListResult::GetCustomizationConfigListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetCustomizationConfigListResult::GetCustomizationConfigListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetCustomizationConfigListResult::~GetCustomizationConfigListResult()
|
||||
{}
|
||||
|
||||
void GetCustomizationConfigListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["ModelCustomizationDataSetPo"];
|
||||
for (auto valueDataModelCustomizationDataSetPo : allDataNode)
|
||||
{
|
||||
ModelCustomizationDataSetPo dataObject;
|
||||
if(!valueDataModelCustomizationDataSetPo["ModelId"].isNull())
|
||||
dataObject.modelId = std::stol(valueDataModelCustomizationDataSetPo["ModelId"].asString());
|
||||
if(!valueDataModelCustomizationDataSetPo["ModeCustomizationId"].isNull())
|
||||
dataObject.modeCustomizationId = valueDataModelCustomizationDataSetPo["ModeCustomizationId"].asString();
|
||||
if(!valueDataModelCustomizationDataSetPo["ModelName"].isNull())
|
||||
dataObject.modelName = valueDataModelCustomizationDataSetPo["ModelName"].asString();
|
||||
if(!valueDataModelCustomizationDataSetPo["ModelStatus"].isNull())
|
||||
dataObject.modelStatus = std::stoi(valueDataModelCustomizationDataSetPo["ModelStatus"].asString());
|
||||
if(!valueDataModelCustomizationDataSetPo["TaskType"].isNull())
|
||||
dataObject.taskType = std::stoi(valueDataModelCustomizationDataSetPo["TaskType"].asString());
|
||||
if(!valueDataModelCustomizationDataSetPo["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataModelCustomizationDataSetPo["CreateTime"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetCustomizationConfigListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetCustomizationConfigListResult::ModelCustomizationDataSetPo> GetCustomizationConfigListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetCustomizationConfigListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetCustomizationConfigListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetDataSetListRequest.cc
Normal file
62
qualitycheck/src/model/GetDataSetListRequest.cc
Normal file
@@ -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/qualitycheck/model/GetDataSetListRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetDataSetListRequest;
|
||||
|
||||
GetDataSetListRequest::GetDataSetListRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetDataSetList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataSetListRequest::~GetDataSetListRequest()
|
||||
{}
|
||||
|
||||
long GetDataSetListRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetDataSetListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetDataSetListRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetDataSetListRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetDataSetListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetDataSetListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
105
qualitycheck/src/model/GetDataSetListResult.cc
Normal file
105
qualitycheck/src/model/GetDataSetListResult.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/qualitycheck/model/GetDataSetListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetDataSetListResult::GetDataSetListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDataSetListResult::GetDataSetListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDataSetListResult::~GetDataSetListResult()
|
||||
{}
|
||||
|
||||
void GetDataSetListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataSet"];
|
||||
for (auto valueDataDataSet : allDataNode)
|
||||
{
|
||||
DataSet dataObject;
|
||||
if(!valueDataDataSet["SetId"].isNull())
|
||||
dataObject.setId = std::stol(valueDataDataSet["SetId"].asString());
|
||||
if(!valueDataDataSet["SetName"].isNull())
|
||||
dataObject.setName = valueDataDataSet["SetName"].asString();
|
||||
if(!valueDataDataSet["SetDomain"].isNull())
|
||||
dataObject.setDomain = valueDataDataSet["SetDomain"].asString();
|
||||
if(!valueDataDataSet["SetRoleArn"].isNull())
|
||||
dataObject.setRoleArn = valueDataDataSet["SetRoleArn"].asString();
|
||||
if(!valueDataDataSet["SetBucketName"].isNull())
|
||||
dataObject.setBucketName = valueDataDataSet["SetBucketName"].asString();
|
||||
if(!valueDataDataSet["SetFolderName"].isNull())
|
||||
dataObject.setFolderName = valueDataDataSet["SetFolderName"].asString();
|
||||
if(!valueDataDataSet["ChannelType"].isNull())
|
||||
dataObject.channelType = std::stoi(valueDataDataSet["ChannelType"].asString());
|
||||
if(!valueDataDataSet["CreateType"].isNull())
|
||||
dataObject.createType = std::stoi(valueDataDataSet["CreateType"].asString());
|
||||
if(!valueDataDataSet["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataDataSet["CreateTime"].asString();
|
||||
if(!valueDataDataSet["UpdateTime"].isNull())
|
||||
dataObject.updateTime = valueDataDataSet["UpdateTime"].asString();
|
||||
if(!valueDataDataSet["SetNumber"].isNull())
|
||||
dataObject.setNumber = std::stoi(valueDataDataSet["SetNumber"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string GetDataSetListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetDataSetListResult::DataSet> GetDataSetListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetDataSetListResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string GetDataSetListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetDataSetListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetHitResultRequest.cc
Normal file
62
qualitycheck/src/model/GetHitResultRequest.cc
Normal file
@@ -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/qualitycheck/model/GetHitResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetHitResultRequest;
|
||||
|
||||
GetHitResultRequest::GetHitResultRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetHitResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetHitResultRequest::~GetHitResultRequest()
|
||||
{}
|
||||
|
||||
long GetHitResultRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetHitResultRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetHitResultRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetHitResultRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetHitResultRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetHitResultRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
101
qualitycheck/src/model/GetHitResultResult.cc
Normal file
101
qualitycheck/src/model/GetHitResultResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/GetHitResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetHitResultResult::GetHitResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetHitResultResult::GetHitResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetHitResultResult::~GetHitResultResult()
|
||||
{}
|
||||
|
||||
void GetHitResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["ResultInfo"];
|
||||
for (auto valueDataResultInfo : allDataNode)
|
||||
{
|
||||
ResultInfo dataObject;
|
||||
if(!valueDataResultInfo["Rid"].isNull())
|
||||
dataObject.rid = std::stol(valueDataResultInfo["Rid"].asString());
|
||||
if(!valueDataResultInfo["RuleName"].isNull())
|
||||
dataObject.ruleName = valueDataResultInfo["RuleName"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string GetHitResultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetHitResultResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int GetHitResultResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<GetHitResultResult::ResultInfo> GetHitResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetHitResultResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string GetHitResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetHitResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetNextResultToVerifyRequest.cc
Normal file
62
qualitycheck/src/model/GetNextResultToVerifyRequest.cc
Normal file
@@ -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/qualitycheck/model/GetNextResultToVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetNextResultToVerifyRequest;
|
||||
|
||||
GetNextResultToVerifyRequest::GetNextResultToVerifyRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetNextResultToVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetNextResultToVerifyRequest::~GetNextResultToVerifyRequest()
|
||||
{}
|
||||
|
||||
long GetNextResultToVerifyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetNextResultToVerifyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetNextResultToVerifyRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetNextResultToVerifyRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetNextResultToVerifyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetNextResultToVerifyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
149
qualitycheck/src/model/GetNextResultToVerifyResult.cc
Normal file
149
qualitycheck/src/model/GetNextResultToVerifyResult.cc
Normal file
@@ -0,0 +1,149 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/GetNextResultToVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetNextResultToVerifyResult::GetNextResultToVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetNextResultToVerifyResult::GetNextResultToVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetNextResultToVerifyResult::~GetNextResultToVerifyResult()
|
||||
{}
|
||||
|
||||
void GetNextResultToVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["AudioURL"].isNull())
|
||||
data_.audioURL = dataNode["AudioURL"].asString();
|
||||
if(!dataNode["AudioScheme"].isNull())
|
||||
data_.audioScheme = dataNode["AudioScheme"].asString();
|
||||
if(!dataNode["FileName"].isNull())
|
||||
data_.fileName = dataNode["FileName"].asString();
|
||||
if(!dataNode["FileId"].isNull())
|
||||
data_.fileId = dataNode["FileId"].asString();
|
||||
if(!dataNode["Verified"].isNull())
|
||||
data_.verified = dataNode["Verified"].asString() == "true";
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["VerifiedCount"].isNull())
|
||||
data_.verifiedCount = std::stoi(dataNode["VerifiedCount"].asString());
|
||||
if(!dataNode["IncorrectWords"].isNull())
|
||||
data_.incorrectWords = std::stoi(dataNode["IncorrectWords"].asString());
|
||||
if(!dataNode["Precision"].isNull())
|
||||
data_.precision = std::stof(dataNode["Precision"].asString());
|
||||
if(!dataNode["UpdateTime"].isNull())
|
||||
data_.updateTime = dataNode["UpdateTime"].asString();
|
||||
if(!dataNode["Duration"].isNull())
|
||||
data_.duration = std::stoi(dataNode["Duration"].asString());
|
||||
if(!dataNode["Index"].isNull())
|
||||
data_.index = std::stoi(dataNode["Index"].asString());
|
||||
auto allDialoguesNode = dataNode["Dialogues"]["Dialogue"];
|
||||
for (auto dataNodeDialoguesDialogue : allDialoguesNode)
|
||||
{
|
||||
Data::Dialogue dialogueObject;
|
||||
if(!dataNodeDialoguesDialogue["Begin"].isNull())
|
||||
dialogueObject.begin = std::stol(dataNodeDialoguesDialogue["Begin"].asString());
|
||||
if(!dataNodeDialoguesDialogue["BeginTime"].isNull())
|
||||
dialogueObject.beginTime = dataNodeDialoguesDialogue["BeginTime"].asString();
|
||||
if(!dataNodeDialoguesDialogue["EmotionValue"].isNull())
|
||||
dialogueObject.emotionValue = std::stoi(dataNodeDialoguesDialogue["EmotionValue"].asString());
|
||||
if(!dataNodeDialoguesDialogue["End"].isNull())
|
||||
dialogueObject.end = std::stol(dataNodeDialoguesDialogue["End"].asString());
|
||||
if(!dataNodeDialoguesDialogue["HourMinSec"].isNull())
|
||||
dialogueObject.hourMinSec = dataNodeDialoguesDialogue["HourMinSec"].asString();
|
||||
if(!dataNodeDialoguesDialogue["Identity"].isNull())
|
||||
dialogueObject.identity = dataNodeDialoguesDialogue["Identity"].asString();
|
||||
if(!dataNodeDialoguesDialogue["Role"].isNull())
|
||||
dialogueObject.role = dataNodeDialoguesDialogue["Role"].asString();
|
||||
if(!dataNodeDialoguesDialogue["SourceRole"].isNull())
|
||||
dialogueObject.sourceRole = dataNodeDialoguesDialogue["SourceRole"].asString();
|
||||
if(!dataNodeDialoguesDialogue["SilenceDuration"].isNull())
|
||||
dialogueObject.silenceDuration = std::stoi(dataNodeDialoguesDialogue["SilenceDuration"].asString());
|
||||
if(!dataNodeDialoguesDialogue["SpeechRate"].isNull())
|
||||
dialogueObject.speechRate = std::stoi(dataNodeDialoguesDialogue["SpeechRate"].asString());
|
||||
if(!dataNodeDialoguesDialogue["Words"].isNull())
|
||||
dialogueObject.words = dataNodeDialoguesDialogue["Words"].asString();
|
||||
if(!dataNodeDialoguesDialogue["SourceWords"].isNull())
|
||||
dialogueObject.sourceWords = dataNodeDialoguesDialogue["SourceWords"].asString();
|
||||
if(!dataNodeDialoguesDialogue["IncorrectWords"].isNull())
|
||||
dialogueObject.incorrectWords = std::stoi(dataNodeDialoguesDialogue["IncorrectWords"].asString());
|
||||
auto allDeltasNode = dataNodeDialoguesDialogue["Deltas"]["Delta"];
|
||||
for (auto dataNodeDialoguesDialogueDeltasDelta : allDeltasNode)
|
||||
{
|
||||
Data::Dialogue::Delta deltasObject;
|
||||
if(!dataNodeDialoguesDialogueDeltasDelta["Type"].isNull())
|
||||
deltasObject.type = dataNodeDialoguesDialogueDeltasDelta["Type"].asString();
|
||||
auto sourceNode = value["Source"];
|
||||
if(!sourceNode["Position"].isNull())
|
||||
deltasObject.source.position = std::stoi(sourceNode["Position"].asString());
|
||||
auto allLine = sourceNode["Line"]["Line"];
|
||||
for (auto value : allLine)
|
||||
deltasObject.source.line.push_back(value.asString());
|
||||
auto targetNode = value["Target"];
|
||||
if(!targetNode["Position"].isNull())
|
||||
deltasObject.target.position = std::stoi(targetNode["Position"].asString());
|
||||
auto allLine1 = targetNode["Line"]["Line"];
|
||||
for (auto value : allLine1)
|
||||
deltasObject.target.line1.push_back(value.asString());
|
||||
dialogueObject.deltas.push_back(deltasObject);
|
||||
}
|
||||
data_.dialogues.push_back(dialogueObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetNextResultToVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetNextResultToVerifyResult::Data GetNextResultToVerifyResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetNextResultToVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetNextResultToVerifyResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetPrecisionTaskRequest.cc
Normal file
62
qualitycheck/src/model/GetPrecisionTaskRequest.cc
Normal file
@@ -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/qualitycheck/model/GetPrecisionTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetPrecisionTaskRequest;
|
||||
|
||||
GetPrecisionTaskRequest::GetPrecisionTaskRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetPrecisionTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPrecisionTaskRequest::~GetPrecisionTaskRequest()
|
||||
{}
|
||||
|
||||
long GetPrecisionTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetPrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetPrecisionTaskRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetPrecisionTaskRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetPrecisionTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetPrecisionTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
109
qualitycheck/src/model/GetPrecisionTaskResult.cc
Normal file
109
qualitycheck/src/model/GetPrecisionTaskResult.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/qualitycheck/model/GetPrecisionTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetPrecisionTaskResult::GetPrecisionTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPrecisionTaskResult::GetPrecisionTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPrecisionTaskResult::~GetPrecisionTaskResult()
|
||||
{}
|
||||
|
||||
void GetPrecisionTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Source"].isNull())
|
||||
data_.source = std::stoi(dataNode["Source"].asString());
|
||||
if(!dataNode["DataSetId"].isNull())
|
||||
data_.dataSetId = std::stol(dataNode["DataSetId"].asString());
|
||||
if(!dataNode["DataSetName"].isNull())
|
||||
data_.dataSetName = dataNode["DataSetName"].asString();
|
||||
if(!dataNode["TaskId"].isNull())
|
||||
data_.taskId = dataNode["TaskId"].asString();
|
||||
if(!dataNode["Duration"].isNull())
|
||||
data_.duration = std::stoi(dataNode["Duration"].asString());
|
||||
if(!dataNode["UpdateTime"].isNull())
|
||||
data_.updateTime = dataNode["UpdateTime"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["VerifiedCount"].isNull())
|
||||
data_.verifiedCount = std::stoi(dataNode["VerifiedCount"].asString());
|
||||
if(!dataNode["IncorrectWords"].isNull())
|
||||
data_.incorrectWords = std::stoi(dataNode["IncorrectWords"].asString());
|
||||
auto allPrecisionsNode = dataNode["Precisions"]["Precision"];
|
||||
for (auto dataNodePrecisionsPrecision : allPrecisionsNode)
|
||||
{
|
||||
Data::Precision precisionObject;
|
||||
if(!dataNodePrecisionsPrecision["ModelName"].isNull())
|
||||
precisionObject.modelName = dataNodePrecisionsPrecision["ModelName"].asString();
|
||||
if(!dataNodePrecisionsPrecision["ModelId"].isNull())
|
||||
precisionObject.modelId = std::stol(dataNodePrecisionsPrecision["ModelId"].asString());
|
||||
if(!dataNodePrecisionsPrecision["Precision"].isNull())
|
||||
precisionObject.precision = std::stof(dataNodePrecisionsPrecision["Precision"].asString());
|
||||
if(!dataNodePrecisionsPrecision["Status"].isNull())
|
||||
precisionObject.status = std::stoi(dataNodePrecisionsPrecision["Status"].asString());
|
||||
if(!dataNodePrecisionsPrecision["TaskId"].isNull())
|
||||
precisionObject.taskId = dataNodePrecisionsPrecision["TaskId"].asString();
|
||||
data_.precisions.push_back(precisionObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetPrecisionTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetPrecisionTaskResult::Data GetPrecisionTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetPrecisionTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetPrecisionTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetRecognizeResultRequest.cc
Normal file
62
qualitycheck/src/model/GetRecognizeResultRequest.cc
Normal file
@@ -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/qualitycheck/model/GetRecognizeResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetRecognizeResultRequest;
|
||||
|
||||
GetRecognizeResultRequest::GetRecognizeResultRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetRecognizeResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetRecognizeResultRequest::~GetRecognizeResultRequest()
|
||||
{}
|
||||
|
||||
long GetRecognizeResultRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetRecognizeResultRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetRecognizeResultRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetRecognizeResultRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetRecognizeResultRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetRecognizeResultRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
99
qualitycheck/src/model/GetRecognizeResultResult.cc
Normal file
99
qualitycheck/src/model/GetRecognizeResultResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetRecognizeResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetRecognizeResultResult::GetRecognizeResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRecognizeResultResult::GetRecognizeResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRecognizeResultResult::~GetRecognizeResultResult()
|
||||
{}
|
||||
|
||||
void GetRecognizeResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TaskAsrRequestId"].isNull())
|
||||
data_.taskAsrRequestId = std::stol(dataNode["TaskAsrRequestId"].asString());
|
||||
auto allDialoguesNode = dataNode["Dialogues"]["Dialogue"];
|
||||
for (auto dataNodeDialoguesDialogue : allDialoguesNode)
|
||||
{
|
||||
Data::Dialogue dialogueObject;
|
||||
if(!dataNodeDialoguesDialogue["Begin"].isNull())
|
||||
dialogueObject.begin = std::stol(dataNodeDialoguesDialogue["Begin"].asString());
|
||||
if(!dataNodeDialoguesDialogue["BeginTime"].isNull())
|
||||
dialogueObject.beginTime = dataNodeDialoguesDialogue["BeginTime"].asString();
|
||||
if(!dataNodeDialoguesDialogue["EmotionValue"].isNull())
|
||||
dialogueObject.emotionValue = std::stoi(dataNodeDialoguesDialogue["EmotionValue"].asString());
|
||||
if(!dataNodeDialoguesDialogue["End"].isNull())
|
||||
dialogueObject.end = std::stol(dataNodeDialoguesDialogue["End"].asString());
|
||||
if(!dataNodeDialoguesDialogue["HourMinSec"].isNull())
|
||||
dialogueObject.hourMinSec = dataNodeDialoguesDialogue["HourMinSec"].asString();
|
||||
if(!dataNodeDialoguesDialogue["Identity"].isNull())
|
||||
dialogueObject.identity = dataNodeDialoguesDialogue["Identity"].asString();
|
||||
if(!dataNodeDialoguesDialogue["Role"].isNull())
|
||||
dialogueObject.role = dataNodeDialoguesDialogue["Role"].asString();
|
||||
if(!dataNodeDialoguesDialogue["SilenceDuration"].isNull())
|
||||
dialogueObject.silenceDuration = std::stoi(dataNodeDialoguesDialogue["SilenceDuration"].asString());
|
||||
if(!dataNodeDialoguesDialogue["SpeechRate"].isNull())
|
||||
dialogueObject.speechRate = std::stoi(dataNodeDialoguesDialogue["SpeechRate"].asString());
|
||||
if(!dataNodeDialoguesDialogue["Words"].isNull())
|
||||
dialogueObject.words = dataNodeDialoguesDialogue["Words"].asString();
|
||||
data_.dialogues.push_back(dialogueObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetRecognizeResultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetRecognizeResultResult::Data GetRecognizeResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetRecognizeResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetRecognizeResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetResultCallbackRequest.cc
Normal file
62
qualitycheck/src/model/GetResultCallbackRequest.cc
Normal file
@@ -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/qualitycheck/model/GetResultCallbackRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetResultCallbackRequest;
|
||||
|
||||
GetResultCallbackRequest::GetResultCallbackRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetResultCallback")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetResultCallbackRequest::~GetResultCallbackRequest()
|
||||
{}
|
||||
|
||||
long GetResultCallbackRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetResultCallbackRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetResultCallbackRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetResultCallbackRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetResultCallbackRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetResultCallbackRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
65
qualitycheck/src/model/GetResultCallbackResult.cc
Normal file
65
qualitycheck/src/model/GetResultCallbackResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/GetResultCallbackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetResultCallbackResult::GetResultCallbackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetResultCallbackResult::GetResultCallbackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetResultCallbackResult::~GetResultCallbackResult()
|
||||
{}
|
||||
|
||||
void GetResultCallbackResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetResultCallbackResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetResultCallbackResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetResultCallbackResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetResultRequest.cc
Normal file
62
qualitycheck/src/model/GetResultRequest.cc
Normal file
@@ -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/qualitycheck/model/GetResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetResultRequest;
|
||||
|
||||
GetResultRequest::GetResultRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetResultRequest::~GetResultRequest()
|
||||
{}
|
||||
|
||||
long GetResultRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetResultRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetResultRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetResultRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetResultRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetResultRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
270
qualitycheck/src/model/GetResultResult.cc
Normal file
270
qualitycheck/src/model/GetResultResult.cc
Normal file
@@ -0,0 +1,270 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/GetResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetResultResult::GetResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetResultResult::GetResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetResultResult::~GetResultResult()
|
||||
{}
|
||||
|
||||
void GetResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["ResultInfo"];
|
||||
for (auto valueDataResultInfo : allDataNode)
|
||||
{
|
||||
ResultInfo dataObject;
|
||||
if(!valueDataResultInfo["Score"].isNull())
|
||||
dataObject.score = std::stoi(valueDataResultInfo["Score"].asString());
|
||||
if(!valueDataResultInfo["Comments"].isNull())
|
||||
dataObject.comments = valueDataResultInfo["Comments"].asString();
|
||||
if(!valueDataResultInfo["ErrorMessage"].isNull())
|
||||
dataObject.errorMessage = valueDataResultInfo["ErrorMessage"].asString();
|
||||
if(!valueDataResultInfo["Status"].isNull())
|
||||
dataObject.status = std::stoi(valueDataResultInfo["Status"].asString());
|
||||
if(!valueDataResultInfo["ReviewStatus"].isNull())
|
||||
dataObject.reviewStatus = std::stoi(valueDataResultInfo["ReviewStatus"].asString());
|
||||
if(!valueDataResultInfo["ReviewResult"].isNull())
|
||||
dataObject.reviewResult = std::stoi(valueDataResultInfo["ReviewResult"].asString());
|
||||
if(!valueDataResultInfo["TaskId"].isNull())
|
||||
dataObject.taskId = valueDataResultInfo["TaskId"].asString();
|
||||
if(!valueDataResultInfo["TaskName"].isNull())
|
||||
dataObject.taskName = valueDataResultInfo["TaskName"].asString();
|
||||
if(!valueDataResultInfo["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataResultInfo["CreateTime"].asString();
|
||||
if(!valueDataResultInfo["Reviewer"].isNull())
|
||||
dataObject.reviewer = valueDataResultInfo["Reviewer"].asString();
|
||||
if(!valueDataResultInfo["Resolver"].isNull())
|
||||
dataObject.resolver = valueDataResultInfo["Resolver"].asString();
|
||||
if(!valueDataResultInfo["ReviewTime"].isNull())
|
||||
dataObject.reviewTime = valueDataResultInfo["ReviewTime"].asString();
|
||||
if(!valueDataResultInfo["CreateTimeLong"].isNull())
|
||||
dataObject.createTimeLong = valueDataResultInfo["CreateTimeLong"].asString();
|
||||
if(!valueDataResultInfo["ReviewTimeLong"].isNull())
|
||||
dataObject.reviewTimeLong = valueDataResultInfo["ReviewTimeLong"].asString();
|
||||
auto allAsrResultNode = valueDataResultInfo["AsrResult"]["AsrResultItem"];
|
||||
for (auto valueDataResultInfoAsrResultAsrResultItem : allAsrResultNode)
|
||||
{
|
||||
ResultInfo::AsrResultItem asrResultObject;
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["Role"].isNull())
|
||||
asrResultObject.role = valueDataResultInfoAsrResultAsrResultItem["Role"].asString();
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["Words"].isNull())
|
||||
asrResultObject.words = valueDataResultInfoAsrResultAsrResultItem["Words"].asString();
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["Begin"].isNull())
|
||||
asrResultObject.begin = std::stol(valueDataResultInfoAsrResultAsrResultItem["Begin"].asString());
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["End"].isNull())
|
||||
asrResultObject.end = std::stol(valueDataResultInfoAsrResultAsrResultItem["End"].asString());
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["EmotionValue"].isNull())
|
||||
asrResultObject.emotionValue = std::stoi(valueDataResultInfoAsrResultAsrResultItem["EmotionValue"].asString());
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["SpeechRate"].isNull())
|
||||
asrResultObject.speechRate = std::stoi(valueDataResultInfoAsrResultAsrResultItem["SpeechRate"].asString());
|
||||
dataObject.asrResult.push_back(asrResultObject);
|
||||
}
|
||||
auto allHitResultNode = valueDataResultInfo["HitResult"]["HitResultItem"];
|
||||
for (auto valueDataResultInfoHitResultHitResultItem : allHitResultNode)
|
||||
{
|
||||
ResultInfo::HitResultItem hitResultObject;
|
||||
if(!valueDataResultInfoHitResultHitResultItem["Rid"].isNull())
|
||||
hitResultObject.rid = valueDataResultInfoHitResultHitResultItem["Rid"].asString();
|
||||
if(!valueDataResultInfoHitResultHitResultItem["Name"].isNull())
|
||||
hitResultObject.name = valueDataResultInfoHitResultHitResultItem["Name"].asString();
|
||||
if(!valueDataResultInfoHitResultHitResultItem["Type"].isNull())
|
||||
hitResultObject.type = valueDataResultInfoHitResultHitResultItem["Type"].asString();
|
||||
if(!valueDataResultInfoHitResultHitResultItem["ReviewResult"].isNull())
|
||||
hitResultObject.reviewResult = std::stoi(valueDataResultInfoHitResultHitResultItem["ReviewResult"].asString());
|
||||
auto allHitsNode = valueDataResultInfoHitResultHitResultItem["Hits"]["Hit"];
|
||||
for (auto valueDataResultInfoHitResultHitResultItemHitsHit : allHitsNode)
|
||||
{
|
||||
ResultInfo::HitResultItem::Hit hitsObject;
|
||||
auto allKeyWordsNode = valueDataResultInfoHitResultHitResultItemHitsHit["KeyWords"]["KeyWord"];
|
||||
for (auto valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord : allKeyWordsNode)
|
||||
{
|
||||
ResultInfo::HitResultItem::Hit::KeyWord keyWordsObject;
|
||||
if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].isNull())
|
||||
keyWordsObject.cid = valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].asString();
|
||||
if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["From"].isNull())
|
||||
keyWordsObject.from = std::stoi(valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["From"].asString());
|
||||
if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["To"].isNull())
|
||||
keyWordsObject.to = std::stoi(valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["To"].asString());
|
||||
if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Val"].isNull())
|
||||
keyWordsObject.val = valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Val"].asString();
|
||||
hitsObject.keyWords.push_back(keyWordsObject);
|
||||
}
|
||||
auto phraseNode = value["Phrase"];
|
||||
if(!phraseNode["Role"].isNull())
|
||||
hitsObject.phrase.role = phraseNode["Role"].asString();
|
||||
if(!phraseNode["Words"].isNull())
|
||||
hitsObject.phrase.words = phraseNode["Words"].asString();
|
||||
if(!phraseNode["Begin"].isNull())
|
||||
hitsObject.phrase.begin = std::stol(phraseNode["Begin"].asString());
|
||||
if(!phraseNode["End"].isNull())
|
||||
hitsObject.phrase.end = std::stoi(phraseNode["End"].asString());
|
||||
if(!phraseNode["EmotionValue"].isNull())
|
||||
hitsObject.phrase.emotionValue = std::stoi(phraseNode["EmotionValue"].asString());
|
||||
auto allCid = value["Cid"]["Cid"];
|
||||
for (auto value : allCid)
|
||||
hitsObject.cid.push_back(value.asString());
|
||||
hitResultObject.hits.push_back(hitsObject);
|
||||
}
|
||||
dataObject.hitResult.push_back(hitResultObject);
|
||||
}
|
||||
auto allHitScoreNode = valueDataResultInfo["HitScore"]["HitScoreItem"];
|
||||
for (auto valueDataResultInfoHitScoreHitScoreItem : allHitScoreNode)
|
||||
{
|
||||
ResultInfo::HitScoreItem hitScoreObject;
|
||||
if(!valueDataResultInfoHitScoreHitScoreItem["ScoreId"].isNull())
|
||||
hitScoreObject.scoreId = valueDataResultInfoHitScoreHitScoreItem["ScoreId"].asString();
|
||||
if(!valueDataResultInfoHitScoreHitScoreItem["RuleId"].isNull())
|
||||
hitScoreObject.ruleId = valueDataResultInfoHitScoreHitScoreItem["RuleId"].asString();
|
||||
if(!valueDataResultInfoHitScoreHitScoreItem["ScoreName"].isNull())
|
||||
hitScoreObject.scoreName = valueDataResultInfoHitScoreHitScoreItem["ScoreName"].asString();
|
||||
if(!valueDataResultInfoHitScoreHitScoreItem["ScoreNumber"].isNull())
|
||||
hitScoreObject.scoreNumber = valueDataResultInfoHitScoreHitScoreItem["ScoreNumber"].asString();
|
||||
dataObject.hitScore.push_back(hitScoreObject);
|
||||
}
|
||||
auto recordingNode = value["Recording"];
|
||||
if(!recordingNode["Id"].isNull())
|
||||
dataObject.recording.id = recordingNode["Id"].asString();
|
||||
if(!recordingNode["PrimaryId"].isNull())
|
||||
dataObject.recording.primaryId = recordingNode["PrimaryId"].asString();
|
||||
if(!recordingNode["CallId"].isNull())
|
||||
dataObject.recording.callId = recordingNode["CallId"].asString();
|
||||
if(!recordingNode["Name"].isNull())
|
||||
dataObject.recording.name = recordingNode["Name"].asString();
|
||||
if(!recordingNode["Url"].isNull())
|
||||
dataObject.recording.url = recordingNode["Url"].asString();
|
||||
if(!recordingNode["DataSetName"].isNull())
|
||||
dataObject.recording.dataSetName = recordingNode["DataSetName"].asString();
|
||||
if(!recordingNode["Duration"].isNull())
|
||||
dataObject.recording.duration = std::stol(recordingNode["Duration"].asString());
|
||||
if(!recordingNode["Caller"].isNull())
|
||||
dataObject.recording.caller = recordingNode["Caller"].asString();
|
||||
if(!recordingNode["Callee"].isNull())
|
||||
dataObject.recording.callee = recordingNode["Callee"].asString();
|
||||
if(!recordingNode["CallTime"].isNull())
|
||||
dataObject.recording.callTime = recordingNode["CallTime"].asString();
|
||||
if(!recordingNode["CallType"].isNull())
|
||||
dataObject.recording.callType = std::stoi(recordingNode["CallType"].asString());
|
||||
if(!recordingNode["Business"].isNull())
|
||||
dataObject.recording.business = recordingNode["Business"].asString();
|
||||
if(!recordingNode["Remark1"].isNull())
|
||||
dataObject.recording.remark1 = recordingNode["Remark1"].asString();
|
||||
if(!recordingNode["Remark2"].isNull())
|
||||
dataObject.recording.remark2 = recordingNode["Remark2"].asString();
|
||||
if(!recordingNode["Remark3"].isNull())
|
||||
dataObject.recording.remark3 = recordingNode["Remark3"].asString();
|
||||
if(!recordingNode["Remark4"].isNull())
|
||||
dataObject.recording.remark4 = recordingNode["Remark4"].asString();
|
||||
if(!recordingNode["Remark5"].isNull())
|
||||
dataObject.recording.remark5 = std::stol(recordingNode["Remark5"].asString());
|
||||
if(!recordingNode["Remark6"].isNull())
|
||||
dataObject.recording.remark6 = recordingNode["Remark6"].asString();
|
||||
if(!recordingNode["Remark7"].isNull())
|
||||
dataObject.recording.remark7 = recordingNode["Remark7"].asString();
|
||||
if(!recordingNode["Remark8"].isNull())
|
||||
dataObject.recording.remark8 = recordingNode["Remark8"].asString();
|
||||
if(!recordingNode["Remark9"].isNull())
|
||||
dataObject.recording.remark9 = recordingNode["Remark9"].asString();
|
||||
if(!recordingNode["Remark10"].isNull())
|
||||
dataObject.recording.remark10 = recordingNode["Remark10"].asString();
|
||||
if(!recordingNode["Remark11"].isNull())
|
||||
dataObject.recording.remark11 = recordingNode["Remark11"].asString();
|
||||
if(!recordingNode["Remark12"].isNull())
|
||||
dataObject.recording.remark12 = recordingNode["Remark12"].asString();
|
||||
if(!recordingNode["Remark13"].isNull())
|
||||
dataObject.recording.remark13 = recordingNode["Remark13"].asString();
|
||||
auto agentNode = value["Agent"];
|
||||
if(!agentNode["Id"].isNull())
|
||||
dataObject.agent.id = agentNode["Id"].asString();
|
||||
if(!agentNode["Name"].isNull())
|
||||
dataObject.agent.name = agentNode["Name"].asString();
|
||||
if(!agentNode["SkillGroup"].isNull())
|
||||
dataObject.agent.skillGroup = agentNode["SkillGroup"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["ResultCountId"].isNull())
|
||||
resultCountId_ = value["ResultCountId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetResultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetResultResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int GetResultResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<GetResultResult::ResultInfo> GetResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetResultResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string GetResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string GetResultResult::getResultCountId()const
|
||||
{
|
||||
return resultCountId_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetResultToReviewRequest.cc
Normal file
62
qualitycheck/src/model/GetResultToReviewRequest.cc
Normal file
@@ -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/qualitycheck/model/GetResultToReviewRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetResultToReviewRequest;
|
||||
|
||||
GetResultToReviewRequest::GetResultToReviewRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetResultToReview")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetResultToReviewRequest::~GetResultToReviewRequest()
|
||||
{}
|
||||
|
||||
long GetResultToReviewRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetResultToReviewRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetResultToReviewRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetResultToReviewRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetResultToReviewRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetResultToReviewRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
296
qualitycheck/src/model/GetResultToReviewResult.cc
Normal file
296
qualitycheck/src/model/GetResultToReviewResult.cc
Normal file
@@ -0,0 +1,296 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/GetResultToReviewResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetResultToReviewResult::GetResultToReviewResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetResultToReviewResult::GetResultToReviewResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetResultToReviewResult::~GetResultToReviewResult()
|
||||
{}
|
||||
|
||||
void GetResultToReviewResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Audio"].isNull())
|
||||
data_.audio = dataNode["Audio"].asString() == "true";
|
||||
if(!dataNode["AudioScheme"].isNull())
|
||||
data_.audioScheme = dataNode["AudioScheme"].asString();
|
||||
if(!dataNode["AudioURL"].isNull())
|
||||
data_.audioURL = dataNode["AudioURL"].asString();
|
||||
if(!dataNode["BusinessType"].isNull())
|
||||
data_.businessType = std::stoi(dataNode["BusinessType"].asString());
|
||||
if(!dataNode["Deleted"].isNull())
|
||||
data_.deleted = dataNode["Deleted"].asString() == "true";
|
||||
if(!dataNode["FileMergeName"].isNull())
|
||||
data_.fileMergeName = dataNode["FileMergeName"].asString();
|
||||
if(!dataNode["HitNumber"].isNull())
|
||||
data_.hitNumber = std::stoi(dataNode["HitNumber"].asString());
|
||||
if(!dataNode["ReviewNumber"].isNull())
|
||||
data_.reviewNumber = std::stoi(dataNode["ReviewNumber"].asString());
|
||||
if(!dataNode["TotalScore"].isNull())
|
||||
data_.totalScore = std::stoi(dataNode["TotalScore"].asString());
|
||||
if(!dataNode["Vid"].isNull())
|
||||
data_.vid = dataNode["Vid"].asString();
|
||||
if(!dataNode["Comments"].isNull())
|
||||
data_.comments = dataNode["Comments"].asString();
|
||||
if(!dataNode["FileId"].isNull())
|
||||
data_.fileId = dataNode["FileId"].asString();
|
||||
auto allDialoguesNode = dataNode["Dialogues"]["Dialogue"];
|
||||
for (auto dataNodeDialoguesDialogue : allDialoguesNode)
|
||||
{
|
||||
Data::Dialogue dialogueObject;
|
||||
if(!dataNodeDialoguesDialogue["Begin"].isNull())
|
||||
dialogueObject.begin = std::stol(dataNodeDialoguesDialogue["Begin"].asString());
|
||||
if(!dataNodeDialoguesDialogue["BeginTime"].isNull())
|
||||
dialogueObject.beginTime = dataNodeDialoguesDialogue["BeginTime"].asString();
|
||||
if(!dataNodeDialoguesDialogue["EmotionValue"].isNull())
|
||||
dialogueObject.emotionValue = std::stoi(dataNodeDialoguesDialogue["EmotionValue"].asString());
|
||||
if(!dataNodeDialoguesDialogue["End"].isNull())
|
||||
dialogueObject.end = std::stol(dataNodeDialoguesDialogue["End"].asString());
|
||||
if(!dataNodeDialoguesDialogue["HourMinSec"].isNull())
|
||||
dialogueObject.hourMinSec = dataNodeDialoguesDialogue["HourMinSec"].asString();
|
||||
if(!dataNodeDialoguesDialogue["Identity"].isNull())
|
||||
dialogueObject.identity = dataNodeDialoguesDialogue["Identity"].asString();
|
||||
if(!dataNodeDialoguesDialogue["Role"].isNull())
|
||||
dialogueObject.role = dataNodeDialoguesDialogue["Role"].asString();
|
||||
if(!dataNodeDialoguesDialogue["SilenceDuration"].isNull())
|
||||
dialogueObject.silenceDuration = std::stoi(dataNodeDialoguesDialogue["SilenceDuration"].asString());
|
||||
if(!dataNodeDialoguesDialogue["SpeechRate"].isNull())
|
||||
dialogueObject.speechRate = std::stoi(dataNodeDialoguesDialogue["SpeechRate"].asString());
|
||||
if(!dataNodeDialoguesDialogue["Words"].isNull())
|
||||
dialogueObject.words = dataNodeDialoguesDialogue["Words"].asString();
|
||||
data_.dialogues.push_back(dialogueObject);
|
||||
}
|
||||
auto allHandScoreInfoListNode = dataNode["HandScoreInfoList"]["ScorePo"];
|
||||
for (auto dataNodeHandScoreInfoListScorePo : allHandScoreInfoListNode)
|
||||
{
|
||||
Data::ScorePo scorePoObject;
|
||||
if(!dataNodeHandScoreInfoListScorePo["ScoreId"].isNull())
|
||||
scorePoObject.scoreId = std::stol(dataNodeHandScoreInfoListScorePo["ScoreId"].asString());
|
||||
if(!dataNodeHandScoreInfoListScorePo["ScoreName"].isNull())
|
||||
scorePoObject.scoreName = dataNodeHandScoreInfoListScorePo["ScoreName"].asString();
|
||||
auto allScoreInfosNode = dataNodeHandScoreInfoListScorePo["ScoreInfos"]["ScoreParam"];
|
||||
for (auto dataNodeHandScoreInfoListScorePoScoreInfosScoreParam : allScoreInfosNode)
|
||||
{
|
||||
Data::ScorePo::ScoreParam scoreInfosObject;
|
||||
if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["Hit"].isNull())
|
||||
scoreInfosObject.hit = std::stoi(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["Hit"].asString());
|
||||
if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreNum"].isNull())
|
||||
scoreInfosObject.scoreNum = std::stoi(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreNum"].asString());
|
||||
if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubId"].isNull())
|
||||
scoreInfosObject.scoreSubId = std::stol(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubId"].asString());
|
||||
if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubName"].isNull())
|
||||
scoreInfosObject.scoreSubName = dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubName"].asString();
|
||||
if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreType"].isNull())
|
||||
scoreInfosObject.scoreType = std::stoi(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreType"].asString());
|
||||
scorePoObject.scoreInfos.push_back(scoreInfosObject);
|
||||
}
|
||||
data_.handScoreInfoList.push_back(scorePoObject);
|
||||
}
|
||||
auto allHitRuleReviewInfoListNode = dataNode["HitRuleReviewInfoList"]["HitRuleReviewInfo"];
|
||||
for (auto dataNodeHitRuleReviewInfoListHitRuleReviewInfo : allHitRuleReviewInfoListNode)
|
||||
{
|
||||
Data::HitRuleReviewInfo hitRuleReviewInfoObject;
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["AutoReview"].isNull())
|
||||
hitRuleReviewInfoObject.autoReview = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["AutoReview"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Rid"].isNull())
|
||||
hitRuleReviewInfoObject.rid = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Rid"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleName"].isNull())
|
||||
hitRuleReviewInfoObject.ruleName = dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleName"].asString();
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleScoreType"].isNull())
|
||||
hitRuleReviewInfoObject.ruleScoreType = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleScoreType"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleType"].isNull())
|
||||
hitRuleReviewInfoObject.ruleType = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleType"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreId"].isNull())
|
||||
hitRuleReviewInfoObject.scoreId = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreId"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreSubId"].isNull())
|
||||
hitRuleReviewInfoObject.scoreSubId = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreSubId"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["TotalNumber"].isNull())
|
||||
hitRuleReviewInfoObject.totalNumber = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["TotalNumber"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreSubName"].isNull())
|
||||
hitRuleReviewInfoObject.scoreSubName = dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreSubName"].asString();
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreNum"].isNull())
|
||||
hitRuleReviewInfoObject.scoreNum = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreNum"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Complainable"].isNull())
|
||||
hitRuleReviewInfoObject.complainable = dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Complainable"].asString() == "true";
|
||||
auto allConditionHitInfoListNode = dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ConditionHitInfoList"]["ConditionHitInfo"];
|
||||
for (auto dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfo : allConditionHitInfoListNode)
|
||||
{
|
||||
Data::HitRuleReviewInfo::ConditionHitInfo conditionHitInfoListObject;
|
||||
auto allKeyWordsNode = dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfo["KeyWords"]["KeyWord"];
|
||||
for (auto dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord : allKeyWordsNode)
|
||||
{
|
||||
Data::HitRuleReviewInfo::ConditionHitInfo::KeyWord keyWordsObject;
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Val"].isNull())
|
||||
keyWordsObject.val = dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Val"].asString();
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Pid"].isNull())
|
||||
keyWordsObject.pid = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Pid"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["From"].isNull())
|
||||
keyWordsObject.from = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["From"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["To"].isNull())
|
||||
keyWordsObject.to = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["To"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Tid"].isNull())
|
||||
keyWordsObject.tid = dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Tid"].asString();
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Cid"].isNull())
|
||||
keyWordsObject.cid = dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Cid"].asString();
|
||||
conditionHitInfoListObject.keyWords.push_back(keyWordsObject);
|
||||
}
|
||||
auto phraseNode = value["Phrase"];
|
||||
if(!phraseNode["Role"].isNull())
|
||||
conditionHitInfoListObject.phrase.role = phraseNode["Role"].asString();
|
||||
if(!phraseNode["Identity"].isNull())
|
||||
conditionHitInfoListObject.phrase.identity = phraseNode["Identity"].asString();
|
||||
if(!phraseNode["EmotionValue"].isNull())
|
||||
conditionHitInfoListObject.phrase.emotionValue = std::stoi(phraseNode["EmotionValue"].asString());
|
||||
if(!phraseNode["Words"].isNull())
|
||||
conditionHitInfoListObject.phrase.words = phraseNode["Words"].asString();
|
||||
if(!phraseNode["End"].isNull())
|
||||
conditionHitInfoListObject.phrase.end = std::stol(phraseNode["End"].asString());
|
||||
if(!phraseNode["Pid"].isNull())
|
||||
conditionHitInfoListObject.phrase.pid = std::stoi(phraseNode["Pid"].asString());
|
||||
if(!phraseNode["Begin"].isNull())
|
||||
conditionHitInfoListObject.phrase.begin = std::stol(phraseNode["Begin"].asString());
|
||||
auto allCid = value["Cid"]["Cid"];
|
||||
for (auto value : allCid)
|
||||
conditionHitInfoListObject.cid.push_back(value.asString());
|
||||
hitRuleReviewInfoObject.conditionHitInfoList.push_back(conditionHitInfoListObject);
|
||||
}
|
||||
auto allComplainHistoriesNode = dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ComplainHistories"]["ComplainHistoriesItem"];
|
||||
for (auto dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem : allComplainHistoriesNode)
|
||||
{
|
||||
Data::HitRuleReviewInfo::ComplainHistoriesItem complainHistoriesObject;
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["Comments"].isNull())
|
||||
complainHistoriesObject.comments = dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["Comments"].asString();
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperatorName"].isNull())
|
||||
complainHistoriesObject.operatorName = dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperatorName"].asString();
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["Operator"].isNull())
|
||||
complainHistoriesObject._operator = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["Operator"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationType"].isNull())
|
||||
complainHistoriesObject.operationType = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationType"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationTime"].isNull())
|
||||
complainHistoriesObject.operationTime = dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationTime"].asString();
|
||||
hitRuleReviewInfoObject.complainHistories.push_back(complainHistoriesObject);
|
||||
}
|
||||
auto reviewInfoNode = value["ReviewInfo"];
|
||||
if(!reviewInfoNode["HitId"].isNull())
|
||||
hitRuleReviewInfoObject.reviewInfo.hitId = reviewInfoNode["HitId"].asString();
|
||||
if(!reviewInfoNode["Rid"].isNull())
|
||||
hitRuleReviewInfoObject.reviewInfo.rid = std::stol(reviewInfoNode["Rid"].asString());
|
||||
if(!reviewInfoNode["ReviewResult"].isNull())
|
||||
hitRuleReviewInfoObject.reviewInfo.reviewResult = std::stoi(reviewInfoNode["ReviewResult"].asString());
|
||||
if(!reviewInfoNode["Reviewer"].isNull())
|
||||
hitRuleReviewInfoObject.reviewInfo.reviewer = reviewInfoNode["Reviewer"].asString();
|
||||
if(!reviewInfoNode["ReviewTime"].isNull())
|
||||
hitRuleReviewInfoObject.reviewInfo.reviewTime = reviewInfoNode["ReviewTime"].asString();
|
||||
data_.hitRuleReviewInfoList.push_back(hitRuleReviewInfoObject);
|
||||
}
|
||||
auto allManualScoreInfoListNode = dataNode["ManualScoreInfoList"]["HitRuleReviewInfo"];
|
||||
for (auto dataNodeManualScoreInfoListHitRuleReviewInfo : allManualScoreInfoListNode)
|
||||
{
|
||||
Data::HitRuleReviewInfo1 hitRuleReviewInfo1Object;
|
||||
if(!dataNodeManualScoreInfoListHitRuleReviewInfo["ScoreId"].isNull())
|
||||
hitRuleReviewInfo1Object.scoreId = std::stol(dataNodeManualScoreInfoListHitRuleReviewInfo["ScoreId"].asString());
|
||||
if(!dataNodeManualScoreInfoListHitRuleReviewInfo["ScoreSubId"].isNull())
|
||||
hitRuleReviewInfo1Object.scoreSubId = std::stol(dataNodeManualScoreInfoListHitRuleReviewInfo["ScoreSubId"].asString());
|
||||
if(!dataNodeManualScoreInfoListHitRuleReviewInfo["ScoreSubName"].isNull())
|
||||
hitRuleReviewInfo1Object.scoreSubName = dataNodeManualScoreInfoListHitRuleReviewInfo["ScoreSubName"].asString();
|
||||
if(!dataNodeManualScoreInfoListHitRuleReviewInfo["ScoreNum"].isNull())
|
||||
hitRuleReviewInfo1Object.scoreNum = std::stoi(dataNodeManualScoreInfoListHitRuleReviewInfo["ScoreNum"].asString());
|
||||
if(!dataNodeManualScoreInfoListHitRuleReviewInfo["Complainable"].isNull())
|
||||
hitRuleReviewInfo1Object.complainable = dataNodeManualScoreInfoListHitRuleReviewInfo["Complainable"].asString() == "true";
|
||||
auto allComplainHistories2Node = dataNodeManualScoreInfoListHitRuleReviewInfo["ComplainHistories"]["ComplainHistoriesItem"];
|
||||
for (auto dataNodeManualScoreInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem : allComplainHistories2Node)
|
||||
{
|
||||
Data::HitRuleReviewInfo1::ComplainHistoriesItem complainHistories2Object;
|
||||
if(!dataNodeManualScoreInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["Comments"].isNull())
|
||||
complainHistories2Object.comments = dataNodeManualScoreInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["Comments"].asString();
|
||||
if(!dataNodeManualScoreInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperatorName"].isNull())
|
||||
complainHistories2Object.operatorName = dataNodeManualScoreInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperatorName"].asString();
|
||||
if(!dataNodeManualScoreInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["Operator"].isNull())
|
||||
complainHistories2Object._operator = std::stol(dataNodeManualScoreInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["Operator"].asString());
|
||||
if(!dataNodeManualScoreInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationType"].isNull())
|
||||
complainHistories2Object.operationType = std::stoi(dataNodeManualScoreInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationType"].asString());
|
||||
if(!dataNodeManualScoreInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationTime"].isNull())
|
||||
complainHistories2Object.operationTime = dataNodeManualScoreInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationTime"].asString();
|
||||
hitRuleReviewInfo1Object.complainHistories2.push_back(complainHistories2Object);
|
||||
}
|
||||
data_.manualScoreInfoList.push_back(hitRuleReviewInfo1Object);
|
||||
}
|
||||
auto allReviewHistoryListNode = dataNode["ReviewHistoryList"]["ReviewHistory"];
|
||||
for (auto dataNodeReviewHistoryListReviewHistory : allReviewHistoryListNode)
|
||||
{
|
||||
Data::ReviewHistory reviewHistoryObject;
|
||||
if(!dataNodeReviewHistoryListReviewHistory["TimeStr"].isNull())
|
||||
reviewHistoryObject.timeStr = dataNodeReviewHistoryListReviewHistory["TimeStr"].asString();
|
||||
if(!dataNodeReviewHistoryListReviewHistory["OperatorName"].isNull())
|
||||
reviewHistoryObject.operatorName = dataNodeReviewHistoryListReviewHistory["OperatorName"].asString();
|
||||
if(!dataNodeReviewHistoryListReviewHistory["Type"].isNull())
|
||||
reviewHistoryObject.type = std::stoi(dataNodeReviewHistoryListReviewHistory["Type"].asString());
|
||||
if(!dataNodeReviewHistoryListReviewHistory["ReviewResult"].isNull())
|
||||
reviewHistoryObject.reviewResult = std::stoi(dataNodeReviewHistoryListReviewHistory["ReviewResult"].asString());
|
||||
if(!dataNodeReviewHistoryListReviewHistory["ComplainResult"].isNull())
|
||||
reviewHistoryObject.complainResult = std::stoi(dataNodeReviewHistoryListReviewHistory["ComplainResult"].asString());
|
||||
if(!dataNodeReviewHistoryListReviewHistory["OldScore"].isNull())
|
||||
reviewHistoryObject.oldScore = std::stoi(dataNodeReviewHistoryListReviewHistory["OldScore"].asString());
|
||||
if(!dataNodeReviewHistoryListReviewHistory["Score"].isNull())
|
||||
reviewHistoryObject.score = std::stoi(dataNodeReviewHistoryListReviewHistory["Score"].asString());
|
||||
data_.reviewHistoryList.push_back(reviewHistoryObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetResultToReviewResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetResultToReviewResult::Data GetResultToReviewResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetResultToReviewResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetResultToReviewResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetRuleCategoryRequest.cc
Normal file
62
qualitycheck/src/model/GetRuleCategoryRequest.cc
Normal file
@@ -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/qualitycheck/model/GetRuleCategoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetRuleCategoryRequest;
|
||||
|
||||
GetRuleCategoryRequest::GetRuleCategoryRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetRuleCategory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetRuleCategoryRequest::~GetRuleCategoryRequest()
|
||||
{}
|
||||
|
||||
long GetRuleCategoryRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetRuleCategoryRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetRuleCategoryRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetRuleCategoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetRuleCategoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
82
qualitycheck/src/model/GetRuleCategoryResult.cc
Normal file
82
qualitycheck/src/model/GetRuleCategoryResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/GetRuleCategoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetRuleCategoryResult::GetRuleCategoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRuleCategoryResult::GetRuleCategoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRuleCategoryResult::~GetRuleCategoryResult()
|
||||
{}
|
||||
|
||||
void GetRuleCategoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["RuleCountInfo"];
|
||||
for (auto valueDataRuleCountInfo : allDataNode)
|
||||
{
|
||||
RuleCountInfo dataObject;
|
||||
if(!valueDataRuleCountInfo["Type"].isNull())
|
||||
dataObject.type = std::stoi(valueDataRuleCountInfo["Type"].asString());
|
||||
if(!valueDataRuleCountInfo["TypeName"].isNull())
|
||||
dataObject.typeName = valueDataRuleCountInfo["TypeName"].asString();
|
||||
if(!valueDataRuleCountInfo["Select"].isNull())
|
||||
dataObject.select = valueDataRuleCountInfo["Select"].asString() == "true";
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetRuleCategoryResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetRuleCategoryResult::RuleCountInfo> GetRuleCategoryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetRuleCategoryResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetRuleCategoryResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetRuleDetailRequest.cc
Normal file
62
qualitycheck/src/model/GetRuleDetailRequest.cc
Normal file
@@ -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/qualitycheck/model/GetRuleDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetRuleDetailRequest;
|
||||
|
||||
GetRuleDetailRequest::GetRuleDetailRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetRuleDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetRuleDetailRequest::~GetRuleDetailRequest()
|
||||
{}
|
||||
|
||||
long GetRuleDetailRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetRuleDetailRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetRuleDetailRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetRuleDetailRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetRuleDetailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetRuleDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
196
qualitycheck/src/model/GetRuleDetailResult.cc
Normal file
196
qualitycheck/src/model/GetRuleDetailResult.cc
Normal file
@@ -0,0 +1,196 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/GetRuleDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetRuleDetailResult::GetRuleDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRuleDetailResult::GetRuleDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRuleDetailResult::~GetRuleDetailResult()
|
||||
{}
|
||||
|
||||
void GetRuleDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allConditionsNode = dataNode["Conditions"]["ConditionBasicInfo"];
|
||||
for (auto dataNodeConditionsConditionBasicInfo : allConditionsNode)
|
||||
{
|
||||
Data::ConditionBasicInfo conditionBasicInfoObject;
|
||||
if(!dataNodeConditionsConditionBasicInfo["ConditionInfoCid"].isNull())
|
||||
conditionBasicInfoObject.conditionInfoCid = dataNodeConditionsConditionBasicInfo["ConditionInfoCid"].asString();
|
||||
if(!dataNodeConditionsConditionBasicInfo["OperLambda"].isNull())
|
||||
conditionBasicInfoObject.operLambda = dataNodeConditionsConditionBasicInfo["OperLambda"].asString();
|
||||
auto allOperatorsNode = dataNodeConditionsConditionBasicInfo["Operators"]["OperatorBasicInfo"];
|
||||
for (auto dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo : allOperatorsNode)
|
||||
{
|
||||
Data::ConditionBasicInfo::OperatorBasicInfo operatorsObject;
|
||||
if(!dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Oid"].isNull())
|
||||
operatorsObject.oid = dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Oid"].asString();
|
||||
if(!dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Type"].isNull())
|
||||
operatorsObject.type = dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Type"].asString();
|
||||
if(!dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["OperName"].isNull())
|
||||
operatorsObject.operName = dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["OperName"].asString();
|
||||
auto paramNode = value["Param"];
|
||||
if(!paramNode["Regex"].isNull())
|
||||
operatorsObject.param.regex = paramNode["Regex"].asString();
|
||||
if(!paramNode["Phrase"].isNull())
|
||||
operatorsObject.param.phrase = paramNode["Phrase"].asString();
|
||||
if(!paramNode["Interval"].isNull())
|
||||
operatorsObject.param.interval = std::stoi(paramNode["Interval"].asString());
|
||||
if(!paramNode["Threshold"].isNull())
|
||||
operatorsObject.param.threshold = std::stof(paramNode["Threshold"].asString());
|
||||
if(!paramNode["InSentence"].isNull())
|
||||
operatorsObject.param.inSentence = paramNode["InSentence"].asString() == "true";
|
||||
if(!paramNode["Target"].isNull())
|
||||
operatorsObject.param.target = std::stoi(paramNode["Target"].asString());
|
||||
if(!paramNode["FromEnd"].isNull())
|
||||
operatorsObject.param.fromEnd = paramNode["FromEnd"].asString() == "true";
|
||||
if(!paramNode["DifferentRole"].isNull())
|
||||
operatorsObject.param.differentRole = paramNode["DifferentRole"].asString() == "true";
|
||||
if(!paramNode["TargetRole"].isNull())
|
||||
operatorsObject.param.targetRole = paramNode["TargetRole"].asString();
|
||||
if(!paramNode["Score"].isNull())
|
||||
operatorsObject.param.score = std::stoi(paramNode["Score"].asString());
|
||||
if(!paramNode["ContextChatMatch"].isNull())
|
||||
operatorsObject.param.contextChatMatch = paramNode["ContextChatMatch"].asString() == "true";
|
||||
if(!paramNode["KeywordMatchSize"].isNull())
|
||||
operatorsObject.param.keywordMatchSize = std::stoi(paramNode["KeywordMatchSize"].asString());
|
||||
if(!paramNode["Average"].isNull())
|
||||
operatorsObject.param.average = paramNode["Average"].asString() == "true";
|
||||
if(!paramNode["VelocityInMint"].isNull())
|
||||
operatorsObject.param.velocityInMint = std::stoi(paramNode["VelocityInMint"].asString());
|
||||
if(!paramNode["MinWordSize"].isNull())
|
||||
operatorsObject.param.minWordSize = std::stoi(paramNode["MinWordSize"].asString());
|
||||
if(!paramNode["KeywordExtension"].isNull())
|
||||
operatorsObject.param.keywordExtension = paramNode["KeywordExtension"].asString() == "true";
|
||||
if(!paramNode["HitTime"].isNull())
|
||||
operatorsObject.param.hitTime = std::stoi(paramNode["HitTime"].asString());
|
||||
if(!paramNode["From"].isNull())
|
||||
operatorsObject.param.from = std::stoi(paramNode["From"].asString());
|
||||
if(!paramNode["BeginType"].isNull())
|
||||
operatorsObject.param.beginType = paramNode["BeginType"].asString();
|
||||
if(!paramNode["CompareOperator"].isNull())
|
||||
operatorsObject.param.compareOperator = paramNode["CompareOperator"].asString();
|
||||
if(!paramNode["CheckType"].isNull())
|
||||
operatorsObject.param.checkType = std::stoi(paramNode["CheckType"].asString());
|
||||
if(!paramNode["MaxEmotionChangeValue"].isNull())
|
||||
operatorsObject.param.maxEmotionChangeValue = std::stoi(paramNode["MaxEmotionChangeValue"].asString());
|
||||
if(!paramNode["CheckType"].isNull())
|
||||
operatorsObject.param.checkType1 = std::stoi(paramNode["CheckType"].asString());
|
||||
if(!paramNode["MaxEmotionChangeValue"].isNull())
|
||||
operatorsObject.param.maxEmotionChangeValue2 = std::stoi(paramNode["MaxEmotionChangeValue"].asString());
|
||||
auto allOperKeyWords = paramNode["OperKeyWords"]["OperKeyWord"];
|
||||
for (auto value : allOperKeyWords)
|
||||
operatorsObject.param.operKeyWords.push_back(value.asString());
|
||||
auto allReferences = paramNode["References"]["Reference"];
|
||||
for (auto value : allReferences)
|
||||
operatorsObject.param.references.push_back(value.asString());
|
||||
auto allSimilarlySentences = paramNode["SimilarlySentences"]["SimilarlySentence"];
|
||||
for (auto value : allSimilarlySentences)
|
||||
operatorsObject.param.similarlySentences.push_back(value.asString());
|
||||
auto allExcludes = paramNode["Excludes"]["Excludes"];
|
||||
for (auto value : allExcludes)
|
||||
operatorsObject.param.excludes.push_back(value.asString());
|
||||
conditionBasicInfoObject.operators.push_back(operatorsObject);
|
||||
}
|
||||
auto checkRangeNode = value["CheckRange"];
|
||||
if(!checkRangeNode["Role"].isNull())
|
||||
conditionBasicInfoObject.checkRange.role = checkRangeNode["Role"].asString();
|
||||
if(!checkRangeNode["Absolute"].isNull())
|
||||
conditionBasicInfoObject.checkRange.absolute = checkRangeNode["Absolute"].asString() == "true";
|
||||
auto anchorNode = checkRangeNode["Anchor"];
|
||||
if(!anchorNode["AnchorCid"].isNull())
|
||||
conditionBasicInfoObject.checkRange.anchor.anchorCid = anchorNode["AnchorCid"].asString();
|
||||
if(!anchorNode["Location"].isNull())
|
||||
conditionBasicInfoObject.checkRange.anchor.location = anchorNode["Location"].asString();
|
||||
if(!anchorNode["HitTime"].isNull())
|
||||
conditionBasicInfoObject.checkRange.anchor.hitTime = std::stoi(anchorNode["HitTime"].asString());
|
||||
auto rangeNode = checkRangeNode["Range"];
|
||||
if(!rangeNode["From"].isNull())
|
||||
conditionBasicInfoObject.checkRange.range.from = std::stoi(rangeNode["From"].asString());
|
||||
if(!rangeNode["To"].isNull())
|
||||
conditionBasicInfoObject.checkRange.range.to = std::stoi(rangeNode["To"].asString());
|
||||
data_.conditions.push_back(conditionBasicInfoObject);
|
||||
}
|
||||
auto allRulesNode = dataNode["Rules"]["RuleBasicInfo"];
|
||||
for (auto dataNodeRulesRuleBasicInfo : allRulesNode)
|
||||
{
|
||||
Data::RuleBasicInfo ruleBasicInfoObject;
|
||||
if(!dataNodeRulesRuleBasicInfo["Rid"].isNull())
|
||||
ruleBasicInfoObject.rid = dataNodeRulesRuleBasicInfo["Rid"].asString();
|
||||
if(!dataNodeRulesRuleBasicInfo["RuleLambda"].isNull())
|
||||
ruleBasicInfoObject.ruleLambda = dataNodeRulesRuleBasicInfo["RuleLambda"].asString();
|
||||
auto allBusinessCategoriesNode = dataNodeRulesRuleBasicInfo["BusinessCategories"]["BusinessCategoryBasicInfo"];
|
||||
for (auto dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo : allBusinessCategoriesNode)
|
||||
{
|
||||
Data::RuleBasicInfo::BusinessCategoryBasicInfo businessCategoriesObject;
|
||||
if(!dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["Bid"].isNull())
|
||||
businessCategoriesObject.bid = std::stoi(dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["Bid"].asString());
|
||||
if(!dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["ServiceType"].isNull())
|
||||
businessCategoriesObject.serviceType = std::stoi(dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["ServiceType"].asString());
|
||||
if(!dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["BusinessName"].isNull())
|
||||
businessCategoriesObject.businessName = dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["BusinessName"].asString();
|
||||
ruleBasicInfoObject.businessCategories.push_back(businessCategoriesObject);
|
||||
}
|
||||
auto allTriggers = value["Triggers"]["Trigger"];
|
||||
for (auto value : allTriggers)
|
||||
ruleBasicInfoObject.triggers.push_back(value.asString());
|
||||
data_.rules.push_back(ruleBasicInfoObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetRuleDetailResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetRuleDetailResult::Data GetRuleDetailResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetRuleDetailResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetRuleDetailResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetRuleRequest.cc
Normal file
62
qualitycheck/src/model/GetRuleRequest.cc
Normal file
@@ -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/qualitycheck/model/GetRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetRuleRequest;
|
||||
|
||||
GetRuleRequest::GetRuleRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetRuleRequest::~GetRuleRequest()
|
||||
{}
|
||||
|
||||
long GetRuleRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetRuleRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetRuleRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetRuleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
122
qualitycheck/src/model/GetRuleResult.cc
Normal file
122
qualitycheck/src/model/GetRuleResult.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/qualitycheck/model/GetRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetRuleResult::GetRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRuleResult::GetRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRuleResult::~GetRuleResult()
|
||||
{}
|
||||
|
||||
void GetRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allRulesNode = dataNode["Rules"]["RuleInfo"];
|
||||
for (auto dataNodeRulesRuleInfo : allRulesNode)
|
||||
{
|
||||
Data::RuleInfo ruleInfoObject;
|
||||
if(!dataNodeRulesRuleInfo["Rid"].isNull())
|
||||
ruleInfoObject.rid = dataNodeRulesRuleInfo["Rid"].asString();
|
||||
if(!dataNodeRulesRuleInfo["RuleLambda"].isNull())
|
||||
ruleInfoObject.ruleLambda = dataNodeRulesRuleInfo["RuleLambda"].asString();
|
||||
if(!dataNodeRulesRuleInfo["Name"].isNull())
|
||||
ruleInfoObject.name = dataNodeRulesRuleInfo["Name"].asString();
|
||||
if(!dataNodeRulesRuleInfo["Type"].isNull())
|
||||
ruleInfoObject.type = std::stoi(dataNodeRulesRuleInfo["Type"].asString());
|
||||
if(!dataNodeRulesRuleInfo["Status"].isNull())
|
||||
ruleInfoObject.status = std::stoi(dataNodeRulesRuleInfo["Status"].asString());
|
||||
if(!dataNodeRulesRuleInfo["IsDelete"].isNull())
|
||||
ruleInfoObject.isDelete = std::stoi(dataNodeRulesRuleInfo["IsDelete"].asString());
|
||||
if(!dataNodeRulesRuleInfo["StartTime"].isNull())
|
||||
ruleInfoObject.startTime = dataNodeRulesRuleInfo["StartTime"].asString();
|
||||
if(!dataNodeRulesRuleInfo["EndTime"].isNull())
|
||||
ruleInfoObject.endTime = dataNodeRulesRuleInfo["EndTime"].asString();
|
||||
if(!dataNodeRulesRuleInfo["Weight"].isNull())
|
||||
ruleInfoObject.weight = dataNodeRulesRuleInfo["Weight"].asString();
|
||||
if(!dataNodeRulesRuleInfo["IsOnline"].isNull())
|
||||
ruleInfoObject.isOnline = std::stoi(dataNodeRulesRuleInfo["IsOnline"].asString());
|
||||
if(!dataNodeRulesRuleInfo["CreateEmpid"].isNull())
|
||||
ruleInfoObject.createEmpid = dataNodeRulesRuleInfo["CreateEmpid"].asString();
|
||||
if(!dataNodeRulesRuleInfo["CreateTime"].isNull())
|
||||
ruleInfoObject.createTime = dataNodeRulesRuleInfo["CreateTime"].asString();
|
||||
if(!dataNodeRulesRuleInfo["LastUpdateTime"].isNull())
|
||||
ruleInfoObject.lastUpdateTime = dataNodeRulesRuleInfo["LastUpdateTime"].asString();
|
||||
if(!dataNodeRulesRuleInfo["LastUpdateEmpid"].isNull())
|
||||
ruleInfoObject.lastUpdateEmpid = dataNodeRulesRuleInfo["LastUpdateEmpid"].asString();
|
||||
if(!dataNodeRulesRuleInfo["Comments"].isNull())
|
||||
ruleInfoObject.comments = dataNodeRulesRuleInfo["Comments"].asString();
|
||||
if(!dataNodeRulesRuleInfo["AutoReview"].isNull())
|
||||
ruleInfoObject.autoReview = std::stoi(dataNodeRulesRuleInfo["AutoReview"].asString());
|
||||
if(!dataNodeRulesRuleInfo["RuleScoreType"].isNull())
|
||||
ruleInfoObject.ruleScoreType = std::stoi(dataNodeRulesRuleInfo["RuleScoreType"].asString());
|
||||
if(!dataNodeRulesRuleInfo["ScoreName"].isNull())
|
||||
ruleInfoObject.scoreName = dataNodeRulesRuleInfo["ScoreName"].asString();
|
||||
if(!dataNodeRulesRuleInfo["ScoreSubName"].isNull())
|
||||
ruleInfoObject.scoreSubName = dataNodeRulesRuleInfo["ScoreSubName"].asString();
|
||||
if(!dataNodeRulesRuleInfo["ScoreId"].isNull())
|
||||
ruleInfoObject.scoreId = std::stoi(dataNodeRulesRuleInfo["ScoreId"].asString());
|
||||
if(!dataNodeRulesRuleInfo["ScoreSubId"].isNull())
|
||||
ruleInfoObject.scoreSubId = std::stoi(dataNodeRulesRuleInfo["ScoreSubId"].asString());
|
||||
auto allBusinessCategoryNameList = value["BusinessCategoryNameList"]["BusinessCategoryNameList"];
|
||||
for (auto value : allBusinessCategoryNameList)
|
||||
ruleInfoObject.businessCategoryNameList.push_back(value.asString());
|
||||
data_.rules.push_back(ruleInfoObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetRuleResult::Data GetRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetScoreInfoRequest.cc
Normal file
62
qualitycheck/src/model/GetScoreInfoRequest.cc
Normal file
@@ -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/qualitycheck/model/GetScoreInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetScoreInfoRequest;
|
||||
|
||||
GetScoreInfoRequest::GetScoreInfoRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetScoreInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetScoreInfoRequest::~GetScoreInfoRequest()
|
||||
{}
|
||||
|
||||
long GetScoreInfoRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetScoreInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetScoreInfoRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetScoreInfoRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetScoreInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetScoreInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
94
qualitycheck/src/model/GetScoreInfoResult.cc
Normal file
94
qualitycheck/src/model/GetScoreInfoResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/GetScoreInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetScoreInfoResult::GetScoreInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetScoreInfoResult::GetScoreInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetScoreInfoResult::~GetScoreInfoResult()
|
||||
{}
|
||||
|
||||
void GetScoreInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["ScorePo"];
|
||||
for (auto valueDataScorePo : allDataNode)
|
||||
{
|
||||
ScorePo dataObject;
|
||||
if(!valueDataScorePo["ScoreId"].isNull())
|
||||
dataObject.scoreId = std::stoi(valueDataScorePo["ScoreId"].asString());
|
||||
if(!valueDataScorePo["ScoreName"].isNull())
|
||||
dataObject.scoreName = valueDataScorePo["ScoreName"].asString();
|
||||
auto allScoreInfosNode = valueDataScorePo["ScoreInfos"]["ScoreParam"];
|
||||
for (auto valueDataScorePoScoreInfosScoreParam : allScoreInfosNode)
|
||||
{
|
||||
ScorePo::ScoreParam scoreInfosObject;
|
||||
if(!valueDataScorePoScoreInfosScoreParam["ScoreNum"].isNull())
|
||||
scoreInfosObject.scoreNum = std::stoi(valueDataScorePoScoreInfosScoreParam["ScoreNum"].asString());
|
||||
if(!valueDataScorePoScoreInfosScoreParam["ScoreSubId"].isNull())
|
||||
scoreInfosObject.scoreSubId = std::stoi(valueDataScorePoScoreInfosScoreParam["ScoreSubId"].asString());
|
||||
if(!valueDataScorePoScoreInfosScoreParam["ScoreSubName"].isNull())
|
||||
scoreInfosObject.scoreSubName = valueDataScorePoScoreInfosScoreParam["ScoreSubName"].asString();
|
||||
if(!valueDataScorePoScoreInfosScoreParam["ScoreType"].isNull())
|
||||
scoreInfosObject.scoreType = std::stoi(valueDataScorePoScoreInfosScoreParam["ScoreType"].asString());
|
||||
dataObject.scoreInfos.push_back(scoreInfosObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetScoreInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetScoreInfoResult::ScorePo> GetScoreInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetScoreInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetScoreInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetSkillGroupConfigRequest.cc
Normal file
62
qualitycheck/src/model/GetSkillGroupConfigRequest.cc
Normal file
@@ -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/qualitycheck/model/GetSkillGroupConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetSkillGroupConfigRequest;
|
||||
|
||||
GetSkillGroupConfigRequest::GetSkillGroupConfigRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetSkillGroupConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSkillGroupConfigRequest::~GetSkillGroupConfigRequest()
|
||||
{}
|
||||
|
||||
long GetSkillGroupConfigRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetSkillGroupConfigRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetSkillGroupConfigRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetSkillGroupConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetSkillGroupConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
127
qualitycheck/src/model/GetSkillGroupConfigResult.cc
Normal file
127
qualitycheck/src/model/GetSkillGroupConfigResult.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/qualitycheck/model/GetSkillGroupConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetSkillGroupConfigResult::GetSkillGroupConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetSkillGroupConfigResult::GetSkillGroupConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetSkillGroupConfigResult::~GetSkillGroupConfigResult()
|
||||
{}
|
||||
|
||||
void GetSkillGroupConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["InstanceId"].isNull())
|
||||
data_.instanceId = dataNode["InstanceId"].asString();
|
||||
if(!dataNode["ModelId"].isNull())
|
||||
data_.modelId = std::stol(dataNode["ModelId"].asString());
|
||||
if(!dataNode["ModelName"].isNull())
|
||||
data_.modelName = dataNode["ModelName"].asString();
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Rid"].isNull())
|
||||
data_.rid = dataNode["Rid"].asString();
|
||||
if(!dataNode["SkillGroupId"].isNull())
|
||||
data_.skillGroupId = dataNode["SkillGroupId"].asString();
|
||||
if(!dataNode["SkillGroupName"].isNull())
|
||||
data_.skillGroupName = dataNode["SkillGroupName"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["Type"].isNull())
|
||||
data_.type = std::stoi(dataNode["Type"].asString());
|
||||
if(!dataNode["VocabId"].isNull())
|
||||
data_.vocabId = std::stol(dataNode["VocabId"].asString());
|
||||
if(!dataNode["VocabName"].isNull())
|
||||
data_.vocabName = dataNode["VocabName"].asString();
|
||||
if(!dataNode["CreateTime"].isNull())
|
||||
data_.createTime = dataNode["CreateTime"].asString();
|
||||
if(!dataNode["UpdateTime"].isNull())
|
||||
data_.updateTime = dataNode["UpdateTime"].asString();
|
||||
if(!dataNode["QualityCheckType"].isNull())
|
||||
data_.qualityCheckType = std::stoi(dataNode["QualityCheckType"].asString());
|
||||
if(!dataNode["AllContentQualityCheck"].isNull())
|
||||
data_.allContentQualityCheck = std::stoi(dataNode["AllContentQualityCheck"].asString());
|
||||
if(!dataNode["AllRids"].isNull())
|
||||
data_.allRids = dataNode["AllRids"].asString();
|
||||
if(!dataNode["SkillGroupFrom"].isNull())
|
||||
data_.skillGroupFrom = std::stoi(dataNode["SkillGroupFrom"].asString());
|
||||
auto allRuleListNode = dataNode["RuleList"]["RuleNameInfo"];
|
||||
for (auto dataNodeRuleListRuleNameInfo : allRuleListNode)
|
||||
{
|
||||
Data::RuleNameInfo ruleNameInfoObject;
|
||||
if(!dataNodeRuleListRuleNameInfo["Rid"].isNull())
|
||||
ruleNameInfoObject.rid = std::stol(dataNodeRuleListRuleNameInfo["Rid"].asString());
|
||||
if(!dataNodeRuleListRuleNameInfo["RuleName"].isNull())
|
||||
ruleNameInfoObject.ruleName = dataNodeRuleListRuleNameInfo["RuleName"].asString();
|
||||
data_.ruleList.push_back(ruleNameInfoObject);
|
||||
}
|
||||
auto allAllRuleListNode = dataNode["AllRuleList"]["RuleNameInfo"];
|
||||
for (auto dataNodeAllRuleListRuleNameInfo : allAllRuleListNode)
|
||||
{
|
||||
Data::RuleNameInfo ruleNameInfoObject;
|
||||
if(!dataNodeAllRuleListRuleNameInfo["Rid"].isNull())
|
||||
ruleNameInfoObject.rid = std::stol(dataNodeAllRuleListRuleNameInfo["Rid"].asString());
|
||||
if(!dataNodeAllRuleListRuleNameInfo["RuleName"].isNull())
|
||||
ruleNameInfoObject.ruleName = dataNodeAllRuleListRuleNameInfo["RuleName"].asString();
|
||||
data_.allRuleList.push_back(ruleNameInfoObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetSkillGroupConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetSkillGroupConfigResult::Data GetSkillGroupConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetSkillGroupConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetSkillGroupConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
qualitycheck/src/model/GetSyncResultRequest.cc
Normal file
40
qualitycheck/src/model/GetSyncResultRequest.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/qualitycheck/model/GetSyncResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetSyncResultRequest;
|
||||
|
||||
GetSyncResultRequest::GetSyncResultRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetSyncResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSyncResultRequest::~GetSyncResultRequest()
|
||||
{}
|
||||
|
||||
std::string GetSyncResultRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetSyncResultRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
236
qualitycheck/src/model/GetSyncResultResult.cc
Normal file
236
qualitycheck/src/model/GetSyncResultResult.cc
Normal file
@@ -0,0 +1,236 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/GetSyncResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetSyncResultResult::GetSyncResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetSyncResultResult::GetSyncResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetSyncResultResult::~GetSyncResultResult()
|
||||
{}
|
||||
|
||||
void GetSyncResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["ResultInfo"];
|
||||
for (auto valueDataResultInfo : allDataNode)
|
||||
{
|
||||
ResultInfo dataObject;
|
||||
if(!valueDataResultInfo["Score"].isNull())
|
||||
dataObject.score = std::stoi(valueDataResultInfo["Score"].asString());
|
||||
if(!valueDataResultInfo["Comments"].isNull())
|
||||
dataObject.comments = valueDataResultInfo["Comments"].asString();
|
||||
if(!valueDataResultInfo["ErrorMessage"].isNull())
|
||||
dataObject.errorMessage = valueDataResultInfo["ErrorMessage"].asString();
|
||||
if(!valueDataResultInfo["Status"].isNull())
|
||||
dataObject.status = std::stoi(valueDataResultInfo["Status"].asString());
|
||||
if(!valueDataResultInfo["ReviewStatus"].isNull())
|
||||
dataObject.reviewStatus = std::stoi(valueDataResultInfo["ReviewStatus"].asString());
|
||||
if(!valueDataResultInfo["ReviewResult"].isNull())
|
||||
dataObject.reviewResult = std::stoi(valueDataResultInfo["ReviewResult"].asString());
|
||||
if(!valueDataResultInfo["TaskId"].isNull())
|
||||
dataObject.taskId = valueDataResultInfo["TaskId"].asString();
|
||||
if(!valueDataResultInfo["TaskName"].isNull())
|
||||
dataObject.taskName = valueDataResultInfo["TaskName"].asString();
|
||||
if(!valueDataResultInfo["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataResultInfo["CreateTime"].asString();
|
||||
if(!valueDataResultInfo["Reviewer"].isNull())
|
||||
dataObject.reviewer = valueDataResultInfo["Reviewer"].asString();
|
||||
if(!valueDataResultInfo["Resolver"].isNull())
|
||||
dataObject.resolver = valueDataResultInfo["Resolver"].asString();
|
||||
auto allAsrResultNode = valueDataResultInfo["AsrResult"]["AsrResultItem"];
|
||||
for (auto valueDataResultInfoAsrResultAsrResultItem : allAsrResultNode)
|
||||
{
|
||||
ResultInfo::AsrResultItem asrResultObject;
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["Role"].isNull())
|
||||
asrResultObject.role = valueDataResultInfoAsrResultAsrResultItem["Role"].asString();
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["Words"].isNull())
|
||||
asrResultObject.words = valueDataResultInfoAsrResultAsrResultItem["Words"].asString();
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["Begin"].isNull())
|
||||
asrResultObject.begin = std::stol(valueDataResultInfoAsrResultAsrResultItem["Begin"].asString());
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["End"].isNull())
|
||||
asrResultObject.end = std::stol(valueDataResultInfoAsrResultAsrResultItem["End"].asString());
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["EmotionValue"].isNull())
|
||||
asrResultObject.emotionValue = std::stoi(valueDataResultInfoAsrResultAsrResultItem["EmotionValue"].asString());
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["SilenceDuration"].isNull())
|
||||
asrResultObject.silenceDuration = std::stoi(valueDataResultInfoAsrResultAsrResultItem["SilenceDuration"].asString());
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["SpeechRate"].isNull())
|
||||
asrResultObject.speechRate = std::stoi(valueDataResultInfoAsrResultAsrResultItem["SpeechRate"].asString());
|
||||
dataObject.asrResult.push_back(asrResultObject);
|
||||
}
|
||||
auto allHitResultNode = valueDataResultInfo["HitResult"]["HitResultItem"];
|
||||
for (auto valueDataResultInfoHitResultHitResultItem : allHitResultNode)
|
||||
{
|
||||
ResultInfo::HitResultItem hitResultObject;
|
||||
if(!valueDataResultInfoHitResultHitResultItem["Rid"].isNull())
|
||||
hitResultObject.rid = valueDataResultInfoHitResultHitResultItem["Rid"].asString();
|
||||
if(!valueDataResultInfoHitResultHitResultItem["Name"].isNull())
|
||||
hitResultObject.name = valueDataResultInfoHitResultHitResultItem["Name"].asString();
|
||||
if(!valueDataResultInfoHitResultHitResultItem["Type"].isNull())
|
||||
hitResultObject.type = valueDataResultInfoHitResultHitResultItem["Type"].asString();
|
||||
if(!valueDataResultInfoHitResultHitResultItem["ReviewResult"].isNull())
|
||||
hitResultObject.reviewResult = std::stoi(valueDataResultInfoHitResultHitResultItem["ReviewResult"].asString());
|
||||
auto allHitsNode = valueDataResultInfoHitResultHitResultItem["Hits"]["Hit"];
|
||||
for (auto valueDataResultInfoHitResultHitResultItemHitsHit : allHitsNode)
|
||||
{
|
||||
ResultInfo::HitResultItem::Hit hitsObject;
|
||||
auto allKeyWordsNode = valueDataResultInfoHitResultHitResultItemHitsHit["KeyWords"]["KeyWord"];
|
||||
for (auto valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord : allKeyWordsNode)
|
||||
{
|
||||
ResultInfo::HitResultItem::Hit::KeyWord keyWordsObject;
|
||||
if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].isNull())
|
||||
keyWordsObject.cid = valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].asString();
|
||||
if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["From"].isNull())
|
||||
keyWordsObject.from = std::stoi(valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["From"].asString());
|
||||
if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["To"].isNull())
|
||||
keyWordsObject.to = std::stoi(valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["To"].asString());
|
||||
if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Val"].isNull())
|
||||
keyWordsObject.val = valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Val"].asString();
|
||||
hitsObject.keyWords.push_back(keyWordsObject);
|
||||
}
|
||||
auto phraseNode = value["Phrase"];
|
||||
if(!phraseNode["Role"].isNull())
|
||||
hitsObject.phrase.role = phraseNode["Role"].asString();
|
||||
if(!phraseNode["Words"].isNull())
|
||||
hitsObject.phrase.words = phraseNode["Words"].asString();
|
||||
if(!phraseNode["Begin"].isNull())
|
||||
hitsObject.phrase.begin = std::stol(phraseNode["Begin"].asString());
|
||||
if(!phraseNode["End"].isNull())
|
||||
hitsObject.phrase.end = std::stoi(phraseNode["End"].asString());
|
||||
if(!phraseNode["EmotionValue"].isNull())
|
||||
hitsObject.phrase.emotionValue = std::stoi(phraseNode["EmotionValue"].asString());
|
||||
if(!phraseNode["SilenceDuration"].isNull())
|
||||
hitsObject.phrase.silenceDuration = std::stoi(phraseNode["SilenceDuration"].asString());
|
||||
if(!phraseNode["SpeechRate"].isNull())
|
||||
hitsObject.phrase.speechRate = std::stoi(phraseNode["SpeechRate"].asString());
|
||||
auto allCid = value["Cid"]["Cid"];
|
||||
for (auto value : allCid)
|
||||
hitsObject.cid.push_back(value.asString());
|
||||
hitResultObject.hits.push_back(hitsObject);
|
||||
}
|
||||
dataObject.hitResult.push_back(hitResultObject);
|
||||
}
|
||||
auto recordingNode = value["Recording"];
|
||||
if(!recordingNode["Id"].isNull())
|
||||
dataObject.recording.id = recordingNode["Id"].asString();
|
||||
if(!recordingNode["PrimaryId"].isNull())
|
||||
dataObject.recording.primaryId = recordingNode["PrimaryId"].asString();
|
||||
if(!recordingNode["CallId"].isNull())
|
||||
dataObject.recording.callId = recordingNode["CallId"].asString();
|
||||
if(!recordingNode["Name"].isNull())
|
||||
dataObject.recording.name = recordingNode["Name"].asString();
|
||||
if(!recordingNode["Url"].isNull())
|
||||
dataObject.recording.url = recordingNode["Url"].asString();
|
||||
if(!recordingNode["DataSetName"].isNull())
|
||||
dataObject.recording.dataSetName = recordingNode["DataSetName"].asString();
|
||||
if(!recordingNode["Duration"].isNull())
|
||||
dataObject.recording.duration = std::stol(recordingNode["Duration"].asString());
|
||||
if(!recordingNode["Caller"].isNull())
|
||||
dataObject.recording.caller = recordingNode["Caller"].asString();
|
||||
if(!recordingNode["Callee"].isNull())
|
||||
dataObject.recording.callee = recordingNode["Callee"].asString();
|
||||
if(!recordingNode["CallTime"].isNull())
|
||||
dataObject.recording.callTime = recordingNode["CallTime"].asString();
|
||||
if(!recordingNode["CallType"].isNull())
|
||||
dataObject.recording.callType = std::stoi(recordingNode["CallType"].asString());
|
||||
if(!recordingNode["Business"].isNull())
|
||||
dataObject.recording.business = recordingNode["Business"].asString();
|
||||
if(!recordingNode["Remark1"].isNull())
|
||||
dataObject.recording.remark1 = recordingNode["Remark1"].asString();
|
||||
if(!recordingNode["Remark2"].isNull())
|
||||
dataObject.recording.remark2 = recordingNode["Remark2"].asString();
|
||||
if(!recordingNode["Remark3"].isNull())
|
||||
dataObject.recording.remark3 = recordingNode["Remark3"].asString();
|
||||
auto agentNode = value["Agent"];
|
||||
if(!agentNode["Id"].isNull())
|
||||
dataObject.agent.id = agentNode["Id"].asString();
|
||||
if(!agentNode["Name"].isNull())
|
||||
dataObject.agent.name = agentNode["Name"].asString();
|
||||
if(!agentNode["SkillGroup"].isNull())
|
||||
dataObject.agent.skillGroup = agentNode["SkillGroup"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["ResultCountId"].isNull())
|
||||
resultCountId_ = value["ResultCountId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetSyncResultResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetSyncResultResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int GetSyncResultResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<GetSyncResultResult::ResultInfo> GetSyncResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetSyncResultResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string GetSyncResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetSyncResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string GetSyncResultResult::getResultCountId()const
|
||||
{
|
||||
return resultCountId_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/GetThesaurusBySynonymForApiRequest.cc
Normal file
62
qualitycheck/src/model/GetThesaurusBySynonymForApiRequest.cc
Normal file
@@ -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/qualitycheck/model/GetThesaurusBySynonymForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetThesaurusBySynonymForApiRequest;
|
||||
|
||||
GetThesaurusBySynonymForApiRequest::GetThesaurusBySynonymForApiRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "GetThesaurusBySynonymForApi")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetThesaurusBySynonymForApiRequest::~GetThesaurusBySynonymForApiRequest()
|
||||
{}
|
||||
|
||||
long GetThesaurusBySynonymForApiRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetThesaurusBySynonymForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetThesaurusBySynonymForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetThesaurusBySynonymForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string GetThesaurusBySynonymForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetThesaurusBySynonymForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
83
qualitycheck/src/model/GetThesaurusBySynonymForApiResult.cc
Normal file
83
qualitycheck/src/model/GetThesaurusBySynonymForApiResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetThesaurusBySynonymForApiResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetThesaurusBySynonymForApiResult::GetThesaurusBySynonymForApiResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetThesaurusBySynonymForApiResult::GetThesaurusBySynonymForApiResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetThesaurusBySynonymForApiResult::~GetThesaurusBySynonymForApiResult()
|
||||
{}
|
||||
|
||||
void GetThesaurusBySynonymForApiResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["ThesaurusPo"];
|
||||
for (auto valueDataThesaurusPo : allDataNode)
|
||||
{
|
||||
ThesaurusPo dataObject;
|
||||
if(!valueDataThesaurusPo["Id"].isNull())
|
||||
dataObject.id = std::stol(valueDataThesaurusPo["Id"].asString());
|
||||
if(!valueDataThesaurusPo["Business"].isNull())
|
||||
dataObject.business = valueDataThesaurusPo["Business"].asString();
|
||||
auto allSynonymList = value["SynonymList"]["SynonymList"];
|
||||
for (auto value : allSynonymList)
|
||||
dataObject.synonymList.push_back(value.asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetThesaurusBySynonymForApiResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetThesaurusBySynonymForApiResult::ThesaurusPo> GetThesaurusBySynonymForApiResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetThesaurusBySynonymForApiResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetThesaurusBySynonymForApiResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/HandleComplaintRequest.cc
Normal file
62
qualitycheck/src/model/HandleComplaintRequest.cc
Normal file
@@ -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/qualitycheck/model/HandleComplaintRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::HandleComplaintRequest;
|
||||
|
||||
HandleComplaintRequest::HandleComplaintRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "HandleComplaint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
HandleComplaintRequest::~HandleComplaintRequest()
|
||||
{}
|
||||
|
||||
long HandleComplaintRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void HandleComplaintRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string HandleComplaintRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void HandleComplaintRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string HandleComplaintRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void HandleComplaintRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
qualitycheck/src/model/HandleComplaintResult.cc
Normal file
72
qualitycheck/src/model/HandleComplaintResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/HandleComplaintResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
HandleComplaintResult::HandleComplaintResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
HandleComplaintResult::HandleComplaintResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
HandleComplaintResult::~HandleComplaintResult()
|
||||
{}
|
||||
|
||||
void HandleComplaintResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string HandleComplaintResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string HandleComplaintResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string HandleComplaintResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool HandleComplaintResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/InsertScoreForApiRequest.cc
Normal file
62
qualitycheck/src/model/InsertScoreForApiRequest.cc
Normal file
@@ -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/qualitycheck/model/InsertScoreForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::InsertScoreForApiRequest;
|
||||
|
||||
InsertScoreForApiRequest::InsertScoreForApiRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "InsertScoreForApi")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InsertScoreForApiRequest::~InsertScoreForApiRequest()
|
||||
{}
|
||||
|
||||
long InsertScoreForApiRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void InsertScoreForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string InsertScoreForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void InsertScoreForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string InsertScoreForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void InsertScoreForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
75
qualitycheck/src/model/InsertScoreForApiResult.cc
Normal file
75
qualitycheck/src/model/InsertScoreForApiResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/InsertScoreForApiResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
InsertScoreForApiResult::InsertScoreForApiResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InsertScoreForApiResult::InsertScoreForApiResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InsertScoreForApiResult::~InsertScoreForApiResult()
|
||||
{}
|
||||
|
||||
void InsertScoreForApiResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ScoreId"].isNull())
|
||||
data_.scoreId = std::stol(dataNode["ScoreId"].asString());
|
||||
if(!dataNode["ScoreName"].isNull())
|
||||
data_.scoreName = dataNode["ScoreName"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string InsertScoreForApiResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
InsertScoreForApiResult::Data InsertScoreForApiResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string InsertScoreForApiResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool InsertScoreForApiResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/InsertSubScoreForApiRequest.cc
Normal file
62
qualitycheck/src/model/InsertSubScoreForApiRequest.cc
Normal file
@@ -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/qualitycheck/model/InsertSubScoreForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::InsertSubScoreForApiRequest;
|
||||
|
||||
InsertSubScoreForApiRequest::InsertSubScoreForApiRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "InsertSubScoreForApi")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InsertSubScoreForApiRequest::~InsertSubScoreForApiRequest()
|
||||
{}
|
||||
|
||||
long InsertSubScoreForApiRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void InsertSubScoreForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string InsertSubScoreForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void InsertSubScoreForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string InsertSubScoreForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void InsertSubScoreForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
75
qualitycheck/src/model/InsertSubScoreForApiResult.cc
Normal file
75
qualitycheck/src/model/InsertSubScoreForApiResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/InsertSubScoreForApiResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
InsertSubScoreForApiResult::InsertSubScoreForApiResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InsertSubScoreForApiResult::InsertSubScoreForApiResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InsertSubScoreForApiResult::~InsertSubScoreForApiResult()
|
||||
{}
|
||||
|
||||
void InsertSubScoreForApiResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ScoreSubId"].isNull())
|
||||
data_.scoreSubId = std::stol(dataNode["ScoreSubId"].asString());
|
||||
if(!dataNode["ScoreSubName"].isNull())
|
||||
data_.scoreSubName = dataNode["ScoreSubName"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string InsertSubScoreForApiResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
InsertSubScoreForApiResult::Data InsertSubScoreForApiResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string InsertSubScoreForApiResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool InsertSubScoreForApiResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/InvalidRuleRequest.cc
Normal file
62
qualitycheck/src/model/InvalidRuleRequest.cc
Normal file
@@ -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/qualitycheck/model/InvalidRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::InvalidRuleRequest;
|
||||
|
||||
InvalidRuleRequest::InvalidRuleRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "InvalidRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InvalidRuleRequest::~InvalidRuleRequest()
|
||||
{}
|
||||
|
||||
long InvalidRuleRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void InvalidRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string InvalidRuleRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void InvalidRuleRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string InvalidRuleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void InvalidRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
qualitycheck/src/model/InvalidRuleResult.cc
Normal file
72
qualitycheck/src/model/InvalidRuleResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/InvalidRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
InvalidRuleResult::InvalidRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InvalidRuleResult::InvalidRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InvalidRuleResult::~InvalidRuleResult()
|
||||
{}
|
||||
|
||||
void InvalidRuleResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string InvalidRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool InvalidRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string InvalidRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool InvalidRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/ListAsrVocabRequest.cc
Normal file
62
qualitycheck/src/model/ListAsrVocabRequest.cc
Normal file
@@ -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/qualitycheck/model/ListAsrVocabRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::ListAsrVocabRequest;
|
||||
|
||||
ListAsrVocabRequest::ListAsrVocabRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "ListAsrVocab")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAsrVocabRequest::~ListAsrVocabRequest()
|
||||
{}
|
||||
|
||||
long ListAsrVocabRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListAsrVocabRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ListAsrVocabRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void ListAsrVocabRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string ListAsrVocabRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListAsrVocabRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
86
qualitycheck/src/model/ListAsrVocabResult.cc
Normal file
86
qualitycheck/src/model/ListAsrVocabResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/ListAsrVocabResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
ListAsrVocabResult::ListAsrVocabResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAsrVocabResult::ListAsrVocabResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAsrVocabResult::~ListAsrVocabResult()
|
||||
{}
|
||||
|
||||
void ListAsrVocabResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["AsrVocab"];
|
||||
for (auto valueDataAsrVocab : allDataNode)
|
||||
{
|
||||
AsrVocab dataObject;
|
||||
if(!valueDataAsrVocab["Id"].isNull())
|
||||
dataObject.id = valueDataAsrVocab["Id"].asString();
|
||||
if(!valueDataAsrVocab["Name"].isNull())
|
||||
dataObject.name = valueDataAsrVocab["Name"].asString();
|
||||
if(!valueDataAsrVocab["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataAsrVocab["CreateTime"].asString();
|
||||
if(!valueDataAsrVocab["UpdateTime"].isNull())
|
||||
dataObject.updateTime = valueDataAsrVocab["UpdateTime"].asString();
|
||||
if(!valueDataAsrVocab["VocabularyId"].isNull())
|
||||
dataObject.vocabularyId = valueDataAsrVocab["VocabularyId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListAsrVocabResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListAsrVocabResult::AsrVocab> ListAsrVocabResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListAsrVocabResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListAsrVocabResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/ListHotWordsTasksRequest.cc
Normal file
62
qualitycheck/src/model/ListHotWordsTasksRequest.cc
Normal file
@@ -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/qualitycheck/model/ListHotWordsTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::ListHotWordsTasksRequest;
|
||||
|
||||
ListHotWordsTasksRequest::ListHotWordsTasksRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "ListHotWordsTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListHotWordsTasksRequest::~ListHotWordsTasksRequest()
|
||||
{}
|
||||
|
||||
long ListHotWordsTasksRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListHotWordsTasksRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ListHotWordsTasksRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void ListHotWordsTasksRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string ListHotWordsTasksRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListHotWordsTasksRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
143
qualitycheck/src/model/ListHotWordsTasksResult.cc
Normal file
143
qualitycheck/src/model/ListHotWordsTasksResult.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/qualitycheck/model/ListHotWordsTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
ListHotWordsTasksResult::ListHotWordsTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListHotWordsTasksResult::ListHotWordsTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListHotWordsTasksResult::~ListHotWordsTasksResult()
|
||||
{}
|
||||
|
||||
void ListHotWordsTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["HotWordsTaskPo"];
|
||||
for (auto valueDataHotWordsTaskPo : allDataNode)
|
||||
{
|
||||
HotWordsTaskPo dataObject;
|
||||
if(!valueDataHotWordsTaskPo["TaskConfigId"].isNull())
|
||||
dataObject.taskConfigId = std::stol(valueDataHotWordsTaskPo["TaskConfigId"].asString());
|
||||
if(!valueDataHotWordsTaskPo["Name"].isNull())
|
||||
dataObject.name = valueDataHotWordsTaskPo["Name"].asString();
|
||||
if(!valueDataHotWordsTaskPo["Status"].isNull())
|
||||
dataObject.status = std::stoi(valueDataHotWordsTaskPo["Status"].asString());
|
||||
if(!valueDataHotWordsTaskPo["Type"].isNull())
|
||||
dataObject.type = std::stoi(valueDataHotWordsTaskPo["Type"].asString());
|
||||
if(!valueDataHotWordsTaskPo["StartTime"].isNull())
|
||||
dataObject.startTime = valueDataHotWordsTaskPo["StartTime"].asString();
|
||||
if(!valueDataHotWordsTaskPo["TimeInterval"].isNull())
|
||||
dataObject.timeInterval = std::stoi(valueDataHotWordsTaskPo["TimeInterval"].asString());
|
||||
if(!valueDataHotWordsTaskPo["TimeUnit"].isNull())
|
||||
dataObject.timeUnit = std::stoi(valueDataHotWordsTaskPo["TimeUnit"].asString());
|
||||
if(!valueDataHotWordsTaskPo["EndTime"].isNull())
|
||||
dataObject.endTime = valueDataHotWordsTaskPo["EndTime"].asString();
|
||||
if(!valueDataHotWordsTaskPo["InstanceStatus"].isNull())
|
||||
dataObject.instanceStatus = std::stoi(valueDataHotWordsTaskPo["InstanceStatus"].asString());
|
||||
if(!valueDataHotWordsTaskPo["LastExecutionTime"].isNull())
|
||||
dataObject.lastExecutionTime = valueDataHotWordsTaskPo["LastExecutionTime"].asString();
|
||||
if(!valueDataHotWordsTaskPo["Message"].isNull())
|
||||
dataObject.message = valueDataHotWordsTaskPo["Message"].asString();
|
||||
auto dialogueParamNode = value["DialogueParam"];
|
||||
if(!dialogueParamNode["DialogueId"].isNull())
|
||||
dataObject.dialogueParam.dialogueId = std::stol(dialogueParamNode["DialogueId"].asString());
|
||||
if(!dialogueParamNode["Role"].isNull())
|
||||
dataObject.dialogueParam.role = std::stoi(dialogueParamNode["Role"].asString());
|
||||
if(!dialogueParamNode["StartIndex"].isNull())
|
||||
dataObject.dialogueParam.startIndex = std::stoi(dialogueParamNode["StartIndex"].asString());
|
||||
if(!dialogueParamNode["EndIndex"].isNull())
|
||||
dataObject.dialogueParam.endIndex = std::stoi(dialogueParamNode["EndIndex"].asString());
|
||||
if(!dialogueParamNode["SourceType"].isNull())
|
||||
dataObject.dialogueParam.sourceType = std::stoi(dialogueParamNode["SourceType"].asString());
|
||||
if(!dialogueParamNode["DataSetIds"].isNull())
|
||||
dataObject.dialogueParam.dataSetIds = dialogueParamNode["DataSetIds"].asString();
|
||||
if(!dialogueParamNode["StartTime"].isNull())
|
||||
dataObject.dialogueParam.startTime = dialogueParamNode["StartTime"].asString();
|
||||
if(!dialogueParamNode["EndTime"].isNull())
|
||||
dataObject.dialogueParam.endTime = dialogueParamNode["EndTime"].asString();
|
||||
auto wordsParamNode = value["WordsParam"];
|
||||
if(!wordsParamNode["ExtraConfigId"].isNull())
|
||||
dataObject.wordsParam.extraConfigId = std::stol(wordsParamNode["ExtraConfigId"].asString());
|
||||
if(!wordsParamNode["Excludes"].isNull())
|
||||
dataObject.wordsParam.excludes = wordsParamNode["Excludes"].asString();
|
||||
if(!wordsParamNode["Includes"].isNull())
|
||||
dataObject.wordsParam.includes = wordsParamNode["Includes"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string ListHotWordsTasksResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListHotWordsTasksResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListHotWordsTasksResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListHotWordsTasksResult::HotWordsTaskPo> ListHotWordsTasksResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListHotWordsTasksResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string ListHotWordsTasksResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListHotWordsTasksResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/ListPrecisionTaskRequest.cc
Normal file
62
qualitycheck/src/model/ListPrecisionTaskRequest.cc
Normal file
@@ -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/qualitycheck/model/ListPrecisionTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::ListPrecisionTaskRequest;
|
||||
|
||||
ListPrecisionTaskRequest::ListPrecisionTaskRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "ListPrecisionTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPrecisionTaskRequest::~ListPrecisionTaskRequest()
|
||||
{}
|
||||
|
||||
long ListPrecisionTaskRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListPrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ListPrecisionTaskRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void ListPrecisionTaskRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string ListPrecisionTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListPrecisionTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
139
qualitycheck/src/model/ListPrecisionTaskResult.cc
Normal file
139
qualitycheck/src/model/ListPrecisionTaskResult.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/qualitycheck/model/ListPrecisionTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
ListPrecisionTaskResult::ListPrecisionTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPrecisionTaskResult::ListPrecisionTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPrecisionTaskResult::~ListPrecisionTaskResult()
|
||||
{}
|
||||
|
||||
void ListPrecisionTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["PrecisionTask"];
|
||||
for (auto valueDataPrecisionTask : allDataNode)
|
||||
{
|
||||
PrecisionTask dataObject;
|
||||
if(!valueDataPrecisionTask["Name"].isNull())
|
||||
dataObject.name = valueDataPrecisionTask["Name"].asString();
|
||||
if(!valueDataPrecisionTask["TaskId"].isNull())
|
||||
dataObject.taskId = valueDataPrecisionTask["TaskId"].asString();
|
||||
if(!valueDataPrecisionTask["Source"].isNull())
|
||||
dataObject.source = std::stoi(valueDataPrecisionTask["Source"].asString());
|
||||
if(!valueDataPrecisionTask["DataSetId"].isNull())
|
||||
dataObject.dataSetId = std::stol(valueDataPrecisionTask["DataSetId"].asString());
|
||||
if(!valueDataPrecisionTask["DataSetName"].isNull())
|
||||
dataObject.dataSetName = valueDataPrecisionTask["DataSetName"].asString();
|
||||
if(!valueDataPrecisionTask["Duration"].isNull())
|
||||
dataObject.duration = std::stoi(valueDataPrecisionTask["Duration"].asString());
|
||||
if(!valueDataPrecisionTask["Status"].isNull())
|
||||
dataObject.status = std::stoi(valueDataPrecisionTask["Status"].asString());
|
||||
if(!valueDataPrecisionTask["TotalCount"].isNull())
|
||||
dataObject.totalCount = std::stoi(valueDataPrecisionTask["TotalCount"].asString());
|
||||
if(!valueDataPrecisionTask["VerifiedCount"].isNull())
|
||||
dataObject.verifiedCount = std::stoi(valueDataPrecisionTask["VerifiedCount"].asString());
|
||||
if(!valueDataPrecisionTask["IncorrectWords"].isNull())
|
||||
dataObject.incorrectWords = std::stoi(valueDataPrecisionTask["IncorrectWords"].asString());
|
||||
if(!valueDataPrecisionTask["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataPrecisionTask["CreateTime"].asString();
|
||||
if(!valueDataPrecisionTask["UpdateTime"].isNull())
|
||||
dataObject.updateTime = valueDataPrecisionTask["UpdateTime"].asString();
|
||||
auto allPrecisionsNode = valueDataPrecisionTask["Precisions"]["Precision"];
|
||||
for (auto valueDataPrecisionTaskPrecisionsPrecision : allPrecisionsNode)
|
||||
{
|
||||
PrecisionTask::Precision precisionsObject;
|
||||
if(!valueDataPrecisionTaskPrecisionsPrecision["ModelName"].isNull())
|
||||
precisionsObject.modelName = valueDataPrecisionTaskPrecisionsPrecision["ModelName"].asString();
|
||||
if(!valueDataPrecisionTaskPrecisionsPrecision["ModelId"].isNull())
|
||||
precisionsObject.modelId = std::stol(valueDataPrecisionTaskPrecisionsPrecision["ModelId"].asString());
|
||||
if(!valueDataPrecisionTaskPrecisionsPrecision["Precision"].isNull())
|
||||
precisionsObject.precision = std::stof(valueDataPrecisionTaskPrecisionsPrecision["Precision"].asString());
|
||||
if(!valueDataPrecisionTaskPrecisionsPrecision["Status"].isNull())
|
||||
precisionsObject.status = std::stoi(valueDataPrecisionTaskPrecisionsPrecision["Status"].asString());
|
||||
if(!valueDataPrecisionTaskPrecisionsPrecision["TaskId"].isNull())
|
||||
precisionsObject.taskId = valueDataPrecisionTaskPrecisionsPrecision["TaskId"].asString();
|
||||
if(!valueDataPrecisionTaskPrecisionsPrecision["CreateTime"].isNull())
|
||||
precisionsObject.createTime = valueDataPrecisionTaskPrecisionsPrecision["CreateTime"].asString();
|
||||
dataObject.precisions.push_back(precisionsObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string ListPrecisionTaskResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListPrecisionTaskResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListPrecisionTaskResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListPrecisionTaskResult::PrecisionTask> ListPrecisionTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListPrecisionTaskResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string ListPrecisionTaskResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListPrecisionTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
qualitycheck/src/model/ListRolesRequest.cc
Normal file
62
qualitycheck/src/model/ListRolesRequest.cc
Normal file
@@ -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/qualitycheck/model/ListRolesRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::ListRolesRequest;
|
||||
|
||||
ListRolesRequest::ListRolesRequest() :
|
||||
RpcServiceRequest("qualitycheck", "2019-01-15", "ListRoles")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListRolesRequest::~ListRolesRequest()
|
||||
{}
|
||||
|
||||
long ListRolesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ListRolesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ListRolesRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void ListRolesRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
}
|
||||
|
||||
std::string ListRolesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListRolesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
88
qualitycheck/src/model/ListRolesResult.cc
Normal file
88
qualitycheck/src/model/ListRolesResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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/qualitycheck/model/ListRolesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
ListRolesResult::ListRolesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListRolesResult::ListRolesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListRolesResult::~ListRolesResult()
|
||||
{}
|
||||
|
||||
void ListRolesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Role"];
|
||||
for (auto valueDataRole : allDataNode)
|
||||
{
|
||||
Role dataObject;
|
||||
if(!valueDataRole["Id"].isNull())
|
||||
dataObject.id = std::stol(valueDataRole["Id"].asString());
|
||||
if(!valueDataRole["Name"].isNull())
|
||||
dataObject.name = valueDataRole["Name"].asString();
|
||||
if(!valueDataRole["DisplayName"].isNull())
|
||||
dataObject.displayName = valueDataRole["DisplayName"].asString();
|
||||
if(!valueDataRole["Level"].isNull())
|
||||
dataObject.level = std::stoi(valueDataRole["Level"].asString());
|
||||
if(!valueDataRole["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataRole["CreateTime"].asString();
|
||||
if(!valueDataRole["UpdateTime"].isNull())
|
||||
dataObject.updateTime = valueDataRole["UpdateTime"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListRolesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListRolesResult::Role> ListRolesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListRolesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListRolesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user