Update GetSyncResult.
This commit is contained in:
@@ -159,6 +159,42 @@ QualitycheckClient::AddThesaurusForApiOutcomeCallable QualitycheckClient::addThe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::AddUploadDataSetOutcome QualitycheckClient::addUploadDataSet(const AddUploadDataSetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddUploadDataSetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddUploadDataSetOutcome(AddUploadDataSetResult(outcome.result()));
|
||||
else
|
||||
return AddUploadDataSetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void QualitycheckClient::addUploadDataSetAsync(const AddUploadDataSetRequest& request, const AddUploadDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addUploadDataSet(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
QualitycheckClient::AddUploadDataSetOutcomeCallable QualitycheckClient::addUploadDataSetCallable(const AddUploadDataSetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddUploadDataSetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addUploadDataSet(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::AssignReviewerOutcome QualitycheckClient::assignReviewer(const AssignReviewerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,6 +231,42 @@ QualitycheckClient::AssignReviewerOutcomeCallable QualitycheckClient::assignRevi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::ConfigDataSetOutcome QualitycheckClient::configDataSet(const ConfigDataSetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ConfigDataSetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ConfigDataSetOutcome(ConfigDataSetResult(outcome.result()));
|
||||
else
|
||||
return ConfigDataSetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void QualitycheckClient::configDataSetAsync(const ConfigDataSetRequest& request, const ConfigDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, configDataSet(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
QualitycheckClient::ConfigDataSetOutcomeCallable QualitycheckClient::configDataSetCallable(const ConfigDataSetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ConfigDataSetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->configDataSet(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::CreateAsrVocabOutcome QualitycheckClient::createAsrVocab(const CreateAsrVocabRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +303,42 @@ QualitycheckClient::CreateAsrVocabOutcomeCallable QualitycheckClient::createAsrV
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::CreateRuleOutcome QualitycheckClient::createRule(const CreateRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateRuleOutcome(CreateRuleResult(outcome.result()));
|
||||
else
|
||||
return CreateRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void QualitycheckClient::createRuleAsync(const CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
QualitycheckClient::CreateRuleOutcomeCallable QualitycheckClient::createRuleCallable(const CreateRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::CreateSkillGroupConfigOutcome QualitycheckClient::createSkillGroupConfig(const CreateSkillGroupConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1203,6 +1311,42 @@ QualitycheckClient::GetResultToReviewOutcomeCallable QualitycheckClient::getResu
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::GetReviewInfoOutcome QualitycheckClient::getReviewInfo(const GetReviewInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetReviewInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetReviewInfoOutcome(GetReviewInfoResult(outcome.result()));
|
||||
else
|
||||
return GetReviewInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void QualitycheckClient::getReviewInfoAsync(const GetReviewInfoRequest& request, const GetReviewInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getReviewInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
QualitycheckClient::GetReviewInfoOutcomeCallable QualitycheckClient::getReviewInfoCallable(const GetReviewInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetReviewInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getReviewInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::GetRuleOutcome QualitycheckClient::getRule(const GetRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1311,6 +1455,42 @@ QualitycheckClient::GetRuleDetailOutcomeCallable QualitycheckClient::getRuleDeta
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::GetRuleDimensionOutcome QualitycheckClient::getRuleDimension(const GetRuleDimensionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetRuleDimensionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetRuleDimensionOutcome(GetRuleDimensionResult(outcome.result()));
|
||||
else
|
||||
return GetRuleDimensionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void QualitycheckClient::getRuleDimensionAsync(const GetRuleDimensionRequest& request, const GetRuleDimensionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getRuleDimension(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
QualitycheckClient::GetRuleDimensionOutcomeCallable QualitycheckClient::getRuleDimensionCallable(const GetRuleDimensionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetRuleDimensionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getRuleDimension(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::GetScoreInfoOutcome QualitycheckClient::getScoreInfo(const GetScoreInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1419,6 +1599,78 @@ QualitycheckClient::GetSyncResultOutcomeCallable QualitycheckClient::getSyncResu
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::GetTaskFileResultListOutcome QualitycheckClient::getTaskFileResultList(const GetTaskFileResultListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTaskFileResultListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTaskFileResultListOutcome(GetTaskFileResultListResult(outcome.result()));
|
||||
else
|
||||
return GetTaskFileResultListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void QualitycheckClient::getTaskFileResultListAsync(const GetTaskFileResultListRequest& request, const GetTaskFileResultListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTaskFileResultList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
QualitycheckClient::GetTaskFileResultListOutcomeCallable QualitycheckClient::getTaskFileResultListCallable(const GetTaskFileResultListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTaskFileResultListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTaskFileResultList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::GetTaskRuleListOutcome QualitycheckClient::getTaskRuleList(const GetTaskRuleListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTaskRuleListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTaskRuleListOutcome(GetTaskRuleListResult(outcome.result()));
|
||||
else
|
||||
return GetTaskRuleListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void QualitycheckClient::getTaskRuleListAsync(const GetTaskRuleListRequest& request, const GetTaskRuleListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTaskRuleList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
QualitycheckClient::GetTaskRuleListOutcomeCallable QualitycheckClient::getTaskRuleListCallable(const GetTaskRuleListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTaskRuleListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTaskRuleList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::GetThesaurusBySynonymForApiOutcome QualitycheckClient::getThesaurusBySynonymForApi(const GetThesaurusBySynonymForApiRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1635,6 +1887,42 @@ QualitycheckClient::ListAsrVocabOutcomeCallable QualitycheckClient::listAsrVocab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::ListDataSetTaskOutcome QualitycheckClient::listDataSetTask(const ListDataSetTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDataSetTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDataSetTaskOutcome(ListDataSetTaskResult(outcome.result()));
|
||||
else
|
||||
return ListDataSetTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void QualitycheckClient::listDataSetTaskAsync(const ListDataSetTaskRequest& request, const ListDataSetTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDataSetTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
QualitycheckClient::ListDataSetTaskOutcomeCallable QualitycheckClient::listDataSetTaskCallable(const ListDataSetTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDataSetTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDataSetTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::ListHotWordsTasksOutcome QualitycheckClient::listHotWordsTasks(const ListHotWordsTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1923,6 +2211,42 @@ QualitycheckClient::ListWarningConfigOutcomeCallable QualitycheckClient::listWar
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::RemoveAndGetTaskRulesOutcome QualitycheckClient::removeAndGetTaskRules(const RemoveAndGetTaskRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RemoveAndGetTaskRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RemoveAndGetTaskRulesOutcome(RemoveAndGetTaskRulesResult(outcome.result()));
|
||||
else
|
||||
return RemoveAndGetTaskRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void QualitycheckClient::removeAndGetTaskRulesAsync(const RemoveAndGetTaskRulesRequest& request, const RemoveAndGetTaskRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, removeAndGetTaskRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
QualitycheckClient::RemoveAndGetTaskRulesOutcomeCallable QualitycheckClient::removeAndGetTaskRulesCallable(const RemoveAndGetTaskRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RemoveAndGetTaskRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->removeAndGetTaskRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::RestartAsrTaskOutcome QualitycheckClient::restartAsrTask(const RestartAsrTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1959,6 +2283,42 @@ QualitycheckClient::RestartAsrTaskOutcomeCallable QualitycheckClient::restartAsr
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::ReviewSingleResultByIdOutcome QualitycheckClient::reviewSingleResultById(const ReviewSingleResultByIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ReviewSingleResultByIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ReviewSingleResultByIdOutcome(ReviewSingleResultByIdResult(outcome.result()));
|
||||
else
|
||||
return ReviewSingleResultByIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void QualitycheckClient::reviewSingleResultByIdAsync(const ReviewSingleResultByIdRequest& request, const ReviewSingleResultByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, reviewSingleResultById(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
QualitycheckClient::ReviewSingleResultByIdOutcomeCallable QualitycheckClient::reviewSingleResultByIdCallable(const ReviewSingleResultByIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ReviewSingleResultByIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->reviewSingleResultById(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::SaveConfigDataSetOutcome QualitycheckClient::saveConfigDataSet(const SaveConfigDataSetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2031,6 +2391,42 @@ QualitycheckClient::SubmitComplaintOutcomeCallable QualitycheckClient::submitCom
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::SubmitCustomizationConfigOutcome QualitycheckClient::submitCustomizationConfig(const SubmitCustomizationConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitCustomizationConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitCustomizationConfigOutcome(SubmitCustomizationConfigResult(outcome.result()));
|
||||
else
|
||||
return SubmitCustomizationConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void QualitycheckClient::submitCustomizationConfigAsync(const SubmitCustomizationConfigRequest& request, const SubmitCustomizationConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitCustomizationConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
QualitycheckClient::SubmitCustomizationConfigOutcomeCallable QualitycheckClient::submitCustomizationConfigCallable(const SubmitCustomizationConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitCustomizationConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitCustomizationConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::SubmitPrecisionTaskOutcome QualitycheckClient::submitPrecisionTask(const SubmitPrecisionTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2175,6 +2571,42 @@ QualitycheckClient::SyncQualityCheckOutcomeCallable QualitycheckClient::syncQual
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::TestRuleOutcome QualitycheckClient::testRule(const TestRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TestRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TestRuleOutcome(TestRuleResult(outcome.result()));
|
||||
else
|
||||
return TestRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void QualitycheckClient::testRuleAsync(const TestRuleRequest& request, const TestRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, testRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
QualitycheckClient::TestRuleOutcomeCallable QualitycheckClient::testRuleCallable(const TestRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TestRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->testRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::UpdateAsrVocabOutcome QualitycheckClient::updateAsrVocab(const UpdateAsrVocabRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2211,6 +2643,42 @@ QualitycheckClient::UpdateAsrVocabOutcomeCallable QualitycheckClient::updateAsrV
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::UpdateOnPurchaseSuccessOutcome QualitycheckClient::updateOnPurchaseSuccess(const UpdateOnPurchaseSuccessRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateOnPurchaseSuccessOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateOnPurchaseSuccessOutcome(UpdateOnPurchaseSuccessResult(outcome.result()));
|
||||
else
|
||||
return UpdateOnPurchaseSuccessOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void QualitycheckClient::updateOnPurchaseSuccessAsync(const UpdateOnPurchaseSuccessRequest& request, const UpdateOnPurchaseSuccessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateOnPurchaseSuccess(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
QualitycheckClient::UpdateOnPurchaseSuccessOutcomeCallable QualitycheckClient::updateOnPurchaseSuccessCallable(const UpdateOnPurchaseSuccessRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateOnPurchaseSuccessOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateOnPurchaseSuccess(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
QualitycheckClient::UpdateRuleOutcome QualitycheckClient::updateRule(const UpdateRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/AddBusinessCategoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::AddBusinessCategoryRequest;
|
||||
|
||||
AddBusinessCategoryRequest::AddBusinessCategoryRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "AddBusinessCategory") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void AddBusinessCategoryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
AddBusinessCategoryRequest::~AddBusinessCategoryRequest() {}
|
||||
|
||||
long AddBusinessCategoryRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string AddBusinessCategoryRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void AddBusinessCategoryRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void AddBusinessCategoryRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string AddBusinessCategoryRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string AddBusinessCategoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void AddBusinessCategoryRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void AddBusinessCategoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string AddBusinessCategoryRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddBusinessCategoryRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void AddBusinessCategoryResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/AddRuleCategoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::AddRuleCategoryRequest;
|
||||
|
||||
AddRuleCategoryRequest::AddRuleCategoryRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "AddRuleCategory") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void AddRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
AddRuleCategoryRequest::~AddRuleCategoryRequest() {}
|
||||
|
||||
long AddRuleCategoryRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string AddRuleCategoryRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void AddRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void AddRuleCategoryRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string AddRuleCategoryRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string AddRuleCategoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void AddRuleCategoryRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void AddRuleCategoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string AddRuleCategoryRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddRuleCategoryRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,12 +42,12 @@ void AddRuleCategoryResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/AddThesaurusForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::AddThesaurusForApiRequest;
|
||||
|
||||
AddThesaurusForApiRequest::AddThesaurusForApiRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "AddThesaurusForApi") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void AddThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
AddThesaurusForApiRequest::~AddThesaurusForApiRequest() {}
|
||||
|
||||
long AddThesaurusForApiRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string AddThesaurusForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void AddThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void AddThesaurusForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string AddThesaurusForApiRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string AddThesaurusForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void AddThesaurusForApiRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void AddThesaurusForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string AddThesaurusForApiRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddThesaurusForApiRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void AddThesaurusForApiResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
54
qualitycheck/src/model/AddUploadDataSetRequest.cc
Normal file
54
qualitycheck/src/model/AddUploadDataSetRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/AddUploadDataSetRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::AddUploadDataSetRequest;
|
||||
|
||||
AddUploadDataSetRequest::AddUploadDataSetRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "AddUploadDataSet") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddUploadDataSetRequest::~AddUploadDataSetRequest() {}
|
||||
|
||||
long AddUploadDataSetRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void AddUploadDataSetRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string AddUploadDataSetRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void AddUploadDataSetRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
std::string AddUploadDataSetRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddUploadDataSetRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
72
qualitycheck/src/model/AddUploadDataSetResult.cc
Normal file
72
qualitycheck/src/model/AddUploadDataSetResult.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/AddUploadDataSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
AddUploadDataSetResult::AddUploadDataSetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddUploadDataSetResult::AddUploadDataSetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddUploadDataSetResult::~AddUploadDataSetResult()
|
||||
{}
|
||||
|
||||
void AddUploadDataSetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
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());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AddUploadDataSetResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long AddUploadDataSetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AddUploadDataSetResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddUploadDataSetResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/AssignReviewerRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::AssignReviewerRequest;
|
||||
|
||||
AssignReviewerRequest::AssignReviewerRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "AssignReviewer") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void AssignReviewerRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
AssignReviewerRequest::~AssignReviewerRequest() {}
|
||||
|
||||
long AssignReviewerRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string AssignReviewerRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void AssignReviewerRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void AssignReviewerRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string AssignReviewerRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string AssignReviewerRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void AssignReviewerRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void AssignReviewerRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string AssignReviewerRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AssignReviewerRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void AssignReviewerResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
54
qualitycheck/src/model/ConfigDataSetRequest.cc
Normal file
54
qualitycheck/src/model/ConfigDataSetRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/ConfigDataSetRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::ConfigDataSetRequest;
|
||||
|
||||
ConfigDataSetRequest::ConfigDataSetRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "ConfigDataSet") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConfigDataSetRequest::~ConfigDataSetRequest() {}
|
||||
|
||||
long ConfigDataSetRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ConfigDataSetRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ConfigDataSetRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void ConfigDataSetRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
std::string ConfigDataSetRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ConfigDataSetRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
135
qualitycheck/src/model/ConfigDataSetResult.cc
Normal file
135
qualitycheck/src/model/ConfigDataSetResult.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/ConfigDataSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
ConfigDataSetResult::ConfigDataSetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConfigDataSetResult::ConfigDataSetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConfigDataSetResult::~ConfigDataSetResult()
|
||||
{}
|
||||
|
||||
void ConfigDataSetResult::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["RoleConfigStatus"].isNull())
|
||||
data_.roleConfigStatus = std::stoi(dataNode["RoleConfigStatus"].asString());
|
||||
if(!dataNode["ChannelType"].isNull())
|
||||
data_.channelType = std::stoi(dataNode["ChannelType"].asString());
|
||||
if(!dataNode["JudgeType"].isNull())
|
||||
data_.judgeType = std::stoi(dataNode["JudgeType"].asString());
|
||||
if(!dataNode["SetId"].isNull())
|
||||
data_.setId = std::stol(dataNode["SetId"].asString());
|
||||
auto ruleInfoNode = dataNode["RuleInfo"];
|
||||
auto allConditionsNode = ruleInfoNode["Conditions"]["ConditionBasicInfo"];
|
||||
for (auto ruleInfoNodeConditionsConditionBasicInfo : allConditionsNode)
|
||||
{
|
||||
Data::RuleInfo::ConditionBasicInfo conditionBasicInfoObject;
|
||||
if(!ruleInfoNodeConditionsConditionBasicInfo["Lambda"].isNull())
|
||||
conditionBasicInfoObject.lambda = ruleInfoNodeConditionsConditionBasicInfo["Lambda"].asString();
|
||||
if(!ruleInfoNodeConditionsConditionBasicInfo["Cid"].isNull())
|
||||
conditionBasicInfoObject.cid = ruleInfoNodeConditionsConditionBasicInfo["Cid"].asString();
|
||||
auto allOperatorsNode = ruleInfoNodeConditionsConditionBasicInfo["Operators"]["OperatorBasicInfo"];
|
||||
for (auto ruleInfoNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo : allOperatorsNode)
|
||||
{
|
||||
Data::RuleInfo::ConditionBasicInfo::OperatorBasicInfo operatorsObject;
|
||||
if(!ruleInfoNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Type"].isNull())
|
||||
operatorsObject.type = ruleInfoNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Type"].asString();
|
||||
if(!ruleInfoNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Oid"].isNull())
|
||||
operatorsObject.oid = ruleInfoNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Oid"].asString();
|
||||
auto paramNode = value["Param"];
|
||||
if(!paramNode["InSentence"].isNull())
|
||||
operatorsObject.param.inSentence = paramNode["InSentence"].asString() == "true";
|
||||
auto allKeywords = paramNode["Keywords"]["Keywords"];
|
||||
for (auto value : allKeywords)
|
||||
operatorsObject.param.keywords.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["RoleId"].isNull())
|
||||
conditionBasicInfoObject.checkRange.roleId = std::stoi(checkRangeNode["RoleId"].asString());
|
||||
auto anchorNode = checkRangeNode["Anchor"];
|
||||
if(!anchorNode["HitTime"].isNull())
|
||||
conditionBasicInfoObject.checkRange.anchor.hitTime = std::stoi(anchorNode["HitTime"].asString());
|
||||
if(!anchorNode["Cid"].isNull())
|
||||
conditionBasicInfoObject.checkRange.anchor.cid = anchorNode["Cid"].asString();
|
||||
if(!anchorNode["Location"].isNull())
|
||||
conditionBasicInfoObject.checkRange.anchor.location = anchorNode["Location"].asString();
|
||||
auto rangeNode = checkRangeNode["Range"];
|
||||
if(!rangeNode["To"].isNull())
|
||||
conditionBasicInfoObject.checkRange.range.to = std::stoi(rangeNode["To"].asString());
|
||||
if(!rangeNode["From"].isNull())
|
||||
conditionBasicInfoObject.checkRange.range.from = std::stoi(rangeNode["From"].asString());
|
||||
data_.ruleInfo.conditions.push_back(conditionBasicInfoObject);
|
||||
}
|
||||
auto allRulesNode = ruleInfoNode["Rules"]["RuleBasicInfo"];
|
||||
for (auto ruleInfoNodeRulesRuleBasicInfo : allRulesNode)
|
||||
{
|
||||
Data::RuleInfo::RuleBasicInfo ruleBasicInfoObject;
|
||||
if(!ruleInfoNodeRulesRuleBasicInfo["Lambda"].isNull())
|
||||
ruleBasicInfoObject.lambda = ruleInfoNodeRulesRuleBasicInfo["Lambda"].asString();
|
||||
if(!ruleInfoNodeRulesRuleBasicInfo["ExternalProperty"].isNull())
|
||||
ruleBasicInfoObject.externalProperty = std::stoi(ruleInfoNodeRulesRuleBasicInfo["ExternalProperty"].asString());
|
||||
if(!ruleInfoNodeRulesRuleBasicInfo["Rid"].isNull())
|
||||
ruleBasicInfoObject.rid = ruleInfoNodeRulesRuleBasicInfo["Rid"].asString();
|
||||
data_.ruleInfo.rules.push_back(ruleBasicInfoObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ConfigDataSetResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ConfigDataSetResult::Data ConfigDataSetResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ConfigDataSetResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ConfigDataSetResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/CreateAsrVocabRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::CreateAsrVocabRequest;
|
||||
|
||||
CreateAsrVocabRequest::CreateAsrVocabRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "CreateAsrVocab") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateAsrVocabRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
CreateAsrVocabRequest::~CreateAsrVocabRequest() {}
|
||||
|
||||
long CreateAsrVocabRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string CreateAsrVocabRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void CreateAsrVocabRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void CreateAsrVocabRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string CreateAsrVocabRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string CreateAsrVocabRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void CreateAsrVocabRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void CreateAsrVocabRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string CreateAsrVocabRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateAsrVocabRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateAsrVocabResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
54
qualitycheck/src/model/CreateRuleRequest.cc
Normal file
54
qualitycheck/src/model/CreateRuleRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/CreateRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::CreateRuleRequest;
|
||||
|
||||
CreateRuleRequest::CreateRuleRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "CreateRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRuleRequest::~CreateRuleRequest() {}
|
||||
|
||||
long CreateRuleRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateRuleRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void CreateRuleRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
std::string CreateRuleRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateRuleRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
72
qualitycheck/src/model/CreateRuleResult.cc
Normal file
72
qualitycheck/src/model/CreateRuleResult.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/CreateRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
CreateRuleResult::CreateRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRuleResult::CreateRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRuleResult::~CreateRuleResult()
|
||||
{}
|
||||
|
||||
void CreateRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
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());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
long CreateRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/CreateSkillGroupConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::CreateSkillGroupConfigRequest;
|
||||
|
||||
CreateSkillGroupConfigRequest::CreateSkillGroupConfigRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "CreateSkillGroupConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
CreateSkillGroupConfigRequest::~CreateSkillGroupConfigRequest() {}
|
||||
|
||||
long CreateSkillGroupConfigRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupConfigRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void CreateSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void CreateSkillGroupConfigRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string CreateSkillGroupConfigRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string CreateSkillGroupConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void CreateSkillGroupConfigRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void CreateSkillGroupConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string CreateSkillGroupConfigRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateSkillGroupConfigRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateSkillGroupConfigResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/CreateTaskAssignRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::CreateTaskAssignRuleRequest;
|
||||
|
||||
CreateTaskAssignRuleRequest::CreateTaskAssignRuleRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "CreateTaskAssignRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateTaskAssignRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
CreateTaskAssignRuleRequest::~CreateTaskAssignRuleRequest() {}
|
||||
|
||||
long CreateTaskAssignRuleRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string CreateTaskAssignRuleRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void CreateTaskAssignRuleRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void CreateTaskAssignRuleRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string CreateTaskAssignRuleRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string CreateTaskAssignRuleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void CreateTaskAssignRuleRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void CreateTaskAssignRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string CreateTaskAssignRuleRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateTaskAssignRuleRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateTaskAssignRuleResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/CreateUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::CreateUserRequest;
|
||||
|
||||
CreateUserRequest::CreateUserRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "CreateUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateUserRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
CreateUserRequest::~CreateUserRequest() {}
|
||||
|
||||
long CreateUserRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void CreateUserRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void CreateUserRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string CreateUserRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void CreateUserRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void CreateUserRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string CreateUserRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void CreateUserResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/CreateWarningConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::CreateWarningConfigRequest;
|
||||
|
||||
CreateWarningConfigRequest::CreateWarningConfigRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "CreateWarningConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateWarningConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
CreateWarningConfigRequest::~CreateWarningConfigRequest() {}
|
||||
|
||||
long CreateWarningConfigRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string CreateWarningConfigRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void CreateWarningConfigRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void CreateWarningConfigRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string CreateWarningConfigRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string CreateWarningConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void CreateWarningConfigRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void CreateWarningConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string CreateWarningConfigRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateWarningConfigRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateWarningConfigResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DelRuleCategoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DelRuleCategoryRequest;
|
||||
|
||||
DelRuleCategoryRequest::DelRuleCategoryRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "DelRuleCategory") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DelRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
DelRuleCategoryRequest::~DelRuleCategoryRequest() {}
|
||||
|
||||
long DelRuleCategoryRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DelRuleCategoryRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void DelRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void DelRuleCategoryRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string DelRuleCategoryRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string DelRuleCategoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DelRuleCategoryRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void DelRuleCategoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DelRuleCategoryRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DelRuleCategoryRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,12 +42,12 @@ void DelRuleCategoryResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DelThesaurusForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DelThesaurusForApiRequest;
|
||||
|
||||
DelThesaurusForApiRequest::DelThesaurusForApiRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "DelThesaurusForApi") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DelThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
DelThesaurusForApiRequest::~DelThesaurusForApiRequest() {}
|
||||
|
||||
long DelThesaurusForApiRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DelThesaurusForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void DelThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void DelThesaurusForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string DelThesaurusForApiRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string DelThesaurusForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DelThesaurusForApiRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void DelThesaurusForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DelThesaurusForApiRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DelThesaurusForApiRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void DelThesaurusForApiResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DeleteAsrVocabRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteAsrVocabRequest;
|
||||
|
||||
DeleteAsrVocabRequest::DeleteAsrVocabRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteAsrVocab") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteAsrVocabRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
DeleteAsrVocabRequest::~DeleteAsrVocabRequest() {}
|
||||
|
||||
long DeleteAsrVocabRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DeleteAsrVocabRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void DeleteAsrVocabRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void DeleteAsrVocabRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string DeleteAsrVocabRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string DeleteAsrVocabRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteAsrVocabRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void DeleteAsrVocabRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteAsrVocabRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteAsrVocabRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteAsrVocabResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DeleteBusinessCategoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteBusinessCategoryRequest;
|
||||
|
||||
DeleteBusinessCategoryRequest::DeleteBusinessCategoryRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteBusinessCategory") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteBusinessCategoryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
DeleteBusinessCategoryRequest::~DeleteBusinessCategoryRequest() {}
|
||||
|
||||
long DeleteBusinessCategoryRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DeleteBusinessCategoryRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void DeleteBusinessCategoryRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void DeleteBusinessCategoryRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string DeleteBusinessCategoryRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string DeleteBusinessCategoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteBusinessCategoryRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void DeleteBusinessCategoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteBusinessCategoryRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteBusinessCategoryRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteBusinessCategoryResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DeleteCustomizationConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteCustomizationConfigRequest;
|
||||
|
||||
DeleteCustomizationConfigRequest::DeleteCustomizationConfigRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteCustomizationConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteCustomizationConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
DeleteCustomizationConfigRequest::~DeleteCustomizationConfigRequest() {}
|
||||
|
||||
long DeleteCustomizationConfigRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DeleteCustomizationConfigRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void DeleteCustomizationConfigRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void DeleteCustomizationConfigRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string DeleteCustomizationConfigRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string DeleteCustomizationConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteCustomizationConfigRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void DeleteCustomizationConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteCustomizationConfigRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteCustomizationConfigRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteCustomizationConfigResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DeleteDataSetRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteDataSetRequest;
|
||||
|
||||
DeleteDataSetRequest::DeleteDataSetRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteDataSet") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteDataSetRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
DeleteDataSetRequest::~DeleteDataSetRequest() {}
|
||||
|
||||
long DeleteDataSetRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DeleteDataSetRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void DeleteDataSetRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void DeleteDataSetRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string DeleteDataSetRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string DeleteDataSetRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteDataSetRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void DeleteDataSetRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteDataSetRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteDataSetRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void DeleteDataSetResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DeletePrecisionTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeletePrecisionTaskRequest;
|
||||
|
||||
DeletePrecisionTaskRequest::DeletePrecisionTaskRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "DeletePrecisionTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeletePrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
DeletePrecisionTaskRequest::~DeletePrecisionTaskRequest() {}
|
||||
|
||||
long DeletePrecisionTaskRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DeletePrecisionTaskRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void DeletePrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void DeletePrecisionTaskRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string DeletePrecisionTaskRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string DeletePrecisionTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeletePrecisionTaskRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void DeletePrecisionTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeletePrecisionTaskRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeletePrecisionTaskRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void DeletePrecisionTaskResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DeleteScoreForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteScoreForApiRequest;
|
||||
|
||||
DeleteScoreForApiRequest::DeleteScoreForApiRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteScoreForApi") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteScoreForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
DeleteScoreForApiRequest::~DeleteScoreForApiRequest() {}
|
||||
|
||||
long DeleteScoreForApiRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DeleteScoreForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void DeleteScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void DeleteScoreForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string DeleteScoreForApiRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string DeleteScoreForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteScoreForApiRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void DeleteScoreForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteScoreForApiRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteScoreForApiRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void DeleteScoreForApiResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DeleteSkillGroupConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteSkillGroupConfigRequest;
|
||||
|
||||
DeleteSkillGroupConfigRequest::DeleteSkillGroupConfigRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteSkillGroupConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
DeleteSkillGroupConfigRequest::~DeleteSkillGroupConfigRequest() {}
|
||||
|
||||
long DeleteSkillGroupConfigRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DeleteSkillGroupConfigRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void DeleteSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void DeleteSkillGroupConfigRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string DeleteSkillGroupConfigRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string DeleteSkillGroupConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteSkillGroupConfigRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void DeleteSkillGroupConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteSkillGroupConfigRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteSkillGroupConfigRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void DeleteSkillGroupConfigResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DeleteSubScoreForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteSubScoreForApiRequest;
|
||||
|
||||
DeleteSubScoreForApiRequest::DeleteSubScoreForApiRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteSubScoreForApi") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteSubScoreForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
DeleteSubScoreForApiRequest::~DeleteSubScoreForApiRequest() {}
|
||||
|
||||
long DeleteSubScoreForApiRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DeleteSubScoreForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void DeleteSubScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void DeleteSubScoreForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string DeleteSubScoreForApiRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string DeleteSubScoreForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteSubScoreForApiRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void DeleteSubScoreForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteSubScoreForApiRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteSubScoreForApiRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void DeleteSubScoreForApiResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DeleteTaskAssignRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteTaskAssignRuleRequest;
|
||||
|
||||
DeleteTaskAssignRuleRequest::DeleteTaskAssignRuleRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteTaskAssignRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteTaskAssignRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
DeleteTaskAssignRuleRequest::~DeleteTaskAssignRuleRequest() {}
|
||||
|
||||
long DeleteTaskAssignRuleRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DeleteTaskAssignRuleRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void DeleteTaskAssignRuleRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void DeleteTaskAssignRuleRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string DeleteTaskAssignRuleRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string DeleteTaskAssignRuleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteTaskAssignRuleRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void DeleteTaskAssignRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteTaskAssignRuleRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteTaskAssignRuleRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void DeleteTaskAssignRuleResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DeleteUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteUserRequest;
|
||||
|
||||
DeleteUserRequest::DeleteUserRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
DeleteUserRequest::~DeleteUserRequest() {}
|
||||
|
||||
long DeleteUserRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void DeleteUserRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string DeleteUserRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteUserRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteUserRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void DeleteUserResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/DeleteWarningConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::DeleteWarningConfigRequest;
|
||||
|
||||
DeleteWarningConfigRequest::DeleteWarningConfigRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteWarningConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteWarningConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
DeleteWarningConfigRequest::~DeleteWarningConfigRequest() {}
|
||||
|
||||
long DeleteWarningConfigRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string DeleteWarningConfigRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void DeleteWarningConfigRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void DeleteWarningConfigRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string DeleteWarningConfigRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string DeleteWarningConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void DeleteWarningConfigRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void DeleteWarningConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string DeleteWarningConfigRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteWarningConfigRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void DeleteWarningConfigResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/EditThesaurusForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::EditThesaurusForApiRequest;
|
||||
|
||||
EditThesaurusForApiRequest::EditThesaurusForApiRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "EditThesaurusForApi") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void EditThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
EditThesaurusForApiRequest::~EditThesaurusForApiRequest() {}
|
||||
|
||||
long EditThesaurusForApiRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string EditThesaurusForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void EditThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void EditThesaurusForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string EditThesaurusForApiRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string EditThesaurusForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void EditThesaurusForApiRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void EditThesaurusForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string EditThesaurusForApiRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void EditThesaurusForApiRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void EditThesaurusForApiResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetAsrVocabRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetAsrVocabRequest;
|
||||
|
||||
GetAsrVocabRequest::GetAsrVocabRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetAsrVocab") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetAsrVocabRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetAsrVocabRequest::~GetAsrVocabRequest() {}
|
||||
|
||||
long GetAsrVocabRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetAsrVocabRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetAsrVocabRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetAsrVocabRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetAsrVocabRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetAsrVocabRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetAsrVocabRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetAsrVocabRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetAsrVocabRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetAsrVocabRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -46,18 +46,18 @@ void GetAsrVocabResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!dataNodeWordsWord["Word"].isNull())
|
||||
wordObject.word = dataNodeWordsWord["Word"].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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetBusinessCategoryListRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetBusinessCategoryListRequest;
|
||||
|
||||
GetBusinessCategoryListRequest::GetBusinessCategoryListRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetBusinessCategoryList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetBusinessCategoryListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetBusinessCategoryListRequest::~GetBusinessCategoryListRequest() {}
|
||||
|
||||
long GetBusinessCategoryListRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetBusinessCategoryListRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetBusinessCategoryListRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetBusinessCategoryListRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetBusinessCategoryListRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetBusinessCategoryListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetBusinessCategoryListRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetBusinessCategoryListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetBusinessCategoryListRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetBusinessCategoryListRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,20 +43,20 @@ void GetBusinessCategoryListResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!valueDataBusinessCategoryBasicInfo["ServiceType"].isNull())
|
||||
dataObject.serviceType = std::stoi(valueDataBusinessCategoryBasicInfo["ServiceType"].asString());
|
||||
if(!valueDataBusinessCategoryBasicInfo["Bid"].isNull())
|
||||
dataObject.bid = std::stoi(valueDataBusinessCategoryBasicInfo["Bid"].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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetCustomizationConfigListRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetCustomizationConfigListRequest;
|
||||
|
||||
GetCustomizationConfigListRequest::GetCustomizationConfigListRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetCustomizationConfigList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetCustomizationConfigListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetCustomizationConfigListRequest::~GetCustomizationConfigListRequest() {}
|
||||
|
||||
long GetCustomizationConfigListRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetCustomizationConfigListRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetCustomizationConfigListRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetCustomizationConfigListRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetCustomizationConfigListRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetCustomizationConfigListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetCustomizationConfigListRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetCustomizationConfigListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetCustomizationConfigListRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetCustomizationConfigListRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,26 +43,26 @@ void GetCustomizationConfigListResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!valueDataModelCustomizationDataSetPo["ModelStatus"].isNull())
|
||||
dataObject.modelStatus = std::stoi(valueDataModelCustomizationDataSetPo["ModelStatus"].asString());
|
||||
if(!valueDataModelCustomizationDataSetPo["ModelName"].isNull())
|
||||
dataObject.modelName = valueDataModelCustomizationDataSetPo["ModelName"].asString();
|
||||
if(!valueDataModelCustomizationDataSetPo["ModelId"].isNull())
|
||||
dataObject.modelId = std::stol(valueDataModelCustomizationDataSetPo["ModelId"].asString());
|
||||
if(!valueDataModelCustomizationDataSetPo["ModeCustomizationId"].isNull())
|
||||
dataObject.modeCustomizationId = valueDataModelCustomizationDataSetPo["ModeCustomizationId"].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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetHitResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetHitResultRequest;
|
||||
|
||||
GetHitResultRequest::GetHitResultRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetHitResult") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetHitResultRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetHitResultRequest::~GetHitResultRequest() {}
|
||||
|
||||
long GetHitResultRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetHitResultRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetHitResultRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetHitResultRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetHitResultRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetHitResultRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetHitResultRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetHitResultRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetHitResultRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetHitResultRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,10 +43,10 @@ void GetHitResultResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!valueDataResultInfo["Rid"].isNull())
|
||||
dataObject.rid = std::stol(valueDataResultInfo["Rid"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
@@ -55,12 +55,12 @@ void GetHitResultResult::parse(const std::string &payload)
|
||||
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["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetNextResultToVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetNextResultToVerifyRequest;
|
||||
|
||||
GetNextResultToVerifyRequest::GetNextResultToVerifyRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetNextResultToVerify") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetNextResultToVerifyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetNextResultToVerifyRequest::~GetNextResultToVerifyRequest() {}
|
||||
|
||||
long GetNextResultToVerifyRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetNextResultToVerifyRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetNextResultToVerifyRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetNextResultToVerifyRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetNextResultToVerifyRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetNextResultToVerifyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetNextResultToVerifyRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetNextResultToVerifyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetNextResultToVerifyRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetNextResultToVerifyRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,62 +40,62 @@ void GetNextResultToVerifyResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["AudioScheme"].isNull())
|
||||
data_.audioScheme = dataNode["AudioScheme"].asString();
|
||||
if(!dataNode["AudioURL"].isNull())
|
||||
data_.audioURL = dataNode["AudioURL"].asString();
|
||||
if(!dataNode["UpdateTime"].isNull())
|
||||
data_.updateTime = dataNode["UpdateTime"].asString();
|
||||
if(!dataNode["IncorrectWords"].isNull())
|
||||
data_.incorrectWords = std::stoi(dataNode["IncorrectWords"].asString());
|
||||
if(!dataNode["VerifiedCount"].isNull())
|
||||
data_.verifiedCount = std::stoi(dataNode["VerifiedCount"].asString());
|
||||
if(!dataNode["Verified"].isNull())
|
||||
data_.verified = dataNode["Verified"].asString() == "true";
|
||||
if(!dataNode["FileName"].isNull())
|
||||
data_.fileName = dataNode["FileName"].asString();
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["Precision"].isNull())
|
||||
data_.precision = std::stof(dataNode["Precision"].asString());
|
||||
if(!dataNode["FileId"].isNull())
|
||||
data_.fileId = dataNode["FileId"].asString();
|
||||
if(!dataNode["Duration"].isNull())
|
||||
data_.duration = std::stoi(dataNode["Duration"].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["Identity"].isNull())
|
||||
dialogueObject.identity = dataNodeDialoguesDialogue["Identity"].asString();
|
||||
if(!dataNodeDialoguesDialogue["IncorrectWords"].isNull())
|
||||
dialogueObject.incorrectWords = std::stoi(dataNodeDialoguesDialogue["IncorrectWords"].asString());
|
||||
if(!dataNodeDialoguesDialogue["BeginTime"].isNull())
|
||||
dialogueObject.beginTime = dataNodeDialoguesDialogue["BeginTime"].asString();
|
||||
if(!dataNodeDialoguesDialogue["SourceWords"].isNull())
|
||||
dialogueObject.sourceWords = dataNodeDialoguesDialogue["SourceWords"].asString();
|
||||
if(!dataNodeDialoguesDialogue["End"].isNull())
|
||||
dialogueObject.end = std::stol(dataNodeDialoguesDialogue["End"].asString());
|
||||
if(!dataNodeDialoguesDialogue["SpeechRate"].isNull())
|
||||
dialogueObject.speechRate = std::stoi(dataNodeDialoguesDialogue["SpeechRate"].asString());
|
||||
if(!dataNodeDialoguesDialogue["HourMinSec"].isNull())
|
||||
dialogueObject.hourMinSec = dataNodeDialoguesDialogue["HourMinSec"].asString();
|
||||
if(!dataNodeDialoguesDialogue["SourceRole"].isNull())
|
||||
dialogueObject.sourceRole = dataNodeDialoguesDialogue["SourceRole"].asString();
|
||||
if(!dataNodeDialoguesDialogue["Begin"].isNull())
|
||||
dialogueObject.begin = std::stol(dataNodeDialoguesDialogue["Begin"].asString());
|
||||
if(!dataNodeDialoguesDialogue["EmotionValue"].isNull())
|
||||
dialogueObject.emotionValue = std::stoi(dataNodeDialoguesDialogue["EmotionValue"].asString());
|
||||
if(!dataNodeDialoguesDialogue["Role"].isNull())
|
||||
dialogueObject.role = dataNodeDialoguesDialogue["Role"].asString();
|
||||
if(!dataNodeDialoguesDialogue["SilenceDuration"].isNull())
|
||||
dialogueObject.silenceDuration = std::stoi(dataNodeDialoguesDialogue["SilenceDuration"].asString());
|
||||
auto allDeltasNode = dataNodeDialoguesDialogue["Deltas"]["Delta"];
|
||||
for (auto dataNodeDialoguesDialogueDeltasDelta : allDeltasNode)
|
||||
{
|
||||
@@ -118,12 +118,12 @@ void GetNextResultToVerifyResult::parse(const std::string &payload)
|
||||
}
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetPrecisionTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetPrecisionTaskRequest;
|
||||
|
||||
GetPrecisionTaskRequest::GetPrecisionTaskRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetPrecisionTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetPrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetPrecisionTaskRequest::~GetPrecisionTaskRequest() {}
|
||||
|
||||
long GetPrecisionTaskRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetPrecisionTaskRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetPrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetPrecisionTaskRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetPrecisionTaskRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetPrecisionTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetPrecisionTaskRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetPrecisionTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetPrecisionTaskRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetPrecisionTaskRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,50 +40,50 @@ void GetPrecisionTaskResult::parse(const std::string &payload)
|
||||
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["UpdateTime"].isNull())
|
||||
data_.updateTime = dataNode["UpdateTime"].asString();
|
||||
if(!dataNode["IncorrectWords"].isNull())
|
||||
data_.incorrectWords = std::stoi(dataNode["IncorrectWords"].asString());
|
||||
if(!dataNode["DataSetId"].isNull())
|
||||
data_.dataSetId = std::stol(dataNode["DataSetId"].asString());
|
||||
if(!dataNode["VerifiedCount"].isNull())
|
||||
data_.verifiedCount = std::stoi(dataNode["VerifiedCount"].asString());
|
||||
if(!dataNode["Duration"].isNull())
|
||||
data_.duration = std::stoi(dataNode["Duration"].asString());
|
||||
if(!dataNode["DataSetName"].isNull())
|
||||
data_.dataSetName = dataNode["DataSetName"].asString();
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["Source"].isNull())
|
||||
data_.source = std::stoi(dataNode["Source"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["TaskId"].isNull())
|
||||
data_.taskId = dataNode["TaskId"].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["ModelName"].isNull())
|
||||
precisionObject.modelName = dataNodePrecisionsPrecision["ModelName"].asString();
|
||||
if(!dataNodePrecisionsPrecision["TaskId"].isNull())
|
||||
precisionObject.taskId = dataNodePrecisionsPrecision["TaskId"].asString();
|
||||
if(!dataNodePrecisionsPrecision["Precision"].isNull())
|
||||
precisionObject.precision = std::stof(dataNodePrecisionsPrecision["Precision"].asString());
|
||||
if(!dataNodePrecisionsPrecision["ModelId"].isNull())
|
||||
precisionObject.modelId = std::stol(dataNodePrecisionsPrecision["ModelId"].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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetResultCallbackRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetResultCallbackRequest;
|
||||
|
||||
GetResultCallbackRequest::GetResultCallbackRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetResultCallback") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetResultCallbackRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetResultCallbackRequest::~GetResultCallbackRequest() {}
|
||||
|
||||
long GetResultCallbackRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetResultCallbackRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetResultCallbackRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetResultCallbackRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetResultCallbackRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetResultCallbackRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetResultCallbackRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetResultCallbackRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetResultCallbackRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetResultCallbackRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void GetResultCallbackResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetResultRequest;
|
||||
|
||||
GetResultRequest::GetResultRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetResult") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetResultRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetResultRequest::~GetResultRequest() {}
|
||||
|
||||
long GetResultRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetResultRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetResultRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetResultRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetResultRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetResultRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetResultRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetResultRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetResultRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetResultRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,70 +43,70 @@ void GetResultResult::parse(const std::string &payload)
|
||||
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();
|
||||
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();
|
||||
if(!valueDataResultInfo["ErrorMessage"].isNull())
|
||||
dataObject.errorMessage = valueDataResultInfo["ErrorMessage"].asString();
|
||||
if(!valueDataResultInfo["Reviewer"].isNull())
|
||||
dataObject.reviewer = valueDataResultInfo["Reviewer"].asString();
|
||||
if(!valueDataResultInfo["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataResultInfo["CreateTime"].asString();
|
||||
if(!valueDataResultInfo["ReviewStatus"].isNull())
|
||||
dataObject.reviewStatus = std::stoi(valueDataResultInfo["ReviewStatus"].asString());
|
||||
if(!valueDataResultInfo["ReviewTimeLong"].isNull())
|
||||
dataObject.reviewTimeLong = valueDataResultInfo["ReviewTimeLong"].asString();
|
||||
if(!valueDataResultInfo["TaskName"].isNull())
|
||||
dataObject.taskName = valueDataResultInfo["TaskName"].asString();
|
||||
if(!valueDataResultInfo["ReviewResult"].isNull())
|
||||
dataObject.reviewResult = std::stoi(valueDataResultInfo["ReviewResult"].asString());
|
||||
if(!valueDataResultInfo["Score"].isNull())
|
||||
dataObject.score = std::stoi(valueDataResultInfo["Score"].asString());
|
||||
if(!valueDataResultInfo["CreateTimeLong"].isNull())
|
||||
dataObject.createTimeLong = valueDataResultInfo["CreateTimeLong"].asString();
|
||||
if(!valueDataResultInfo["ReviewTime"].isNull())
|
||||
dataObject.reviewTime = valueDataResultInfo["ReviewTime"].asString();
|
||||
if(!valueDataResultInfo["Comments"].isNull())
|
||||
dataObject.comments = valueDataResultInfo["Comments"].asString();
|
||||
if(!valueDataResultInfo["TaskId"].isNull())
|
||||
dataObject.taskId = valueDataResultInfo["TaskId"].asString();
|
||||
if(!valueDataResultInfo["ReviewType"].isNull())
|
||||
dataObject.reviewType = std::stoi(valueDataResultInfo["ReviewType"].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["End"].isNull())
|
||||
asrResultObject.end = std::stol(valueDataResultInfoAsrResultAsrResultItem["End"].asString());
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["SpeechRate"].isNull())
|
||||
asrResultObject.speechRate = std::stoi(valueDataResultInfoAsrResultAsrResultItem["SpeechRate"].asString());
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["Role"].isNull())
|
||||
asrResultObject.role = valueDataResultInfoAsrResultAsrResultItem["Role"].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());
|
||||
if(!valueDataResultInfoHitResultHitResultItem["Name"].isNull())
|
||||
hitResultObject.name = valueDataResultInfoHitResultHitResultItem["Name"].asString();
|
||||
if(!valueDataResultInfoHitResultHitResultItem["Rid"].isNull())
|
||||
hitResultObject.rid = valueDataResultInfoHitResultHitResultItem["Rid"].asString();
|
||||
auto allHitsNode = valueDataResultInfoHitResultHitResultItem["Hits"]["Hit"];
|
||||
for (auto valueDataResultInfoHitResultHitResultItemHitsHit : allHitsNode)
|
||||
{
|
||||
@@ -115,27 +115,27 @@ void GetResultResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].isNull())
|
||||
keyWordsObject.cid = valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].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["End"].isNull())
|
||||
hitsObject.phrase.end = std::stoi(phraseNode["End"].asString());
|
||||
if(!phraseNode["Words"].isNull())
|
||||
hitsObject.phrase.words = phraseNode["Words"].asString();
|
||||
if(!phraseNode["Role"].isNull())
|
||||
hitsObject.phrase.role = phraseNode["Role"].asString();
|
||||
if(!phraseNode["Begin"].isNull())
|
||||
hitsObject.phrase.begin = std::stol(phraseNode["Begin"].asString());
|
||||
auto allCid = value["Cid"]["Cid"];
|
||||
for (auto value : allCid)
|
||||
hitsObject.cid.push_back(value.asString());
|
||||
@@ -147,92 +147,92 @@ void GetResultResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!valueDataResultInfoHitScoreHitScoreItem["ScoreId"].isNull())
|
||||
hitScoreObject.scoreId = valueDataResultInfoHitScoreHitScoreItem["ScoreId"].asString();
|
||||
if(!valueDataResultInfoHitScoreHitScoreItem["RuleId"].isNull())
|
||||
hitScoreObject.ruleId = valueDataResultInfoHitScoreHitScoreItem["RuleId"].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["Remark13"].isNull())
|
||||
dataObject.recording.remark13 = recordingNode["Remark13"].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["DialogueSize"].isNull())
|
||||
dataObject.recording.dialogueSize = std::stoi(recordingNode["DialogueSize"].asString());
|
||||
if(!recordingNode["PrimaryId"].isNull())
|
||||
dataObject.recording.primaryId = recordingNode["PrimaryId"].asString();
|
||||
if(!recordingNode["Remark12"].isNull())
|
||||
dataObject.recording.remark12 = recordingNode["Remark12"].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["Remark2"].isNull())
|
||||
dataObject.recording.remark2 = recordingNode["Remark2"].asString();
|
||||
if(!recordingNode["CallId"].isNull())
|
||||
dataObject.recording.callId = recordingNode["CallId"].asString();
|
||||
if(!recordingNode["Remark9"].isNull())
|
||||
dataObject.recording.remark9 = recordingNode["Remark9"].asString();
|
||||
if(!recordingNode["Name"].isNull())
|
||||
dataObject.recording.name = recordingNode["Name"].asString();
|
||||
if(!recordingNode["Remark6"].isNull())
|
||||
dataObject.recording.remark6 = recordingNode["Remark6"].asString();
|
||||
if(!recordingNode["Remark10"].isNull())
|
||||
dataObject.recording.remark10 = recordingNode["Remark10"].asString();
|
||||
if(!recordingNode["Business"].isNull())
|
||||
dataObject.recording.business = recordingNode["Business"].asString();
|
||||
if(!recordingNode["Remark3"].isNull())
|
||||
dataObject.recording.remark3 = recordingNode["Remark3"].asString();
|
||||
if(!recordingNode["Url"].isNull())
|
||||
dataObject.recording.url = recordingNode["Url"].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();
|
||||
if(!recordingNode["DialogueSize"].isNull())
|
||||
dataObject.recording.dialogueSize = std::stoi(recordingNode["DialogueSize"].asString());
|
||||
if(!recordingNode["Remark4"].isNull())
|
||||
dataObject.recording.remark4 = recordingNode["Remark4"].asString();
|
||||
if(!recordingNode["CallType"].isNull())
|
||||
dataObject.recording.callType = std::stoi(recordingNode["CallType"].asString());
|
||||
if(!recordingNode["Caller"].isNull())
|
||||
dataObject.recording.caller = recordingNode["Caller"].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["Remark5"].isNull())
|
||||
dataObject.recording.remark5 = std::stol(recordingNode["Remark5"].asString());
|
||||
if(!recordingNode["Id"].isNull())
|
||||
dataObject.recording.id = recordingNode["Id"].asString();
|
||||
if(!recordingNode["CallTime"].isNull())
|
||||
dataObject.recording.callTime = recordingNode["CallTime"].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();
|
||||
if(!agentNode["Id"].isNull())
|
||||
dataObject.agent.id = agentNode["Id"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ResultCountId"].isNull())
|
||||
resultCountId_ = value["ResultCountId"].asString();
|
||||
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();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetResultToReviewRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetResultToReviewRequest;
|
||||
|
||||
GetResultToReviewRequest::GetResultToReviewRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetResultToReview") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetResultToReviewRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetResultToReviewRequest::~GetResultToReviewRequest() {}
|
||||
|
||||
long GetResultToReviewRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetResultToReviewRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetResultToReviewRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetResultToReviewRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetResultToReviewRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetResultToReviewRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetResultToReviewRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetResultToReviewRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetResultToReviewRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetResultToReviewRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,36 +40,40 @@ void GetResultToReviewResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Audio"].isNull())
|
||||
data_.audio = dataNode["Audio"].asString() == "true";
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
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["Audio"].isNull())
|
||||
data_.audio = dataNode["Audio"].asString() == "true";
|
||||
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["BusinessType"].isNull())
|
||||
data_.businessType = std::stoi(dataNode["BusinessType"].asString());
|
||||
if(!dataNode["FileId"].isNull())
|
||||
data_.fileId = dataNode["FileId"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["FileMergeName"].isNull())
|
||||
data_.fileMergeName = dataNode["FileMergeName"].asString();
|
||||
if(!dataNode["Comments"].isNull())
|
||||
data_.comments = dataNode["Comments"].asString();
|
||||
if(!dataNode["Deleted"].isNull())
|
||||
data_.deleted = dataNode["Deleted"].asString() == "true";
|
||||
if(!dataNode["Vid"].isNull())
|
||||
data_.vid = dataNode["Vid"].asString();
|
||||
if(!dataNode["ReviewNumber"].isNull())
|
||||
data_.reviewNumber = std::stoi(dataNode["ReviewNumber"].asString());
|
||||
auto allDialoguesNode = dataNode["Dialogues"]["Dialogue"];
|
||||
for (auto dataNodeDialoguesDialogue : allDialoguesNode)
|
||||
{
|
||||
Data::Dialogue dialogueObject;
|
||||
if(!dataNodeDialoguesDialogue["Words"].isNull())
|
||||
dialogueObject.words = dataNodeDialoguesDialogue["Words"].asString();
|
||||
if(!dataNodeDialoguesDialogue["Identity"].isNull())
|
||||
dialogueObject.identity = dataNodeDialoguesDialogue["Identity"].asString();
|
||||
if(!dataNodeDialoguesDialogue["Begin"].isNull())
|
||||
dialogueObject.begin = std::stol(dataNodeDialoguesDialogue["Begin"].asString());
|
||||
if(!dataNodeDialoguesDialogue["BeginTime"].isNull())
|
||||
@@ -78,18 +82,14 @@ void GetResultToReviewResult::parse(const std::string &payload)
|
||||
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["SpeechRate"].isNull())
|
||||
dialogueObject.speechRate = std::stoi(dataNodeDialoguesDialogue["SpeechRate"].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();
|
||||
if(!dataNodeDialoguesDialogue["HourMinSec"].isNull())
|
||||
dialogueObject.hourMinSec = dataNodeDialoguesDialogue["HourMinSec"].asString();
|
||||
data_.dialogues.push_back(dialogueObject);
|
||||
}
|
||||
auto allHandScoreInfoListNode = dataNode["HandScoreInfoList"]["ScorePo"];
|
||||
@@ -104,14 +104,14 @@ void GetResultToReviewResult::parse(const std::string &payload)
|
||||
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["ScoreNum"].isNull())
|
||||
scoreInfosObject.scoreNum = std::stoi(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreNum"].asString());
|
||||
if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["Hit"].isNull())
|
||||
scoreInfosObject.hit = std::stoi(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["Hit"].asString());
|
||||
if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubId"].isNull())
|
||||
scoreInfosObject.scoreSubId = std::stol(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubId"].asString());
|
||||
if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreType"].isNull())
|
||||
scoreInfosObject.scoreType = std::stoi(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreType"].asString());
|
||||
scorePoObject.scoreInfos.push_back(scoreInfosObject);
|
||||
@@ -122,28 +122,28 @@ void GetResultToReviewResult::parse(const std::string &payload)
|
||||
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["AutoReview"].isNull())
|
||||
hitRuleReviewInfoObject.autoReview = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["AutoReview"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreSubId"].isNull())
|
||||
hitRuleReviewInfoObject.scoreSubId = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreSubId"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Complainable"].isNull())
|
||||
hitRuleReviewInfoObject.complainable = dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Complainable"].asString() == "true";
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["TotalNumber"].isNull())
|
||||
hitRuleReviewInfoObject.totalNumber = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["TotalNumber"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreId"].isNull())
|
||||
hitRuleReviewInfoObject.scoreId = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreId"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleName"].isNull())
|
||||
hitRuleReviewInfoObject.ruleName = dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleName"].asString();
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Rid"].isNull())
|
||||
hitRuleReviewInfoObject.rid = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Rid"].asString());
|
||||
auto allConditionHitInfoListNode = dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ConditionHitInfoList"]["ConditionHitInfo"];
|
||||
for (auto dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfo : allConditionHitInfoListNode)
|
||||
{
|
||||
@@ -152,35 +152,35 @@ void GetResultToReviewResult::parse(const std::string &payload)
|
||||
for (auto dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord : allKeyWordsNode)
|
||||
{
|
||||
Data::HitRuleReviewInfo::ConditionHitInfo::KeyWord keyWordsObject;
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["From"].isNull())
|
||||
keyWordsObject.from = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["From"].asString());
|
||||
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();
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["To"].isNull())
|
||||
keyWordsObject.to = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["To"].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());
|
||||
if(!phraseNode["Identity"].isNull())
|
||||
conditionHitInfoListObject.phrase.identity = phraseNode["Identity"].asString();
|
||||
if(!phraseNode["Pid"].isNull())
|
||||
conditionHitInfoListObject.phrase.pid = std::stoi(phraseNode["Pid"].asString());
|
||||
if(!phraseNode["EmotionValue"].isNull())
|
||||
conditionHitInfoListObject.phrase.emotionValue = std::stoi(phraseNode["EmotionValue"].asString());
|
||||
if(!phraseNode["End"].isNull())
|
||||
conditionHitInfoListObject.phrase.end = std::stol(phraseNode["End"].asString());
|
||||
if(!phraseNode["Role"].isNull())
|
||||
conditionHitInfoListObject.phrase.role = phraseNode["Role"].asString();
|
||||
auto allCid = value["Cid"]["Cid"];
|
||||
for (auto value : allCid)
|
||||
conditionHitInfoListObject.cid.push_back(value.asString());
|
||||
@@ -192,57 +192,57 @@ void GetResultToReviewResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationType"].isNull())
|
||||
complainHistoriesObject.operationType = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationType"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperatorName"].isNull())
|
||||
complainHistoriesObject.operatorName = dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperatorName"].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();
|
||||
if(!reviewInfoNode["HitId"].isNull())
|
||||
hitRuleReviewInfoObject.reviewInfo.hitId = reviewInfoNode["HitId"].asString();
|
||||
if(!reviewInfoNode["Reviewer"].isNull())
|
||||
hitRuleReviewInfoObject.reviewInfo.reviewer = reviewInfoNode["Reviewer"].asString();
|
||||
if(!reviewInfoNode["Rid"].isNull())
|
||||
hitRuleReviewInfoObject.reviewInfo.rid = std::stol(reviewInfoNode["Rid"].asString());
|
||||
data_.hitRuleReviewInfoList.push_back(hitRuleReviewInfoObject);
|
||||
}
|
||||
auto allManualScoreInfoListNode = dataNode["ManualScoreInfoList"]["ManualScoreInfo"];
|
||||
for (auto dataNodeManualScoreInfoListManualScoreInfo : allManualScoreInfoListNode)
|
||||
{
|
||||
Data::ManualScoreInfo manualScoreInfoObject;
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfo["ScoreId"].isNull())
|
||||
manualScoreInfoObject.scoreId = std::stol(dataNodeManualScoreInfoListManualScoreInfo["ScoreId"].asString());
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfo["ScoreSubId"].isNull())
|
||||
manualScoreInfoObject.scoreSubId = std::stol(dataNodeManualScoreInfoListManualScoreInfo["ScoreSubId"].asString());
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfo["ScoreSubName"].isNull())
|
||||
manualScoreInfoObject.scoreSubName = dataNodeManualScoreInfoListManualScoreInfo["ScoreSubName"].asString();
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfo["ScoreNum"].isNull())
|
||||
manualScoreInfoObject.scoreNum = std::stoi(dataNodeManualScoreInfoListManualScoreInfo["ScoreNum"].asString());
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfo["Complainable"].isNull())
|
||||
manualScoreInfoObject.complainable = dataNodeManualScoreInfoListManualScoreInfo["Complainable"].asString() == "true";
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfo["ScoreNum"].isNull())
|
||||
manualScoreInfoObject.scoreNum = std::stoi(dataNodeManualScoreInfoListManualScoreInfo["ScoreNum"].asString());
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfo["ScoreSubId"].isNull())
|
||||
manualScoreInfoObject.scoreSubId = std::stol(dataNodeManualScoreInfoListManualScoreInfo["ScoreSubId"].asString());
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfo["ScoreId"].isNull())
|
||||
manualScoreInfoObject.scoreId = std::stol(dataNodeManualScoreInfoListManualScoreInfo["ScoreId"].asString());
|
||||
auto allComplainHistories1Node = dataNodeManualScoreInfoListManualScoreInfo["ComplainHistories"]["ComplainHistoriesItem"];
|
||||
for (auto dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem : allComplainHistories1Node)
|
||||
{
|
||||
Data::ManualScoreInfo::ComplainHistoriesItem2 complainHistories1Object;
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["Comments"].isNull())
|
||||
complainHistories1Object.comments = dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["Comments"].asString();
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperatorName"].isNull())
|
||||
complainHistories1Object.operatorName = dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperatorName"].asString();
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["Operator"].isNull())
|
||||
complainHistories1Object._operator = std::stol(dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["Operator"].asString());
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperationType"].isNull())
|
||||
complainHistories1Object.operationType = std::stoi(dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperationType"].asString());
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperationTime"].isNull())
|
||||
complainHistories1Object.operationTime = dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperationTime"].asString();
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperationType"].isNull())
|
||||
complainHistories1Object.operationType = std::stoi(dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperationType"].asString());
|
||||
if(!dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperatorName"].isNull())
|
||||
complainHistories1Object.operatorName = dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperatorName"].asString();
|
||||
manualScoreInfoObject.complainHistories1.push_back(complainHistories1Object);
|
||||
}
|
||||
data_.manualScoreInfoList.push_back(manualScoreInfoObject);
|
||||
@@ -251,28 +251,28 @@ void GetResultToReviewResult::parse(const std::string &payload)
|
||||
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["OperatorName"].isNull())
|
||||
reviewHistoryObject.operatorName = dataNodeReviewHistoryListReviewHistory["OperatorName"].asString();
|
||||
if(!dataNodeReviewHistoryListReviewHistory["TimeStr"].isNull())
|
||||
reviewHistoryObject.timeStr = dataNodeReviewHistoryListReviewHistory["TimeStr"].asString();
|
||||
if(!dataNodeReviewHistoryListReviewHistory["Score"].isNull())
|
||||
reviewHistoryObject.score = std::stoi(dataNodeReviewHistoryListReviewHistory["Score"].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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
54
qualitycheck/src/model/GetReviewInfoRequest.cc
Normal file
54
qualitycheck/src/model/GetReviewInfoRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetReviewInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetReviewInfoRequest;
|
||||
|
||||
GetReviewInfoRequest::GetReviewInfoRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetReviewInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetReviewInfoRequest::~GetReviewInfoRequest() {}
|
||||
|
||||
long GetReviewInfoRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetReviewInfoRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetReviewInfoRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetReviewInfoRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
std::string GetReviewInfoRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetReviewInfoRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
221
qualitycheck/src/model/GetReviewInfoResult.cc
Normal file
221
qualitycheck/src/model/GetReviewInfoResult.cc
Normal file
@@ -0,0 +1,221 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/GetReviewInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetReviewInfoResult::GetReviewInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetReviewInfoResult::GetReviewInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetReviewInfoResult::~GetReviewInfoResult()
|
||||
{}
|
||||
|
||||
void GetReviewInfoResult::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["AudioURL"].isNull())
|
||||
data_.audioURL = dataNode["AudioURL"].asString();
|
||||
if(!dataNode["HitNumber"].isNull())
|
||||
data_.hitNumber = std::stoi(dataNode["HitNumber"].asString());
|
||||
if(!dataNode["NextVid"].isNull())
|
||||
data_.nextVid = dataNode["NextVid"].asString();
|
||||
if(!dataNode["PreVid"].isNull())
|
||||
data_.preVid = dataNode["PreVid"].asString();
|
||||
if(!dataNode["IsAudio"].isNull())
|
||||
data_.isAudio = dataNode["IsAudio"].asString() == "true";
|
||||
if(!dataNode["AsrWordsCount"].isNull())
|
||||
data_.asrWordsCount = std::stoi(dataNode["AsrWordsCount"].asString());
|
||||
if(!dataNode["Audio"].isNull())
|
||||
data_.audio = dataNode["Audio"].asString() == "true";
|
||||
if(!dataNode["TotalScore"].isNull())
|
||||
data_.totalScore = std::stoi(dataNode["TotalScore"].asString());
|
||||
if(!dataNode["BusinessType"].isNull())
|
||||
data_.businessType = std::stoi(dataNode["BusinessType"].asString());
|
||||
if(!dataNode["FileMergeName"].isNull())
|
||||
data_.fileMergeName = dataNode["FileMergeName"].asString();
|
||||
if(!dataNode["IsDeleted"].isNull())
|
||||
data_.isDeleted = dataNode["IsDeleted"].asString() == "true";
|
||||
if(!dataNode["Deleted"].isNull())
|
||||
data_.deleted = dataNode["Deleted"].asString() == "true";
|
||||
if(!dataNode["Vid"].isNull())
|
||||
data_.vid = dataNode["Vid"].asString();
|
||||
if(!dataNode["ReviewNumber"].isNull())
|
||||
data_.reviewNumber = std::stoi(dataNode["ReviewNumber"].asString());
|
||||
auto allDialoguesNode = dataNode["Dialogues"]["Dialogue"];
|
||||
for (auto dataNodeDialoguesDialogue : allDialoguesNode)
|
||||
{
|
||||
Data::Dialogue dialogueObject;
|
||||
if(!dataNodeDialoguesDialogue["Words"].isNull())
|
||||
dialogueObject.words = dataNodeDialoguesDialogue["Words"].asString();
|
||||
if(!dataNodeDialoguesDialogue["Identity"].isNull())
|
||||
dialogueObject.identity = dataNodeDialoguesDialogue["Identity"].asString();
|
||||
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["SpeechRate"].isNull())
|
||||
dialogueObject.speechRate = std::stoi(dataNodeDialoguesDialogue["SpeechRate"].asString());
|
||||
if(!dataNodeDialoguesDialogue["Role"].isNull())
|
||||
dialogueObject.role = dataNodeDialoguesDialogue["Role"].asString();
|
||||
if(!dataNodeDialoguesDialogue["SilenceDuration"].isNull())
|
||||
dialogueObject.silenceDuration = std::stoi(dataNodeDialoguesDialogue["SilenceDuration"].asString());
|
||||
if(!dataNodeDialoguesDialogue["HourMinSec"].isNull())
|
||||
dialogueObject.hourMinSec = dataNodeDialoguesDialogue["HourMinSec"].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["ScoreSubName"].isNull())
|
||||
scoreInfosObject.scoreSubName = dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubName"].asString();
|
||||
if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreNum"].isNull())
|
||||
scoreInfosObject.scoreNum = std::stoi(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreNum"].asString());
|
||||
if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["Hit"].isNull())
|
||||
scoreInfosObject.hit = std::stoi(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["Hit"].asString());
|
||||
if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubId"].isNull())
|
||||
scoreInfosObject.scoreSubId = std::stol(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubId"].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["RuleScoreType"].isNull())
|
||||
hitRuleReviewInfoObject.ruleScoreType = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleScoreType"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleType"].isNull())
|
||||
hitRuleReviewInfoObject.ruleType = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleType"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["AutoReview"].isNull())
|
||||
hitRuleReviewInfoObject.autoReview = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["AutoReview"].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["ScoreId"].isNull())
|
||||
hitRuleReviewInfoObject.scoreId = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreId"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Rid"].isNull())
|
||||
hitRuleReviewInfoObject.rid = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Rid"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleName"].isNull())
|
||||
hitRuleReviewInfoObject.ruleName = dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleName"].asString();
|
||||
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["To"].isNull())
|
||||
keyWordsObject.to = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["To"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["From"].isNull())
|
||||
keyWordsObject.from = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["From"].asString());
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Val"].isNull())
|
||||
keyWordsObject.val = dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Val"].asString();
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Tid"].isNull())
|
||||
keyWordsObject.tid = dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Tid"].asString();
|
||||
if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Pid"].isNull())
|
||||
keyWordsObject.pid = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Pid"].asString());
|
||||
conditionHitInfoListObject.keyWords.push_back(keyWordsObject);
|
||||
}
|
||||
auto phraseNode = value["Phrase"];
|
||||
if(!phraseNode["Words"].isNull())
|
||||
conditionHitInfoListObject.phrase.words = phraseNode["Words"].asString();
|
||||
if(!phraseNode["Begin"].isNull())
|
||||
conditionHitInfoListObject.phrase.begin = std::stol(phraseNode["Begin"].asString());
|
||||
if(!phraseNode["Identity"].isNull())
|
||||
conditionHitInfoListObject.phrase.identity = phraseNode["Identity"].asString();
|
||||
if(!phraseNode["Pid"].isNull())
|
||||
conditionHitInfoListObject.phrase.pid = std::stoi(phraseNode["Pid"].asString());
|
||||
if(!phraseNode["EmotionValue"].isNull())
|
||||
conditionHitInfoListObject.phrase.emotionValue = std::stoi(phraseNode["EmotionValue"].asString());
|
||||
if(!phraseNode["End"].isNull())
|
||||
conditionHitInfoListObject.phrase.end = std::stol(phraseNode["End"].asString());
|
||||
if(!phraseNode["Role"].isNull())
|
||||
conditionHitInfoListObject.phrase.role = phraseNode["Role"].asString();
|
||||
auto allCid = value["Cid"]["Cid"];
|
||||
for (auto value : allCid)
|
||||
conditionHitInfoListObject.cid.push_back(value.asString());
|
||||
hitRuleReviewInfoObject.conditionHitInfoList.push_back(conditionHitInfoListObject);
|
||||
}
|
||||
auto reviewInfoNode = value["ReviewInfo"];
|
||||
if(!reviewInfoNode["Rid"].isNull())
|
||||
hitRuleReviewInfoObject.reviewInfo.rid = std::stol(reviewInfoNode["Rid"].asString());
|
||||
if(!reviewInfoNode["HitId"].isNull())
|
||||
hitRuleReviewInfoObject.reviewInfo.hitId = reviewInfoNode["HitId"].asString();
|
||||
data_.hitRuleReviewInfoList.push_back(hitRuleReviewInfoObject);
|
||||
}
|
||||
auto allManualScoreMappingList = dataNode["ManualScoreMappingList"]["ManualScoreMappingList"];
|
||||
for (auto value : allManualScoreMappingList)
|
||||
data_.manualScoreMappingList.push_back(value.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetReviewInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetReviewInfoResult::Data GetReviewInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetReviewInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetReviewInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetRuleCategoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetRuleCategoryRequest;
|
||||
|
||||
GetRuleCategoryRequest::GetRuleCategoryRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetRuleCategory") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetRuleCategoryRequest::~GetRuleCategoryRequest() {}
|
||||
|
||||
long GetRuleCategoryRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetRuleCategoryRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetRuleCategoryRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetRuleCategoryRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetRuleCategoryRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetRuleCategoryRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetRuleCategoryRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetRuleCategoryRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetRuleCategoryRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,12 +51,12 @@ void GetRuleCategoryResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetRuleDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetRuleDetailRequest;
|
||||
|
||||
GetRuleDetailRequest::GetRuleDetailRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetRuleDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetRuleDetailRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetRuleDetailRequest::~GetRuleDetailRequest() {}
|
||||
|
||||
long GetRuleDetailRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetRuleDetailRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetRuleDetailRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetRuleDetailRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetRuleDetailRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetRuleDetailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetRuleDetailRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetRuleDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetRuleDetailRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetRuleDetailRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,6 +40,12 @@ void GetRuleDetailResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["Count"].isNull())
|
||||
data_.count = std::stoi(dataNode["Count"].asString());
|
||||
auto allConditionsNode = dataNode["Conditions"]["ConditionBasicInfo"];
|
||||
for (auto dataNodeConditionsConditionBasicInfo : allConditionsNode)
|
||||
{
|
||||
@@ -52,124 +58,120 @@ void GetRuleDetailResult::parse(const std::string &payload)
|
||||
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["Oid"].isNull())
|
||||
operatorsObject.oid = dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Oid"].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["Regex"].isNull())
|
||||
operatorsObject.param.regex = paramNode["Regex"].asString();
|
||||
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["Average"].isNull())
|
||||
operatorsObject.param.average = paramNode["Average"].asString() == "true";
|
||||
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());
|
||||
if(!paramNode["Score"].isNull())
|
||||
operatorsObject.param.score = std::stoi(paramNode["Score"].asString());
|
||||
if(!paramNode["NotRegex"].isNull())
|
||||
operatorsObject.param.notRegex = paramNode["NotRegex"].asString();
|
||||
if(!paramNode["Similarity_threshold"].isNull())
|
||||
operatorsObject.param.similarity_threshold = std::stof(paramNode["Similarity_threshold"].asString());
|
||||
if(!paramNode["CompareOperator"].isNull())
|
||||
operatorsObject.param.compareOperator = paramNode["CompareOperator"].asString();
|
||||
if(!paramNode["DelayTime"].isNull())
|
||||
operatorsObject.param.delayTime = std::stoi(paramNode["DelayTime"].asString());
|
||||
auto allOperKeyWords = paramNode["OperKeyWords"]["OperKeyWord"];
|
||||
for (auto value : allOperKeyWords)
|
||||
operatorsObject.param.operKeyWords.push_back(value.asString());
|
||||
if(!paramNode["KeywordMatchSize"].isNull())
|
||||
operatorsObject.param.keywordMatchSize = std::stoi(paramNode["KeywordMatchSize"].asString());
|
||||
if(!paramNode["HitTime"].isNull())
|
||||
operatorsObject.param.hitTime = std::stoi(paramNode["HitTime"].asString());
|
||||
if(!paramNode["BeginType"].isNull())
|
||||
operatorsObject.param.beginType = paramNode["BeginType"].asString();
|
||||
if(!paramNode["Target"].isNull())
|
||||
operatorsObject.param.target = std::stoi(paramNode["Target"].asString());
|
||||
if(!paramNode["MaxEmotionChangeValue"].isNull())
|
||||
operatorsObject.param.maxEmotionChangeValue = std::stoi(paramNode["MaxEmotionChangeValue"].asString());
|
||||
if(!paramNode["Threshold"].isNull())
|
||||
operatorsObject.param.threshold = std::stof(paramNode["Threshold"].asString());
|
||||
if(!paramNode["From"].isNull())
|
||||
operatorsObject.param.from = std::stoi(paramNode["From"].asString());
|
||||
if(!paramNode["FromEnd"].isNull())
|
||||
operatorsObject.param.fromEnd = paramNode["FromEnd"].asString() == "true";
|
||||
if(!paramNode["MinWordSize"].isNull())
|
||||
operatorsObject.param.minWordSize = std::stoi(paramNode["MinWordSize"].asString());
|
||||
if(!paramNode["InSentence"].isNull())
|
||||
operatorsObject.param.inSentence = paramNode["InSentence"].asString() == "true";
|
||||
if(!paramNode["Phrase"].isNull())
|
||||
operatorsObject.param.phrase = paramNode["Phrase"].asString();
|
||||
if(!paramNode["Similarity_threshold"].isNull())
|
||||
operatorsObject.param.similarity_threshold = std::stof(paramNode["Similarity_threshold"].asString());
|
||||
if(!paramNode["CheckType"].isNull())
|
||||
operatorsObject.param.checkType = std::stoi(paramNode["CheckType"].asString());
|
||||
if(!paramNode["Interval"].isNull())
|
||||
operatorsObject.param.interval = std::stoi(paramNode["Interval"].asString());
|
||||
if(!paramNode["ContextChatMatch"].isNull())
|
||||
operatorsObject.param.contextChatMatch = paramNode["ContextChatMatch"].asString() == "true";
|
||||
auto allExcludes = paramNode["Excludes"]["Excludes"];
|
||||
for (auto value : allExcludes)
|
||||
operatorsObject.param.excludes.push_back(value.asString());
|
||||
auto allAntModelInfo = paramNode["AntModelInfo"]["AntModelInfo"];
|
||||
for (auto value : allAntModelInfo)
|
||||
operatorsObject.param.antModelInfo.push_back(value.asString());
|
||||
auto allPvalues = paramNode["Pvalues"]["Pvalues"];
|
||||
for (auto value : allPvalues)
|
||||
operatorsObject.param.pvalues.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());
|
||||
auto allPvalues = paramNode["Pvalues"]["Pvalues"];
|
||||
for (auto value : allPvalues)
|
||||
operatorsObject.param.pvalues.push_back(value.asString());
|
||||
auto allAntModelInfo = paramNode["AntModelInfo"]["AntModelInfo"];
|
||||
for (auto value : allAntModelInfo)
|
||||
operatorsObject.param.antModelInfo.push_back(value.asString());
|
||||
auto allOperKeyWords = paramNode["OperKeyWords"]["OperKeyWord"];
|
||||
for (auto value : allOperKeyWords)
|
||||
operatorsObject.param.operKeyWords.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";
|
||||
if(!checkRangeNode["Role"].isNull())
|
||||
conditionBasicInfoObject.checkRange.role = checkRangeNode["Role"].asString();
|
||||
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());
|
||||
if(!anchorNode["Location"].isNull())
|
||||
conditionBasicInfoObject.checkRange.anchor.location = anchorNode["Location"].asString();
|
||||
if(!anchorNode["AnchorCid"].isNull())
|
||||
conditionBasicInfoObject.checkRange.anchor.anchorCid = anchorNode["AnchorCid"].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());
|
||||
if(!rangeNode["From"].isNull())
|
||||
conditionBasicInfoObject.checkRange.range.from = std::stoi(rangeNode["From"].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();
|
||||
if(!dataNodeRulesRuleBasicInfo["Rid"].isNull())
|
||||
ruleBasicInfoObject.rid = dataNodeRulesRuleBasicInfo["Rid"].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();
|
||||
if(!dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["ServiceType"].isNull())
|
||||
businessCategoriesObject.serviceType = std::stoi(dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["ServiceType"].asString());
|
||||
if(!dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["Bid"].isNull())
|
||||
businessCategoriesObject.bid = std::stoi(dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["Bid"].asString());
|
||||
ruleBasicInfoObject.businessCategories.push_back(businessCategoriesObject);
|
||||
}
|
||||
auto allTriggers = value["Triggers"]["Trigger"];
|
||||
@@ -177,12 +179,12 @@ void GetRuleDetailResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
54
qualitycheck/src/model/GetRuleDimensionRequest.cc
Normal file
54
qualitycheck/src/model/GetRuleDimensionRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetRuleDimensionRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetRuleDimensionRequest;
|
||||
|
||||
GetRuleDimensionRequest::GetRuleDimensionRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetRuleDimension") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetRuleDimensionRequest::~GetRuleDimensionRequest() {}
|
||||
|
||||
long GetRuleDimensionRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetRuleDimensionRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetRuleDimensionRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetRuleDimensionRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
std::string GetRuleDimensionRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetRuleDimensionRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
161
qualitycheck/src/model/GetRuleDimensionResult.cc
Normal file
161
qualitycheck/src/model/GetRuleDimensionResult.cc
Normal file
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/GetRuleDimensionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetRuleDimensionResult::GetRuleDimensionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRuleDimensionResult::GetRuleDimensionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRuleDimensionResult::~GetRuleDimensionResult()
|
||||
{}
|
||||
|
||||
void GetRuleDimensionResult::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["Status"].isNull())
|
||||
dataObject.status = std::stoi(valueDataRuleCountInfo["Status"].asString());
|
||||
if(!valueDataRuleCountInfo["PreReviewNumber"].isNull())
|
||||
dataObject.preReviewNumber = std::stoi(valueDataRuleCountInfo["PreReviewNumber"].asString());
|
||||
if(!valueDataRuleCountInfo["HitNumber"].isNull())
|
||||
dataObject.hitNumber = std::stoi(valueDataRuleCountInfo["HitNumber"].asString());
|
||||
if(!valueDataRuleCountInfo["Select"].isNull())
|
||||
dataObject.select = valueDataRuleCountInfo["Select"].asString() == "true";
|
||||
if(!valueDataRuleCountInfo["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataRuleCountInfo["CreateTime"].asString();
|
||||
if(!valueDataRuleCountInfo["CreateEmpid"].isNull())
|
||||
dataObject.createEmpid = valueDataRuleCountInfo["CreateEmpid"].asString();
|
||||
if(!valueDataRuleCountInfo["RealViolationNumber"].isNull())
|
||||
dataObject.realViolationNumber = std::stoi(valueDataRuleCountInfo["RealViolationNumber"].asString());
|
||||
if(!valueDataRuleCountInfo["LastUpdateEmpid"].isNull())
|
||||
dataObject.lastUpdateEmpid = valueDataRuleCountInfo["LastUpdateEmpid"].asString();
|
||||
if(!valueDataRuleCountInfo["IsDelete"].isNull())
|
||||
dataObject.isDelete = std::stoi(valueDataRuleCountInfo["IsDelete"].asString());
|
||||
if(!valueDataRuleCountInfo["HitRate"].isNull())
|
||||
dataObject.hitRate = std::stof(valueDataRuleCountInfo["HitRate"].asString());
|
||||
if(!valueDataRuleCountInfo["Rid"].isNull())
|
||||
dataObject.rid = valueDataRuleCountInfo["Rid"].asString();
|
||||
if(!valueDataRuleCountInfo["CheckNumber"].isNull())
|
||||
dataObject.checkNumber = std::stoi(valueDataRuleCountInfo["CheckNumber"].asString());
|
||||
if(!valueDataRuleCountInfo["TypeName"].isNull())
|
||||
dataObject.typeName = valueDataRuleCountInfo["TypeName"].asString();
|
||||
if(!valueDataRuleCountInfo["LastUpdateTime"].isNull())
|
||||
dataObject.lastUpdateTime = valueDataRuleCountInfo["LastUpdateTime"].asString();
|
||||
if(!valueDataRuleCountInfo["Name"].isNull())
|
||||
dataObject.name = valueDataRuleCountInfo["Name"].asString();
|
||||
if(!valueDataRuleCountInfo["HitRealViolationRate"].isNull())
|
||||
dataObject.hitRealViolationRate = std::stof(valueDataRuleCountInfo["HitRealViolationRate"].asString());
|
||||
if(!valueDataRuleCountInfo["ReviewNumber"].isNull())
|
||||
dataObject.reviewNumber = std::stoi(valueDataRuleCountInfo["ReviewNumber"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["DataSize"].isNull())
|
||||
dataSize_ = std::stoi(value["DataSize"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ReviewStatus"].isNull())
|
||||
reviewStatus_ = std::stoi(value["ReviewStatus"].asString());
|
||||
if(!value["CompSubTaskCount"].isNull())
|
||||
compSubTaskCount_ = std::stoi(value["CompSubTaskCount"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["TotalSubTaskCount"].isNull())
|
||||
totalSubTaskCount_ = std::stoi(value["TotalSubTaskCount"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int GetRuleDimensionResult::getCompSubTaskCount()const
|
||||
{
|
||||
return compSubTaskCount_;
|
||||
}
|
||||
|
||||
int GetRuleDimensionResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string GetRuleDimensionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetRuleDimensionResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int GetRuleDimensionResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
int GetRuleDimensionResult::getReviewStatus()const
|
||||
{
|
||||
return reviewStatus_;
|
||||
}
|
||||
|
||||
int GetRuleDimensionResult::getDataSize()const
|
||||
{
|
||||
return dataSize_;
|
||||
}
|
||||
|
||||
std::vector<GetRuleDimensionResult::RuleCountInfo> GetRuleDimensionResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetRuleDimensionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetRuleDimensionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
int GetRuleDimensionResult::getTotalSubTaskCount()const
|
||||
{
|
||||
return totalSubTaskCount_;
|
||||
}
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetRuleRequest;
|
||||
|
||||
GetRuleRequest::GetRuleRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetRuleRequest::~GetRuleRequest() {}
|
||||
|
||||
long GetRuleRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetRuleRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetRuleRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetRuleRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetRuleRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetRuleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetRuleRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetRuleRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetRuleRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,59 +44,59 @@ void GetRuleResult::parse(const std::string &payload)
|
||||
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["Type"].isNull())
|
||||
ruleInfoObject.type = std::stoi(dataNodeRulesRuleInfo["Type"].asString());
|
||||
if(!dataNodeRulesRuleInfo["ScoreSubId"].isNull())
|
||||
ruleInfoObject.scoreSubId = std::stoi(dataNodeRulesRuleInfo["ScoreSubId"].asString());
|
||||
if(!dataNodeRulesRuleInfo["IsOnline"].isNull())
|
||||
ruleInfoObject.isOnline = std::stoi(dataNodeRulesRuleInfo["IsOnline"].asString());
|
||||
if(!dataNodeRulesRuleInfo["CreateTime"].isNull())
|
||||
ruleInfoObject.createTime = dataNodeRulesRuleInfo["CreateTime"].asString();
|
||||
if(!dataNodeRulesRuleInfo["CreateEmpid"].isNull())
|
||||
ruleInfoObject.createEmpid = dataNodeRulesRuleInfo["CreateEmpid"].asString();
|
||||
if(!dataNodeRulesRuleInfo["LastUpdateEmpid"].isNull())
|
||||
ruleInfoObject.lastUpdateEmpid = dataNodeRulesRuleInfo["LastUpdateEmpid"].asString();
|
||||
if(!dataNodeRulesRuleInfo["IsDelete"].isNull())
|
||||
ruleInfoObject.isDelete = std::stoi(dataNodeRulesRuleInfo["IsDelete"].asString());
|
||||
if(!dataNodeRulesRuleInfo["StartTime"].isNull())
|
||||
ruleInfoObject.startTime = dataNodeRulesRuleInfo["StartTime"].asString();
|
||||
if(!dataNodeRulesRuleInfo["Rid"].isNull())
|
||||
ruleInfoObject.rid = dataNodeRulesRuleInfo["Rid"].asString();
|
||||
if(!dataNodeRulesRuleInfo["RuleScoreType"].isNull())
|
||||
ruleInfoObject.ruleScoreType = std::stoi(dataNodeRulesRuleInfo["RuleScoreType"].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["StartTime"].isNull())
|
||||
ruleInfoObject.startTime = dataNodeRulesRuleInfo["StartTime"].asString();
|
||||
if(!dataNodeRulesRuleInfo["RuleLambda"].isNull())
|
||||
ruleInfoObject.ruleLambda = dataNodeRulesRuleInfo["RuleLambda"].asString();
|
||||
if(!dataNodeRulesRuleInfo["ScoreSubName"].isNull())
|
||||
ruleInfoObject.scoreSubName = dataNodeRulesRuleInfo["ScoreSubName"].asString();
|
||||
if(!dataNodeRulesRuleInfo["AutoReview"].isNull())
|
||||
ruleInfoObject.autoReview = std::stoi(dataNodeRulesRuleInfo["AutoReview"].asString());
|
||||
if(!dataNodeRulesRuleInfo["Comments"].isNull())
|
||||
ruleInfoObject.comments = dataNodeRulesRuleInfo["Comments"].asString();
|
||||
if(!dataNodeRulesRuleInfo["LastUpdateTime"].isNull())
|
||||
ruleInfoObject.lastUpdateTime = dataNodeRulesRuleInfo["LastUpdateTime"].asString();
|
||||
if(!dataNodeRulesRuleInfo["ScoreName"].isNull())
|
||||
ruleInfoObject.scoreName = dataNodeRulesRuleInfo["ScoreName"].asString();
|
||||
if(!dataNodeRulesRuleInfo["Name"].isNull())
|
||||
ruleInfoObject.name = dataNodeRulesRuleInfo["Name"].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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetScoreInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetScoreInfoRequest;
|
||||
|
||||
GetScoreInfoRequest::GetScoreInfoRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetScoreInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetScoreInfoRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetScoreInfoRequest::~GetScoreInfoRequest() {}
|
||||
|
||||
long GetScoreInfoRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetScoreInfoRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetScoreInfoRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetScoreInfoRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetScoreInfoRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetScoreInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetScoreInfoRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetScoreInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetScoreInfoRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetScoreInfoRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,24 +51,24 @@ void GetScoreInfoResult::parse(const std::string &payload)
|
||||
for (auto valueDataScorePoScoreInfosScoreParam : allScoreInfosNode)
|
||||
{
|
||||
ScorePo::ScoreParam scoreInfosObject;
|
||||
if(!valueDataScorePoScoreInfosScoreParam["ScoreSubName"].isNull())
|
||||
scoreInfosObject.scoreSubName = valueDataScorePoScoreInfosScoreParam["ScoreSubName"].asString();
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetSkillGroupConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetSkillGroupConfigRequest;
|
||||
|
||||
GetSkillGroupConfigRequest::GetSkillGroupConfigRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetSkillGroupConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetSkillGroupConfigRequest::~GetSkillGroupConfigRequest() {}
|
||||
|
||||
long GetSkillGroupConfigRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetSkillGroupConfigRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetSkillGroupConfigRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetSkillGroupConfigRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetSkillGroupConfigRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetSkillGroupConfigRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetSkillGroupConfigRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetSkillGroupConfigRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetSkillGroupConfigRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,68 +40,68 @@ void GetSkillGroupConfigResult::parse(const std::string &payload)
|
||||
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["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].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["CreateTime"].isNull())
|
||||
data_.createTime = dataNode["CreateTime"].asString();
|
||||
if(!dataNode["SkillGroupId"].isNull())
|
||||
data_.skillGroupId = dataNode["SkillGroupId"].asString();
|
||||
if(!dataNode["InstanceId"].isNull())
|
||||
data_.instanceId = dataNode["InstanceId"].asString();
|
||||
if(!dataNode["VocabId"].isNull())
|
||||
data_.vocabId = std::stol(dataNode["VocabId"].asString());
|
||||
if(!dataNode["SkillGroupFrom"].isNull())
|
||||
data_.skillGroupFrom = std::stoi(dataNode["SkillGroupFrom"].asString());
|
||||
if(!dataNode["Rid"].isNull())
|
||||
data_.rid = dataNode["Rid"].asString();
|
||||
if(!dataNode["SkillGroupName"].isNull())
|
||||
data_.skillGroupName = dataNode["SkillGroupName"].asString();
|
||||
if(!dataNode["ModelName"].isNull())
|
||||
data_.modelName = dataNode["ModelName"].asString();
|
||||
if(!dataNode["AllRids"].isNull())
|
||||
data_.allRids = dataNode["AllRids"].asString();
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["ModelId"].isNull())
|
||||
data_.modelId = std::stol(dataNode["ModelId"].asString());
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["QualityCheckType"].isNull())
|
||||
data_.qualityCheckType = std::stoi(dataNode["QualityCheckType"].asString());
|
||||
if(!dataNode["VocabName"].isNull())
|
||||
data_.vocabName = dataNode["VocabName"].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();
|
||||
if(!dataNodeRuleListRuleNameInfo["Rid"].isNull())
|
||||
ruleNameInfoObject.rid = std::stol(dataNodeRuleListRuleNameInfo["Rid"].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();
|
||||
if(!dataNodeAllRuleListRuleNameInfo["Rid"].isNull())
|
||||
ruleNameInfoObject.rid = std::stol(dataNodeAllRuleListRuleNameInfo["Rid"].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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetSyncResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetSyncResultRequest;
|
||||
|
||||
GetSyncResultRequest::GetSyncResultRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetSyncResult") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetSyncResultRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
GetSyncResultRequest::~GetSyncResultRequest() {}
|
||||
|
||||
std::string GetSyncResultRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetSyncResultRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,60 +43,60 @@ void GetSyncResultResult::parse(const std::string &payload)
|
||||
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["ErrorMessage"].isNull())
|
||||
dataObject.errorMessage = valueDataResultInfo["ErrorMessage"].asString();
|
||||
if(!valueDataResultInfo["Reviewer"].isNull())
|
||||
dataObject.reviewer = valueDataResultInfo["Reviewer"].asString();
|
||||
if(!valueDataResultInfo["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataResultInfo["CreateTime"].asString();
|
||||
if(!valueDataResultInfo["ReviewStatus"].isNull())
|
||||
dataObject.reviewStatus = std::stoi(valueDataResultInfo["ReviewStatus"].asString());
|
||||
if(!valueDataResultInfo["TaskName"].isNull())
|
||||
dataObject.taskName = valueDataResultInfo["TaskName"].asString();
|
||||
if(!valueDataResultInfo["Comments"].isNull())
|
||||
dataObject.comments = valueDataResultInfo["Comments"].asString();
|
||||
if(!valueDataResultInfo["ReviewResult"].isNull())
|
||||
dataObject.reviewResult = std::stoi(valueDataResultInfo["ReviewResult"].asString());
|
||||
if(!valueDataResultInfo["Score"].isNull())
|
||||
dataObject.score = std::stoi(valueDataResultInfo["Score"].asString());
|
||||
if(!valueDataResultInfo["TaskId"].isNull())
|
||||
dataObject.taskId = valueDataResultInfo["TaskId"].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["End"].isNull())
|
||||
asrResultObject.end = std::stol(valueDataResultInfoAsrResultAsrResultItem["End"].asString());
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["SpeechRate"].isNull())
|
||||
asrResultObject.speechRate = std::stoi(valueDataResultInfoAsrResultAsrResultItem["SpeechRate"].asString());
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["Role"].isNull())
|
||||
asrResultObject.role = valueDataResultInfoAsrResultAsrResultItem["Role"].asString();
|
||||
if(!valueDataResultInfoAsrResultAsrResultItem["SilenceDuration"].isNull())
|
||||
asrResultObject.silenceDuration = std::stoi(valueDataResultInfoAsrResultAsrResultItem["SilenceDuration"].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());
|
||||
if(!valueDataResultInfoHitResultHitResultItem["Name"].isNull())
|
||||
hitResultObject.name = valueDataResultInfoHitResultHitResultItem["Name"].asString();
|
||||
if(!valueDataResultInfoHitResultHitResultItem["Rid"].isNull())
|
||||
hitResultObject.rid = valueDataResultInfoHitResultHitResultItem["Rid"].asString();
|
||||
auto allHitsNode = valueDataResultInfoHitResultHitResultItem["Hits"]["Hit"];
|
||||
for (auto valueDataResultInfoHitResultHitResultItemHitsHit : allHitsNode)
|
||||
{
|
||||
@@ -105,31 +105,31 @@ void GetSyncResultResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].isNull())
|
||||
keyWordsObject.cid = valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].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["End"].isNull())
|
||||
hitsObject.phrase.end = std::stoi(phraseNode["End"].asString());
|
||||
if(!phraseNode["SpeechRate"].isNull())
|
||||
hitsObject.phrase.speechRate = std::stoi(phraseNode["SpeechRate"].asString());
|
||||
if(!phraseNode["Role"].isNull())
|
||||
hitsObject.phrase.role = phraseNode["Role"].asString();
|
||||
if(!phraseNode["SilenceDuration"].isNull())
|
||||
hitsObject.phrase.silenceDuration = std::stoi(phraseNode["SilenceDuration"].asString());
|
||||
auto allCid = value["Cid"]["Cid"];
|
||||
for (auto value : allCid)
|
||||
hitsObject.cid.push_back(value.asString());
|
||||
@@ -138,59 +138,61 @@ void GetSyncResultResult::parse(const std::string &payload)
|
||||
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["Remark3"].isNull())
|
||||
dataObject.recording.remark3 = recordingNode["Remark3"].asString();
|
||||
if(!recordingNode["Business"].isNull())
|
||||
dataObject.recording.business = recordingNode["Business"].asString();
|
||||
if(!recordingNode["Url"].isNull())
|
||||
dataObject.recording.url = recordingNode["Url"].asString();
|
||||
if(!recordingNode["PrimaryId"].isNull())
|
||||
dataObject.recording.primaryId = recordingNode["PrimaryId"].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["CallType"].isNull())
|
||||
dataObject.recording.callType = std::stoi(recordingNode["CallType"].asString());
|
||||
if(!recordingNode["Caller"].isNull())
|
||||
dataObject.recording.caller = recordingNode["Caller"].asString();
|
||||
if(!recordingNode["CallId"].isNull())
|
||||
dataObject.recording.callId = recordingNode["CallId"].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["DurationAudio"].isNull())
|
||||
dataObject.recording.durationAudio = std::stol(recordingNode["DurationAudio"].asString());
|
||||
if(!recordingNode["Name"].isNull())
|
||||
dataObject.recording.name = recordingNode["Name"].asString();
|
||||
if(!recordingNode["Id"].isNull())
|
||||
dataObject.recording.id = recordingNode["Id"].asString();
|
||||
if(!recordingNode["CallTime"].isNull())
|
||||
dataObject.recording.callTime = recordingNode["CallTime"].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();
|
||||
if(!agentNode["Id"].isNull())
|
||||
dataObject.agent.id = agentNode["Id"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ResultCountId"].isNull())
|
||||
resultCountId_ = value["ResultCountId"].asString();
|
||||
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();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
54
qualitycheck/src/model/GetTaskFileResultListRequest.cc
Normal file
54
qualitycheck/src/model/GetTaskFileResultListRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetTaskFileResultListRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetTaskFileResultListRequest;
|
||||
|
||||
GetTaskFileResultListRequest::GetTaskFileResultListRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetTaskFileResultList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTaskFileResultListRequest::~GetTaskFileResultListRequest() {}
|
||||
|
||||
long GetTaskFileResultListRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetTaskFileResultListRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetTaskFileResultListRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetTaskFileResultListRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
std::string GetTaskFileResultListRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetTaskFileResultListRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
134
qualitycheck/src/model/GetTaskFileResultListResult.cc
Normal file
134
qualitycheck/src/model/GetTaskFileResultListResult.cc
Normal file
@@ -0,0 +1,134 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/GetTaskFileResultListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetTaskFileResultListResult::GetTaskFileResultListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTaskFileResultListResult::GetTaskFileResultListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTaskFileResultListResult::~GetTaskFileResultListResult()
|
||||
{}
|
||||
|
||||
void GetTaskFileResultListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["TaskResultReviewInfo"];
|
||||
for (auto valueDataTaskResultReviewInfo : allDataNode)
|
||||
{
|
||||
TaskResultReviewInfo dataObject;
|
||||
if(!valueDataTaskResultReviewInfo["Status"].isNull())
|
||||
dataObject.status = std::stoi(valueDataTaskResultReviewInfo["Status"].asString());
|
||||
if(!valueDataTaskResultReviewInfo["DataType"].isNull())
|
||||
dataObject.dataType = std::stoi(valueDataTaskResultReviewInfo["DataType"].asString());
|
||||
if(!valueDataTaskResultReviewInfo["HitNumber"].isNull())
|
||||
dataObject.hitNumber = std::stoi(valueDataTaskResultReviewInfo["HitNumber"].asString());
|
||||
if(!valueDataTaskResultReviewInfo["HitRule"].isNull())
|
||||
dataObject.hitRule = valueDataTaskResultReviewInfo["HitRule"].asString() == "true";
|
||||
if(!valueDataTaskResultReviewInfo["NextVid"].isNull())
|
||||
dataObject.nextVid = valueDataTaskResultReviewInfo["NextVid"].asString();
|
||||
if(!valueDataTaskResultReviewInfo["PreVid"].isNull())
|
||||
dataObject.preVid = valueDataTaskResultReviewInfo["PreVid"].asString();
|
||||
if(!valueDataTaskResultReviewInfo["ReviewAccuracyRate"].isNull())
|
||||
dataObject.reviewAccuracyRate = std::stof(valueDataTaskResultReviewInfo["ReviewAccuracyRate"].asString());
|
||||
if(!valueDataTaskResultReviewInfo["RealViolationNumber"].isNull())
|
||||
dataObject.realViolationNumber = std::stoi(valueDataTaskResultReviewInfo["RealViolationNumber"].asString());
|
||||
if(!valueDataTaskResultReviewInfo["IsHitRule"].isNull())
|
||||
dataObject.isHitRule = valueDataTaskResultReviewInfo["IsHitRule"].asString() == "true";
|
||||
if(!valueDataTaskResultReviewInfo["FileName"].isNull())
|
||||
dataObject.fileName = valueDataTaskResultReviewInfo["FileName"].asString();
|
||||
if(!valueDataTaskResultReviewInfo["TotalScore"].isNull())
|
||||
dataObject.totalScore = std::stoi(valueDataTaskResultReviewInfo["TotalScore"].asString());
|
||||
if(!valueDataTaskResultReviewInfo["CheckNumber"].isNull())
|
||||
dataObject.checkNumber = std::stoi(valueDataTaskResultReviewInfo["CheckNumber"].asString());
|
||||
if(!valueDataTaskResultReviewInfo["FileMergeName"].isNull())
|
||||
dataObject.fileMergeName = valueDataTaskResultReviewInfo["FileMergeName"].asString();
|
||||
if(!valueDataTaskResultReviewInfo["BucketName"].isNull())
|
||||
dataObject.bucketName = valueDataTaskResultReviewInfo["BucketName"].asString();
|
||||
if(!valueDataTaskResultReviewInfo["HandTaskFile"].isNull())
|
||||
dataObject.handTaskFile = valueDataTaskResultReviewInfo["HandTaskFile"].asString() == "true";
|
||||
if(!valueDataTaskResultReviewInfo["TaskId"].isNull())
|
||||
dataObject.taskId = valueDataTaskResultReviewInfo["TaskId"].asString();
|
||||
if(!valueDataTaskResultReviewInfo["Vid"].isNull())
|
||||
dataObject.vid = valueDataTaskResultReviewInfo["Vid"].asString();
|
||||
auto allHitRuleSet = value["HitRuleSet"]["HitRuleSet"];
|
||||
for (auto value : allHitRuleSet)
|
||||
dataObject.hitRuleSet.push_back(value.asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["DataSize"].isNull())
|
||||
dataSize_ = std::stoi(value["DataSize"].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["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int GetTaskFileResultListResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string GetTaskFileResultListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetTaskFileResultListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int GetTaskFileResultListResult::getDataSize()const
|
||||
{
|
||||
return dataSize_;
|
||||
}
|
||||
|
||||
std::vector<GetTaskFileResultListResult::TaskResultReviewInfo> GetTaskFileResultListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetTaskFileResultListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetTaskFileResultListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
qualitycheck/src/model/GetTaskRuleListRequest.cc
Normal file
54
qualitycheck/src/model/GetTaskRuleListRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetTaskRuleListRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetTaskRuleListRequest;
|
||||
|
||||
GetTaskRuleListRequest::GetTaskRuleListRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetTaskRuleList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTaskRuleListRequest::~GetTaskRuleListRequest() {}
|
||||
|
||||
long GetTaskRuleListRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void GetTaskRuleListRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetTaskRuleListRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
void GetTaskRuleListRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
std::string GetTaskRuleListRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetTaskRuleListRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
161
qualitycheck/src/model/GetTaskRuleListResult.cc
Normal file
161
qualitycheck/src/model/GetTaskRuleListResult.cc
Normal file
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/GetTaskRuleListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Qualitycheck;
|
||||
using namespace AlibabaCloud::Qualitycheck::Model;
|
||||
|
||||
GetTaskRuleListResult::GetTaskRuleListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTaskRuleListResult::GetTaskRuleListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTaskRuleListResult::~GetTaskRuleListResult()
|
||||
{}
|
||||
|
||||
void GetTaskRuleListResult::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["Status"].isNull())
|
||||
dataObject.status = std::stoi(valueDataRuleCountInfo["Status"].asString());
|
||||
if(!valueDataRuleCountInfo["PreReviewNumber"].isNull())
|
||||
dataObject.preReviewNumber = std::stoi(valueDataRuleCountInfo["PreReviewNumber"].asString());
|
||||
if(!valueDataRuleCountInfo["HitNumber"].isNull())
|
||||
dataObject.hitNumber = std::stoi(valueDataRuleCountInfo["HitNumber"].asString());
|
||||
if(!valueDataRuleCountInfo["Select"].isNull())
|
||||
dataObject.select = valueDataRuleCountInfo["Select"].asString() == "true";
|
||||
if(!valueDataRuleCountInfo["CreateTime"].isNull())
|
||||
dataObject.createTime = std::stol(valueDataRuleCountInfo["CreateTime"].asString());
|
||||
if(!valueDataRuleCountInfo["CreateEmpid"].isNull())
|
||||
dataObject.createEmpid = valueDataRuleCountInfo["CreateEmpid"].asString();
|
||||
if(!valueDataRuleCountInfo["RealViolationNumber"].isNull())
|
||||
dataObject.realViolationNumber = std::stoi(valueDataRuleCountInfo["RealViolationNumber"].asString());
|
||||
if(!valueDataRuleCountInfo["LastUpdateEmpid"].isNull())
|
||||
dataObject.lastUpdateEmpid = valueDataRuleCountInfo["LastUpdateEmpid"].asString();
|
||||
if(!valueDataRuleCountInfo["IsDelete"].isNull())
|
||||
dataObject.isDelete = std::stoi(valueDataRuleCountInfo["IsDelete"].asString());
|
||||
if(!valueDataRuleCountInfo["HitRate"].isNull())
|
||||
dataObject.hitRate = std::stof(valueDataRuleCountInfo["HitRate"].asString());
|
||||
if(!valueDataRuleCountInfo["Rid"].isNull())
|
||||
dataObject.rid = valueDataRuleCountInfo["Rid"].asString();
|
||||
if(!valueDataRuleCountInfo["CheckNumber"].isNull())
|
||||
dataObject.checkNumber = std::stoi(valueDataRuleCountInfo["CheckNumber"].asString());
|
||||
if(!valueDataRuleCountInfo["TypeName"].isNull())
|
||||
dataObject.typeName = valueDataRuleCountInfo["TypeName"].asString();
|
||||
if(!valueDataRuleCountInfo["LastUpdateTime"].isNull())
|
||||
dataObject.lastUpdateTime = std::stol(valueDataRuleCountInfo["LastUpdateTime"].asString());
|
||||
if(!valueDataRuleCountInfo["Name"].isNull())
|
||||
dataObject.name = valueDataRuleCountInfo["Name"].asString();
|
||||
if(!valueDataRuleCountInfo["HitRealViolationRate"].isNull())
|
||||
dataObject.hitRealViolationRate = std::stof(valueDataRuleCountInfo["HitRealViolationRate"].asString());
|
||||
if(!valueDataRuleCountInfo["ReviewNumber"].isNull())
|
||||
dataObject.reviewNumber = std::stoi(valueDataRuleCountInfo["ReviewNumber"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["DataSize"].isNull())
|
||||
dataSize_ = std::stoi(value["DataSize"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ReviewStatus"].isNull())
|
||||
reviewStatus_ = std::stoi(value["ReviewStatus"].asString());
|
||||
if(!value["CompSubTaskCount"].isNull())
|
||||
compSubTaskCount_ = std::stoi(value["CompSubTaskCount"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["TotalSubTaskCount"].isNull())
|
||||
totalSubTaskCount_ = std::stoi(value["TotalSubTaskCount"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int GetTaskRuleListResult::getCompSubTaskCount()const
|
||||
{
|
||||
return compSubTaskCount_;
|
||||
}
|
||||
|
||||
int GetTaskRuleListResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string GetTaskRuleListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetTaskRuleListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int GetTaskRuleListResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
int GetTaskRuleListResult::getReviewStatus()const
|
||||
{
|
||||
return reviewStatus_;
|
||||
}
|
||||
|
||||
int GetTaskRuleListResult::getDataSize()const
|
||||
{
|
||||
return dataSize_;
|
||||
}
|
||||
|
||||
std::vector<GetTaskRuleListResult::RuleCountInfo> GetTaskRuleListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetTaskRuleListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetTaskRuleListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
int GetTaskRuleListResult::getTotalSubTaskCount()const
|
||||
{
|
||||
return totalSubTaskCount_;
|
||||
}
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/GetThesaurusBySynonymForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::GetThesaurusBySynonymForApiRequest;
|
||||
|
||||
GetThesaurusBySynonymForApiRequest::GetThesaurusBySynonymForApiRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "GetThesaurusBySynonymForApi") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetThesaurusBySynonymForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
GetThesaurusBySynonymForApiRequest::~GetThesaurusBySynonymForApiRequest() {}
|
||||
|
||||
long GetThesaurusBySynonymForApiRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string GetThesaurusBySynonymForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void GetThesaurusBySynonymForApiRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void GetThesaurusBySynonymForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string GetThesaurusBySynonymForApiRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string GetThesaurusBySynonymForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void GetThesaurusBySynonymForApiRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void GetThesaurusBySynonymForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string GetThesaurusBySynonymForApiRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetThesaurusBySynonymForApiRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,21 +43,21 @@ void GetThesaurusBySynonymForApiResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!valueDataThesaurusPo["Id"].isNull())
|
||||
dataObject.id = std::stol(valueDataThesaurusPo["Id"].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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/HandleComplaintRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::HandleComplaintRequest;
|
||||
|
||||
HandleComplaintRequest::HandleComplaintRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "HandleComplaint") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void HandleComplaintRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
HandleComplaintRequest::~HandleComplaintRequest() {}
|
||||
|
||||
long HandleComplaintRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string HandleComplaintRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void HandleComplaintRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void HandleComplaintRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string HandleComplaintRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string HandleComplaintRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void HandleComplaintRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void HandleComplaintRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string HandleComplaintRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void HandleComplaintRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void HandleComplaintResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/InsertScoreForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::InsertScoreForApiRequest;
|
||||
|
||||
InsertScoreForApiRequest::InsertScoreForApiRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "InsertScoreForApi") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void InsertScoreForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
InsertScoreForApiRequest::~InsertScoreForApiRequest() {}
|
||||
|
||||
long InsertScoreForApiRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string InsertScoreForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void InsertScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void InsertScoreForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string InsertScoreForApiRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string InsertScoreForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void InsertScoreForApiRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void InsertScoreForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string InsertScoreForApiRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void InsertScoreForApiRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,12 +44,12 @@ void InsertScoreForApiResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/InsertSubScoreForApiRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::InsertSubScoreForApiRequest;
|
||||
|
||||
InsertSubScoreForApiRequest::InsertSubScoreForApiRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "InsertSubScoreForApi") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void InsertSubScoreForApiRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
InsertSubScoreForApiRequest::~InsertSubScoreForApiRequest() {}
|
||||
|
||||
long InsertSubScoreForApiRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string InsertSubScoreForApiRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void InsertSubScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void InsertSubScoreForApiRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string InsertSubScoreForApiRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string InsertSubScoreForApiRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void InsertSubScoreForApiRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void InsertSubScoreForApiRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string InsertSubScoreForApiRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void InsertSubScoreForApiRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,12 +44,12 @@ void InsertSubScoreForApiResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/qualitycheck/model/InvalidRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Qualitycheck::Model::InvalidRuleRequest;
|
||||
|
||||
InvalidRuleRequest::InvalidRuleRequest()
|
||||
: RpcServiceRequest("qualitycheck", "2019-01-15", "InvalidRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void InvalidRuleRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
InvalidRuleRequest::~InvalidRuleRequest() {}
|
||||
|
||||
long InvalidRuleRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
std::string InvalidRuleRequest::getJsonStr()const
|
||||
{
|
||||
return jsonStr_;
|
||||
void InvalidRuleRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
void InvalidRuleRequest::setJsonStr(const std::string& jsonStr)
|
||||
{
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter("JsonStr", jsonStr);
|
||||
std::string InvalidRuleRequest::getJsonStr() const {
|
||||
return jsonStr_;
|
||||
}
|
||||
|
||||
std::string InvalidRuleRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
void InvalidRuleRequest::setJsonStr(const std::string &jsonStr) {
|
||||
jsonStr_ = jsonStr;
|
||||
setParameter(std::string("JsonStr"), jsonStr);
|
||||
}
|
||||
|
||||
void InvalidRuleRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
std::string InvalidRuleRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void InvalidRuleRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user