Add Api ListQualityCheckScheme.

This commit is contained in:
sdk-team
2022-05-16 12:31:22 +00:00
parent 52e8716a55
commit 51d3506092
59 changed files with 343 additions and 4663 deletions

View File

@@ -1,3 +1,6 @@
2022-05-16 Version: 1.36.1128
- Add Api ListQualityCheckScheme.
2022-05-16 Version: 1.36.1127
- Support UpdateApplicationVswitches and DescribeComponents.

View File

@@ -1 +1 @@
1.36.1127
1.36.1128

View File

@@ -27,16 +27,10 @@ set(qualitycheck_public_header_model
include/alibabacloud/qualitycheck/model/AddRuleCategoryResult.h
include/alibabacloud/qualitycheck/model/AddThesaurusForApiRequest.h
include/alibabacloud/qualitycheck/model/AddThesaurusForApiResult.h
include/alibabacloud/qualitycheck/model/AddUploadDataSetRequest.h
include/alibabacloud/qualitycheck/model/AddUploadDataSetResult.h
include/alibabacloud/qualitycheck/model/AssignReviewerRequest.h
include/alibabacloud/qualitycheck/model/AssignReviewerResult.h
include/alibabacloud/qualitycheck/model/ConfigDataSetRequest.h
include/alibabacloud/qualitycheck/model/ConfigDataSetResult.h
include/alibabacloud/qualitycheck/model/CreateAsrVocabRequest.h
include/alibabacloud/qualitycheck/model/CreateAsrVocabResult.h
include/alibabacloud/qualitycheck/model/CreateRuleRequest.h
include/alibabacloud/qualitycheck/model/CreateRuleResult.h
include/alibabacloud/qualitycheck/model/CreateSkillGroupConfigRequest.h
include/alibabacloud/qualitycheck/model/CreateSkillGroupConfigResult.h
include/alibabacloud/qualitycheck/model/CreateTaskAssignRuleRequest.h
@@ -91,26 +85,18 @@ set(qualitycheck_public_header_model
include/alibabacloud/qualitycheck/model/GetResultCallbackResult.h
include/alibabacloud/qualitycheck/model/GetResultToReviewRequest.h
include/alibabacloud/qualitycheck/model/GetResultToReviewResult.h
include/alibabacloud/qualitycheck/model/GetReviewInfoRequest.h
include/alibabacloud/qualitycheck/model/GetReviewInfoResult.h
include/alibabacloud/qualitycheck/model/GetRuleRequest.h
include/alibabacloud/qualitycheck/model/GetRuleResult.h
include/alibabacloud/qualitycheck/model/GetRuleCategoryRequest.h
include/alibabacloud/qualitycheck/model/GetRuleCategoryResult.h
include/alibabacloud/qualitycheck/model/GetRuleDetailRequest.h
include/alibabacloud/qualitycheck/model/GetRuleDetailResult.h
include/alibabacloud/qualitycheck/model/GetRuleDimensionRequest.h
include/alibabacloud/qualitycheck/model/GetRuleDimensionResult.h
include/alibabacloud/qualitycheck/model/GetScoreInfoRequest.h
include/alibabacloud/qualitycheck/model/GetScoreInfoResult.h
include/alibabacloud/qualitycheck/model/GetSkillGroupConfigRequest.h
include/alibabacloud/qualitycheck/model/GetSkillGroupConfigResult.h
include/alibabacloud/qualitycheck/model/GetSyncResultRequest.h
include/alibabacloud/qualitycheck/model/GetSyncResultResult.h
include/alibabacloud/qualitycheck/model/GetTaskFileResultListRequest.h
include/alibabacloud/qualitycheck/model/GetTaskFileResultListResult.h
include/alibabacloud/qualitycheck/model/GetTaskRuleListRequest.h
include/alibabacloud/qualitycheck/model/GetTaskRuleListResult.h
include/alibabacloud/qualitycheck/model/GetThesaurusBySynonymForApiRequest.h
include/alibabacloud/qualitycheck/model/GetThesaurusBySynonymForApiResult.h
include/alibabacloud/qualitycheck/model/HandleComplaintRequest.h
@@ -123,12 +109,12 @@ set(qualitycheck_public_header_model
include/alibabacloud/qualitycheck/model/InvalidRuleResult.h
include/alibabacloud/qualitycheck/model/ListAsrVocabRequest.h
include/alibabacloud/qualitycheck/model/ListAsrVocabResult.h
include/alibabacloud/qualitycheck/model/ListDataSetTaskRequest.h
include/alibabacloud/qualitycheck/model/ListDataSetTaskResult.h
include/alibabacloud/qualitycheck/model/ListHotWordsTasksRequest.h
include/alibabacloud/qualitycheck/model/ListHotWordsTasksResult.h
include/alibabacloud/qualitycheck/model/ListPrecisionTaskRequest.h
include/alibabacloud/qualitycheck/model/ListPrecisionTaskResult.h
include/alibabacloud/qualitycheck/model/ListQualityCheckSchemeRequest.h
include/alibabacloud/qualitycheck/model/ListQualityCheckSchemeResult.h
include/alibabacloud/qualitycheck/model/ListRolesRequest.h
include/alibabacloud/qualitycheck/model/ListRolesResult.h
include/alibabacloud/qualitycheck/model/ListRulesRequest.h
@@ -141,18 +127,12 @@ set(qualitycheck_public_header_model
include/alibabacloud/qualitycheck/model/ListUsersResult.h
include/alibabacloud/qualitycheck/model/ListWarningConfigRequest.h
include/alibabacloud/qualitycheck/model/ListWarningConfigResult.h
include/alibabacloud/qualitycheck/model/RemoveAndGetTaskRulesRequest.h
include/alibabacloud/qualitycheck/model/RemoveAndGetTaskRulesResult.h
include/alibabacloud/qualitycheck/model/RestartAsrTaskRequest.h
include/alibabacloud/qualitycheck/model/RestartAsrTaskResult.h
include/alibabacloud/qualitycheck/model/ReviewSingleResultByIdRequest.h
include/alibabacloud/qualitycheck/model/ReviewSingleResultByIdResult.h
include/alibabacloud/qualitycheck/model/SaveConfigDataSetRequest.h
include/alibabacloud/qualitycheck/model/SaveConfigDataSetResult.h
include/alibabacloud/qualitycheck/model/SubmitComplaintRequest.h
include/alibabacloud/qualitycheck/model/SubmitComplaintResult.h
include/alibabacloud/qualitycheck/model/SubmitCustomizationConfigRequest.h
include/alibabacloud/qualitycheck/model/SubmitCustomizationConfigResult.h
include/alibabacloud/qualitycheck/model/SubmitPrecisionTaskRequest.h
include/alibabacloud/qualitycheck/model/SubmitPrecisionTaskResult.h
include/alibabacloud/qualitycheck/model/SubmitQualityCheckTaskRequest.h
@@ -161,12 +141,8 @@ set(qualitycheck_public_header_model
include/alibabacloud/qualitycheck/model/SubmitReviewInfoResult.h
include/alibabacloud/qualitycheck/model/SyncQualityCheckRequest.h
include/alibabacloud/qualitycheck/model/SyncQualityCheckResult.h
include/alibabacloud/qualitycheck/model/TestRuleRequest.h
include/alibabacloud/qualitycheck/model/TestRuleResult.h
include/alibabacloud/qualitycheck/model/UpdateAsrVocabRequest.h
include/alibabacloud/qualitycheck/model/UpdateAsrVocabResult.h
include/alibabacloud/qualitycheck/model/UpdateOnPurchaseSuccessRequest.h
include/alibabacloud/qualitycheck/model/UpdateOnPurchaseSuccessResult.h
include/alibabacloud/qualitycheck/model/UpdateRuleRequest.h
include/alibabacloud/qualitycheck/model/UpdateRuleResult.h
include/alibabacloud/qualitycheck/model/UpdateScoreForApiRequest.h
@@ -206,16 +182,10 @@ set(qualitycheck_src
src/model/AddRuleCategoryResult.cc
src/model/AddThesaurusForApiRequest.cc
src/model/AddThesaurusForApiResult.cc
src/model/AddUploadDataSetRequest.cc
src/model/AddUploadDataSetResult.cc
src/model/AssignReviewerRequest.cc
src/model/AssignReviewerResult.cc
src/model/ConfigDataSetRequest.cc
src/model/ConfigDataSetResult.cc
src/model/CreateAsrVocabRequest.cc
src/model/CreateAsrVocabResult.cc
src/model/CreateRuleRequest.cc
src/model/CreateRuleResult.cc
src/model/CreateSkillGroupConfigRequest.cc
src/model/CreateSkillGroupConfigResult.cc
src/model/CreateTaskAssignRuleRequest.cc
@@ -270,26 +240,18 @@ set(qualitycheck_src
src/model/GetResultCallbackResult.cc
src/model/GetResultToReviewRequest.cc
src/model/GetResultToReviewResult.cc
src/model/GetReviewInfoRequest.cc
src/model/GetReviewInfoResult.cc
src/model/GetRuleRequest.cc
src/model/GetRuleResult.cc
src/model/GetRuleCategoryRequest.cc
src/model/GetRuleCategoryResult.cc
src/model/GetRuleDetailRequest.cc
src/model/GetRuleDetailResult.cc
src/model/GetRuleDimensionRequest.cc
src/model/GetRuleDimensionResult.cc
src/model/GetScoreInfoRequest.cc
src/model/GetScoreInfoResult.cc
src/model/GetSkillGroupConfigRequest.cc
src/model/GetSkillGroupConfigResult.cc
src/model/GetSyncResultRequest.cc
src/model/GetSyncResultResult.cc
src/model/GetTaskFileResultListRequest.cc
src/model/GetTaskFileResultListResult.cc
src/model/GetTaskRuleListRequest.cc
src/model/GetTaskRuleListResult.cc
src/model/GetThesaurusBySynonymForApiRequest.cc
src/model/GetThesaurusBySynonymForApiResult.cc
src/model/HandleComplaintRequest.cc
@@ -302,12 +264,12 @@ set(qualitycheck_src
src/model/InvalidRuleResult.cc
src/model/ListAsrVocabRequest.cc
src/model/ListAsrVocabResult.cc
src/model/ListDataSetTaskRequest.cc
src/model/ListDataSetTaskResult.cc
src/model/ListHotWordsTasksRequest.cc
src/model/ListHotWordsTasksResult.cc
src/model/ListPrecisionTaskRequest.cc
src/model/ListPrecisionTaskResult.cc
src/model/ListQualityCheckSchemeRequest.cc
src/model/ListQualityCheckSchemeResult.cc
src/model/ListRolesRequest.cc
src/model/ListRolesResult.cc
src/model/ListRulesRequest.cc
@@ -320,18 +282,12 @@ set(qualitycheck_src
src/model/ListUsersResult.cc
src/model/ListWarningConfigRequest.cc
src/model/ListWarningConfigResult.cc
src/model/RemoveAndGetTaskRulesRequest.cc
src/model/RemoveAndGetTaskRulesResult.cc
src/model/RestartAsrTaskRequest.cc
src/model/RestartAsrTaskResult.cc
src/model/ReviewSingleResultByIdRequest.cc
src/model/ReviewSingleResultByIdResult.cc
src/model/SaveConfigDataSetRequest.cc
src/model/SaveConfigDataSetResult.cc
src/model/SubmitComplaintRequest.cc
src/model/SubmitComplaintResult.cc
src/model/SubmitCustomizationConfigRequest.cc
src/model/SubmitCustomizationConfigResult.cc
src/model/SubmitPrecisionTaskRequest.cc
src/model/SubmitPrecisionTaskResult.cc
src/model/SubmitQualityCheckTaskRequest.cc
@@ -340,12 +296,8 @@ set(qualitycheck_src
src/model/SubmitReviewInfoResult.cc
src/model/SyncQualityCheckRequest.cc
src/model/SyncQualityCheckResult.cc
src/model/TestRuleRequest.cc
src/model/TestRuleResult.cc
src/model/UpdateAsrVocabRequest.cc
src/model/UpdateAsrVocabResult.cc
src/model/UpdateOnPurchaseSuccessRequest.cc
src/model/UpdateOnPurchaseSuccessResult.cc
src/model/UpdateRuleRequest.cc
src/model/UpdateRuleResult.cc
src/model/UpdateScoreForApiRequest.cc

View File

@@ -28,16 +28,10 @@
#include "model/AddRuleCategoryResult.h"
#include "model/AddThesaurusForApiRequest.h"
#include "model/AddThesaurusForApiResult.h"
#include "model/AddUploadDataSetRequest.h"
#include "model/AddUploadDataSetResult.h"
#include "model/AssignReviewerRequest.h"
#include "model/AssignReviewerResult.h"
#include "model/ConfigDataSetRequest.h"
#include "model/ConfigDataSetResult.h"
#include "model/CreateAsrVocabRequest.h"
#include "model/CreateAsrVocabResult.h"
#include "model/CreateRuleRequest.h"
#include "model/CreateRuleResult.h"
#include "model/CreateSkillGroupConfigRequest.h"
#include "model/CreateSkillGroupConfigResult.h"
#include "model/CreateTaskAssignRuleRequest.h"
@@ -92,26 +86,18 @@
#include "model/GetResultCallbackResult.h"
#include "model/GetResultToReviewRequest.h"
#include "model/GetResultToReviewResult.h"
#include "model/GetReviewInfoRequest.h"
#include "model/GetReviewInfoResult.h"
#include "model/GetRuleRequest.h"
#include "model/GetRuleResult.h"
#include "model/GetRuleCategoryRequest.h"
#include "model/GetRuleCategoryResult.h"
#include "model/GetRuleDetailRequest.h"
#include "model/GetRuleDetailResult.h"
#include "model/GetRuleDimensionRequest.h"
#include "model/GetRuleDimensionResult.h"
#include "model/GetScoreInfoRequest.h"
#include "model/GetScoreInfoResult.h"
#include "model/GetSkillGroupConfigRequest.h"
#include "model/GetSkillGroupConfigResult.h"
#include "model/GetSyncResultRequest.h"
#include "model/GetSyncResultResult.h"
#include "model/GetTaskFileResultListRequest.h"
#include "model/GetTaskFileResultListResult.h"
#include "model/GetTaskRuleListRequest.h"
#include "model/GetTaskRuleListResult.h"
#include "model/GetThesaurusBySynonymForApiRequest.h"
#include "model/GetThesaurusBySynonymForApiResult.h"
#include "model/HandleComplaintRequest.h"
@@ -124,12 +110,12 @@
#include "model/InvalidRuleResult.h"
#include "model/ListAsrVocabRequest.h"
#include "model/ListAsrVocabResult.h"
#include "model/ListDataSetTaskRequest.h"
#include "model/ListDataSetTaskResult.h"
#include "model/ListHotWordsTasksRequest.h"
#include "model/ListHotWordsTasksResult.h"
#include "model/ListPrecisionTaskRequest.h"
#include "model/ListPrecisionTaskResult.h"
#include "model/ListQualityCheckSchemeRequest.h"
#include "model/ListQualityCheckSchemeResult.h"
#include "model/ListRolesRequest.h"
#include "model/ListRolesResult.h"
#include "model/ListRulesRequest.h"
@@ -142,18 +128,12 @@
#include "model/ListUsersResult.h"
#include "model/ListWarningConfigRequest.h"
#include "model/ListWarningConfigResult.h"
#include "model/RemoveAndGetTaskRulesRequest.h"
#include "model/RemoveAndGetTaskRulesResult.h"
#include "model/RestartAsrTaskRequest.h"
#include "model/RestartAsrTaskResult.h"
#include "model/ReviewSingleResultByIdRequest.h"
#include "model/ReviewSingleResultByIdResult.h"
#include "model/SaveConfigDataSetRequest.h"
#include "model/SaveConfigDataSetResult.h"
#include "model/SubmitComplaintRequest.h"
#include "model/SubmitComplaintResult.h"
#include "model/SubmitCustomizationConfigRequest.h"
#include "model/SubmitCustomizationConfigResult.h"
#include "model/SubmitPrecisionTaskRequest.h"
#include "model/SubmitPrecisionTaskResult.h"
#include "model/SubmitQualityCheckTaskRequest.h"
@@ -162,12 +142,8 @@
#include "model/SubmitReviewInfoResult.h"
#include "model/SyncQualityCheckRequest.h"
#include "model/SyncQualityCheckResult.h"
#include "model/TestRuleRequest.h"
#include "model/TestRuleResult.h"
#include "model/UpdateAsrVocabRequest.h"
#include "model/UpdateAsrVocabResult.h"
#include "model/UpdateOnPurchaseSuccessRequest.h"
#include "model/UpdateOnPurchaseSuccessResult.h"
#include "model/UpdateRuleRequest.h"
#include "model/UpdateRuleResult.h"
#include "model/UpdateScoreForApiRequest.h"
@@ -216,21 +192,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AddThesaurusForApiResult> AddThesaurusForApiOutcome;
typedef std::future<AddThesaurusForApiOutcome> AddThesaurusForApiOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::AddThesaurusForApiRequest&, const AddThesaurusForApiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddThesaurusForApiAsyncHandler;
typedef Outcome<Error, Model::AddUploadDataSetResult> AddUploadDataSetOutcome;
typedef std::future<AddUploadDataSetOutcome> AddUploadDataSetOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::AddUploadDataSetRequest&, const AddUploadDataSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddUploadDataSetAsyncHandler;
typedef Outcome<Error, Model::AssignReviewerResult> AssignReviewerOutcome;
typedef std::future<AssignReviewerOutcome> AssignReviewerOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::AssignReviewerRequest&, const AssignReviewerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssignReviewerAsyncHandler;
typedef Outcome<Error, Model::ConfigDataSetResult> ConfigDataSetOutcome;
typedef std::future<ConfigDataSetOutcome> ConfigDataSetOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::ConfigDataSetRequest&, const ConfigDataSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfigDataSetAsyncHandler;
typedef Outcome<Error, Model::CreateAsrVocabResult> CreateAsrVocabOutcome;
typedef std::future<CreateAsrVocabOutcome> CreateAsrVocabOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::CreateAsrVocabRequest&, const CreateAsrVocabOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAsrVocabAsyncHandler;
typedef Outcome<Error, Model::CreateRuleResult> CreateRuleOutcome;
typedef std::future<CreateRuleOutcome> CreateRuleOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::CreateRuleRequest&, const CreateRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRuleAsyncHandler;
typedef Outcome<Error, Model::CreateSkillGroupConfigResult> CreateSkillGroupConfigOutcome;
typedef std::future<CreateSkillGroupConfigOutcome> CreateSkillGroupConfigOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::CreateSkillGroupConfigRequest&, const CreateSkillGroupConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSkillGroupConfigAsyncHandler;
@@ -312,9 +279,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetResultToReviewResult> GetResultToReviewOutcome;
typedef std::future<GetResultToReviewOutcome> GetResultToReviewOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::GetResultToReviewRequest&, const GetResultToReviewOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResultToReviewAsyncHandler;
typedef Outcome<Error, Model::GetReviewInfoResult> GetReviewInfoOutcome;
typedef std::future<GetReviewInfoOutcome> GetReviewInfoOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::GetReviewInfoRequest&, const GetReviewInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetReviewInfoAsyncHandler;
typedef Outcome<Error, Model::GetRuleResult> GetRuleOutcome;
typedef std::future<GetRuleOutcome> GetRuleOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::GetRuleRequest&, const GetRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRuleAsyncHandler;
@@ -324,9 +288,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetRuleDetailResult> GetRuleDetailOutcome;
typedef std::future<GetRuleDetailOutcome> GetRuleDetailOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::GetRuleDetailRequest&, const GetRuleDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRuleDetailAsyncHandler;
typedef Outcome<Error, Model::GetRuleDimensionResult> GetRuleDimensionOutcome;
typedef std::future<GetRuleDimensionOutcome> GetRuleDimensionOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::GetRuleDimensionRequest&, const GetRuleDimensionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRuleDimensionAsyncHandler;
typedef Outcome<Error, Model::GetScoreInfoResult> GetScoreInfoOutcome;
typedef std::future<GetScoreInfoOutcome> GetScoreInfoOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::GetScoreInfoRequest&, const GetScoreInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetScoreInfoAsyncHandler;
@@ -336,12 +297,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetSyncResultResult> GetSyncResultOutcome;
typedef std::future<GetSyncResultOutcome> GetSyncResultOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::GetSyncResultRequest&, const GetSyncResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSyncResultAsyncHandler;
typedef Outcome<Error, Model::GetTaskFileResultListResult> GetTaskFileResultListOutcome;
typedef std::future<GetTaskFileResultListOutcome> GetTaskFileResultListOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::GetTaskFileResultListRequest&, const GetTaskFileResultListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTaskFileResultListAsyncHandler;
typedef Outcome<Error, Model::GetTaskRuleListResult> GetTaskRuleListOutcome;
typedef std::future<GetTaskRuleListOutcome> GetTaskRuleListOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::GetTaskRuleListRequest&, const GetTaskRuleListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTaskRuleListAsyncHandler;
typedef Outcome<Error, Model::GetThesaurusBySynonymForApiResult> GetThesaurusBySynonymForApiOutcome;
typedef std::future<GetThesaurusBySynonymForApiOutcome> GetThesaurusBySynonymForApiOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::GetThesaurusBySynonymForApiRequest&, const GetThesaurusBySynonymForApiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetThesaurusBySynonymForApiAsyncHandler;
@@ -360,15 +315,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListAsrVocabResult> ListAsrVocabOutcome;
typedef std::future<ListAsrVocabOutcome> ListAsrVocabOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::ListAsrVocabRequest&, const ListAsrVocabOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAsrVocabAsyncHandler;
typedef Outcome<Error, Model::ListDataSetTaskResult> ListDataSetTaskOutcome;
typedef std::future<ListDataSetTaskOutcome> ListDataSetTaskOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::ListDataSetTaskRequest&, const ListDataSetTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDataSetTaskAsyncHandler;
typedef Outcome<Error, Model::ListHotWordsTasksResult> ListHotWordsTasksOutcome;
typedef std::future<ListHotWordsTasksOutcome> ListHotWordsTasksOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::ListHotWordsTasksRequest&, const ListHotWordsTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListHotWordsTasksAsyncHandler;
typedef Outcome<Error, Model::ListPrecisionTaskResult> ListPrecisionTaskOutcome;
typedef std::future<ListPrecisionTaskOutcome> ListPrecisionTaskOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::ListPrecisionTaskRequest&, const ListPrecisionTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPrecisionTaskAsyncHandler;
typedef Outcome<Error, Model::ListQualityCheckSchemeResult> ListQualityCheckSchemeOutcome;
typedef std::future<ListQualityCheckSchemeOutcome> ListQualityCheckSchemeOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::ListQualityCheckSchemeRequest&, const ListQualityCheckSchemeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQualityCheckSchemeAsyncHandler;
typedef Outcome<Error, Model::ListRolesResult> ListRolesOutcome;
typedef std::future<ListRolesOutcome> ListRolesOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::ListRolesRequest&, const ListRolesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRolesAsyncHandler;
@@ -387,24 +342,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListWarningConfigResult> ListWarningConfigOutcome;
typedef std::future<ListWarningConfigOutcome> ListWarningConfigOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::ListWarningConfigRequest&, const ListWarningConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListWarningConfigAsyncHandler;
typedef Outcome<Error, Model::RemoveAndGetTaskRulesResult> RemoveAndGetTaskRulesOutcome;
typedef std::future<RemoveAndGetTaskRulesOutcome> RemoveAndGetTaskRulesOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::RemoveAndGetTaskRulesRequest&, const RemoveAndGetTaskRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveAndGetTaskRulesAsyncHandler;
typedef Outcome<Error, Model::RestartAsrTaskResult> RestartAsrTaskOutcome;
typedef std::future<RestartAsrTaskOutcome> RestartAsrTaskOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::RestartAsrTaskRequest&, const RestartAsrTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RestartAsrTaskAsyncHandler;
typedef Outcome<Error, Model::ReviewSingleResultByIdResult> ReviewSingleResultByIdOutcome;
typedef std::future<ReviewSingleResultByIdOutcome> ReviewSingleResultByIdOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::ReviewSingleResultByIdRequest&, const ReviewSingleResultByIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReviewSingleResultByIdAsyncHandler;
typedef Outcome<Error, Model::SaveConfigDataSetResult> SaveConfigDataSetOutcome;
typedef std::future<SaveConfigDataSetOutcome> SaveConfigDataSetOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::SaveConfigDataSetRequest&, const SaveConfigDataSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveConfigDataSetAsyncHandler;
typedef Outcome<Error, Model::SubmitComplaintResult> SubmitComplaintOutcome;
typedef std::future<SubmitComplaintOutcome> SubmitComplaintOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::SubmitComplaintRequest&, const SubmitComplaintOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitComplaintAsyncHandler;
typedef Outcome<Error, Model::SubmitCustomizationConfigResult> SubmitCustomizationConfigOutcome;
typedef std::future<SubmitCustomizationConfigOutcome> SubmitCustomizationConfigOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::SubmitCustomizationConfigRequest&, const SubmitCustomizationConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitCustomizationConfigAsyncHandler;
typedef Outcome<Error, Model::SubmitPrecisionTaskResult> SubmitPrecisionTaskOutcome;
typedef std::future<SubmitPrecisionTaskOutcome> SubmitPrecisionTaskOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::SubmitPrecisionTaskRequest&, const SubmitPrecisionTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitPrecisionTaskAsyncHandler;
@@ -417,15 +363,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SyncQualityCheckResult> SyncQualityCheckOutcome;
typedef std::future<SyncQualityCheckOutcome> SyncQualityCheckOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::SyncQualityCheckRequest&, const SyncQualityCheckOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SyncQualityCheckAsyncHandler;
typedef Outcome<Error, Model::TestRuleResult> TestRuleOutcome;
typedef std::future<TestRuleOutcome> TestRuleOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::TestRuleRequest&, const TestRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TestRuleAsyncHandler;
typedef Outcome<Error, Model::UpdateAsrVocabResult> UpdateAsrVocabOutcome;
typedef std::future<UpdateAsrVocabOutcome> UpdateAsrVocabOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::UpdateAsrVocabRequest&, const UpdateAsrVocabOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAsrVocabAsyncHandler;
typedef Outcome<Error, Model::UpdateOnPurchaseSuccessResult> UpdateOnPurchaseSuccessOutcome;
typedef std::future<UpdateOnPurchaseSuccessOutcome> UpdateOnPurchaseSuccessOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::UpdateOnPurchaseSuccessRequest&, const UpdateOnPurchaseSuccessOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateOnPurchaseSuccessAsyncHandler;
typedef Outcome<Error, Model::UpdateRuleResult> UpdateRuleOutcome;
typedef std::future<UpdateRuleOutcome> UpdateRuleOutcomeCallable;
typedef std::function<void(const QualitycheckClient*, const Model::UpdateRuleRequest&, const UpdateRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateRuleAsyncHandler;
@@ -485,21 +425,12 @@ namespace AlibabaCloud
AddThesaurusForApiOutcome addThesaurusForApi(const Model::AddThesaurusForApiRequest &request)const;
void addThesaurusForApiAsync(const Model::AddThesaurusForApiRequest& request, const AddThesaurusForApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddThesaurusForApiOutcomeCallable addThesaurusForApiCallable(const Model::AddThesaurusForApiRequest& request) const;
AddUploadDataSetOutcome addUploadDataSet(const Model::AddUploadDataSetRequest &request)const;
void addUploadDataSetAsync(const Model::AddUploadDataSetRequest& request, const AddUploadDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddUploadDataSetOutcomeCallable addUploadDataSetCallable(const Model::AddUploadDataSetRequest& request) const;
AssignReviewerOutcome assignReviewer(const Model::AssignReviewerRequest &request)const;
void assignReviewerAsync(const Model::AssignReviewerRequest& request, const AssignReviewerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AssignReviewerOutcomeCallable assignReviewerCallable(const Model::AssignReviewerRequest& request) const;
ConfigDataSetOutcome configDataSet(const Model::ConfigDataSetRequest &request)const;
void configDataSetAsync(const Model::ConfigDataSetRequest& request, const ConfigDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ConfigDataSetOutcomeCallable configDataSetCallable(const Model::ConfigDataSetRequest& request) const;
CreateAsrVocabOutcome createAsrVocab(const Model::CreateAsrVocabRequest &request)const;
void createAsrVocabAsync(const Model::CreateAsrVocabRequest& request, const CreateAsrVocabAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateAsrVocabOutcomeCallable createAsrVocabCallable(const Model::CreateAsrVocabRequest& request) const;
CreateRuleOutcome createRule(const Model::CreateRuleRequest &request)const;
void createRuleAsync(const Model::CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRuleOutcomeCallable createRuleCallable(const Model::CreateRuleRequest& request) const;
CreateSkillGroupConfigOutcome createSkillGroupConfig(const Model::CreateSkillGroupConfigRequest &request)const;
void createSkillGroupConfigAsync(const Model::CreateSkillGroupConfigRequest& request, const CreateSkillGroupConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateSkillGroupConfigOutcomeCallable createSkillGroupConfigCallable(const Model::CreateSkillGroupConfigRequest& request) const;
@@ -581,9 +512,6 @@ namespace AlibabaCloud
GetResultToReviewOutcome getResultToReview(const Model::GetResultToReviewRequest &request)const;
void getResultToReviewAsync(const Model::GetResultToReviewRequest& request, const GetResultToReviewAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetResultToReviewOutcomeCallable getResultToReviewCallable(const Model::GetResultToReviewRequest& request) const;
GetReviewInfoOutcome getReviewInfo(const Model::GetReviewInfoRequest &request)const;
void getReviewInfoAsync(const Model::GetReviewInfoRequest& request, const GetReviewInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetReviewInfoOutcomeCallable getReviewInfoCallable(const Model::GetReviewInfoRequest& request) const;
GetRuleOutcome getRule(const Model::GetRuleRequest &request)const;
void getRuleAsync(const Model::GetRuleRequest& request, const GetRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetRuleOutcomeCallable getRuleCallable(const Model::GetRuleRequest& request) const;
@@ -593,9 +521,6 @@ namespace AlibabaCloud
GetRuleDetailOutcome getRuleDetail(const Model::GetRuleDetailRequest &request)const;
void getRuleDetailAsync(const Model::GetRuleDetailRequest& request, const GetRuleDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetRuleDetailOutcomeCallable getRuleDetailCallable(const Model::GetRuleDetailRequest& request) const;
GetRuleDimensionOutcome getRuleDimension(const Model::GetRuleDimensionRequest &request)const;
void getRuleDimensionAsync(const Model::GetRuleDimensionRequest& request, const GetRuleDimensionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetRuleDimensionOutcomeCallable getRuleDimensionCallable(const Model::GetRuleDimensionRequest& request) const;
GetScoreInfoOutcome getScoreInfo(const Model::GetScoreInfoRequest &request)const;
void getScoreInfoAsync(const Model::GetScoreInfoRequest& request, const GetScoreInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetScoreInfoOutcomeCallable getScoreInfoCallable(const Model::GetScoreInfoRequest& request) const;
@@ -605,12 +530,6 @@ namespace AlibabaCloud
GetSyncResultOutcome getSyncResult(const Model::GetSyncResultRequest &request)const;
void getSyncResultAsync(const Model::GetSyncResultRequest& request, const GetSyncResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSyncResultOutcomeCallable getSyncResultCallable(const Model::GetSyncResultRequest& request) const;
GetTaskFileResultListOutcome getTaskFileResultList(const Model::GetTaskFileResultListRequest &request)const;
void getTaskFileResultListAsync(const Model::GetTaskFileResultListRequest& request, const GetTaskFileResultListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTaskFileResultListOutcomeCallable getTaskFileResultListCallable(const Model::GetTaskFileResultListRequest& request) const;
GetTaskRuleListOutcome getTaskRuleList(const Model::GetTaskRuleListRequest &request)const;
void getTaskRuleListAsync(const Model::GetTaskRuleListRequest& request, const GetTaskRuleListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetTaskRuleListOutcomeCallable getTaskRuleListCallable(const Model::GetTaskRuleListRequest& request) const;
GetThesaurusBySynonymForApiOutcome getThesaurusBySynonymForApi(const Model::GetThesaurusBySynonymForApiRequest &request)const;
void getThesaurusBySynonymForApiAsync(const Model::GetThesaurusBySynonymForApiRequest& request, const GetThesaurusBySynonymForApiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetThesaurusBySynonymForApiOutcomeCallable getThesaurusBySynonymForApiCallable(const Model::GetThesaurusBySynonymForApiRequest& request) const;
@@ -629,15 +548,15 @@ namespace AlibabaCloud
ListAsrVocabOutcome listAsrVocab(const Model::ListAsrVocabRequest &request)const;
void listAsrVocabAsync(const Model::ListAsrVocabRequest& request, const ListAsrVocabAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListAsrVocabOutcomeCallable listAsrVocabCallable(const Model::ListAsrVocabRequest& request) const;
ListDataSetTaskOutcome listDataSetTask(const Model::ListDataSetTaskRequest &request)const;
void listDataSetTaskAsync(const Model::ListDataSetTaskRequest& request, const ListDataSetTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDataSetTaskOutcomeCallable listDataSetTaskCallable(const Model::ListDataSetTaskRequest& request) const;
ListHotWordsTasksOutcome listHotWordsTasks(const Model::ListHotWordsTasksRequest &request)const;
void listHotWordsTasksAsync(const Model::ListHotWordsTasksRequest& request, const ListHotWordsTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListHotWordsTasksOutcomeCallable listHotWordsTasksCallable(const Model::ListHotWordsTasksRequest& request) const;
ListPrecisionTaskOutcome listPrecisionTask(const Model::ListPrecisionTaskRequest &request)const;
void listPrecisionTaskAsync(const Model::ListPrecisionTaskRequest& request, const ListPrecisionTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListPrecisionTaskOutcomeCallable listPrecisionTaskCallable(const Model::ListPrecisionTaskRequest& request) const;
ListQualityCheckSchemeOutcome listQualityCheckScheme(const Model::ListQualityCheckSchemeRequest &request)const;
void listQualityCheckSchemeAsync(const Model::ListQualityCheckSchemeRequest& request, const ListQualityCheckSchemeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListQualityCheckSchemeOutcomeCallable listQualityCheckSchemeCallable(const Model::ListQualityCheckSchemeRequest& request) const;
ListRolesOutcome listRoles(const Model::ListRolesRequest &request)const;
void listRolesAsync(const Model::ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRolesOutcomeCallable listRolesCallable(const Model::ListRolesRequest& request) const;
@@ -656,24 +575,15 @@ namespace AlibabaCloud
ListWarningConfigOutcome listWarningConfig(const Model::ListWarningConfigRequest &request)const;
void listWarningConfigAsync(const Model::ListWarningConfigRequest& request, const ListWarningConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListWarningConfigOutcomeCallable listWarningConfigCallable(const Model::ListWarningConfigRequest& request) const;
RemoveAndGetTaskRulesOutcome removeAndGetTaskRules(const Model::RemoveAndGetTaskRulesRequest &request)const;
void removeAndGetTaskRulesAsync(const Model::RemoveAndGetTaskRulesRequest& request, const RemoveAndGetTaskRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RemoveAndGetTaskRulesOutcomeCallable removeAndGetTaskRulesCallable(const Model::RemoveAndGetTaskRulesRequest& request) const;
RestartAsrTaskOutcome restartAsrTask(const Model::RestartAsrTaskRequest &request)const;
void restartAsrTaskAsync(const Model::RestartAsrTaskRequest& request, const RestartAsrTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RestartAsrTaskOutcomeCallable restartAsrTaskCallable(const Model::RestartAsrTaskRequest& request) const;
ReviewSingleResultByIdOutcome reviewSingleResultById(const Model::ReviewSingleResultByIdRequest &request)const;
void reviewSingleResultByIdAsync(const Model::ReviewSingleResultByIdRequest& request, const ReviewSingleResultByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReviewSingleResultByIdOutcomeCallable reviewSingleResultByIdCallable(const Model::ReviewSingleResultByIdRequest& request) const;
SaveConfigDataSetOutcome saveConfigDataSet(const Model::SaveConfigDataSetRequest &request)const;
void saveConfigDataSetAsync(const Model::SaveConfigDataSetRequest& request, const SaveConfigDataSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SaveConfigDataSetOutcomeCallable saveConfigDataSetCallable(const Model::SaveConfigDataSetRequest& request) const;
SubmitComplaintOutcome submitComplaint(const Model::SubmitComplaintRequest &request)const;
void submitComplaintAsync(const Model::SubmitComplaintRequest& request, const SubmitComplaintAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubmitComplaintOutcomeCallable submitComplaintCallable(const Model::SubmitComplaintRequest& request) const;
SubmitCustomizationConfigOutcome submitCustomizationConfig(const Model::SubmitCustomizationConfigRequest &request)const;
void submitCustomizationConfigAsync(const Model::SubmitCustomizationConfigRequest& request, const SubmitCustomizationConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubmitCustomizationConfigOutcomeCallable submitCustomizationConfigCallable(const Model::SubmitCustomizationConfigRequest& request) const;
SubmitPrecisionTaskOutcome submitPrecisionTask(const Model::SubmitPrecisionTaskRequest &request)const;
void submitPrecisionTaskAsync(const Model::SubmitPrecisionTaskRequest& request, const SubmitPrecisionTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SubmitPrecisionTaskOutcomeCallable submitPrecisionTaskCallable(const Model::SubmitPrecisionTaskRequest& request) const;
@@ -686,15 +596,9 @@ namespace AlibabaCloud
SyncQualityCheckOutcome syncQualityCheck(const Model::SyncQualityCheckRequest &request)const;
void syncQualityCheckAsync(const Model::SyncQualityCheckRequest& request, const SyncQualityCheckAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SyncQualityCheckOutcomeCallable syncQualityCheckCallable(const Model::SyncQualityCheckRequest& request) const;
TestRuleOutcome testRule(const Model::TestRuleRequest &request)const;
void testRuleAsync(const Model::TestRuleRequest& request, const TestRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TestRuleOutcomeCallable testRuleCallable(const Model::TestRuleRequest& request) const;
UpdateAsrVocabOutcome updateAsrVocab(const Model::UpdateAsrVocabRequest &request)const;
void updateAsrVocabAsync(const Model::UpdateAsrVocabRequest& request, const UpdateAsrVocabAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateAsrVocabOutcomeCallable updateAsrVocabCallable(const Model::UpdateAsrVocabRequest& request) const;
UpdateOnPurchaseSuccessOutcome updateOnPurchaseSuccess(const Model::UpdateOnPurchaseSuccessRequest &request)const;
void updateOnPurchaseSuccessAsync(const Model::UpdateOnPurchaseSuccessRequest& request, const UpdateOnPurchaseSuccessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateOnPurchaseSuccessOutcomeCallable updateOnPurchaseSuccessCallable(const Model::UpdateOnPurchaseSuccessRequest& request) const;
UpdateRuleOutcome updateRule(const Model::UpdateRuleRequest &request)const;
void updateRuleAsync(const Model::UpdateRuleRequest& request, const UpdateRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateRuleOutcomeCallable updateRuleCallable(const Model::UpdateRuleRequest& request) const;

View File

@@ -1,48 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_ADDUPLOADDATASETREQUEST_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_ADDUPLOADDATASETREQUEST_H_
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Qualitycheck {
namespace Model {
class ALIBABACLOUD_QUALITYCHECK_EXPORT AddUploadDataSetRequest : public RpcServiceRequest {
public:
AddUploadDataSetRequest();
~AddUploadDataSetRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getJsonStr() const;
void setJsonStr(const std::string &jsonStr);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
private:
long resourceOwnerId_;
std::string jsonStr_;
std::string accessKeyId_;
};
} // namespace Model
} // namespace Qualitycheck
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_ADDUPLOADDATASETREQUEST_H_

View File

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

View File

@@ -1,48 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_CONFIGDATASETREQUEST_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_CONFIGDATASETREQUEST_H_
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Qualitycheck {
namespace Model {
class ALIBABACLOUD_QUALITYCHECK_EXPORT ConfigDataSetRequest : public RpcServiceRequest {
public:
ConfigDataSetRequest();
~ConfigDataSetRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getJsonStr() const;
void setJsonStr(const std::string &jsonStr);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
private:
long resourceOwnerId_;
std::string jsonStr_;
std::string accessKeyId_;
};
} // namespace Model
} // namespace Qualitycheck
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_CONFIGDATASETREQUEST_H_

View File

@@ -1,112 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_CONFIGDATASETRESULT_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_CONFIGDATASETRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
namespace AlibabaCloud
{
namespace Qualitycheck
{
namespace Model
{
class ALIBABACLOUD_QUALITYCHECK_EXPORT ConfigDataSetResult : public ServiceResult
{
public:
struct Data
{
struct RuleInfo
{
struct ConditionBasicInfo
{
struct CheckRange
{
struct Anchor
{
int hitTime;
std::string cid;
std::string location;
};
struct Range
{
int to;
int from;
};
std::string role;
Anchor anchor;
Range range;
int roleId;
};
struct OperatorBasicInfo
{
struct Param
{
std::vector<std::string> keywords;
bool inSentence;
};
std::string type;
Param param;
std::string oid;
};
std::vector<ConditionBasicInfo::OperatorBasicInfo> operators;
CheckRange checkRange;
std::string lambda;
std::string cid;
};
struct RuleBasicInfo
{
int externalProperty;
std::string rid;
std::string lambda;
};
std::vector<RuleBasicInfo> rules;
std::vector<ConditionBasicInfo> conditions;
};
int roleConfigStatus;
int judgeType;
RuleInfo ruleInfo;
long setId;
int channelType;
};
ConfigDataSetResult();
explicit ConfigDataSetResult(const std::string &payload);
~ConfigDataSetResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_CONFIGDATASETRESULT_H_

View File

@@ -1,48 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_CREATERULEREQUEST_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_CREATERULEREQUEST_H_
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Qualitycheck {
namespace Model {
class ALIBABACLOUD_QUALITYCHECK_EXPORT CreateRuleRequest : public RpcServiceRequest {
public:
CreateRuleRequest();
~CreateRuleRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getJsonStr() const;
void setJsonStr(const std::string &jsonStr);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
private:
long resourceOwnerId_;
std::string jsonStr_;
std::string accessKeyId_;
};
} // namespace Model
} // namespace Qualitycheck
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_CREATERULEREQUEST_H_

View File

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

View File

@@ -1,48 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETREVIEWINFOREQUEST_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETREVIEWINFOREQUEST_H_
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Qualitycheck {
namespace Model {
class ALIBABACLOUD_QUALITYCHECK_EXPORT GetReviewInfoRequest : public RpcServiceRequest {
public:
GetReviewInfoRequest();
~GetReviewInfoRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getJsonStr() const;
void setJsonStr(const std::string &jsonStr);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
private:
long resourceOwnerId_;
std::string jsonStr_;
std::string accessKeyId_;
};
} // namespace Model
} // namespace Qualitycheck
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETREVIEWINFOREQUEST_H_

View File

@@ -1,147 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETREVIEWINFORESULT_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETREVIEWINFORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
namespace AlibabaCloud
{
namespace Qualitycheck
{
namespace Model
{
class ALIBABACLOUD_QUALITYCHECK_EXPORT GetReviewInfoResult : public ServiceResult
{
public:
struct Data
{
struct Dialogue
{
std::string role;
std::string hourMinSec;
std::string words;
int silenceDuration;
long begin;
std::string beginTime;
long end;
std::string identity;
int speechRate;
int emotionValue;
};
struct ScorePo
{
struct ScoreParam
{
std::string scoreSubName;
int hit;
long scoreSubId;
int scoreType;
int scoreNum;
};
std::vector<ScorePo::ScoreParam> scoreInfos;
std::string scoreName;
long scoreId;
};
struct HitRuleReviewInfo
{
struct ReviewInfo
{
std::string hitId;
long rid;
};
struct ConditionHitInfo
{
struct Phrase
{
std::string role;
std::string words;
long begin;
int pid;
long end;
std::string identity;
int emotionValue;
};
struct KeyWord
{
std::string val;
int pid;
int to;
int from;
std::string tid;
};
Phrase phrase;
std::vector<ConditionHitInfo::KeyWord> keyWords;
std::vector<std::string> cid;
};
std::vector<HitRuleReviewInfo::ConditionHitInfo> conditionHitInfoList;
int ruleScoreType;
long scoreSubId;
int totalNumber;
int ruleType;
int autoReview;
long scoreId;
long rid;
ReviewInfo reviewInfo;
std::string ruleName;
};
bool isAudio;
bool isDeleted;
std::vector<Dialogue> dialogues;
int reviewNumber;
int asrWordsCount;
int businessType;
std::string fileMergeName;
std::vector<std::string> manualScoreMappingList;
std::vector<HitRuleReviewInfo> hitRuleReviewInfoList;
std::string nextVid;
std::string vid;
int hitNumber;
std::string preVid;
int totalScore;
bool deleted;
std::vector<ScorePo> handScoreInfoList;
std::string audioURL;
bool audio;
};
GetReviewInfoResult();
explicit GetReviewInfoResult(const std::string &payload);
~GetReviewInfoResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETREVIEWINFORESULT_H_

View File

@@ -1,48 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEDIMENSIONREQUEST_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEDIMENSIONREQUEST_H_
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Qualitycheck {
namespace Model {
class ALIBABACLOUD_QUALITYCHECK_EXPORT GetRuleDimensionRequest : public RpcServiceRequest {
public:
GetRuleDimensionRequest();
~GetRuleDimensionRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getJsonStr() const;
void setJsonStr(const std::string &jsonStr);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
private:
long resourceOwnerId_;
std::string jsonStr_;
std::string accessKeyId_;
};
} // namespace Model
} // namespace Qualitycheck
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEDIMENSIONREQUEST_H_

View File

@@ -1,92 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEDIMENSIONRESULT_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEDIMENSIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
namespace AlibabaCloud
{
namespace Qualitycheck
{
namespace Model
{
class ALIBABACLOUD_QUALITYCHECK_EXPORT GetRuleDimensionResult : public ServiceResult
{
public:
struct RuleCountInfo
{
int status;
float hitRealViolationRate;
std::string typeName;
float hitRate;
int reviewNumber;
std::string createTime;
int preReviewNumber;
std::string createEmpid;
std::string rid;
int checkNumber;
std::string name;
int type;
int realViolationNumber;
std::string lastUpdateEmpid;
std::string lastUpdateTime;
int hitNumber;
bool select;
int isDelete;
};
GetRuleDimensionResult();
explicit GetRuleDimensionResult(const std::string &payload);
~GetRuleDimensionResult();
int getCompSubTaskCount()const;
int getTotalCount()const;
std::string getMessage()const;
int getPageSize()const;
int getCurrentPage()const;
int getReviewStatus()const;
int getDataSize()const;
std::vector<RuleCountInfo> getData()const;
std::string getCode()const;
bool getSuccess()const;
int getTotalSubTaskCount()const;
protected:
void parse(const std::string &payload);
private:
int compSubTaskCount_;
int totalCount_;
std::string message_;
int pageSize_;
int currentPage_;
int reviewStatus_;
int dataSize_;
std::vector<RuleCountInfo> data_;
std::string code_;
bool success_;
int totalSubTaskCount_;
};
}
}
}
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEDIMENSIONRESULT_H_

View File

@@ -1,48 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETTASKFILERESULTLISTREQUEST_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETTASKFILERESULTLISTREQUEST_H_
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Qualitycheck {
namespace Model {
class ALIBABACLOUD_QUALITYCHECK_EXPORT GetTaskFileResultListRequest : public RpcServiceRequest {
public:
GetTaskFileResultListRequest();
~GetTaskFileResultListRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getJsonStr() const;
void setJsonStr(const std::string &jsonStr);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
private:
long resourceOwnerId_;
std::string jsonStr_;
std::string accessKeyId_;
};
} // namespace Model
} // namespace Qualitycheck
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETTASKFILERESULTLISTREQUEST_H_

View File

@@ -1,84 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETTASKFILERESULTLISTRESULT_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETTASKFILERESULTLISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
namespace AlibabaCloud
{
namespace Qualitycheck
{
namespace Model
{
class ALIBABACLOUD_QUALITYCHECK_EXPORT GetTaskFileResultListResult : public ServiceResult
{
public:
struct TaskResultReviewInfo
{
int status;
std::string taskId;
bool isHitRule;
std::string fileName;
std::string fileMergeName;
int checkNumber;
std::string nextVid;
float reviewAccuracyRate;
std::string vid;
std::string bucketName;
int realViolationNumber;
int hitNumber;
std::string preVid;
bool hitRule;
int dataType;
bool handTaskFile;
int totalScore;
std::vector<std::string> hitRuleSet;
};
GetTaskFileResultListResult();
explicit GetTaskFileResultListResult(const std::string &payload);
~GetTaskFileResultListResult();
int getTotalCount()const;
std::string getMessage()const;
int getPageSize()const;
int getDataSize()const;
std::vector<TaskResultReviewInfo> getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::string message_;
int pageSize_;
int dataSize_;
std::vector<TaskResultReviewInfo> data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETTASKFILERESULTLISTRESULT_H_

View File

@@ -1,48 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETTASKRULELISTREQUEST_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETTASKRULELISTREQUEST_H_
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Qualitycheck {
namespace Model {
class ALIBABACLOUD_QUALITYCHECK_EXPORT GetTaskRuleListRequest : public RpcServiceRequest {
public:
GetTaskRuleListRequest();
~GetTaskRuleListRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getJsonStr() const;
void setJsonStr(const std::string &jsonStr);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
private:
long resourceOwnerId_;
std::string jsonStr_;
std::string accessKeyId_;
};
} // namespace Model
} // namespace Qualitycheck
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETTASKRULELISTREQUEST_H_

View File

@@ -1,92 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETTASKRULELISTRESULT_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETTASKRULELISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
namespace AlibabaCloud
{
namespace Qualitycheck
{
namespace Model
{
class ALIBABACLOUD_QUALITYCHECK_EXPORT GetTaskRuleListResult : public ServiceResult
{
public:
struct RuleCountInfo
{
int status;
float hitRealViolationRate;
std::string typeName;
float hitRate;
int reviewNumber;
long createTime;
int preReviewNumber;
std::string createEmpid;
std::string rid;
int checkNumber;
std::string name;
int type;
int realViolationNumber;
std::string lastUpdateEmpid;
long lastUpdateTime;
int hitNumber;
bool select;
int isDelete;
};
GetTaskRuleListResult();
explicit GetTaskRuleListResult(const std::string &payload);
~GetTaskRuleListResult();
int getCompSubTaskCount()const;
int getTotalCount()const;
std::string getMessage()const;
int getPageSize()const;
int getCurrentPage()const;
int getReviewStatus()const;
int getDataSize()const;
std::vector<RuleCountInfo> getData()const;
std::string getCode()const;
bool getSuccess()const;
int getTotalSubTaskCount()const;
protected:
void parse(const std::string &payload);
private:
int compSubTaskCount_;
int totalCount_;
std::string message_;
int pageSize_;
int currentPage_;
int reviewStatus_;
int dataSize_;
std::vector<RuleCountInfo> data_;
std::string code_;
bool success_;
int totalSubTaskCount_;
};
}
}
}
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETTASKRULELISTRESULT_H_

View File

@@ -1,48 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_LISTDATASETTASKREQUEST_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTDATASETTASKREQUEST_H_
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Qualitycheck {
namespace Model {
class ALIBABACLOUD_QUALITYCHECK_EXPORT ListDataSetTaskRequest : public RpcServiceRequest {
public:
ListDataSetTaskRequest();
~ListDataSetTaskRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getJsonStr() const;
void setJsonStr(const std::string &jsonStr);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
private:
long resourceOwnerId_;
std::string jsonStr_;
std::string accessKeyId_;
};
} // namespace Model
} // namespace Qualitycheck
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_LISTDATASETTASKREQUEST_H_

View File

@@ -1,85 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_LISTDATASETTASKRESULT_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTDATASETTASKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
namespace AlibabaCloud
{
namespace Qualitycheck
{
namespace Model
{
class ALIBABACLOUD_QUALITYCHECK_EXPORT ListDataSetTaskResult : public ServiceResult
{
public:
struct PageTaskInfo
{
struct RuleNameInfo
{
int rid;
std::string ruleName;
};
int status;
std::vector<PageTaskInfo::RuleNameInfo> ruleNameInfoList;
std::string taskId;
float scheduleRatio;
int ruleSize;
bool taskComplete;
std::vector<std::string> dataSets;
std::string jobName;
int dataSetSize;
bool isTaskComplete;
};
ListDataSetTaskResult();
explicit ListDataSetTaskResult(const std::string &payload);
~ListDataSetTaskResult();
int getTotalCount()const;
std::string getMessage()const;
int getPageSize()const;
int getCurrentPage()const;
int getDataSize()const;
std::vector<PageTaskInfo> getData()const;
int getIsAllcomplete()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
std::string message_;
int pageSize_;
int currentPage_;
int dataSize_;
std::vector<PageTaskInfo> data_;
int isAllcomplete_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_LISTDATASETTASKRESULT_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_REVIEWSINGLERESULTBYIDREQUEST_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_REVIEWSINGLERESULTBYIDREQUEST_H_
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_LISTQUALITYCHECKSCHEMEREQUEST_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTQUALITYCHECKSCHEMEREQUEST_H_
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
@@ -26,10 +26,10 @@
namespace AlibabaCloud {
namespace Qualitycheck {
namespace Model {
class ALIBABACLOUD_QUALITYCHECK_EXPORT ReviewSingleResultByIdRequest : public RpcServiceRequest {
class ALIBABACLOUD_QUALITYCHECK_EXPORT ListQualityCheckSchemeRequest : public RpcServiceRequest {
public:
ReviewSingleResultByIdRequest();
~ReviewSingleResultByIdRequest();
ListQualityCheckSchemeRequest();
~ListQualityCheckSchemeRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getJsonStr() const;
@@ -45,4 +45,4 @@ private:
} // namespace Model
} // namespace Qualitycheck
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_REVIEWSINGLERESULTBYIDREQUEST_H_
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_LISTQUALITYCHECKSCHEMEREQUEST_H_

View File

@@ -0,0 +1,104 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_LISTQUALITYCHECKSCHEMERESULT_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTQUALITYCHECKSCHEMERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
namespace AlibabaCloud
{
namespace Qualitycheck
{
namespace Model
{
class ALIBABACLOUD_QUALITYCHECK_EXPORT ListQualityCheckSchemeResult : public ServiceResult
{
public:
struct DataItem
{
struct SchemeCheckTypeListItem
{
std::string checkName;
int score;
int checkType;
int targetType;
int enable;
};
struct RuleListItem
{
struct RulesItem
{
int ruleScoreType;
int checkType;
int targetType;
int scoreNumType;
int scoreType;
long rid;
int scoreNum;
std::string name;
};
std::vector<RuleListItem::RulesItem> rules;
};
int status;
std::string updateUserName;
std::vector<DataItem::RuleListItem> ruleList;
std::string description;
int schemeId;
std::vector<DataItem::SchemeCheckTypeListItem> schemeCheckTypeList;
std::string createTime;
int templateType;
std::string createUserName;
std::string name;
int type;
std::string updateTime;
int dataType;
};
ListQualityCheckSchemeResult();
explicit ListQualityCheckSchemeResult(const std::string &payload);
~ListQualityCheckSchemeResult();
std::string getMessage()const;
int getPageSize()const;
int getPageNumber()const;
std::vector<DataItem> getData()const;
int getCount()const;
std::string getCode()const;
bool getSuccess()const;
std::string getResultCountId()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int pageSize_;
int pageNumber_;
std::vector<DataItem> data_;
int count_;
std::string code_;
bool success_;
std::string resultCountId_;
};
}
}
}
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_LISTQUALITYCHECKSCHEMERESULT_H_

View File

@@ -1,48 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_REMOVEANDGETTASKRULESREQUEST_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_REMOVEANDGETTASKRULESREQUEST_H_
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Qualitycheck {
namespace Model {
class ALIBABACLOUD_QUALITYCHECK_EXPORT RemoveAndGetTaskRulesRequest : public RpcServiceRequest {
public:
RemoveAndGetTaskRulesRequest();
~RemoveAndGetTaskRulesRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getJsonStr() const;
void setJsonStr(const std::string &jsonStr);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
private:
long resourceOwnerId_;
std::string jsonStr_;
std::string accessKeyId_;
};
} // namespace Model
} // namespace Qualitycheck
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_REMOVEANDGETTASKRULESREQUEST_H_

View File

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

View File

@@ -1,148 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_REVIEWSINGLERESULTBYIDRESULT_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_REVIEWSINGLERESULTBYIDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
namespace AlibabaCloud
{
namespace Qualitycheck
{
namespace Model
{
class ALIBABACLOUD_QUALITYCHECK_EXPORT ReviewSingleResultByIdResult : public ServiceResult
{
public:
struct Data
{
struct Dialogue
{
std::string role;
std::string hourMinSec;
std::string words;
int silenceDuration;
long begin;
long beginTime;
long end;
std::string identity;
int speechRate;
int emotionValue;
};
struct ScorePo
{
struct ScoreParam
{
std::string scoreSubName;
int hit;
long scoreSubId;
int scoreType;
int scoreNum;
};
std::vector<ScorePo::ScoreParam> scoreInfos;
std::string scoreName;
long scoreId;
};
struct HitRuleReviewInfo
{
struct ReviewInfo
{
std::string hitId;
long rid;
};
struct ConditionHitInfo
{
struct Phrase
{
std::string role;
std::string words;
long begin;
int pid;
long end;
std::string identity;
int emotionValue;
};
struct KeyWord
{
std::string val;
int pid;
int to;
int from;
std::string tid;
};
Phrase phrase;
std::vector<ConditionHitInfo::KeyWord> keyWords;
std::vector<std::string> cid;
};
std::vector<HitRuleReviewInfo::ConditionHitInfo> conditionHitInfoList;
int ruleScoreType;
std::string comments;
long scoreSubId;
int totalNumber;
int ruleType;
int autoReview;
long scoreId;
long rid;
ReviewInfo reviewInfo;
std::string ruleName;
};
bool isAudio;
bool isDeleted;
std::vector<Dialogue> dialogues;
int reviewNumber;
int asrWordsCount;
int businessType;
std::string fileMergeName;
std::vector<std::string> manualScoreMappingList;
std::vector<HitRuleReviewInfo> hitRuleReviewInfoList;
std::string nextVid;
int vid;
int hitNumber;
std::string preVid;
int totalScore;
bool deleted;
std::vector<ScorePo> handScoreInfoList;
std::string audioURL;
bool audio;
};
ReviewSingleResultByIdResult();
explicit ReviewSingleResultByIdResult(const std::string &payload);
~ReviewSingleResultByIdResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_REVIEWSINGLERESULTBYIDRESULT_H_

View File

@@ -1,48 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITCUSTOMIZATIONCONFIGREQUEST_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITCUSTOMIZATIONCONFIGREQUEST_H_
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Qualitycheck {
namespace Model {
class ALIBABACLOUD_QUALITYCHECK_EXPORT SubmitCustomizationConfigRequest : public RpcServiceRequest {
public:
SubmitCustomizationConfigRequest();
~SubmitCustomizationConfigRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getJsonStr() const;
void setJsonStr(const std::string &jsonStr);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
private:
long resourceOwnerId_;
std::string jsonStr_;
std::string accessKeyId_;
};
} // namespace Model
} // namespace Qualitycheck
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITCUSTOMIZATIONCONFIGREQUEST_H_

View File

@@ -1,64 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITCUSTOMIZATIONCONFIGRESULT_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITCUSTOMIZATIONCONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
namespace AlibabaCloud
{
namespace Qualitycheck
{
namespace Model
{
class ALIBABACLOUD_QUALITYCHECK_EXPORT SubmitCustomizationConfigResult : public ServiceResult
{
public:
struct Data
{
std::string modelName;
int modelStatus;
std::string modeCustomizationId;
long modelId;
};
SubmitCustomizationConfigResult();
explicit SubmitCustomizationConfigResult(const std::string &payload);
~SubmitCustomizationConfigResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITCUSTOMIZATIONCONFIGRESULT_H_

View File

@@ -1,48 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_TESTRULEREQUEST_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_TESTRULEREQUEST_H_
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Qualitycheck {
namespace Model {
class ALIBABACLOUD_QUALITYCHECK_EXPORT TestRuleRequest : public RpcServiceRequest {
public:
TestRuleRequest();
~TestRuleRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getJsonStr() const;
void setJsonStr(const std::string &jsonStr);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
private:
long resourceOwnerId_;
std::string jsonStr_;
std::string accessKeyId_;
};
} // namespace Model
} // namespace Qualitycheck
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_TESTRULEREQUEST_H_

View File

@@ -1,91 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_TESTRULERESULT_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_TESTRULERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
namespace AlibabaCloud
{
namespace Qualitycheck
{
namespace Model
{
class ALIBABACLOUD_QUALITYCHECK_EXPORT TestRuleResult : public ServiceResult
{
public:
struct Data
{
struct HitRuleReviewInfo
{
struct ConditionHitInfo
{
struct Phrase
{
std::string role;
std::string words;
long begin;
int pid;
long end;
std::string identity;
int emotionValue;
};
struct KeyWord
{
std::string val;
int pid;
int to;
int from;
std::string tid;
};
Phrase phrase;
std::vector<ConditionHitInfo::KeyWord> keyWords;
std::vector<std::string> cid;
};
std::vector<HitRuleReviewInfo::ConditionHitInfo> conditionHitInfoList;
long rid;
};
bool poc;
std::vector<HitRuleReviewInfo> hitRuleReviewInfoList;
};
TestRuleResult();
explicit TestRuleResult(const std::string &payload);
~TestRuleResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_TESTRULERESULT_H_

View File

@@ -1,48 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEONPURCHASESUCCESSREQUEST_H_
#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEONPURCHASESUCCESSREQUEST_H_
#include <alibabacloud/qualitycheck/QualitycheckExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Qualitycheck {
namespace Model {
class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateOnPurchaseSuccessRequest : public RpcServiceRequest {
public:
UpdateOnPurchaseSuccessRequest();
~UpdateOnPurchaseSuccessRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getJsonStr() const;
void setJsonStr(const std::string &jsonStr);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
private:
long resourceOwnerId_;
std::string jsonStr_;
std::string accessKeyId_;
};
} // namespace Model
} // namespace Qualitycheck
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEONPURCHASESUCCESSREQUEST_H_

View File

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

View File

@@ -159,42 +159,6 @@ 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();
@@ -231,42 +195,6 @@ 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();
@@ -303,42 +231,6 @@ 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();
@@ -1311,42 +1203,6 @@ 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();
@@ -1455,42 +1311,6 @@ 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();
@@ -1599,78 +1419,6 @@ 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();
@@ -1887,42 +1635,6 @@ 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();
@@ -1995,6 +1707,42 @@ QualitycheckClient::ListPrecisionTaskOutcomeCallable QualitycheckClient::listPre
return task->get_future();
}
QualitycheckClient::ListQualityCheckSchemeOutcome QualitycheckClient::listQualityCheckScheme(const ListQualityCheckSchemeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListQualityCheckSchemeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListQualityCheckSchemeOutcome(ListQualityCheckSchemeResult(outcome.result()));
else
return ListQualityCheckSchemeOutcome(outcome.error());
}
void QualitycheckClient::listQualityCheckSchemeAsync(const ListQualityCheckSchemeRequest& request, const ListQualityCheckSchemeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listQualityCheckScheme(request), context);
};
asyncExecute(new Runnable(fn));
}
QualitycheckClient::ListQualityCheckSchemeOutcomeCallable QualitycheckClient::listQualityCheckSchemeCallable(const ListQualityCheckSchemeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListQualityCheckSchemeOutcome()>>(
[this, request]()
{
return this->listQualityCheckScheme(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
QualitycheckClient::ListRolesOutcome QualitycheckClient::listRoles(const ListRolesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2211,42 +1959,6 @@ 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();
@@ -2283,42 +1995,6 @@ 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();
@@ -2391,42 +2067,6 @@ 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();
@@ -2571,42 +2211,6 @@ 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();
@@ -2643,42 +2247,6 @@ 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();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,140 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/qualitycheck/model/ListDataSetTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Qualitycheck;
using namespace AlibabaCloud::Qualitycheck::Model;
ListDataSetTaskResult::ListDataSetTaskResult() :
ServiceResult()
{}
ListDataSetTaskResult::ListDataSetTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDataSetTaskResult::~ListDataSetTaskResult()
{}
void ListDataSetTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["PageTaskInfo"];
for (auto valueDataPageTaskInfo : allDataNode)
{
PageTaskInfo dataObject;
if(!valueDataPageTaskInfo["Status"].isNull())
dataObject.status = std::stoi(valueDataPageTaskInfo["Status"].asString());
if(!valueDataPageTaskInfo["IsTaskComplete"].isNull())
dataObject.isTaskComplete = valueDataPageTaskInfo["IsTaskComplete"].asString() == "true";
if(!valueDataPageTaskInfo["ScheduleRatio"].isNull())
dataObject.scheduleRatio = std::stof(valueDataPageTaskInfo["ScheduleRatio"].asString());
if(!valueDataPageTaskInfo["TaskComplete"].isNull())
dataObject.taskComplete = valueDataPageTaskInfo["TaskComplete"].asString() == "true";
if(!valueDataPageTaskInfo["DataSetSize"].isNull())
dataObject.dataSetSize = std::stoi(valueDataPageTaskInfo["DataSetSize"].asString());
if(!valueDataPageTaskInfo["RuleSize"].isNull())
dataObject.ruleSize = std::stoi(valueDataPageTaskInfo["RuleSize"].asString());
if(!valueDataPageTaskInfo["JobName"].isNull())
dataObject.jobName = valueDataPageTaskInfo["JobName"].asString();
if(!valueDataPageTaskInfo["TaskId"].isNull())
dataObject.taskId = valueDataPageTaskInfo["TaskId"].asString();
auto allRuleNameInfoListNode = valueDataPageTaskInfo["RuleNameInfoList"]["RuleNameInfo"];
for (auto valueDataPageTaskInfoRuleNameInfoListRuleNameInfo : allRuleNameInfoListNode)
{
PageTaskInfo::RuleNameInfo ruleNameInfoListObject;
if(!valueDataPageTaskInfoRuleNameInfoListRuleNameInfo["RuleName"].isNull())
ruleNameInfoListObject.ruleName = valueDataPageTaskInfoRuleNameInfoListRuleNameInfo["RuleName"].asString();
if(!valueDataPageTaskInfoRuleNameInfoListRuleNameInfo["Rid"].isNull())
ruleNameInfoListObject.rid = std::stoi(valueDataPageTaskInfoRuleNameInfoListRuleNameInfo["Rid"].asString());
dataObject.ruleNameInfoList.push_back(ruleNameInfoListObject);
}
auto allDataSets = value["DataSets"]["dataSets"];
for (auto value : allDataSets)
dataObject.dataSets.push_back(value.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["Code"].isNull())
code_ = value["Code"].asString();
if(!value["IsAllcomplete"].isNull())
isAllcomplete_ = std::stoi(value["IsAllcomplete"].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 ListDataSetTaskResult::getTotalCount()const
{
return totalCount_;
}
std::string ListDataSetTaskResult::getMessage()const
{
return message_;
}
int ListDataSetTaskResult::getPageSize()const
{
return pageSize_;
}
int ListDataSetTaskResult::getCurrentPage()const
{
return currentPage_;
}
int ListDataSetTaskResult::getDataSize()const
{
return dataSize_;
}
std::vector<ListDataSetTaskResult::PageTaskInfo> ListDataSetTaskResult::getData()const
{
return data_;
}
int ListDataSetTaskResult::getIsAllcomplete()const
{
return isAllcomplete_;
}
std::string ListDataSetTaskResult::getCode()const
{
return code_;
}
bool ListDataSetTaskResult::getSuccess()const
{
return success_;
}

View File

@@ -14,40 +14,40 @@
* limitations under the License.
*/
#include <alibabacloud/qualitycheck/model/ReviewSingleResultByIdRequest.h>
#include <alibabacloud/qualitycheck/model/ListQualityCheckSchemeRequest.h>
using AlibabaCloud::Qualitycheck::Model::ReviewSingleResultByIdRequest;
using AlibabaCloud::Qualitycheck::Model::ListQualityCheckSchemeRequest;
ReviewSingleResultByIdRequest::ReviewSingleResultByIdRequest()
: RpcServiceRequest("qualitycheck", "2019-01-15", "ReviewSingleResultById") {
ListQualityCheckSchemeRequest::ListQualityCheckSchemeRequest()
: RpcServiceRequest("qualitycheck", "2019-01-15", "ListQualityCheckScheme") {
setMethod(HttpRequest::Method::Post);
}
ReviewSingleResultByIdRequest::~ReviewSingleResultByIdRequest() {}
ListQualityCheckSchemeRequest::~ListQualityCheckSchemeRequest() {}
long ReviewSingleResultByIdRequest::getResourceOwnerId() const {
long ListQualityCheckSchemeRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void ReviewSingleResultByIdRequest::setResourceOwnerId(long resourceOwnerId) {
void ListQualityCheckSchemeRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string ReviewSingleResultByIdRequest::getJsonStr() const {
std::string ListQualityCheckSchemeRequest::getJsonStr() const {
return jsonStr_;
}
void ReviewSingleResultByIdRequest::setJsonStr(const std::string &jsonStr) {
void ListQualityCheckSchemeRequest::setJsonStr(const std::string &jsonStr) {
jsonStr_ = jsonStr;
setParameter(std::string("JsonStr"), jsonStr);
}
std::string ReviewSingleResultByIdRequest::getAccessKeyId() const {
std::string ListQualityCheckSchemeRequest::getAccessKeyId() const {
return accessKeyId_;
}
void ReviewSingleResultByIdRequest::setAccessKeyId(const std::string &accessKeyId) {
void ListQualityCheckSchemeRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}

View File

@@ -0,0 +1,170 @@
/*
* 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/ListQualityCheckSchemeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Qualitycheck;
using namespace AlibabaCloud::Qualitycheck::Model;
ListQualityCheckSchemeResult::ListQualityCheckSchemeResult() :
ServiceResult()
{}
ListQualityCheckSchemeResult::ListQualityCheckSchemeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListQualityCheckSchemeResult::~ListQualityCheckSchemeResult()
{}
void ListQualityCheckSchemeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["dataItem"];
for (auto valueDatadataItem : allDataNode)
{
DataItem dataObject;
if(!valueDatadataItem["SchemeId"].isNull())
dataObject.schemeId = std::stoi(valueDatadataItem["SchemeId"].asString());
if(!valueDatadataItem["Name"].isNull())
dataObject.name = valueDatadataItem["Name"].asString();
if(!valueDatadataItem["Description"].isNull())
dataObject.description = valueDatadataItem["Description"].asString();
if(!valueDatadataItem["DataType"].isNull())
dataObject.dataType = std::stoi(valueDatadataItem["DataType"].asString());
if(!valueDatadataItem["Type"].isNull())
dataObject.type = std::stoi(valueDatadataItem["Type"].asString());
if(!valueDatadataItem["TemplateType"].isNull())
dataObject.templateType = std::stoi(valueDatadataItem["TemplateType"].asString());
if(!valueDatadataItem["Status"].isNull())
dataObject.status = std::stoi(valueDatadataItem["Status"].asString());
if(!valueDatadataItem["CreateUserName"].isNull())
dataObject.createUserName = valueDatadataItem["CreateUserName"].asString();
if(!valueDatadataItem["CreateTime"].isNull())
dataObject.createTime = valueDatadataItem["CreateTime"].asString();
if(!valueDatadataItem["UpdateUserName"].isNull())
dataObject.updateUserName = valueDatadataItem["UpdateUserName"].asString();
if(!valueDatadataItem["UpdateTime"].isNull())
dataObject.updateTime = valueDatadataItem["UpdateTime"].asString();
auto allSchemeCheckTypeListNode = valueDatadataItem["SchemeCheckTypeList"]["schemeCheckTypeListItem"];
for (auto valueDatadataItemSchemeCheckTypeListschemeCheckTypeListItem : allSchemeCheckTypeListNode)
{
DataItem::SchemeCheckTypeListItem schemeCheckTypeListObject;
if(!valueDatadataItemSchemeCheckTypeListschemeCheckTypeListItem["CheckType"].isNull())
schemeCheckTypeListObject.checkType = std::stoi(valueDatadataItemSchemeCheckTypeListschemeCheckTypeListItem["CheckType"].asString());
if(!valueDatadataItemSchemeCheckTypeListschemeCheckTypeListItem["Enable"].isNull())
schemeCheckTypeListObject.enable = std::stoi(valueDatadataItemSchemeCheckTypeListschemeCheckTypeListItem["Enable"].asString());
if(!valueDatadataItemSchemeCheckTypeListschemeCheckTypeListItem["CheckName"].isNull())
schemeCheckTypeListObject.checkName = valueDatadataItemSchemeCheckTypeListschemeCheckTypeListItem["CheckName"].asString();
if(!valueDatadataItemSchemeCheckTypeListschemeCheckTypeListItem["TargetType"].isNull())
schemeCheckTypeListObject.targetType = std::stoi(valueDatadataItemSchemeCheckTypeListschemeCheckTypeListItem["TargetType"].asString());
if(!valueDatadataItemSchemeCheckTypeListschemeCheckTypeListItem["Score"].isNull())
schemeCheckTypeListObject.score = std::stoi(valueDatadataItemSchemeCheckTypeListschemeCheckTypeListItem["Score"].asString());
dataObject.schemeCheckTypeList.push_back(schemeCheckTypeListObject);
}
auto allRuleListNode = valueDatadataItem["RuleList"]["ruleListItem"];
for (auto valueDatadataItemRuleListruleListItem : allRuleListNode)
{
DataItem::RuleListItem ruleListObject;
auto allRulesNode = valueDatadataItemRuleListruleListItem["Rules"]["rulesItem"];
for (auto valueDatadataItemRuleListruleListItemRulesrulesItem : allRulesNode)
{
DataItem::RuleListItem::RulesItem rulesObject;
if(!valueDatadataItemRuleListruleListItemRulesrulesItem["Rid"].isNull())
rulesObject.rid = std::stol(valueDatadataItemRuleListruleListItemRulesrulesItem["Rid"].asString());
if(!valueDatadataItemRuleListruleListItemRulesrulesItem["Name"].isNull())
rulesObject.name = valueDatadataItemRuleListruleListItemRulesrulesItem["Name"].asString();
if(!valueDatadataItemRuleListruleListItemRulesrulesItem["RuleScoreType"].isNull())
rulesObject.ruleScoreType = std::stoi(valueDatadataItemRuleListruleListItemRulesrulesItem["RuleScoreType"].asString());
if(!valueDatadataItemRuleListruleListItemRulesrulesItem["ScoreNum"].isNull())
rulesObject.scoreNum = std::stoi(valueDatadataItemRuleListruleListItemRulesrulesItem["ScoreNum"].asString());
if(!valueDatadataItemRuleListruleListItemRulesrulesItem["ScoreType"].isNull())
rulesObject.scoreType = std::stoi(valueDatadataItemRuleListruleListItemRulesrulesItem["ScoreType"].asString());
if(!valueDatadataItemRuleListruleListItemRulesrulesItem["CheckType"].isNull())
rulesObject.checkType = std::stoi(valueDatadataItemRuleListruleListItemRulesrulesItem["CheckType"].asString());
if(!valueDatadataItemRuleListruleListItemRulesrulesItem["TargetType"].isNull())
rulesObject.targetType = std::stoi(valueDatadataItemRuleListruleListItemRulesrulesItem["TargetType"].asString());
if(!valueDatadataItemRuleListruleListItemRulesrulesItem["ScoreNumType"].isNull())
rulesObject.scoreNumType = std::stoi(valueDatadataItemRuleListruleListItemRulesrulesItem["ScoreNumType"].asString());
ruleListObject.rules.push_back(rulesObject);
}
dataObject.ruleList.push_back(ruleListObject);
}
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["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["Count"].isNull())
count_ = std::stoi(value["Count"].asString());
}
std::string ListQualityCheckSchemeResult::getMessage()const
{
return message_;
}
int ListQualityCheckSchemeResult::getPageSize()const
{
return pageSize_;
}
int ListQualityCheckSchemeResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListQualityCheckSchemeResult::DataItem> ListQualityCheckSchemeResult::getData()const
{
return data_;
}
int ListQualityCheckSchemeResult::getCount()const
{
return count_;
}
std::string ListQualityCheckSchemeResult::getCode()const
{
return code_;
}
bool ListQualityCheckSchemeResult::getSuccess()const
{
return success_;
}
std::string ListQualityCheckSchemeResult::getResultCountId()const
{
return resultCountId_;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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