Update api.

This commit is contained in:
sdk-team
2021-03-26 06:38:23 +00:00
parent 89a8603f07
commit fe3d15f458
45 changed files with 41 additions and 2742 deletions

View File

@@ -195,42 +195,6 @@ QualitycheckClient::AssignReviewerOutcomeCallable QualitycheckClient::assignRevi
return task->get_future();
}
QualitycheckClient::CloseServiceOutcome QualitycheckClient::closeService(const CloseServiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CloseServiceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CloseServiceOutcome(CloseServiceResult(outcome.result()));
else
return CloseServiceOutcome(outcome.error());
}
void QualitycheckClient::closeServiceAsync(const CloseServiceRequest& request, const CloseServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, closeService(request), context);
};
asyncExecute(new Runnable(fn));
}
QualitycheckClient::CloseServiceOutcomeCallable QualitycheckClient::closeServiceCallable(const CloseServiceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CloseServiceOutcome()>>(
[this, request]()
{
return this->closeService(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
QualitycheckClient::CreateAsrVocabOutcome QualitycheckClient::createAsrVocab(const CreateAsrVocabRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1023,42 +987,6 @@ QualitycheckClient::GetCustomizationConfigListOutcomeCallable QualitycheckClient
return task->get_future();
}
QualitycheckClient::GetDataSetListOutcome QualitycheckClient::getDataSetList(const GetDataSetListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDataSetListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDataSetListOutcome(GetDataSetListResult(outcome.result()));
else
return GetDataSetListOutcome(outcome.error());
}
void QualitycheckClient::getDataSetListAsync(const GetDataSetListRequest& request, const GetDataSetListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDataSetList(request), context);
};
asyncExecute(new Runnable(fn));
}
QualitycheckClient::GetDataSetListOutcomeCallable QualitycheckClient::getDataSetListCallable(const GetDataSetListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDataSetListOutcome()>>(
[this, request]()
{
return this->getDataSetList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
QualitycheckClient::GetHitResultOutcome QualitycheckClient::getHitResult(const GetHitResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1167,42 +1095,6 @@ QualitycheckClient::GetPrecisionTaskOutcomeCallable QualitycheckClient::getPreci
return task->get_future();
}
QualitycheckClient::GetRecognizeResultOutcome QualitycheckClient::getRecognizeResult(const GetRecognizeResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetRecognizeResultOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetRecognizeResultOutcome(GetRecognizeResultResult(outcome.result()));
else
return GetRecognizeResultOutcome(outcome.error());
}
void QualitycheckClient::getRecognizeResultAsync(const GetRecognizeResultRequest& request, const GetRecognizeResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getRecognizeResult(request), context);
};
asyncExecute(new Runnable(fn));
}
QualitycheckClient::GetRecognizeResultOutcomeCallable QualitycheckClient::getRecognizeResultCallable(const GetRecognizeResultRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetRecognizeResultOutcome()>>(
[this, request]()
{
return this->getRecognizeResult(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
QualitycheckClient::GetResultOutcome QualitycheckClient::getResult(const GetResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2031,78 +1923,6 @@ QualitycheckClient::ListWarningConfigOutcomeCallable QualitycheckClient::listWar
return task->get_future();
}
QualitycheckClient::OpenServiceOutcome QualitycheckClient::openService(const OpenServiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return OpenServiceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return OpenServiceOutcome(OpenServiceResult(outcome.result()));
else
return OpenServiceOutcome(outcome.error());
}
void QualitycheckClient::openServiceAsync(const OpenServiceRequest& request, const OpenServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, openService(request), context);
};
asyncExecute(new Runnable(fn));
}
QualitycheckClient::OpenServiceOutcomeCallable QualitycheckClient::openServiceCallable(const OpenServiceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<OpenServiceOutcome()>>(
[this, request]()
{
return this->openService(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
QualitycheckClient::RegisterNoticeOutcome QualitycheckClient::registerNotice(const RegisterNoticeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RegisterNoticeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RegisterNoticeOutcome(RegisterNoticeResult(outcome.result()));
else
return RegisterNoticeOutcome(outcome.error());
}
void QualitycheckClient::registerNoticeAsync(const RegisterNoticeRequest& request, const RegisterNoticeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, registerNotice(request), context);
};
asyncExecute(new Runnable(fn));
}
QualitycheckClient::RegisterNoticeOutcomeCallable QualitycheckClient::registerNoticeCallable(const RegisterNoticeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RegisterNoticeOutcome()>>(
[this, request]()
{
return this->registerNotice(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
QualitycheckClient::RestartAsrTaskOutcome QualitycheckClient::restartAsrTask(const RestartAsrTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2139,42 +1959,6 @@ QualitycheckClient::RestartAsrTaskOutcomeCallable QualitycheckClient::restartAsr
return task->get_future();
}
QualitycheckClient::RetrySubmitAsrOutcome QualitycheckClient::retrySubmitAsr(const RetrySubmitAsrRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RetrySubmitAsrOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RetrySubmitAsrOutcome(RetrySubmitAsrResult(outcome.result()));
else
return RetrySubmitAsrOutcome(outcome.error());
}
void QualitycheckClient::retrySubmitAsrAsync(const RetrySubmitAsrRequest& request, const RetrySubmitAsrAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, retrySubmitAsr(request), context);
};
asyncExecute(new Runnable(fn));
}
QualitycheckClient::RetrySubmitAsrOutcomeCallable QualitycheckClient::retrySubmitAsrCallable(const RetrySubmitAsrRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RetrySubmitAsrOutcome()>>(
[this, request]()
{
return this->retrySubmitAsr(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
QualitycheckClient::SaveConfigDataSetOutcome QualitycheckClient::saveConfigDataSet(const SaveConfigDataSetRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2247,42 +2031,6 @@ QualitycheckClient::SubmitComplaintOutcomeCallable QualitycheckClient::submitCom
return task->get_future();
}
QualitycheckClient::SubmitModelTestTaskOutcome QualitycheckClient::submitModelTestTask(const SubmitModelTestTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubmitModelTestTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubmitModelTestTaskOutcome(SubmitModelTestTaskResult(outcome.result()));
else
return SubmitModelTestTaskOutcome(outcome.error());
}
void QualitycheckClient::submitModelTestTaskAsync(const SubmitModelTestTaskRequest& request, const SubmitModelTestTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, submitModelTestTask(request), context);
};
asyncExecute(new Runnable(fn));
}
QualitycheckClient::SubmitModelTestTaskOutcomeCallable QualitycheckClient::submitModelTestTaskCallable(const SubmitModelTestTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubmitModelTestTaskOutcome()>>(
[this, request]()
{
return this->submitModelTestTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
QualitycheckClient::SubmitPrecisionTaskOutcome QualitycheckClient::submitPrecisionTask(const SubmitPrecisionTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2499,42 +2247,6 @@ QualitycheckClient::UpdateRuleOutcomeCallable QualitycheckClient::updateRuleCall
return task->get_future();
}
QualitycheckClient::UpdateRuleForAntOutcome QualitycheckClient::updateRuleForAnt(const UpdateRuleForAntRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateRuleForAntOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateRuleForAntOutcome(UpdateRuleForAntResult(outcome.result()));
else
return UpdateRuleForAntOutcome(outcome.error());
}
void QualitycheckClient::updateRuleForAntAsync(const UpdateRuleForAntRequest& request, const UpdateRuleForAntAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateRuleForAnt(request), context);
};
asyncExecute(new Runnable(fn));
}
QualitycheckClient::UpdateRuleForAntOutcomeCallable QualitycheckClient::updateRuleForAntCallable(const UpdateRuleForAntRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateRuleForAntOutcome()>>(
[this, request]()
{
return this->updateRuleForAnt(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
QualitycheckClient::UpdateScoreForApiOutcome QualitycheckClient::updateScoreForApi(const UpdateScoreForApiRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2967,42 +2679,6 @@ QualitycheckClient::UploadRuleOutcomeCallable QualitycheckClient::uploadRuleCall
return task->get_future();
}
QualitycheckClient::ValidateRoleSetOutcome QualitycheckClient::validateRoleSet(const ValidateRoleSetRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ValidateRoleSetOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ValidateRoleSetOutcome(ValidateRoleSetResult(outcome.result()));
else
return ValidateRoleSetOutcome(outcome.error());
}
void QualitycheckClient::validateRoleSetAsync(const ValidateRoleSetRequest& request, const ValidateRoleSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, validateRoleSet(request), context);
};
asyncExecute(new Runnable(fn));
}
QualitycheckClient::ValidateRoleSetOutcomeCallable QualitycheckClient::validateRoleSetCallable(const ValidateRoleSetRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ValidateRoleSetOutcome()>>(
[this, request]()
{
return this->validateRoleSet(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
QualitycheckClient::VerifyFileOutcome QualitycheckClient::verifyFile(const VerifyFileRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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);
}

View File

@@ -1,65 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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);
}

View File

@@ -1,105 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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);
}

View File

@@ -1,99 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
}

View File

@@ -71,6 +71,12 @@ void GetResultResult::parse(const std::string &payload)
dataObject.createTimeLong = valueDataResultInfo["CreateTimeLong"].asString();
if(!valueDataResultInfo["ReviewTimeLong"].isNull())
dataObject.reviewTimeLong = valueDataResultInfo["ReviewTimeLong"].asString();
if(!valueDataResultInfo["ReviewType"].isNull())
dataObject.reviewType = std::stoi(valueDataResultInfo["ReviewType"].asString());
if(!valueDataResultInfo["AssignmentTime"].isNull())
dataObject.assignmentTime = valueDataResultInfo["AssignmentTime"].asString();
if(!valueDataResultInfo["LastDataId"].isNull())
dataObject.lastDataId = valueDataResultInfo["LastDataId"].asString();
auto allAsrResultNode = valueDataResultInfo["AsrResult"]["AsrResultItem"];
for (auto valueDataResultInfoAsrResultAsrResultItem : allAsrResultNode)
{
@@ -202,6 +208,8 @@ void GetResultResult::parse(const std::string &payload)
dataObject.recording.remark12 = recordingNode["Remark12"].asString();
if(!recordingNode["Remark13"].isNull())
dataObject.recording.remark13 = recordingNode["Remark13"].asString();
if(!recordingNode["DialogueSize"].isNull())
dataObject.recording.dialogueSize = std::stoi(recordingNode["DialogueSize"].asString());
auto agentNode = value["Agent"];
if(!agentNode["Id"].isNull())
dataObject.agent.id = agentNode["Id"].asString();

View File

@@ -79,6 +79,8 @@ void ListSkillGroupConfigResult::parse(const std::string &payload)
dataObject.allRids = valueDataSkillGroupConfig["AllRids"].asString();
if(!valueDataSkillGroupConfig["SkillGroupFrom"].isNull())
dataObject.skillGroupFrom = std::stoi(valueDataSkillGroupConfig["SkillGroupFrom"].asString());
if(!valueDataSkillGroupConfig["ScreenSwitch"].isNull())
dataObject.screenSwitch = valueDataSkillGroupConfig["ScreenSwitch"].asString() == "true";
auto allRuleListNode = valueDataSkillGroupConfig["RuleList"]["RuleNameInfo"];
for (auto valueDataSkillGroupConfigRuleListRuleNameInfo : allRuleListNode)
{
@@ -99,6 +101,20 @@ void ListSkillGroupConfigResult::parse(const std::string &payload)
allRuleListObject.ruleName = valueDataSkillGroupConfigAllRuleListRuleNameInfo["RuleName"].asString();
dataObject.allRuleList.push_back(allRuleListObject);
}
auto allSkillGroupScreensNode = valueDataSkillGroupConfig["SkillGroupScreens"]["SkillGroupScreen"];
for (auto valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen : allSkillGroupScreensNode)
{
SkillGroupConfig::SkillGroupScreen skillGroupScreensObject;
if(!valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Name"].isNull())
skillGroupScreensObject.name = valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Name"].asString();
if(!valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["DataType"].isNull())
skillGroupScreensObject.dataType = std::stoi(valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["DataType"].asString());
if(!valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Symbol"].isNull())
skillGroupScreensObject.symbol = std::stoi(valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Symbol"].asString());
if(!valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Value"].isNull())
skillGroupScreensObject.value = valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Value"].asString();
dataObject.skillGroupScreens.push_back(skillGroupScreensObject);
}
data_.push_back(dataObject);
}
if(!value["Success"].isNull())

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/qualitycheck/model/OpenServiceRequest.h>
using AlibabaCloud::Qualitycheck::Model::OpenServiceRequest;
OpenServiceRequest::OpenServiceRequest() :
RpcServiceRequest("qualitycheck", "2019-01-15", "OpenService")
{
setMethod(HttpRequest::Method::Post);
}
OpenServiceRequest::~OpenServiceRequest()
{}
long OpenServiceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void OpenServiceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string OpenServiceRequest::getJsonStr()const
{
return jsonStr_;
}
void OpenServiceRequest::setJsonStr(const std::string& jsonStr)
{
jsonStr_ = jsonStr;
setParameter("JsonStr", jsonStr);
}
std::string OpenServiceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void OpenServiceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,65 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/qualitycheck/model/OpenServiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Qualitycheck;
using namespace AlibabaCloud::Qualitycheck::Model;
OpenServiceResult::OpenServiceResult() :
ServiceResult()
{}
OpenServiceResult::OpenServiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
OpenServiceResult::~OpenServiceResult()
{}
void OpenServiceResult::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 OpenServiceResult::getMessage()const
{
return message_;
}
std::string OpenServiceResult::getCode()const
{
return code_;
}
bool OpenServiceResult::getSuccess()const
{
return success_;
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/qualitycheck/model/RegisterNoticeRequest.h>
using AlibabaCloud::Qualitycheck::Model::RegisterNoticeRequest;
RegisterNoticeRequest::RegisterNoticeRequest() :
RpcServiceRequest("qualitycheck", "2019-01-15", "RegisterNotice")
{
setMethod(HttpRequest::Method::Post);
}
RegisterNoticeRequest::~RegisterNoticeRequest()
{}
long RegisterNoticeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void RegisterNoticeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string RegisterNoticeRequest::getJsonStr()const
{
return jsonStr_;
}
void RegisterNoticeRequest::setJsonStr(const std::string& jsonStr)
{
jsonStr_ = jsonStr;
setParameter("JsonStr", jsonStr);
}
std::string RegisterNoticeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void RegisterNoticeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,65 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/qualitycheck/model/RegisterNoticeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Qualitycheck;
using namespace AlibabaCloud::Qualitycheck::Model;
RegisterNoticeResult::RegisterNoticeResult() :
ServiceResult()
{}
RegisterNoticeResult::RegisterNoticeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RegisterNoticeResult::~RegisterNoticeResult()
{}
void RegisterNoticeResult::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 RegisterNoticeResult::getMessage()const
{
return message_;
}
std::string RegisterNoticeResult::getCode()const
{
return code_;
}
bool RegisterNoticeResult::getSuccess()const
{
return success_;
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/qualitycheck/model/RetrySubmitAsrRequest.h>
using AlibabaCloud::Qualitycheck::Model::RetrySubmitAsrRequest;
RetrySubmitAsrRequest::RetrySubmitAsrRequest() :
RpcServiceRequest("qualitycheck", "2019-01-15", "RetrySubmitAsr")
{
setMethod(HttpRequest::Method::Post);
}
RetrySubmitAsrRequest::~RetrySubmitAsrRequest()
{}
long RetrySubmitAsrRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void RetrySubmitAsrRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string RetrySubmitAsrRequest::getJsonStr()const
{
return jsonStr_;
}
void RetrySubmitAsrRequest::setJsonStr(const std::string& jsonStr)
{
jsonStr_ = jsonStr;
setParameter("JsonStr", jsonStr);
}
std::string RetrySubmitAsrRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void RetrySubmitAsrRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,72 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/qualitycheck/model/RetrySubmitAsrResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Qualitycheck;
using namespace AlibabaCloud::Qualitycheck::Model;
RetrySubmitAsrResult::RetrySubmitAsrResult() :
ServiceResult()
{}
RetrySubmitAsrResult::RetrySubmitAsrResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RetrySubmitAsrResult::~RetrySubmitAsrResult()
{}
void RetrySubmitAsrResult::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 RetrySubmitAsrResult::getMessage()const
{
return message_;
}
std::string RetrySubmitAsrResult::getData()const
{
return data_;
}
std::string RetrySubmitAsrResult::getCode()const
{
return code_;
}
bool RetrySubmitAsrResult::getSuccess()const
{
return success_;
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/qualitycheck/model/SubmitModelTestTaskRequest.h>
using AlibabaCloud::Qualitycheck::Model::SubmitModelTestTaskRequest;
SubmitModelTestTaskRequest::SubmitModelTestTaskRequest() :
RpcServiceRequest("qualitycheck", "2019-01-15", "SubmitModelTestTask")
{
setMethod(HttpRequest::Method::Post);
}
SubmitModelTestTaskRequest::~SubmitModelTestTaskRequest()
{}
long SubmitModelTestTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SubmitModelTestTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SubmitModelTestTaskRequest::getJsonStr()const
{
return jsonStr_;
}
void SubmitModelTestTaskRequest::setJsonStr(const std::string& jsonStr)
{
jsonStr_ = jsonStr;
setParameter("JsonStr", jsonStr);
}
std::string SubmitModelTestTaskRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SubmitModelTestTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,75 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/qualitycheck/model/SubmitModelTestTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Qualitycheck;
using namespace AlibabaCloud::Qualitycheck::Model;
SubmitModelTestTaskResult::SubmitModelTestTaskResult() :
ServiceResult()
{}
SubmitModelTestTaskResult::SubmitModelTestTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitModelTestTaskResult::~SubmitModelTestTaskResult()
{}
void SubmitModelTestTaskResult::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["TaskId"].isNull())
data_.taskId = dataNode["TaskId"].asString();
if(!dataNode["TaskType"].isNull())
data_.taskType = std::stoi(dataNode["TaskType"].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 SubmitModelTestTaskResult::getMessage()const
{
return message_;
}
SubmitModelTestTaskResult::Data SubmitModelTestTaskResult::getData()const
{
return data_;
}
std::string SubmitModelTestTaskResult::getCode()const
{
return code_;
}
bool SubmitModelTestTaskResult::getSuccess()const
{
return success_;
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/qualitycheck/model/UpdateRuleForAntRequest.h>
using AlibabaCloud::Qualitycheck::Model::UpdateRuleForAntRequest;
UpdateRuleForAntRequest::UpdateRuleForAntRequest() :
RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateRuleForAnt")
{
setMethod(HttpRequest::Method::Post);
}
UpdateRuleForAntRequest::~UpdateRuleForAntRequest()
{}
long UpdateRuleForAntRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void UpdateRuleForAntRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string UpdateRuleForAntRequest::getJsonStr()const
{
return jsonStr_;
}
void UpdateRuleForAntRequest::setJsonStr(const std::string& jsonStr)
{
jsonStr_ = jsonStr;
setParameter("JsonStr", jsonStr);
}
std::string UpdateRuleForAntRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void UpdateRuleForAntRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/qualitycheck/model/UpdateRuleForAntResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Qualitycheck;
using namespace AlibabaCloud::Qualitycheck::Model;
UpdateRuleForAntResult::UpdateRuleForAntResult() :
ServiceResult()
{}
UpdateRuleForAntResult::UpdateRuleForAntResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateRuleForAntResult::~UpdateRuleForAntResult()
{}
void UpdateRuleForAntResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["RidInfo"];
for (const auto &item : allData)
data_.push_back(item.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 UpdateRuleForAntResult::getMessage()const
{
return message_;
}
std::vector<std::string> UpdateRuleForAntResult::getData()const
{
return data_;
}
std::string UpdateRuleForAntResult::getCode()const
{
return code_;
}
bool UpdateRuleForAntResult::getSuccess()const
{
return success_;
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/qualitycheck/model/ValidateRoleSetRequest.h>
using AlibabaCloud::Qualitycheck::Model::ValidateRoleSetRequest;
ValidateRoleSetRequest::ValidateRoleSetRequest() :
RpcServiceRequest("qualitycheck", "2019-01-15", "ValidateRoleSet")
{
setMethod(HttpRequest::Method::Post);
}
ValidateRoleSetRequest::~ValidateRoleSetRequest()
{}
long ValidateRoleSetRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ValidateRoleSetRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ValidateRoleSetRequest::getJsonStr()const
{
return jsonStr_;
}
void ValidateRoleSetRequest::setJsonStr(const std::string& jsonStr)
{
jsonStr_ = jsonStr;
setParameter("JsonStr", jsonStr);
}
std::string ValidateRoleSetRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ValidateRoleSetRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,90 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/qualitycheck/model/ValidateRoleSetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Qualitycheck;
using namespace AlibabaCloud::Qualitycheck::Model;
ValidateRoleSetResult::ValidateRoleSetResult() :
ServiceResult()
{}
ValidateRoleSetResult::ValidateRoleSetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ValidateRoleSetResult::~ValidateRoleSetResult()
{}
void ValidateRoleSetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["SentenceResult"];
for (auto valueDataSentenceResult : allDataNode)
{
SentenceResult dataObject;
if(!valueDataSentenceResult["BeginTime"].isNull())
dataObject.beginTime = std::stol(valueDataSentenceResult["BeginTime"].asString());
if(!valueDataSentenceResult["ChannelId"].isNull())
dataObject.channelId = std::stoi(valueDataSentenceResult["ChannelId"].asString());
if(!valueDataSentenceResult["EndTime"].isNull())
dataObject.endTime = std::stol(valueDataSentenceResult["EndTime"].asString());
if(!valueDataSentenceResult["Text"].isNull())
dataObject.text = valueDataSentenceResult["Text"].asString();
if(!valueDataSentenceResult["EmotionValue"].isNull())
dataObject.emotionValue = std::stoi(valueDataSentenceResult["EmotionValue"].asString());
if(!valueDataSentenceResult["SilenceDuration"].isNull())
dataObject.silenceDuration = std::stoi(valueDataSentenceResult["SilenceDuration"].asString());
if(!valueDataSentenceResult["SpeechRate"].isNull())
dataObject.speechRate = std::stoi(valueDataSentenceResult["SpeechRate"].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 ValidateRoleSetResult::getMessage()const
{
return message_;
}
std::vector<ValidateRoleSetResult::SentenceResult> ValidateRoleSetResult::getData()const
{
return data_;
}
std::string ValidateRoleSetResult::getCode()const
{
return code_;
}
bool ValidateRoleSetResult::getSuccess()const
{
return success_;
}