diff --git a/CHANGELOG b/CHANGELOG index a43c5fdc4..d213f1055 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-11-26 Version: 1.36.951 +- Update GetSyncResult. + 2021-11-25 Version: 1.36.950 - Supported new features etc. diff --git a/VERSION b/VERSION index 562dd01cf..43bbd900e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.950 \ No newline at end of file +1.36.951 \ No newline at end of file diff --git a/qualitycheck/CMakeLists.txt b/qualitycheck/CMakeLists.txt index 1e3cd8d7c..22df704f4 100644 --- a/qualitycheck/CMakeLists.txt +++ b/qualitycheck/CMakeLists.txt @@ -27,10 +27,16 @@ 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 @@ -85,18 +91,26 @@ 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 @@ -109,6 +123,8 @@ 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 @@ -125,12 +141,18 @@ 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 @@ -139,8 +161,12 @@ 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 @@ -180,10 +206,16 @@ 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 @@ -238,18 +270,26 @@ 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 @@ -262,6 +302,8 @@ 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 @@ -278,12 +320,18 @@ 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 @@ -292,8 +340,12 @@ 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 diff --git a/qualitycheck/include/alibabacloud/qualitycheck/QualitycheckClient.h b/qualitycheck/include/alibabacloud/qualitycheck/QualitycheckClient.h index 02817fa46..f5a651fd4 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/QualitycheckClient.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/QualitycheckClient.h @@ -28,10 +28,16 @@ #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" @@ -86,18 +92,26 @@ #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" @@ -110,6 +124,8 @@ #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" @@ -126,12 +142,18 @@ #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" @@ -140,8 +162,12 @@ #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" @@ -190,12 +216,21 @@ namespace AlibabaCloud typedef Outcome AddThesaurusForApiOutcome; typedef std::future AddThesaurusForApiOutcomeCallable; typedef std::function&)> AddThesaurusForApiAsyncHandler; + typedef Outcome AddUploadDataSetOutcome; + typedef std::future AddUploadDataSetOutcomeCallable; + typedef std::function&)> AddUploadDataSetAsyncHandler; typedef Outcome AssignReviewerOutcome; typedef std::future AssignReviewerOutcomeCallable; typedef std::function&)> AssignReviewerAsyncHandler; + typedef Outcome ConfigDataSetOutcome; + typedef std::future ConfigDataSetOutcomeCallable; + typedef std::function&)> ConfigDataSetAsyncHandler; typedef Outcome CreateAsrVocabOutcome; typedef std::future CreateAsrVocabOutcomeCallable; typedef std::function&)> CreateAsrVocabAsyncHandler; + typedef Outcome CreateRuleOutcome; + typedef std::future CreateRuleOutcomeCallable; + typedef std::function&)> CreateRuleAsyncHandler; typedef Outcome CreateSkillGroupConfigOutcome; typedef std::future CreateSkillGroupConfigOutcomeCallable; typedef std::function&)> CreateSkillGroupConfigAsyncHandler; @@ -277,6 +312,9 @@ namespace AlibabaCloud typedef Outcome GetResultToReviewOutcome; typedef std::future GetResultToReviewOutcomeCallable; typedef std::function&)> GetResultToReviewAsyncHandler; + typedef Outcome GetReviewInfoOutcome; + typedef std::future GetReviewInfoOutcomeCallable; + typedef std::function&)> GetReviewInfoAsyncHandler; typedef Outcome GetRuleOutcome; typedef std::future GetRuleOutcomeCallable; typedef std::function&)> GetRuleAsyncHandler; @@ -286,6 +324,9 @@ namespace AlibabaCloud typedef Outcome GetRuleDetailOutcome; typedef std::future GetRuleDetailOutcomeCallable; typedef std::function&)> GetRuleDetailAsyncHandler; + typedef Outcome GetRuleDimensionOutcome; + typedef std::future GetRuleDimensionOutcomeCallable; + typedef std::function&)> GetRuleDimensionAsyncHandler; typedef Outcome GetScoreInfoOutcome; typedef std::future GetScoreInfoOutcomeCallable; typedef std::function&)> GetScoreInfoAsyncHandler; @@ -295,6 +336,12 @@ namespace AlibabaCloud typedef Outcome GetSyncResultOutcome; typedef std::future GetSyncResultOutcomeCallable; typedef std::function&)> GetSyncResultAsyncHandler; + typedef Outcome GetTaskFileResultListOutcome; + typedef std::future GetTaskFileResultListOutcomeCallable; + typedef std::function&)> GetTaskFileResultListAsyncHandler; + typedef Outcome GetTaskRuleListOutcome; + typedef std::future GetTaskRuleListOutcomeCallable; + typedef std::function&)> GetTaskRuleListAsyncHandler; typedef Outcome GetThesaurusBySynonymForApiOutcome; typedef std::future GetThesaurusBySynonymForApiOutcomeCallable; typedef std::function&)> GetThesaurusBySynonymForApiAsyncHandler; @@ -313,6 +360,9 @@ namespace AlibabaCloud typedef Outcome ListAsrVocabOutcome; typedef std::future ListAsrVocabOutcomeCallable; typedef std::function&)> ListAsrVocabAsyncHandler; + typedef Outcome ListDataSetTaskOutcome; + typedef std::future ListDataSetTaskOutcomeCallable; + typedef std::function&)> ListDataSetTaskAsyncHandler; typedef Outcome ListHotWordsTasksOutcome; typedef std::future ListHotWordsTasksOutcomeCallable; typedef std::function&)> ListHotWordsTasksAsyncHandler; @@ -337,15 +387,24 @@ namespace AlibabaCloud typedef Outcome ListWarningConfigOutcome; typedef std::future ListWarningConfigOutcomeCallable; typedef std::function&)> ListWarningConfigAsyncHandler; + typedef Outcome RemoveAndGetTaskRulesOutcome; + typedef std::future RemoveAndGetTaskRulesOutcomeCallable; + typedef std::function&)> RemoveAndGetTaskRulesAsyncHandler; typedef Outcome RestartAsrTaskOutcome; typedef std::future RestartAsrTaskOutcomeCallable; typedef std::function&)> RestartAsrTaskAsyncHandler; + typedef Outcome ReviewSingleResultByIdOutcome; + typedef std::future ReviewSingleResultByIdOutcomeCallable; + typedef std::function&)> ReviewSingleResultByIdAsyncHandler; typedef Outcome SaveConfigDataSetOutcome; typedef std::future SaveConfigDataSetOutcomeCallable; typedef std::function&)> SaveConfigDataSetAsyncHandler; typedef Outcome SubmitComplaintOutcome; typedef std::future SubmitComplaintOutcomeCallable; typedef std::function&)> SubmitComplaintAsyncHandler; + typedef Outcome SubmitCustomizationConfigOutcome; + typedef std::future SubmitCustomizationConfigOutcomeCallable; + typedef std::function&)> SubmitCustomizationConfigAsyncHandler; typedef Outcome SubmitPrecisionTaskOutcome; typedef std::future SubmitPrecisionTaskOutcomeCallable; typedef std::function&)> SubmitPrecisionTaskAsyncHandler; @@ -358,9 +417,15 @@ namespace AlibabaCloud typedef Outcome SyncQualityCheckOutcome; typedef std::future SyncQualityCheckOutcomeCallable; typedef std::function&)> SyncQualityCheckAsyncHandler; + typedef Outcome TestRuleOutcome; + typedef std::future TestRuleOutcomeCallable; + typedef std::function&)> TestRuleAsyncHandler; typedef Outcome UpdateAsrVocabOutcome; typedef std::future UpdateAsrVocabOutcomeCallable; typedef std::function&)> UpdateAsrVocabAsyncHandler; + typedef Outcome UpdateOnPurchaseSuccessOutcome; + typedef std::future UpdateOnPurchaseSuccessOutcomeCallable; + typedef std::function&)> UpdateOnPurchaseSuccessAsyncHandler; typedef Outcome UpdateRuleOutcome; typedef std::future UpdateRuleOutcomeCallable; typedef std::function&)> UpdateRuleAsyncHandler; @@ -420,12 +485,21 @@ namespace AlibabaCloud AddThesaurusForApiOutcome addThesaurusForApi(const Model::AddThesaurusForApiRequest &request)const; void addThesaurusForApiAsync(const Model::AddThesaurusForApiRequest& request, const AddThesaurusForApiAsyncHandler& handler, const std::shared_ptr& 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& 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& 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& 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& 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& 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& context = nullptr) const; CreateSkillGroupConfigOutcomeCallable createSkillGroupConfigCallable(const Model::CreateSkillGroupConfigRequest& request) const; @@ -507,6 +581,9 @@ namespace AlibabaCloud GetResultToReviewOutcome getResultToReview(const Model::GetResultToReviewRequest &request)const; void getResultToReviewAsync(const Model::GetResultToReviewRequest& request, const GetResultToReviewAsyncHandler& handler, const std::shared_ptr& 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& 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& context = nullptr) const; GetRuleOutcomeCallable getRuleCallable(const Model::GetRuleRequest& request) const; @@ -516,6 +593,9 @@ namespace AlibabaCloud GetRuleDetailOutcome getRuleDetail(const Model::GetRuleDetailRequest &request)const; void getRuleDetailAsync(const Model::GetRuleDetailRequest& request, const GetRuleDetailAsyncHandler& handler, const std::shared_ptr& 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& 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& context = nullptr) const; GetScoreInfoOutcomeCallable getScoreInfoCallable(const Model::GetScoreInfoRequest& request) const; @@ -525,6 +605,12 @@ namespace AlibabaCloud GetSyncResultOutcome getSyncResult(const Model::GetSyncResultRequest &request)const; void getSyncResultAsync(const Model::GetSyncResultRequest& request, const GetSyncResultAsyncHandler& handler, const std::shared_ptr& 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& 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& 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& context = nullptr) const; GetThesaurusBySynonymForApiOutcomeCallable getThesaurusBySynonymForApiCallable(const Model::GetThesaurusBySynonymForApiRequest& request) const; @@ -543,6 +629,9 @@ namespace AlibabaCloud ListAsrVocabOutcome listAsrVocab(const Model::ListAsrVocabRequest &request)const; void listAsrVocabAsync(const Model::ListAsrVocabRequest& request, const ListAsrVocabAsyncHandler& handler, const std::shared_ptr& 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& 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& context = nullptr) const; ListHotWordsTasksOutcomeCallable listHotWordsTasksCallable(const Model::ListHotWordsTasksRequest& request) const; @@ -567,15 +656,24 @@ namespace AlibabaCloud ListWarningConfigOutcome listWarningConfig(const Model::ListWarningConfigRequest &request)const; void listWarningConfigAsync(const Model::ListWarningConfigRequest& request, const ListWarningConfigAsyncHandler& handler, const std::shared_ptr& 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& 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& 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& 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& 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& 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& 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& context = nullptr) const; SubmitPrecisionTaskOutcomeCallable submitPrecisionTaskCallable(const Model::SubmitPrecisionTaskRequest& request) const; @@ -588,9 +686,15 @@ namespace AlibabaCloud SyncQualityCheckOutcome syncQualityCheck(const Model::SyncQualityCheckRequest &request)const; void syncQualityCheckAsync(const Model::SyncQualityCheckRequest& request, const SyncQualityCheckAsyncHandler& handler, const std::shared_ptr& 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& 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& 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& 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& context = nullptr) const; UpdateRuleOutcomeCallable updateRuleCallable(const Model::UpdateRuleRequest& request) const; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/AddBusinessCategoryRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/AddBusinessCategoryRequest.h index 9d7194727..ae596ab99 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/AddBusinessCategoryRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/AddBusinessCategoryRequest.h @@ -1,54 +1,48 @@ /* * 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_ADDBUSINESSCATEGORYREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_ADDBUSINESSCATEGORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT AddBusinessCategoryRequest : public RpcServiceRequest - { - - public: - AddBusinessCategoryRequest(); - ~AddBusinessCategoryRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_ADDBUSINESSCATEGORYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_ADDBUSINESSCATEGORYREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_ADDBUSINESSCATEGORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT AddBusinessCategoryRequest : public RpcServiceRequest { +public: + AddBusinessCategoryRequest(); + ~AddBusinessCategoryRequest(); + 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_ADDBUSINESSCATEGORYREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/AddRuleCategoryRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/AddRuleCategoryRequest.h index 88b6bf0f0..d03531a9b 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/AddRuleCategoryRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/AddRuleCategoryRequest.h @@ -1,54 +1,48 @@ /* * 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_ADDRULECATEGORYREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_ADDRULECATEGORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT AddRuleCategoryRequest : public RpcServiceRequest - { - - public: - AddRuleCategoryRequest(); - ~AddRuleCategoryRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_ADDRULECATEGORYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_ADDRULECATEGORYREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_ADDRULECATEGORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT AddRuleCategoryRequest : public RpcServiceRequest { +public: + AddRuleCategoryRequest(); + ~AddRuleCategoryRequest(); + 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_ADDRULECATEGORYREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/AddThesaurusForApiRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/AddThesaurusForApiRequest.h index 8e74a35a9..118b6cc9b 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/AddThesaurusForApiRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/AddThesaurusForApiRequest.h @@ -1,54 +1,48 @@ /* * 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_ADDTHESAURUSFORAPIREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_ADDTHESAURUSFORAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT AddThesaurusForApiRequest : public RpcServiceRequest - { - - public: - AddThesaurusForApiRequest(); - ~AddThesaurusForApiRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_ADDTHESAURUSFORAPIREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_ADDTHESAURUSFORAPIREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_ADDTHESAURUSFORAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT AddThesaurusForApiRequest : public RpcServiceRequest { +public: + AddThesaurusForApiRequest(); + ~AddThesaurusForApiRequest(); + 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_ADDTHESAURUSFORAPIREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/AddUploadDataSetRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/AddUploadDataSetRequest.h new file mode 100644 index 000000000..a7e0ab85b --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/AddUploadDataSetRequest.h @@ -0,0 +1,48 @@ +/* + * 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 +#include +#include +#include +#include + +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_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/AddUploadDataSetResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/AddUploadDataSetResult.h new file mode 100644 index 000000000..3b5697c45 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/AddUploadDataSetResult.h @@ -0,0 +1,57 @@ +/* + * 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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/AssignReviewerRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/AssignReviewerRequest.h index e9d66c04a..72b2561fa 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/AssignReviewerRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/AssignReviewerRequest.h @@ -1,54 +1,48 @@ /* * 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_ASSIGNREVIEWERREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_ASSIGNREVIEWERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT AssignReviewerRequest : public RpcServiceRequest - { - - public: - AssignReviewerRequest(); - ~AssignReviewerRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_ASSIGNREVIEWERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_ASSIGNREVIEWERREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_ASSIGNREVIEWERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT AssignReviewerRequest : public RpcServiceRequest { +public: + AssignReviewerRequest(); + ~AssignReviewerRequest(); + 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_ASSIGNREVIEWERREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ConfigDataSetRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ConfigDataSetRequest.h new file mode 100644 index 000000000..36350f44e --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ConfigDataSetRequest.h @@ -0,0 +1,48 @@ +/* + * 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 +#include +#include +#include +#include + +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_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ConfigDataSetResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ConfigDataSetResult.h new file mode 100644 index 000000000..7a4320a6e --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ConfigDataSetResult.h @@ -0,0 +1,112 @@ +/* + * 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 +#include +#include +#include +#include + +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 keywords; + bool inSentence; + }; + std::string type; + Param param; + std::string oid; + }; + std::vector operators; + CheckRange checkRange; + std::string lambda; + std::string cid; + }; + struct RuleBasicInfo + { + int externalProperty; + std::string rid; + std::string lambda; + }; + std::vector rules; + std::vector 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_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/CreateAsrVocabRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/CreateAsrVocabRequest.h index 6ee10904e..335e9025a 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/CreateAsrVocabRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/CreateAsrVocabRequest.h @@ -1,54 +1,48 @@ /* * 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_CREATEASRVOCABREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_CREATEASRVOCABREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT CreateAsrVocabRequest : public RpcServiceRequest - { - - public: - CreateAsrVocabRequest(); - ~CreateAsrVocabRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_CREATEASRVOCABREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_CREATEASRVOCABREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_CREATEASRVOCABREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT CreateAsrVocabRequest : public RpcServiceRequest { +public: + CreateAsrVocabRequest(); + ~CreateAsrVocabRequest(); + 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_CREATEASRVOCABREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/CreateRuleRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/CreateRuleRequest.h new file mode 100644 index 000000000..f950f7e56 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/CreateRuleRequest.h @@ -0,0 +1,48 @@ +/* + * 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 +#include +#include +#include +#include + +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_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/CreateRuleResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/CreateRuleResult.h new file mode 100644 index 000000000..cbd82ef40 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/CreateRuleResult.h @@ -0,0 +1,57 @@ +/* + * 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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/CreateSkillGroupConfigRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/CreateSkillGroupConfigRequest.h index 34f902a47..0ba22424e 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/CreateSkillGroupConfigRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/CreateSkillGroupConfigRequest.h @@ -1,54 +1,48 @@ /* * 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_CREATESKILLGROUPCONFIGREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_CREATESKILLGROUPCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT CreateSkillGroupConfigRequest : public RpcServiceRequest - { - - public: - CreateSkillGroupConfigRequest(); - ~CreateSkillGroupConfigRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_CREATESKILLGROUPCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_CREATESKILLGROUPCONFIGREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_CREATESKILLGROUPCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT CreateSkillGroupConfigRequest : public RpcServiceRequest { +public: + CreateSkillGroupConfigRequest(); + ~CreateSkillGroupConfigRequest(); + 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_CREATESKILLGROUPCONFIGREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/CreateTaskAssignRuleRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/CreateTaskAssignRuleRequest.h index dc699af32..95ebcb9ff 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/CreateTaskAssignRuleRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/CreateTaskAssignRuleRequest.h @@ -1,54 +1,48 @@ /* * 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_CREATETASKASSIGNRULEREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_CREATETASKASSIGNRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT CreateTaskAssignRuleRequest : public RpcServiceRequest - { - - public: - CreateTaskAssignRuleRequest(); - ~CreateTaskAssignRuleRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_CREATETASKASSIGNRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_CREATETASKASSIGNRULEREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_CREATETASKASSIGNRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT CreateTaskAssignRuleRequest : public RpcServiceRequest { +public: + CreateTaskAssignRuleRequest(); + ~CreateTaskAssignRuleRequest(); + 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_CREATETASKASSIGNRULEREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/CreateUserRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/CreateUserRequest.h index be3ef2ba4..918e5aac9 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/CreateUserRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/CreateUserRequest.h @@ -1,54 +1,48 @@ /* * 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_CREATEUSERREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_CREATEUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT CreateUserRequest : public RpcServiceRequest - { - - public: - CreateUserRequest(); - ~CreateUserRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_CREATEUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_CREATEUSERREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_CREATEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT CreateUserRequest : public RpcServiceRequest { +public: + CreateUserRequest(); + ~CreateUserRequest(); + 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_CREATEUSERREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/CreateWarningConfigRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/CreateWarningConfigRequest.h index 90a1871ab..51b9ffae6 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/CreateWarningConfigRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/CreateWarningConfigRequest.h @@ -1,54 +1,48 @@ /* * 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_CREATEWARNINGCONFIGREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_CREATEWARNINGCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT CreateWarningConfigRequest : public RpcServiceRequest - { - - public: - CreateWarningConfigRequest(); - ~CreateWarningConfigRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_CREATEWARNINGCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_CREATEWARNINGCONFIGREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_CREATEWARNINGCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT CreateWarningConfigRequest : public RpcServiceRequest { +public: + CreateWarningConfigRequest(); + ~CreateWarningConfigRequest(); + 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_CREATEWARNINGCONFIGREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/DelRuleCategoryRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/DelRuleCategoryRequest.h index b1920c512..a117600df 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/DelRuleCategoryRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/DelRuleCategoryRequest.h @@ -1,54 +1,48 @@ /* * 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_DELRULECATEGORYREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELRULECATEGORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT DelRuleCategoryRequest : public RpcServiceRequest - { - - public: - DelRuleCategoryRequest(); - ~DelRuleCategoryRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_DELRULECATEGORYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_DELRULECATEGORYREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELRULECATEGORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT DelRuleCategoryRequest : public RpcServiceRequest { +public: + DelRuleCategoryRequest(); + ~DelRuleCategoryRequest(); + 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_DELRULECATEGORYREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/DelThesaurusForApiRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/DelThesaurusForApiRequest.h index 5247c1c52..319af2669 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/DelThesaurusForApiRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/DelThesaurusForApiRequest.h @@ -1,54 +1,48 @@ /* * 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_DELTHESAURUSFORAPIREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELTHESAURUSFORAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT DelThesaurusForApiRequest : public RpcServiceRequest - { - - public: - DelThesaurusForApiRequest(); - ~DelThesaurusForApiRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_DELTHESAURUSFORAPIREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_DELTHESAURUSFORAPIREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELTHESAURUSFORAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT DelThesaurusForApiRequest : public RpcServiceRequest { +public: + DelThesaurusForApiRequest(); + ~DelThesaurusForApiRequest(); + 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_DELTHESAURUSFORAPIREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteAsrVocabRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteAsrVocabRequest.h index d89648134..3838478db 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteAsrVocabRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteAsrVocabRequest.h @@ -1,54 +1,48 @@ /* * 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_DELETEASRVOCABREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEASRVOCABREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteAsrVocabRequest : public RpcServiceRequest - { - - public: - DeleteAsrVocabRequest(); - ~DeleteAsrVocabRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEASRVOCABREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEASRVOCABREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEASRVOCABREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteAsrVocabRequest : public RpcServiceRequest { +public: + DeleteAsrVocabRequest(); + ~DeleteAsrVocabRequest(); + 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_DELETEASRVOCABREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteBusinessCategoryRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteBusinessCategoryRequest.h index e54e97864..ba3aedeb0 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteBusinessCategoryRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteBusinessCategoryRequest.h @@ -1,54 +1,48 @@ /* * 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_DELETEBUSINESSCATEGORYREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEBUSINESSCATEGORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteBusinessCategoryRequest : public RpcServiceRequest - { - - public: - DeleteBusinessCategoryRequest(); - ~DeleteBusinessCategoryRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEBUSINESSCATEGORYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEBUSINESSCATEGORYREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEBUSINESSCATEGORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteBusinessCategoryRequest : public RpcServiceRequest { +public: + DeleteBusinessCategoryRequest(); + ~DeleteBusinessCategoryRequest(); + 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_DELETEBUSINESSCATEGORYREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteCustomizationConfigRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteCustomizationConfigRequest.h index 7f208df73..c73ac0a44 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteCustomizationConfigRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteCustomizationConfigRequest.h @@ -1,54 +1,48 @@ /* * 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_DELETECUSTOMIZATIONCONFIGREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETECUSTOMIZATIONCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteCustomizationConfigRequest : public RpcServiceRequest - { - - public: - DeleteCustomizationConfigRequest(); - ~DeleteCustomizationConfigRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_DELETECUSTOMIZATIONCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_DELETECUSTOMIZATIONCONFIGREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETECUSTOMIZATIONCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteCustomizationConfigRequest : public RpcServiceRequest { +public: + DeleteCustomizationConfigRequest(); + ~DeleteCustomizationConfigRequest(); + 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_DELETECUSTOMIZATIONCONFIGREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteDataSetRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteDataSetRequest.h index c6f32f659..56f42cd8a 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteDataSetRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteDataSetRequest.h @@ -1,54 +1,48 @@ /* * 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_DELETEDATASETREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEDATASETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteDataSetRequest : public RpcServiceRequest - { - - public: - DeleteDataSetRequest(); - ~DeleteDataSetRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEDATASETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEDATASETREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEDATASETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteDataSetRequest : public RpcServiceRequest { +public: + DeleteDataSetRequest(); + ~DeleteDataSetRequest(); + 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_DELETEDATASETREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/DeletePrecisionTaskRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/DeletePrecisionTaskRequest.h index 24ab4983b..2a10f8a5a 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/DeletePrecisionTaskRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/DeletePrecisionTaskRequest.h @@ -1,54 +1,48 @@ /* * 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_DELETEPRECISIONTASKREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEPRECISIONTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT DeletePrecisionTaskRequest : public RpcServiceRequest - { - - public: - DeletePrecisionTaskRequest(); - ~DeletePrecisionTaskRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEPRECISIONTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEPRECISIONTASKREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEPRECISIONTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT DeletePrecisionTaskRequest : public RpcServiceRequest { +public: + DeletePrecisionTaskRequest(); + ~DeletePrecisionTaskRequest(); + 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_DELETEPRECISIONTASKREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteScoreForApiRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteScoreForApiRequest.h index 6efb9270f..0bbeef169 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteScoreForApiRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteScoreForApiRequest.h @@ -1,54 +1,48 @@ /* * 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_DELETESCOREFORAPIREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETESCOREFORAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteScoreForApiRequest : public RpcServiceRequest - { - - public: - DeleteScoreForApiRequest(); - ~DeleteScoreForApiRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_DELETESCOREFORAPIREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_DELETESCOREFORAPIREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETESCOREFORAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteScoreForApiRequest : public RpcServiceRequest { +public: + DeleteScoreForApiRequest(); + ~DeleteScoreForApiRequest(); + 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_DELETESCOREFORAPIREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteSkillGroupConfigRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteSkillGroupConfigRequest.h index 92333872f..5df4396b2 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteSkillGroupConfigRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteSkillGroupConfigRequest.h @@ -1,54 +1,48 @@ /* * 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_DELETESKILLGROUPCONFIGREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETESKILLGROUPCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteSkillGroupConfigRequest : public RpcServiceRequest - { - - public: - DeleteSkillGroupConfigRequest(); - ~DeleteSkillGroupConfigRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_DELETESKILLGROUPCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_DELETESKILLGROUPCONFIGREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETESKILLGROUPCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteSkillGroupConfigRequest : public RpcServiceRequest { +public: + DeleteSkillGroupConfigRequest(); + ~DeleteSkillGroupConfigRequest(); + 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_DELETESKILLGROUPCONFIGREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteSubScoreForApiRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteSubScoreForApiRequest.h index 888070e34..5de4ef94f 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteSubScoreForApiRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteSubScoreForApiRequest.h @@ -1,54 +1,48 @@ /* * 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_DELETESUBSCOREFORAPIREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETESUBSCOREFORAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteSubScoreForApiRequest : public RpcServiceRequest - { - - public: - DeleteSubScoreForApiRequest(); - ~DeleteSubScoreForApiRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_DELETESUBSCOREFORAPIREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_DELETESUBSCOREFORAPIREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETESUBSCOREFORAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteSubScoreForApiRequest : public RpcServiceRequest { +public: + DeleteSubScoreForApiRequest(); + ~DeleteSubScoreForApiRequest(); + 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_DELETESUBSCOREFORAPIREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteTaskAssignRuleRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteTaskAssignRuleRequest.h index 7ab022f4e..bbea33945 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteTaskAssignRuleRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteTaskAssignRuleRequest.h @@ -1,54 +1,48 @@ /* * 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_DELETETASKASSIGNRULEREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETETASKASSIGNRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteTaskAssignRuleRequest : public RpcServiceRequest - { - - public: - DeleteTaskAssignRuleRequest(); - ~DeleteTaskAssignRuleRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_DELETETASKASSIGNRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_DELETETASKASSIGNRULEREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETETASKASSIGNRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteTaskAssignRuleRequest : public RpcServiceRequest { +public: + DeleteTaskAssignRuleRequest(); + ~DeleteTaskAssignRuleRequest(); + 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_DELETETASKASSIGNRULEREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteUserRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteUserRequest.h index 4dd2fc5f0..bc183b950 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteUserRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteUserRequest.h @@ -1,54 +1,48 @@ /* * 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_DELETEUSERREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteUserRequest : public RpcServiceRequest - { - - public: - DeleteUserRequest(); - ~DeleteUserRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEUSERREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteUserRequest : public RpcServiceRequest { +public: + DeleteUserRequest(); + ~DeleteUserRequest(); + 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_DELETEUSERREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteWarningConfigRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteWarningConfigRequest.h index eb8e73466..942d16bf4 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteWarningConfigRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/DeleteWarningConfigRequest.h @@ -1,54 +1,48 @@ /* * 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_DELETEWARNINGCONFIGREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEWARNINGCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteWarningConfigRequest : public RpcServiceRequest - { - - public: - DeleteWarningConfigRequest(); - ~DeleteWarningConfigRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEWARNINGCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEWARNINGCONFIGREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_DELETEWARNINGCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT DeleteWarningConfigRequest : public RpcServiceRequest { +public: + DeleteWarningConfigRequest(); + ~DeleteWarningConfigRequest(); + 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_DELETEWARNINGCONFIGREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/EditThesaurusForApiRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/EditThesaurusForApiRequest.h index efe16b46a..d8b1117ba 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/EditThesaurusForApiRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/EditThesaurusForApiRequest.h @@ -1,54 +1,48 @@ /* * 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_EDITTHESAURUSFORAPIREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_EDITTHESAURUSFORAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT EditThesaurusForApiRequest : public RpcServiceRequest - { - - public: - EditThesaurusForApiRequest(); - ~EditThesaurusForApiRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_EDITTHESAURUSFORAPIREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_EDITTHESAURUSFORAPIREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_EDITTHESAURUSFORAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT EditThesaurusForApiRequest : public RpcServiceRequest { +public: + EditThesaurusForApiRequest(); + ~EditThesaurusForApiRequest(); + 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_EDITTHESAURUSFORAPIREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetAsrVocabRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetAsrVocabRequest.h index c37f5a960..19a0362da 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetAsrVocabRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetAsrVocabRequest.h @@ -1,54 +1,48 @@ /* * 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_GETASRVOCABREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETASRVOCABREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetAsrVocabRequest : public RpcServiceRequest - { - - public: - GetAsrVocabRequest(); - ~GetAsrVocabRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETASRVOCABREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETASRVOCABREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETASRVOCABREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetAsrVocabRequest : public RpcServiceRequest { +public: + GetAsrVocabRequest(); + ~GetAsrVocabRequest(); + 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_GETASRVOCABREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetBusinessCategoryListRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetBusinessCategoryListRequest.h index 912b0e33a..f9084d309 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetBusinessCategoryListRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetBusinessCategoryListRequest.h @@ -1,54 +1,48 @@ /* * 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_GETBUSINESSCATEGORYLISTREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETBUSINESSCATEGORYLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetBusinessCategoryListRequest : public RpcServiceRequest - { - - public: - GetBusinessCategoryListRequest(); - ~GetBusinessCategoryListRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETBUSINESSCATEGORYLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETBUSINESSCATEGORYLISTREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETBUSINESSCATEGORYLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetBusinessCategoryListRequest : public RpcServiceRequest { +public: + GetBusinessCategoryListRequest(); + ~GetBusinessCategoryListRequest(); + 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_GETBUSINESSCATEGORYLISTREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetCustomizationConfigListRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetCustomizationConfigListRequest.h index f6c4ad150..2e7cb87f1 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetCustomizationConfigListRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetCustomizationConfigListRequest.h @@ -1,54 +1,48 @@ /* * 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_GETCUSTOMIZATIONCONFIGLISTREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETCUSTOMIZATIONCONFIGLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetCustomizationConfigListRequest : public RpcServiceRequest - { - - public: - GetCustomizationConfigListRequest(); - ~GetCustomizationConfigListRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETCUSTOMIZATIONCONFIGLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETCUSTOMIZATIONCONFIGLISTREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETCUSTOMIZATIONCONFIGLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetCustomizationConfigListRequest : public RpcServiceRequest { +public: + GetCustomizationConfigListRequest(); + ~GetCustomizationConfigListRequest(); + 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_GETCUSTOMIZATIONCONFIGLISTREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetHitResultRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetHitResultRequest.h index 4b7d13f01..721473463 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetHitResultRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetHitResultRequest.h @@ -1,54 +1,48 @@ /* * 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_GETHITRESULTREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETHITRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetHitResultRequest : public RpcServiceRequest - { - - public: - GetHitResultRequest(); - ~GetHitResultRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETHITRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETHITRESULTREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETHITRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetHitResultRequest : public RpcServiceRequest { +public: + GetHitResultRequest(); + ~GetHitResultRequest(); + 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_GETHITRESULTREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetNextResultToVerifyRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetNextResultToVerifyRequest.h index 05626f340..f8df15622 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetNextResultToVerifyRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetNextResultToVerifyRequest.h @@ -1,54 +1,48 @@ /* * 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_GETNEXTRESULTTOVERIFYREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETNEXTRESULTTOVERIFYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetNextResultToVerifyRequest : public RpcServiceRequest - { - - public: - GetNextResultToVerifyRequest(); - ~GetNextResultToVerifyRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETNEXTRESULTTOVERIFYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETNEXTRESULTTOVERIFYREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETNEXTRESULTTOVERIFYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetNextResultToVerifyRequest : public RpcServiceRequest { +public: + GetNextResultToVerifyRequest(); + ~GetNextResultToVerifyRequest(); + 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_GETNEXTRESULTTOVERIFYREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetNextResultToVerifyResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetNextResultToVerifyResult.h index 5a6191dfb..009c48226 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetNextResultToVerifyResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetNextResultToVerifyResult.h @@ -59,8 +59,8 @@ namespace AlibabaCloud std::string beginTime; std::vector deltas; std::string role; - int silenceDuration; std::string words; + int silenceDuration; long begin; long end; std::string identity; @@ -73,8 +73,8 @@ namespace AlibabaCloud std::string fileName; int verifiedCount; std::string audioScheme; - int duration; int index; + int duration; bool verified; int totalCount; float precision; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetPrecisionTaskRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetPrecisionTaskRequest.h index bc245bcf4..e5ad651ac 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetPrecisionTaskRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetPrecisionTaskRequest.h @@ -1,54 +1,48 @@ /* * 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_GETPRECISIONTASKREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETPRECISIONTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetPrecisionTaskRequest : public RpcServiceRequest - { - - public: - GetPrecisionTaskRequest(); - ~GetPrecisionTaskRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETPRECISIONTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETPRECISIONTASKREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETPRECISIONTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetPrecisionTaskRequest : public RpcServiceRequest { +public: + GetPrecisionTaskRequest(); + ~GetPrecisionTaskRequest(); + 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_GETPRECISIONTASKREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetPrecisionTaskResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetPrecisionTaskResult.h index 2c91599db..8a970380e 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetPrecisionTaskResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetPrecisionTaskResult.h @@ -51,8 +51,8 @@ namespace AlibabaCloud std::vector precisions; long dataSetId; int duration; - int source; std::string dataSetName; + int source; std::string name; }; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultCallbackRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultCallbackRequest.h index 97dd8c493..7430be1b2 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultCallbackRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultCallbackRequest.h @@ -1,54 +1,48 @@ /* * 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_GETRESULTCALLBACKREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRESULTCALLBACKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetResultCallbackRequest : public RpcServiceRequest - { - - public: - GetResultCallbackRequest(); - ~GetResultCallbackRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETRESULTCALLBACKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETRESULTCALLBACKREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRESULTCALLBACKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetResultCallbackRequest : public RpcServiceRequest { +public: + GetResultCallbackRequest(); + ~GetResultCallbackRequest(); + 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_GETRESULTCALLBACKREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultRequest.h index b8e6be78e..d7921c476 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultRequest.h @@ -1,54 +1,48 @@ /* * 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_GETRESULTREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetResultRequest : public RpcServiceRequest - { - - public: - GetResultRequest(); - ~GetResultRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETRESULTREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetResultRequest : public RpcServiceRequest { +public: + GetResultRequest(); + ~GetResultRequest(); + 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_GETRESULTREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultResult.h index fcdb5cfe0..b8e00d60f 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultResult.h @@ -36,12 +36,12 @@ namespace AlibabaCloud { struct Recording { - std::string callee; std::string remark13; + std::string callee; std::string remark11; std::string remark12; - int callType; int dialogueSize; + int callType; std::string url; std::string dataSetName; std::string name; @@ -53,8 +53,8 @@ namespace AlibabaCloud std::string remark3; std::string remark1; std::string remark8; - std::string business; std::string remark9; + std::string business; std::string callId; long duration; std::string caller; @@ -127,8 +127,8 @@ namespace AlibabaCloud std::string reviewer; std::vector hitResult; int score; - std::string taskName; std::string assignmentTime; + std::string taskName; int reviewStatus; std::string lastDataId; std::string reviewTimeLong; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultToReviewRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultToReviewRequest.h index 92352830f..522eec3c5 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultToReviewRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultToReviewRequest.h @@ -1,54 +1,48 @@ /* * 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_GETRESULTTOREVIEWREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRESULTTOREVIEWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetResultToReviewRequest : public RpcServiceRequest - { - - public: - GetResultToReviewRequest(); - ~GetResultToReviewRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETRESULTTOREVIEWREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETRESULTTOREVIEWREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRESULTTOREVIEWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetResultToReviewRequest : public RpcServiceRequest { +public: + GetResultToReviewRequest(); + ~GetResultToReviewRequest(); + 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_GETRESULTTOREVIEWREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultToReviewResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultToReviewResult.h index a8747a229..6f96422e0 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultToReviewResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetResultToReviewResult.h @@ -36,10 +36,10 @@ namespace AlibabaCloud { struct Dialogue { - std::string hourMinSec; std::string role; - int silenceDuration; + std::string hourMinSec; std::string words; + int silenceDuration; long begin; std::string beginTime; long end; @@ -78,8 +78,8 @@ namespace AlibabaCloud std::string role; std::string words; long begin; - long end; int pid; + long end; std::string identity; int emotionValue; }; @@ -138,8 +138,8 @@ namespace AlibabaCloud }; struct ReviewHistory { - std::string operatorName; int type; + std::string operatorName; int score; std::string timeStr; int complainResult; @@ -148,8 +148,8 @@ namespace AlibabaCloud }; int status; std::vector dialogues; - int reviewNumber; std::string comments; + int reviewNumber; std::vector manualScoreInfoList; int businessType; std::string fileMergeName; @@ -159,11 +159,11 @@ namespace AlibabaCloud std::string vid; int hitNumber; std::string fileId; - bool deleted; int totalScore; + bool deleted; std::vector handScoreInfoList; - bool audio; std::string audioURL; + bool audio; }; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetReviewInfoRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetReviewInfoRequest.h new file mode 100644 index 000000000..b67f744a4 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetReviewInfoRequest.h @@ -0,0 +1,48 @@ +/* + * 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 +#include +#include +#include +#include + +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_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetReviewInfoResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetReviewInfoResult.h new file mode 100644 index 000000000..31f093c13 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetReviewInfoResult.h @@ -0,0 +1,147 @@ +/* + * 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 +#include +#include +#include +#include + +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 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 keyWords; + std::vector cid; + }; + std::vector 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 dialogues; + int reviewNumber; + int asrWordsCount; + int businessType; + std::string fileMergeName; + std::vector manualScoreMappingList; + std::vector hitRuleReviewInfoList; + std::string nextVid; + std::string vid; + int hitNumber; + std::string preVid; + int totalScore; + bool deleted; + std::vector 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_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleCategoryRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleCategoryRequest.h index a58e8fa8f..79dc2b65a 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleCategoryRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleCategoryRequest.h @@ -1,54 +1,48 @@ /* * 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_GETRULECATEGORYREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULECATEGORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetRuleCategoryRequest : public RpcServiceRequest - { - - public: - GetRuleCategoryRequest(); - ~GetRuleCategoryRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULECATEGORYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULECATEGORYREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULECATEGORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetRuleCategoryRequest : public RpcServiceRequest { +public: + GetRuleCategoryRequest(); + ~GetRuleCategoryRequest(); + 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_GETRULECATEGORYREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleDetailRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleDetailRequest.h index 0fc58cd6d..f9c861a38 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleDetailRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleDetailRequest.h @@ -1,54 +1,48 @@ /* * 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_GETRULEDETAILREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetRuleDetailRequest : public RpcServiceRequest - { - - public: - GetRuleDetailRequest(); - ~GetRuleDetailRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEDETAILREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetRuleDetailRequest : public RpcServiceRequest { +public: + GetRuleDetailRequest(); + ~GetRuleDetailRequest(); + 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_GETRULEDETAILREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleDetailResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleDetailResult.h index ce07639b2..682adab55 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleDetailResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleDetailResult.h @@ -46,8 +46,8 @@ namespace AlibabaCloud }; struct Range { - int from; int to; + int from; }; std::string role; Anchor anchor; @@ -76,10 +76,9 @@ namespace AlibabaCloud int minWordSize; bool average; std::vector pvalues; - std::string phrase; int from; + std::string phrase; int delayTime; - int maxEmotionChangeValue2; bool keywordExtension; std::string compareOperator; int score; @@ -87,10 +86,9 @@ namespace AlibabaCloud std::vector references; bool contextChatMatch; bool fromEnd; - int checkType1; - int interval; - bool inSentence; int keywordMatchSize; + bool inSentence; + int interval; }; std::string type; std::string operName; @@ -115,6 +113,9 @@ namespace AlibabaCloud std::vector triggers; std::string rid; }; + int pageSize; + int pageNumber; + int count; std::vector rules; std::vector conditions; }; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleDimensionRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleDimensionRequest.h new file mode 100644 index 000000000..1ad82c7b1 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleDimensionRequest.h @@ -0,0 +1,48 @@ +/* + * 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 +#include +#include +#include +#include + +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_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleDimensionResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleDimensionResult.h new file mode 100644 index 000000000..9e2a93daa --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleDimensionResult.h @@ -0,0 +1,92 @@ +/* + * 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 +#include +#include +#include +#include + +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 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 data_; + std::string code_; + bool success_; + int totalSubTaskCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEDIMENSIONRESULT_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleRequest.h index 64a0e97d2..14a56ab6c 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleRequest.h @@ -1,54 +1,48 @@ /* * 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_GETRULEREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetRuleRequest : public RpcServiceRequest - { - - public: - GetRuleRequest(); - ~GetRuleRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetRuleRequest : public RpcServiceRequest { +public: + GetRuleRequest(); + ~GetRuleRequest(); + 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_GETRULEREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleResult.h index 196637153..6e2aa0007 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetRuleResult.h @@ -47,15 +47,15 @@ namespace AlibabaCloud int scoreId; std::string rid; std::string weight; - std::string name; int isOnline; + std::string name; std::string scoreSubName; int type; - std::string lastUpdateTime; std::string lastUpdateEmpid; - std::string ruleLambda; - int isDelete; + std::string lastUpdateTime; int scoreSubId; + int isDelete; + std::string ruleLambda; int autoReview; std::vector businessCategoryNameList; }; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetScoreInfoRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetScoreInfoRequest.h index ea5d75117..49d68589e 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetScoreInfoRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetScoreInfoRequest.h @@ -1,54 +1,48 @@ /* * 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_GETSCOREINFOREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETSCOREINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetScoreInfoRequest : public RpcServiceRequest - { - - public: - GetScoreInfoRequest(); - ~GetScoreInfoRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETSCOREINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETSCOREINFOREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETSCOREINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetScoreInfoRequest : public RpcServiceRequest { +public: + GetScoreInfoRequest(); + ~GetScoreInfoRequest(); + 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_GETSCOREINFOREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetSkillGroupConfigRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetSkillGroupConfigRequest.h index f54882fbc..42127a93a 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetSkillGroupConfigRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetSkillGroupConfigRequest.h @@ -1,54 +1,48 @@ /* * 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_GETSKILLGROUPCONFIGREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETSKILLGROUPCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetSkillGroupConfigRequest : public RpcServiceRequest - { - - public: - GetSkillGroupConfigRequest(); - ~GetSkillGroupConfigRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETSKILLGROUPCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETSKILLGROUPCONFIGREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETSKILLGROUPCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetSkillGroupConfigRequest : public RpcServiceRequest { +public: + GetSkillGroupConfigRequest(); + ~GetSkillGroupConfigRequest(); + 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_GETSKILLGROUPCONFIGREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetSkillGroupConfigResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetSkillGroupConfigResult.h index 491881364..344ea0710 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetSkillGroupConfigResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetSkillGroupConfigResult.h @@ -44,8 +44,8 @@ namespace AlibabaCloud std::string modelName; long vocabId; int qualityCheckType; - std::string instanceId; int allContentQualityCheck; + std::string instanceId; std::string createTime; std::string skillGroupId; std::string rid; @@ -55,8 +55,8 @@ namespace AlibabaCloud std::string skillGroupName; std::string updateTime; long id; - long modelId; std::string allRids; + long modelId; std::vector allRuleList; int skillGroupFrom; }; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetSyncResultRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetSyncResultRequest.h index 3d7fc4cd3..bb406519c 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetSyncResultRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetSyncResultRequest.h @@ -1,48 +1,42 @@ /* * 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_GETSYNCRESULTREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETSYNCRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetSyncResultRequest : public RpcServiceRequest - { - - public: - GetSyncResultRequest(); - ~GetSyncResultRequest(); - - std::string getJsonStr()const; - void setJsonStr(const std::string& jsonStr); - - private: - std::string jsonStr_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETSYNCRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETSYNCRESULTREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETSYNCRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetSyncResultRequest : public RpcServiceRequest { +public: + GetSyncResultRequest(); + ~GetSyncResultRequest(); + std::string getJsonStr() const; + void setJsonStr(const std::string &jsonStr); + +private: + std::string jsonStr_; +}; +} // namespace Model +} // namespace Qualitycheck +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETSYNCRESULTREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetSyncResultResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetSyncResultResult.h index 51d5b76fa..fa88b53c4 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetSyncResultResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetSyncResultResult.h @@ -44,9 +44,10 @@ namespace AlibabaCloud std::string dataSetName; std::string name; std::string remark2; - std::string caller; std::string remark3; + std::string caller; std::string remark1; + long durationAudio; std::string id; std::string callTime; std::string primaryId; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetTaskFileResultListRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetTaskFileResultListRequest.h new file mode 100644 index 000000000..66a685815 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetTaskFileResultListRequest.h @@ -0,0 +1,48 @@ +/* + * 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 +#include +#include +#include +#include + +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_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetTaskFileResultListResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetTaskFileResultListResult.h new file mode 100644 index 000000000..31893c7ed --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetTaskFileResultListResult.h @@ -0,0 +1,84 @@ +/* + * 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 +#include +#include +#include +#include + +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 hitRuleSet; + }; + + + GetTaskFileResultListResult(); + explicit GetTaskFileResultListResult(const std::string &payload); + ~GetTaskFileResultListResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getDataSize()const; + std::vector 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 data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETTASKFILERESULTLISTRESULT_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetTaskRuleListRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetTaskRuleListRequest.h new file mode 100644 index 000000000..372a33078 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetTaskRuleListRequest.h @@ -0,0 +1,48 @@ +/* + * 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 +#include +#include +#include +#include + +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_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetTaskRuleListResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetTaskRuleListResult.h new file mode 100644 index 000000000..45ca92424 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetTaskRuleListResult.h @@ -0,0 +1,92 @@ +/* + * 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 +#include +#include +#include +#include + +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 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 data_; + std::string code_; + bool success_; + int totalSubTaskCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETTASKRULELISTRESULT_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/GetThesaurusBySynonymForApiRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/GetThesaurusBySynonymForApiRequest.h index 0f6f07248..8141f4671 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/GetThesaurusBySynonymForApiRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/GetThesaurusBySynonymForApiRequest.h @@ -1,54 +1,48 @@ /* * 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_GETTHESAURUSBYSYNONYMFORAPIREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETTHESAURUSBYSYNONYMFORAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT GetThesaurusBySynonymForApiRequest : public RpcServiceRequest - { - - public: - GetThesaurusBySynonymForApiRequest(); - ~GetThesaurusBySynonymForApiRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_GETTHESAURUSBYSYNONYMFORAPIREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_GETTHESAURUSBYSYNONYMFORAPIREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_GETTHESAURUSBYSYNONYMFORAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT GetThesaurusBySynonymForApiRequest : public RpcServiceRequest { +public: + GetThesaurusBySynonymForApiRequest(); + ~GetThesaurusBySynonymForApiRequest(); + 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_GETTHESAURUSBYSYNONYMFORAPIREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/HandleComplaintRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/HandleComplaintRequest.h index e27e9e085..35047c81d 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/HandleComplaintRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/HandleComplaintRequest.h @@ -1,54 +1,48 @@ /* * 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_HANDLECOMPLAINTREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_HANDLECOMPLAINTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT HandleComplaintRequest : public RpcServiceRequest - { - - public: - HandleComplaintRequest(); - ~HandleComplaintRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_HANDLECOMPLAINTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_HANDLECOMPLAINTREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_HANDLECOMPLAINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT HandleComplaintRequest : public RpcServiceRequest { +public: + HandleComplaintRequest(); + ~HandleComplaintRequest(); + 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_HANDLECOMPLAINTREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/InsertScoreForApiRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/InsertScoreForApiRequest.h index 0f3ef0c61..ee08597c4 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/InsertScoreForApiRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/InsertScoreForApiRequest.h @@ -1,54 +1,48 @@ /* * 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_INSERTSCOREFORAPIREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_INSERTSCOREFORAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT InsertScoreForApiRequest : public RpcServiceRequest - { - - public: - InsertScoreForApiRequest(); - ~InsertScoreForApiRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_INSERTSCOREFORAPIREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_INSERTSCOREFORAPIREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_INSERTSCOREFORAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT InsertScoreForApiRequest : public RpcServiceRequest { +public: + InsertScoreForApiRequest(); + ~InsertScoreForApiRequest(); + 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_INSERTSCOREFORAPIREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/InsertSubScoreForApiRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/InsertSubScoreForApiRequest.h index e0c76c923..3001ae680 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/InsertSubScoreForApiRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/InsertSubScoreForApiRequest.h @@ -1,54 +1,48 @@ /* * 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_INSERTSUBSCOREFORAPIREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_INSERTSUBSCOREFORAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT InsertSubScoreForApiRequest : public RpcServiceRequest - { - - public: - InsertSubScoreForApiRequest(); - ~InsertSubScoreForApiRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_INSERTSUBSCOREFORAPIREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_INSERTSUBSCOREFORAPIREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_INSERTSUBSCOREFORAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT InsertSubScoreForApiRequest : public RpcServiceRequest { +public: + InsertSubScoreForApiRequest(); + ~InsertSubScoreForApiRequest(); + 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_INSERTSUBSCOREFORAPIREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/InvalidRuleRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/InvalidRuleRequest.h index fcf6e44ee..2d755e394 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/InvalidRuleRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/InvalidRuleRequest.h @@ -1,54 +1,48 @@ /* * 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_INVALIDRULEREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_INVALIDRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT InvalidRuleRequest : public RpcServiceRequest - { - - public: - InvalidRuleRequest(); - ~InvalidRuleRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_INVALIDRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_INVALIDRULEREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_INVALIDRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT InvalidRuleRequest : public RpcServiceRequest { +public: + InvalidRuleRequest(); + ~InvalidRuleRequest(); + 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_INVALIDRULEREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListAsrVocabRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListAsrVocabRequest.h index d6dbd30ca..bf1502b08 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ListAsrVocabRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListAsrVocabRequest.h @@ -1,54 +1,48 @@ /* * 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_LISTASRVOCABREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTASRVOCABREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT ListAsrVocabRequest : public RpcServiceRequest - { - - public: - ListAsrVocabRequest(); - ~ListAsrVocabRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_LISTASRVOCABREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_LISTASRVOCABREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTASRVOCABREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT ListAsrVocabRequest : public RpcServiceRequest { +public: + ListAsrVocabRequest(); + ~ListAsrVocabRequest(); + 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_LISTASRVOCABREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListDataSetTaskRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListDataSetTaskRequest.h new file mode 100644 index 000000000..6165a18e7 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListDataSetTaskRequest.h @@ -0,0 +1,48 @@ +/* + * 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 +#include +#include +#include +#include + +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_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListDataSetTaskResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListDataSetTaskResult.h new file mode 100644 index 000000000..3d0dfd76e --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListDataSetTaskResult.h @@ -0,0 +1,85 @@ +/* + * 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 +#include +#include +#include +#include + +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 ruleNameInfoList; + std::string taskId; + float scheduleRatio; + int ruleSize; + bool taskComplete; + std::vector 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 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 data_; + int isAllcomplete_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_LISTDATASETTASKRESULT_H_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListHotWordsTasksRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListHotWordsTasksRequest.h index 882ba4050..d4db35527 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ListHotWordsTasksRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListHotWordsTasksRequest.h @@ -1,54 +1,48 @@ /* * 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_LISTHOTWORDSTASKSREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTHOTWORDSTASKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT ListHotWordsTasksRequest : public RpcServiceRequest - { - - public: - ListHotWordsTasksRequest(); - ~ListHotWordsTasksRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_LISTHOTWORDSTASKSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_LISTHOTWORDSTASKSREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTHOTWORDSTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT ListHotWordsTasksRequest : public RpcServiceRequest { +public: + ListHotWordsTasksRequest(); + ~ListHotWordsTasksRequest(); + 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_LISTHOTWORDSTASKSREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListHotWordsTasksResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListHotWordsTasksResult.h index b1d956ad4..cef21d0ee 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ListHotWordsTasksResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListHotWordsTasksResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud { int role; long dialogueId; - int startIndex; std::string endTime; + int startIndex; int sourceType; std::string startTime; int endIndex; @@ -52,15 +52,15 @@ namespace AlibabaCloud std::string excludes; }; int status; - int timeInterval; std::string endTime; + int timeInterval; std::string message; std::string startTime; WordsParam wordsParam; DialogueParam dialogueParam; std::string name; - long taskConfigId; int type; + long taskConfigId; int instanceStatus; std::string lastExecutionTime; int timeUnit; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListPrecisionTaskRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListPrecisionTaskRequest.h index 4cb248321..4a3683189 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ListPrecisionTaskRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListPrecisionTaskRequest.h @@ -1,54 +1,48 @@ /* * 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_LISTPRECISIONTASKREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTPRECISIONTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT ListPrecisionTaskRequest : public RpcServiceRequest - { - - public: - ListPrecisionTaskRequest(); - ~ListPrecisionTaskRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_LISTPRECISIONTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_LISTPRECISIONTASKREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTPRECISIONTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT ListPrecisionTaskRequest : public RpcServiceRequest { +public: + ListPrecisionTaskRequest(); + ~ListPrecisionTaskRequest(); + 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_LISTPRECISIONTASKREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListRolesRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListRolesRequest.h index 170c35214..9acbf31e7 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ListRolesRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListRolesRequest.h @@ -1,54 +1,48 @@ /* * 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_LISTROLESREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTROLESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT ListRolesRequest : public RpcServiceRequest - { - - public: - ListRolesRequest(); - ~ListRolesRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_LISTROLESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_LISTROLESREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTROLESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT ListRolesRequest : public RpcServiceRequest { +public: + ListRolesRequest(); + ~ListRolesRequest(); + 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_LISTROLESREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListRulesRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListRulesRequest.h index 6d57c1cdd..7330fb67d 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ListRulesRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListRulesRequest.h @@ -1,54 +1,48 @@ /* * 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_LISTRULESREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT ListRulesRequest : public RpcServiceRequest - { - - public: - ListRulesRequest(); - ~ListRulesRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_LISTRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_LISTRULESREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT ListRulesRequest : public RpcServiceRequest { +public: + ListRulesRequest(); + ~ListRulesRequest(); + 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_LISTRULESREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListSkillGroupConfigRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListSkillGroupConfigRequest.h index f2b68bffd..d36560550 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ListSkillGroupConfigRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListSkillGroupConfigRequest.h @@ -1,54 +1,48 @@ /* * 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_LISTSKILLGROUPCONFIGREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTSKILLGROUPCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT ListSkillGroupConfigRequest : public RpcServiceRequest - { - - public: - ListSkillGroupConfigRequest(); - ~ListSkillGroupConfigRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_LISTSKILLGROUPCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_LISTSKILLGROUPCONFIGREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTSKILLGROUPCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT ListSkillGroupConfigRequest : public RpcServiceRequest { +public: + ListSkillGroupConfigRequest(); + ~ListSkillGroupConfigRequest(); + 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_LISTSKILLGROUPCONFIGREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListSkillGroupConfigResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListSkillGroupConfigResult.h index 780e0b15c..6658e6f06 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ListSkillGroupConfigResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListSkillGroupConfigResult.h @@ -57,8 +57,8 @@ namespace AlibabaCloud std::string modelName; long vocabId; int qualityCheckType; - std::string instanceId; int allContentQualityCheck; + std::string instanceId; std::string createTime; std::string skillGroupId; std::string rid; @@ -69,8 +69,8 @@ namespace AlibabaCloud std::string skillGroupName; std::string updateTime; long id; - long modelId; std::string allRids; + long modelId; std::vector allRuleList; int skillGroupFrom; }; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListTaskAssignRulesRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListTaskAssignRulesRequest.h index 9040d9cca..f7c9913a8 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ListTaskAssignRulesRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListTaskAssignRulesRequest.h @@ -1,54 +1,48 @@ /* * 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_LISTTASKASSIGNRULESREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTTASKASSIGNRULESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT ListTaskAssignRulesRequest : public RpcServiceRequest - { - - public: - ListTaskAssignRulesRequest(); - ~ListTaskAssignRulesRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_LISTTASKASSIGNRULESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_LISTTASKASSIGNRULESREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTTASKASSIGNRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT ListTaskAssignRulesRequest : public RpcServiceRequest { +public: + ListTaskAssignRulesRequest(); + ~ListTaskAssignRulesRequest(); + 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_LISTTASKASSIGNRULESREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListTaskAssignRulesResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListTaskAssignRulesResult.h index 2f5a44337..54a4c0df1 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ListTaskAssignRulesResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListTaskAssignRulesResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud { struct SamplingModeAgent { - std::string agentId; std::string agentName; + std::string agentId; }; int anyNumberOfDraws; int numberOfDraws; @@ -47,13 +47,13 @@ namespace AlibabaCloud bool designated; std::vector samplingModeAgents; int randomInspectionNumber; - int dimension; int limit; + int dimension; }; struct Agent { - std::string agentId; std::string agentName; + std::string agentId; }; struct SkillGroup { @@ -73,8 +73,8 @@ namespace AlibabaCloud SamplingMode samplingMode; long callTimeEnd; int priority; - long ruleId; std::string createTime; + long ruleId; std::vector agents; int callType; std::vector skillGroups; @@ -87,8 +87,8 @@ namespace AlibabaCloud std::string agentsStr; int durationMax; std::vector reviewers; - long callTimeStart; std::string ruleName; + long callTimeStart; }; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListUsersRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListUsersRequest.h index 40397d30c..25ad63a94 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ListUsersRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListUsersRequest.h @@ -1,54 +1,48 @@ /* * 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_LISTUSERSREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTUSERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT ListUsersRequest : public RpcServiceRequest - { - - public: - ListUsersRequest(); - ~ListUsersRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_LISTUSERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_LISTUSERSREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTUSERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT ListUsersRequest : public RpcServiceRequest { +public: + ListUsersRequest(); + ~ListUsersRequest(); + 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_LISTUSERSREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListUsersResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListUsersResult.h index e66db8da9..808a76986 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ListUsersResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListUsersResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct User { std::string roleName; - std::string userName; std::string description; + std::string userName; std::string createTime; std::string displayName; std::string updateTime; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ListWarningConfigRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ListWarningConfigRequest.h index 68ed7ab2d..6ce14b4ee 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/ListWarningConfigRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ListWarningConfigRequest.h @@ -1,54 +1,48 @@ /* * 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_LISTWARNINGCONFIGREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTWARNINGCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT ListWarningConfigRequest : public RpcServiceRequest - { - - public: - ListWarningConfigRequest(); - ~ListWarningConfigRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_LISTWARNINGCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_LISTWARNINGCONFIGREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_LISTWARNINGCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT ListWarningConfigRequest : public RpcServiceRequest { +public: + ListWarningConfigRequest(); + ~ListWarningConfigRequest(); + 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_LISTWARNINGCONFIGREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/RemoveAndGetTaskRulesRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/RemoveAndGetTaskRulesRequest.h new file mode 100644 index 000000000..c720aee3e --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/RemoveAndGetTaskRulesRequest.h @@ -0,0 +1,48 @@ +/* + * 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 +#include +#include +#include +#include + +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_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/RemoveAndGetTaskRulesResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/RemoveAndGetTaskRulesResult.h new file mode 100644 index 000000000..16baa2d12 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/RemoveAndGetTaskRulesResult.h @@ -0,0 +1,55 @@ +/* + * 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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/RestartAsrTaskRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/RestartAsrTaskRequest.h index c6198d36d..3371bf722 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/RestartAsrTaskRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/RestartAsrTaskRequest.h @@ -1,54 +1,48 @@ /* * 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_RESTARTASRTASKREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_RESTARTASRTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT RestartAsrTaskRequest : public RpcServiceRequest - { - - public: - RestartAsrTaskRequest(); - ~RestartAsrTaskRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_RESTARTASRTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_RESTARTASRTASKREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_RESTARTASRTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT RestartAsrTaskRequest : public RpcServiceRequest { +public: + RestartAsrTaskRequest(); + ~RestartAsrTaskRequest(); + 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_RESTARTASRTASKREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ReviewSingleResultByIdRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ReviewSingleResultByIdRequest.h new file mode 100644 index 000000000..604c10c59 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ReviewSingleResultByIdRequest.h @@ -0,0 +1,48 @@ +/* + * 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_REVIEWSINGLERESULTBYIDREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_REVIEWSINGLERESULTBYIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT ReviewSingleResultByIdRequest : public RpcServiceRequest { +public: + ReviewSingleResultByIdRequest(); + ~ReviewSingleResultByIdRequest(); + 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_REVIEWSINGLERESULTBYIDREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/ReviewSingleResultByIdResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/ReviewSingleResultByIdResult.h new file mode 100644 index 000000000..3c85c59ae --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/ReviewSingleResultByIdResult.h @@ -0,0 +1,148 @@ +/* + * 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 +#include +#include +#include +#include + +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 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 keyWords; + std::vector cid; + }; + std::vector 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 dialogues; + int reviewNumber; + int asrWordsCount; + int businessType; + std::string fileMergeName; + std::vector manualScoreMappingList; + std::vector hitRuleReviewInfoList; + std::string nextVid; + int vid; + int hitNumber; + std::string preVid; + int totalScore; + bool deleted; + std::vector 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_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/SaveConfigDataSetRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/SaveConfigDataSetRequest.h index c3e6d2894..84d50d033 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/SaveConfigDataSetRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/SaveConfigDataSetRequest.h @@ -1,54 +1,48 @@ /* * 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_SAVECONFIGDATASETREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_SAVECONFIGDATASETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT SaveConfigDataSetRequest : public RpcServiceRequest - { - - public: - SaveConfigDataSetRequest(); - ~SaveConfigDataSetRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_SAVECONFIGDATASETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_SAVECONFIGDATASETREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_SAVECONFIGDATASETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT SaveConfigDataSetRequest : public RpcServiceRequest { +public: + SaveConfigDataSetRequest(); + ~SaveConfigDataSetRequest(); + 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_SAVECONFIGDATASETREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitComplaintRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitComplaintRequest.h index 0b2942939..64dd85434 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitComplaintRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitComplaintRequest.h @@ -1,54 +1,48 @@ /* * 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_SUBMITCOMPLAINTREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITCOMPLAINTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT SubmitComplaintRequest : public RpcServiceRequest - { - - public: - SubmitComplaintRequest(); - ~SubmitComplaintRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITCOMPLAINTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITCOMPLAINTREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITCOMPLAINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT SubmitComplaintRequest : public RpcServiceRequest { +public: + SubmitComplaintRequest(); + ~SubmitComplaintRequest(); + 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_SUBMITCOMPLAINTREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitCustomizationConfigRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitCustomizationConfigRequest.h new file mode 100644 index 000000000..db6b2884e --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitCustomizationConfigRequest.h @@ -0,0 +1,48 @@ +/* + * 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 +#include +#include +#include +#include + +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_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitCustomizationConfigResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitCustomizationConfigResult.h new file mode 100644 index 000000000..915ca3221 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitCustomizationConfigResult.h @@ -0,0 +1,64 @@ +/* + * 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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitPrecisionTaskRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitPrecisionTaskRequest.h index e05f6773a..f11ac793d 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitPrecisionTaskRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitPrecisionTaskRequest.h @@ -1,54 +1,48 @@ /* * 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_SUBMITPRECISIONTASKREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITPRECISIONTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT SubmitPrecisionTaskRequest : public RpcServiceRequest - { - - public: - SubmitPrecisionTaskRequest(); - ~SubmitPrecisionTaskRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITPRECISIONTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITPRECISIONTASKREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITPRECISIONTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT SubmitPrecisionTaskRequest : public RpcServiceRequest { +public: + SubmitPrecisionTaskRequest(); + ~SubmitPrecisionTaskRequest(); + 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_SUBMITPRECISIONTASKREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitQualityCheckTaskRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitQualityCheckTaskRequest.h index cc9fb88ee..61a78890b 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitQualityCheckTaskRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitQualityCheckTaskRequest.h @@ -1,54 +1,48 @@ /* * 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_SUBMITQUALITYCHECKTASKREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITQUALITYCHECKTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT SubmitQualityCheckTaskRequest : public RpcServiceRequest - { - - public: - SubmitQualityCheckTaskRequest(); - ~SubmitQualityCheckTaskRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITQUALITYCHECKTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITQUALITYCHECKTASKREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITQUALITYCHECKTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT SubmitQualityCheckTaskRequest : public RpcServiceRequest { +public: + SubmitQualityCheckTaskRequest(); + ~SubmitQualityCheckTaskRequest(); + 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_SUBMITQUALITYCHECKTASKREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitReviewInfoRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitReviewInfoRequest.h index c0393f370..966230964 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitReviewInfoRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/SubmitReviewInfoRequest.h @@ -1,54 +1,48 @@ /* * 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_SUBMITREVIEWINFOREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITREVIEWINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT SubmitReviewInfoRequest : public RpcServiceRequest - { - - public: - SubmitReviewInfoRequest(); - ~SubmitReviewInfoRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITREVIEWINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITREVIEWINFOREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_SUBMITREVIEWINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT SubmitReviewInfoRequest : public RpcServiceRequest { +public: + SubmitReviewInfoRequest(); + ~SubmitReviewInfoRequest(); + 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_SUBMITREVIEWINFOREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/SyncQualityCheckRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/SyncQualityCheckRequest.h index 773f2bf49..c9ad6f324 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/SyncQualityCheckRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/SyncQualityCheckRequest.h @@ -1,54 +1,48 @@ /* * 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_SYNCQUALITYCHECKREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_SYNCQUALITYCHECKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT SyncQualityCheckRequest : public RpcServiceRequest - { - - public: - SyncQualityCheckRequest(); - ~SyncQualityCheckRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_SYNCQUALITYCHECKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_SYNCQUALITYCHECKREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_SYNCQUALITYCHECKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT SyncQualityCheckRequest : public RpcServiceRequest { +public: + SyncQualityCheckRequest(); + ~SyncQualityCheckRequest(); + 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_SYNCQUALITYCHECKREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/SyncQualityCheckResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/SyncQualityCheckResult.h index f385676a0..ea028ffe2 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/SyncQualityCheckResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/SyncQualityCheckResult.h @@ -53,8 +53,8 @@ namespace AlibabaCloud { std::string val; int pid; - int from; int to; + int from; int cid; }; std::vector hitKeyWords; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/TestRuleRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/TestRuleRequest.h new file mode 100644 index 000000000..5637b9eca --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/TestRuleRequest.h @@ -0,0 +1,48 @@ +/* + * 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 +#include +#include +#include +#include + +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_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/TestRuleResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/TestRuleResult.h new file mode 100644 index 000000000..6ac0156f9 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/TestRuleResult.h @@ -0,0 +1,91 @@ +/* + * 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 +#include +#include +#include +#include + +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 keyWords; + std::vector cid; + }; + std::vector conditionHitInfoList; + long rid; + }; + bool poc; + std::vector 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_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateAsrVocabRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateAsrVocabRequest.h index 4e31bbcc9..11fac4d3d 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateAsrVocabRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateAsrVocabRequest.h @@ -1,54 +1,48 @@ /* * 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_UPDATEASRVOCABREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEASRVOCABREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateAsrVocabRequest : public RpcServiceRequest - { - - public: - UpdateAsrVocabRequest(); - ~UpdateAsrVocabRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEASRVOCABREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEASRVOCABREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEASRVOCABREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateAsrVocabRequest : public RpcServiceRequest { +public: + UpdateAsrVocabRequest(); + ~UpdateAsrVocabRequest(); + 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_UPDATEASRVOCABREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateOnPurchaseSuccessRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateOnPurchaseSuccessRequest.h new file mode 100644 index 000000000..31b983e67 --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateOnPurchaseSuccessRequest.h @@ -0,0 +1,48 @@ +/* + * 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 +#include +#include +#include +#include + +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_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateOnPurchaseSuccessResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateOnPurchaseSuccessResult.h new file mode 100644 index 000000000..f269e19ed --- /dev/null +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateOnPurchaseSuccessResult.h @@ -0,0 +1,57 @@ +/* + * 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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateRuleRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateRuleRequest.h index 32c427d88..60ec9ac20 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateRuleRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateRuleRequest.h @@ -1,54 +1,48 @@ /* * 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_UPDATERULEREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATERULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateRuleRequest : public RpcServiceRequest - { - - public: - UpdateRuleRequest(); - ~UpdateRuleRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATERULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATERULEREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATERULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateRuleRequest : public RpcServiceRequest { +public: + UpdateRuleRequest(); + ~UpdateRuleRequest(); + 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_UPDATERULEREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateScoreForApiRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateScoreForApiRequest.h index 79db94fe5..1faa7c4b1 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateScoreForApiRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateScoreForApiRequest.h @@ -1,54 +1,48 @@ /* * 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_UPDATESCOREFORAPIREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESCOREFORAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateScoreForApiRequest : public RpcServiceRequest - { - - public: - UpdateScoreForApiRequest(); - ~UpdateScoreForApiRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESCOREFORAPIREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESCOREFORAPIREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESCOREFORAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateScoreForApiRequest : public RpcServiceRequest { +public: + UpdateScoreForApiRequest(); + ~UpdateScoreForApiRequest(); + 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_UPDATESCOREFORAPIREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateSkillGroupConfigRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateSkillGroupConfigRequest.h index 96a36ae6a..f26dfffee 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateSkillGroupConfigRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateSkillGroupConfigRequest.h @@ -1,54 +1,48 @@ /* * 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_UPDATESKILLGROUPCONFIGREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESKILLGROUPCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateSkillGroupConfigRequest : public RpcServiceRequest - { - - public: - UpdateSkillGroupConfigRequest(); - ~UpdateSkillGroupConfigRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESKILLGROUPCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESKILLGROUPCONFIGREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESKILLGROUPCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateSkillGroupConfigRequest : public RpcServiceRequest { +public: + UpdateSkillGroupConfigRequest(); + ~UpdateSkillGroupConfigRequest(); + 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_UPDATESKILLGROUPCONFIGREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateSubScoreForApiRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateSubScoreForApiRequest.h index 447e780ff..e5bba6484 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateSubScoreForApiRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateSubScoreForApiRequest.h @@ -1,54 +1,48 @@ /* * 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_UPDATESUBSCOREFORAPIREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESUBSCOREFORAPIREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateSubScoreForApiRequest : public RpcServiceRequest - { - - public: - UpdateSubScoreForApiRequest(); - ~UpdateSubScoreForApiRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESUBSCOREFORAPIREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESUBSCOREFORAPIREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESUBSCOREFORAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateSubScoreForApiRequest : public RpcServiceRequest { +public: + UpdateSubScoreForApiRequest(); + ~UpdateSubScoreForApiRequest(); + 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_UPDATESUBSCOREFORAPIREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateSyncQualityCheckDataRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateSyncQualityCheckDataRequest.h index 77243ba2c..67b974fc9 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateSyncQualityCheckDataRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateSyncQualityCheckDataRequest.h @@ -1,54 +1,48 @@ /* * 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_UPDATESYNCQUALITYCHECKDATAREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESYNCQUALITYCHECKDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateSyncQualityCheckDataRequest : public RpcServiceRequest - { - - public: - UpdateSyncQualityCheckDataRequest(); - ~UpdateSyncQualityCheckDataRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESYNCQUALITYCHECKDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESYNCQUALITYCHECKDATAREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATESYNCQUALITYCHECKDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateSyncQualityCheckDataRequest : public RpcServiceRequest { +public: + UpdateSyncQualityCheckDataRequest(); + ~UpdateSyncQualityCheckDataRequest(); + 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_UPDATESYNCQUALITYCHECKDATAREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateTaskAssignRuleRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateTaskAssignRuleRequest.h index 3090ce838..d09d0cf1f 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateTaskAssignRuleRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateTaskAssignRuleRequest.h @@ -1,54 +1,48 @@ /* * 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_UPDATETASKASSIGNRULEREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATETASKASSIGNRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateTaskAssignRuleRequest : public RpcServiceRequest - { - - public: - UpdateTaskAssignRuleRequest(); - ~UpdateTaskAssignRuleRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATETASKASSIGNRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATETASKASSIGNRULEREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATETASKASSIGNRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateTaskAssignRuleRequest : public RpcServiceRequest { +public: + UpdateTaskAssignRuleRequest(); + ~UpdateTaskAssignRuleRequest(); + 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_UPDATETASKASSIGNRULEREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateUserConfigRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateUserConfigRequest.h index 1b19bb646..86f80e97d 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateUserConfigRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateUserConfigRequest.h @@ -1,54 +1,48 @@ /* * 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_UPDATEUSERCONFIGREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEUSERCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateUserConfigRequest : public RpcServiceRequest - { - - public: - UpdateUserConfigRequest(); - ~UpdateUserConfigRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEUSERCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEUSERCONFIGREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEUSERCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateUserConfigRequest : public RpcServiceRequest { +public: + UpdateUserConfigRequest(); + ~UpdateUserConfigRequest(); + 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_UPDATEUSERCONFIGREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateUserRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateUserRequest.h index f51534460..86a38e690 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateUserRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateUserRequest.h @@ -1,54 +1,48 @@ /* * 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_UPDATEUSERREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEUSERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateUserRequest : public RpcServiceRequest - { - - public: - UpdateUserRequest(); - ~UpdateUserRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEUSERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEUSERREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateUserRequest : public RpcServiceRequest { +public: + UpdateUserRequest(); + ~UpdateUserRequest(); + 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_UPDATEUSERREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateWarningConfigRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateWarningConfigRequest.h index a1ea44cdf..88df3d430 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateWarningConfigRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UpdateWarningConfigRequest.h @@ -1,54 +1,48 @@ /* * 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_UPDATEWARNINGCONFIGREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEWARNINGCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateWarningConfigRequest : public RpcServiceRequest - { - - public: - UpdateWarningConfigRequest(); - ~UpdateWarningConfigRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEWARNINGCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEWARNINGCONFIGREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPDATEWARNINGCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT UpdateWarningConfigRequest : public RpcServiceRequest { +public: + UpdateWarningConfigRequest(); + ~UpdateWarningConfigRequest(); + 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_UPDATEWARNINGCONFIGREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UploadAudioDataRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UploadAudioDataRequest.h index 8df01f1b9..7d290be00 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UploadAudioDataRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UploadAudioDataRequest.h @@ -1,54 +1,48 @@ /* * 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_UPLOADAUDIODATAREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADAUDIODATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UploadAudioDataRequest : public RpcServiceRequest - { - - public: - UploadAudioDataRequest(); - ~UploadAudioDataRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADAUDIODATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADAUDIODATAREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADAUDIODATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT UploadAudioDataRequest : public RpcServiceRequest { +public: + UploadAudioDataRequest(); + ~UploadAudioDataRequest(); + 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_UPLOADAUDIODATAREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UploadDataRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UploadDataRequest.h index 90a60de83..c84c8f85a 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UploadDataRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UploadDataRequest.h @@ -1,54 +1,48 @@ /* * 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_UPLOADDATAREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UploadDataRequest : public RpcServiceRequest - { - - public: - UploadDataRequest(); - ~UploadDataRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADDATAREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT UploadDataRequest : public RpcServiceRequest { +public: + UploadDataRequest(); + ~UploadDataRequest(); + 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_UPLOADDATAREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UploadDataSyncRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UploadDataSyncRequest.h index 042da4fb9..63b902bbe 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UploadDataSyncRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UploadDataSyncRequest.h @@ -1,54 +1,48 @@ /* * 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_UPLOADDATASYNCREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADDATASYNCREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UploadDataSyncRequest : public RpcServiceRequest - { - - public: - UploadDataSyncRequest(); - ~UploadDataSyncRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADDATASYNCREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADDATASYNCREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADDATASYNCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT UploadDataSyncRequest : public RpcServiceRequest { +public: + UploadDataSyncRequest(); + ~UploadDataSyncRequest(); + 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_UPLOADDATASYNCREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UploadDataSyncResult.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UploadDataSyncResult.h index 7bad4eb71..7dfd93184 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UploadDataSyncResult.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UploadDataSyncResult.h @@ -51,8 +51,8 @@ namespace AlibabaCloud { std::string val; int pid; - int from; int to; + int from; std::string tid; }; std::vector hitKeyWords; diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/UploadRuleRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/UploadRuleRequest.h index d1cdef695..b8a2536a3 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/UploadRuleRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/UploadRuleRequest.h @@ -1,54 +1,48 @@ /* * 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_UPLOADRULEREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT UploadRuleRequest : public RpcServiceRequest - { - - public: - UploadRuleRequest(); - ~UploadRuleRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADRULEREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_UPLOADRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT UploadRuleRequest : public RpcServiceRequest { +public: + UploadRuleRequest(); + ~UploadRuleRequest(); + 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_UPLOADRULEREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/VerifyFileRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/VerifyFileRequest.h index e69281dad..4743d1f03 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/VerifyFileRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/VerifyFileRequest.h @@ -1,54 +1,48 @@ /* * 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_VERIFYFILEREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_VERIFYFILEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT VerifyFileRequest : public RpcServiceRequest - { - - public: - VerifyFileRequest(); - ~VerifyFileRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_VERIFYFILEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_VERIFYFILEREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_VERIFYFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT VerifyFileRequest : public RpcServiceRequest { +public: + VerifyFileRequest(); + ~VerifyFileRequest(); + 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_VERIFYFILEREQUEST_H_ diff --git a/qualitycheck/include/alibabacloud/qualitycheck/model/VerifySentenceRequest.h b/qualitycheck/include/alibabacloud/qualitycheck/model/VerifySentenceRequest.h index a7d9f9aa9..a449fcc78 100644 --- a/qualitycheck/include/alibabacloud/qualitycheck/model/VerifySentenceRequest.h +++ b/qualitycheck/include/alibabacloud/qualitycheck/model/VerifySentenceRequest.h @@ -1,54 +1,48 @@ /* * 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_VERIFYSENTENCEREQUEST_H_ -#define ALIBABACLOUD_QUALITYCHECK_MODEL_VERIFYSENTENCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Qualitycheck - { - namespace Model - { - class ALIBABACLOUD_QUALITYCHECK_EXPORT VerifySentenceRequest : public RpcServiceRequest - { - - public: - VerifySentenceRequest(); - ~VerifySentenceRequest(); - - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_QUALITYCHECK_MODEL_VERIFYSENTENCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_QUALITYCHECK_MODEL_VERIFYSENTENCEREQUEST_H_ +#define ALIBABACLOUD_QUALITYCHECK_MODEL_VERIFYSENTENCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Qualitycheck { +namespace Model { +class ALIBABACLOUD_QUALITYCHECK_EXPORT VerifySentenceRequest : public RpcServiceRequest { +public: + VerifySentenceRequest(); + ~VerifySentenceRequest(); + 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_VERIFYSENTENCEREQUEST_H_ diff --git a/qualitycheck/src/QualitycheckClient.cc b/qualitycheck/src/QualitycheckClient.cc index 8205ee80a..123b167d2 100644 --- a/qualitycheck/src/QualitycheckClient.cc +++ b/qualitycheck/src/QualitycheckClient.cc @@ -159,6 +159,42 @@ QualitycheckClient::AddThesaurusForApiOutcomeCallable QualitycheckClient::addThe return task->get_future(); } +QualitycheckClient::AddUploadDataSetOutcome QualitycheckClient::addUploadDataSet(const AddUploadDataSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddUploadDataSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddUploadDataSetOutcome(AddUploadDataSetResult(outcome.result())); + else + return AddUploadDataSetOutcome(outcome.error()); +} + +void QualitycheckClient::addUploadDataSetAsync(const AddUploadDataSetRequest& request, const AddUploadDataSetAsyncHandler& handler, const std::shared_ptr& 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>( + [this, request]() + { + return this->addUploadDataSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + QualitycheckClient::AssignReviewerOutcome QualitycheckClient::assignReviewer(const AssignReviewerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,6 +231,42 @@ QualitycheckClient::AssignReviewerOutcomeCallable QualitycheckClient::assignRevi return task->get_future(); } +QualitycheckClient::ConfigDataSetOutcome QualitycheckClient::configDataSet(const ConfigDataSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ConfigDataSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConfigDataSetOutcome(ConfigDataSetResult(outcome.result())); + else + return ConfigDataSetOutcome(outcome.error()); +} + +void QualitycheckClient::configDataSetAsync(const ConfigDataSetRequest& request, const ConfigDataSetAsyncHandler& handler, const std::shared_ptr& 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>( + [this, request]() + { + return this->configDataSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + QualitycheckClient::CreateAsrVocabOutcome QualitycheckClient::createAsrVocab(const CreateAsrVocabRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,6 +303,42 @@ QualitycheckClient::CreateAsrVocabOutcomeCallable QualitycheckClient::createAsrV return task->get_future(); } +QualitycheckClient::CreateRuleOutcome QualitycheckClient::createRule(const CreateRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRuleOutcome(CreateRuleResult(outcome.result())); + else + return CreateRuleOutcome(outcome.error()); +} + +void QualitycheckClient::createRuleAsync(const CreateRuleRequest& request, const CreateRuleAsyncHandler& handler, const std::shared_ptr& 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>( + [this, request]() + { + return this->createRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + QualitycheckClient::CreateSkillGroupConfigOutcome QualitycheckClient::createSkillGroupConfig(const CreateSkillGroupConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,6 +1311,42 @@ QualitycheckClient::GetResultToReviewOutcomeCallable QualitycheckClient::getResu return task->get_future(); } +QualitycheckClient::GetReviewInfoOutcome QualitycheckClient::getReviewInfo(const GetReviewInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetReviewInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetReviewInfoOutcome(GetReviewInfoResult(outcome.result())); + else + return GetReviewInfoOutcome(outcome.error()); +} + +void QualitycheckClient::getReviewInfoAsync(const GetReviewInfoRequest& request, const GetReviewInfoAsyncHandler& handler, const std::shared_ptr& 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>( + [this, request]() + { + return this->getReviewInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + QualitycheckClient::GetRuleOutcome QualitycheckClient::getRule(const GetRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +1455,42 @@ QualitycheckClient::GetRuleDetailOutcomeCallable QualitycheckClient::getRuleDeta return task->get_future(); } +QualitycheckClient::GetRuleDimensionOutcome QualitycheckClient::getRuleDimension(const GetRuleDimensionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetRuleDimensionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetRuleDimensionOutcome(GetRuleDimensionResult(outcome.result())); + else + return GetRuleDimensionOutcome(outcome.error()); +} + +void QualitycheckClient::getRuleDimensionAsync(const GetRuleDimensionRequest& request, const GetRuleDimensionAsyncHandler& handler, const std::shared_ptr& 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>( + [this, request]() + { + return this->getRuleDimension(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + QualitycheckClient::GetScoreInfoOutcome QualitycheckClient::getScoreInfo(const GetScoreInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,6 +1599,78 @@ QualitycheckClient::GetSyncResultOutcomeCallable QualitycheckClient::getSyncResu return task->get_future(); } +QualitycheckClient::GetTaskFileResultListOutcome QualitycheckClient::getTaskFileResultList(const GetTaskFileResultListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTaskFileResultListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTaskFileResultListOutcome(GetTaskFileResultListResult(outcome.result())); + else + return GetTaskFileResultListOutcome(outcome.error()); +} + +void QualitycheckClient::getTaskFileResultListAsync(const GetTaskFileResultListRequest& request, const GetTaskFileResultListAsyncHandler& handler, const std::shared_ptr& 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>( + [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& 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>( + [this, request]() + { + return this->getTaskRuleList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + QualitycheckClient::GetThesaurusBySynonymForApiOutcome QualitycheckClient::getThesaurusBySynonymForApi(const GetThesaurusBySynonymForApiRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,6 +1887,42 @@ QualitycheckClient::ListAsrVocabOutcomeCallable QualitycheckClient::listAsrVocab return task->get_future(); } +QualitycheckClient::ListDataSetTaskOutcome QualitycheckClient::listDataSetTask(const ListDataSetTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDataSetTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDataSetTaskOutcome(ListDataSetTaskResult(outcome.result())); + else + return ListDataSetTaskOutcome(outcome.error()); +} + +void QualitycheckClient::listDataSetTaskAsync(const ListDataSetTaskRequest& request, const ListDataSetTaskAsyncHandler& handler, const std::shared_ptr& 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>( + [this, request]() + { + return this->listDataSetTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + QualitycheckClient::ListHotWordsTasksOutcome QualitycheckClient::listHotWordsTasks(const ListHotWordsTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1923,6 +2211,42 @@ QualitycheckClient::ListWarningConfigOutcomeCallable QualitycheckClient::listWar return task->get_future(); } +QualitycheckClient::RemoveAndGetTaskRulesOutcome QualitycheckClient::removeAndGetTaskRules(const RemoveAndGetTaskRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveAndGetTaskRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveAndGetTaskRulesOutcome(RemoveAndGetTaskRulesResult(outcome.result())); + else + return RemoveAndGetTaskRulesOutcome(outcome.error()); +} + +void QualitycheckClient::removeAndGetTaskRulesAsync(const RemoveAndGetTaskRulesRequest& request, const RemoveAndGetTaskRulesAsyncHandler& handler, const std::shared_ptr& 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>( + [this, request]() + { + return this->removeAndGetTaskRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + QualitycheckClient::RestartAsrTaskOutcome QualitycheckClient::restartAsrTask(const RestartAsrTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1959,6 +2283,42 @@ QualitycheckClient::RestartAsrTaskOutcomeCallable QualitycheckClient::restartAsr return task->get_future(); } +QualitycheckClient::ReviewSingleResultByIdOutcome QualitycheckClient::reviewSingleResultById(const ReviewSingleResultByIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReviewSingleResultByIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReviewSingleResultByIdOutcome(ReviewSingleResultByIdResult(outcome.result())); + else + return ReviewSingleResultByIdOutcome(outcome.error()); +} + +void QualitycheckClient::reviewSingleResultByIdAsync(const ReviewSingleResultByIdRequest& request, const ReviewSingleResultByIdAsyncHandler& handler, const std::shared_ptr& 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>( + [this, request]() + { + return this->reviewSingleResultById(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + QualitycheckClient::SaveConfigDataSetOutcome QualitycheckClient::saveConfigDataSet(const SaveConfigDataSetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2031,6 +2391,42 @@ QualitycheckClient::SubmitComplaintOutcomeCallable QualitycheckClient::submitCom return task->get_future(); } +QualitycheckClient::SubmitCustomizationConfigOutcome QualitycheckClient::submitCustomizationConfig(const SubmitCustomizationConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitCustomizationConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitCustomizationConfigOutcome(SubmitCustomizationConfigResult(outcome.result())); + else + return SubmitCustomizationConfigOutcome(outcome.error()); +} + +void QualitycheckClient::submitCustomizationConfigAsync(const SubmitCustomizationConfigRequest& request, const SubmitCustomizationConfigAsyncHandler& handler, const std::shared_ptr& 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>( + [this, request]() + { + return this->submitCustomizationConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + QualitycheckClient::SubmitPrecisionTaskOutcome QualitycheckClient::submitPrecisionTask(const SubmitPrecisionTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2175,6 +2571,42 @@ QualitycheckClient::SyncQualityCheckOutcomeCallable QualitycheckClient::syncQual return task->get_future(); } +QualitycheckClient::TestRuleOutcome QualitycheckClient::testRule(const TestRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TestRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TestRuleOutcome(TestRuleResult(outcome.result())); + else + return TestRuleOutcome(outcome.error()); +} + +void QualitycheckClient::testRuleAsync(const TestRuleRequest& request, const TestRuleAsyncHandler& handler, const std::shared_ptr& 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>( + [this, request]() + { + return this->testRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + QualitycheckClient::UpdateAsrVocabOutcome QualitycheckClient::updateAsrVocab(const UpdateAsrVocabRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2211,6 +2643,42 @@ QualitycheckClient::UpdateAsrVocabOutcomeCallable QualitycheckClient::updateAsrV return task->get_future(); } +QualitycheckClient::UpdateOnPurchaseSuccessOutcome QualitycheckClient::updateOnPurchaseSuccess(const UpdateOnPurchaseSuccessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateOnPurchaseSuccessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateOnPurchaseSuccessOutcome(UpdateOnPurchaseSuccessResult(outcome.result())); + else + return UpdateOnPurchaseSuccessOutcome(outcome.error()); +} + +void QualitycheckClient::updateOnPurchaseSuccessAsync(const UpdateOnPurchaseSuccessRequest& request, const UpdateOnPurchaseSuccessAsyncHandler& handler, const std::shared_ptr& 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>( + [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(); diff --git a/qualitycheck/src/model/AddBusinessCategoryRequest.cc b/qualitycheck/src/model/AddBusinessCategoryRequest.cc index aaf8360a3..fc79f2004 100644 --- a/qualitycheck/src/model/AddBusinessCategoryRequest.cc +++ b/qualitycheck/src/model/AddBusinessCategoryRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::AddBusinessCategoryRequest; - -AddBusinessCategoryRequest::AddBusinessCategoryRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "AddBusinessCategory") -{ - setMethod(HttpRequest::Method::Post); -} - -AddBusinessCategoryRequest::~AddBusinessCategoryRequest() -{} - -long AddBusinessCategoryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::AddBusinessCategoryRequest; + +AddBusinessCategoryRequest::AddBusinessCategoryRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "AddBusinessCategory") { + setMethod(HttpRequest::Method::Post); } -void AddBusinessCategoryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddBusinessCategoryRequest::~AddBusinessCategoryRequest() {} + +long AddBusinessCategoryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddBusinessCategoryRequest::getJsonStr()const -{ - return jsonStr_; +void AddBusinessCategoryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddBusinessCategoryRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string AddBusinessCategoryRequest::getJsonStr() const { + return jsonStr_; } -std::string AddBusinessCategoryRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddBusinessCategoryRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void AddBusinessCategoryRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddBusinessCategoryRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AddBusinessCategoryRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/AddBusinessCategoryResult.cc b/qualitycheck/src/model/AddBusinessCategoryResult.cc index 13b383228..7dacab3ec 100644 --- a/qualitycheck/src/model/AddBusinessCategoryResult.cc +++ b/qualitycheck/src/model/AddBusinessCategoryResult.cc @@ -39,14 +39,14 @@ void AddBusinessCategoryResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/AddRuleCategoryRequest.cc b/qualitycheck/src/model/AddRuleCategoryRequest.cc index 2679787cb..506e8518d 100644 --- a/qualitycheck/src/model/AddRuleCategoryRequest.cc +++ b/qualitycheck/src/model/AddRuleCategoryRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::AddRuleCategoryRequest; - -AddRuleCategoryRequest::AddRuleCategoryRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "AddRuleCategory") -{ - setMethod(HttpRequest::Method::Post); -} - -AddRuleCategoryRequest::~AddRuleCategoryRequest() -{} - -long AddRuleCategoryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::AddRuleCategoryRequest; + +AddRuleCategoryRequest::AddRuleCategoryRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "AddRuleCategory") { + setMethod(HttpRequest::Method::Post); } -void AddRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddRuleCategoryRequest::~AddRuleCategoryRequest() {} + +long AddRuleCategoryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddRuleCategoryRequest::getJsonStr()const -{ - return jsonStr_; +void AddRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddRuleCategoryRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string AddRuleCategoryRequest::getJsonStr() const { + return jsonStr_; } -std::string AddRuleCategoryRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddRuleCategoryRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void AddRuleCategoryRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddRuleCategoryRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AddRuleCategoryRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/AddRuleCategoryResult.cc b/qualitycheck/src/model/AddRuleCategoryResult.cc index ba32169f8..dfe16c788 100644 --- a/qualitycheck/src/model/AddRuleCategoryResult.cc +++ b/qualitycheck/src/model/AddRuleCategoryResult.cc @@ -42,12 +42,12 @@ void AddRuleCategoryResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["Select"].isNull()) data_.select = dataNode["Select"].asString() == "true"; - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/AddThesaurusForApiRequest.cc b/qualitycheck/src/model/AddThesaurusForApiRequest.cc index 0b129a488..ec8a68983 100644 --- a/qualitycheck/src/model/AddThesaurusForApiRequest.cc +++ b/qualitycheck/src/model/AddThesaurusForApiRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::AddThesaurusForApiRequest; - -AddThesaurusForApiRequest::AddThesaurusForApiRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "AddThesaurusForApi") -{ - setMethod(HttpRequest::Method::Post); -} - -AddThesaurusForApiRequest::~AddThesaurusForApiRequest() -{} - -long AddThesaurusForApiRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::AddThesaurusForApiRequest; + +AddThesaurusForApiRequest::AddThesaurusForApiRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "AddThesaurusForApi") { + setMethod(HttpRequest::Method::Post); } -void AddThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddThesaurusForApiRequest::~AddThesaurusForApiRequest() {} + +long AddThesaurusForApiRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddThesaurusForApiRequest::getJsonStr()const -{ - return jsonStr_; +void AddThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddThesaurusForApiRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string AddThesaurusForApiRequest::getJsonStr() const { + return jsonStr_; } -std::string AddThesaurusForApiRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddThesaurusForApiRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void AddThesaurusForApiRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddThesaurusForApiRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AddThesaurusForApiRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/AddThesaurusForApiResult.cc b/qualitycheck/src/model/AddThesaurusForApiResult.cc index 85858136d..d163f3b4a 100644 --- a/qualitycheck/src/model/AddThesaurusForApiResult.cc +++ b/qualitycheck/src/model/AddThesaurusForApiResult.cc @@ -39,14 +39,14 @@ void AddThesaurusForApiResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = std::stol(value["Data"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/AddUploadDataSetRequest.cc b/qualitycheck/src/model/AddUploadDataSetRequest.cc new file mode 100644 index 000000000..7e978a0c8 --- /dev/null +++ b/qualitycheck/src/model/AddUploadDataSetRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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); +} + diff --git a/qualitycheck/src/model/AddUploadDataSetResult.cc b/qualitycheck/src/model/AddUploadDataSetResult.cc new file mode 100644 index 000000000..af27c6807 --- /dev/null +++ b/qualitycheck/src/model/AddUploadDataSetResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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_; +} + diff --git a/qualitycheck/src/model/AssignReviewerRequest.cc b/qualitycheck/src/model/AssignReviewerRequest.cc index e7931471b..859ac4542 100644 --- a/qualitycheck/src/model/AssignReviewerRequest.cc +++ b/qualitycheck/src/model/AssignReviewerRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::AssignReviewerRequest; - -AssignReviewerRequest::AssignReviewerRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "AssignReviewer") -{ - setMethod(HttpRequest::Method::Post); -} - -AssignReviewerRequest::~AssignReviewerRequest() -{} - -long AssignReviewerRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::AssignReviewerRequest; + +AssignReviewerRequest::AssignReviewerRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "AssignReviewer") { + setMethod(HttpRequest::Method::Post); } -void AssignReviewerRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AssignReviewerRequest::~AssignReviewerRequest() {} + +long AssignReviewerRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AssignReviewerRequest::getJsonStr()const -{ - return jsonStr_; +void AssignReviewerRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AssignReviewerRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string AssignReviewerRequest::getJsonStr() const { + return jsonStr_; } -std::string AssignReviewerRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AssignReviewerRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void AssignReviewerRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AssignReviewerRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AssignReviewerRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/AssignReviewerResult.cc b/qualitycheck/src/model/AssignReviewerResult.cc index a11a191e5..e7874b1a8 100644 --- a/qualitycheck/src/model/AssignReviewerResult.cc +++ b/qualitycheck/src/model/AssignReviewerResult.cc @@ -39,12 +39,12 @@ void AssignReviewerResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/ConfigDataSetRequest.cc b/qualitycheck/src/model/ConfigDataSetRequest.cc new file mode 100644 index 000000000..d11fd7f83 --- /dev/null +++ b/qualitycheck/src/model/ConfigDataSetRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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); +} + diff --git a/qualitycheck/src/model/ConfigDataSetResult.cc b/qualitycheck/src/model/ConfigDataSetResult.cc new file mode 100644 index 000000000..eb51a1eec --- /dev/null +++ b/qualitycheck/src/model/ConfigDataSetResult.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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_; +} + diff --git a/qualitycheck/src/model/CreateAsrVocabRequest.cc b/qualitycheck/src/model/CreateAsrVocabRequest.cc index bb2ef6766..dc38ec38a 100644 --- a/qualitycheck/src/model/CreateAsrVocabRequest.cc +++ b/qualitycheck/src/model/CreateAsrVocabRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::CreateAsrVocabRequest; - -CreateAsrVocabRequest::CreateAsrVocabRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "CreateAsrVocab") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateAsrVocabRequest::~CreateAsrVocabRequest() -{} - -long CreateAsrVocabRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::CreateAsrVocabRequest; + +CreateAsrVocabRequest::CreateAsrVocabRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "CreateAsrVocab") { + setMethod(HttpRequest::Method::Post); } -void CreateAsrVocabRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateAsrVocabRequest::~CreateAsrVocabRequest() {} + +long CreateAsrVocabRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateAsrVocabRequest::getJsonStr()const -{ - return jsonStr_; +void CreateAsrVocabRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateAsrVocabRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string CreateAsrVocabRequest::getJsonStr() const { + return jsonStr_; } -std::string CreateAsrVocabRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CreateAsrVocabRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void CreateAsrVocabRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CreateAsrVocabRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateAsrVocabRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/CreateAsrVocabResult.cc b/qualitycheck/src/model/CreateAsrVocabResult.cc index dc5088cc2..c956e0a1a 100644 --- a/qualitycheck/src/model/CreateAsrVocabResult.cc +++ b/qualitycheck/src/model/CreateAsrVocabResult.cc @@ -39,14 +39,14 @@ void CreateAsrVocabResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/CreateRuleRequest.cc b/qualitycheck/src/model/CreateRuleRequest.cc new file mode 100644 index 000000000..56521a4a3 --- /dev/null +++ b/qualitycheck/src/model/CreateRuleRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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); +} + diff --git a/qualitycheck/src/model/CreateRuleResult.cc b/qualitycheck/src/model/CreateRuleResult.cc new file mode 100644 index 000000000..48b1dc775 --- /dev/null +++ b/qualitycheck/src/model/CreateRuleResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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_; +} + diff --git a/qualitycheck/src/model/CreateSkillGroupConfigRequest.cc b/qualitycheck/src/model/CreateSkillGroupConfigRequest.cc index 00a888375..7e25ff7a4 100644 --- a/qualitycheck/src/model/CreateSkillGroupConfigRequest.cc +++ b/qualitycheck/src/model/CreateSkillGroupConfigRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::CreateSkillGroupConfigRequest; - -CreateSkillGroupConfigRequest::CreateSkillGroupConfigRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "CreateSkillGroupConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSkillGroupConfigRequest::~CreateSkillGroupConfigRequest() -{} - -long CreateSkillGroupConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::CreateSkillGroupConfigRequest; + +CreateSkillGroupConfigRequest::CreateSkillGroupConfigRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "CreateSkillGroupConfig") { + setMethod(HttpRequest::Method::Post); } -void CreateSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateSkillGroupConfigRequest::~CreateSkillGroupConfigRequest() {} + +long CreateSkillGroupConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateSkillGroupConfigRequest::getJsonStr()const -{ - return jsonStr_; +void CreateSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateSkillGroupConfigRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string CreateSkillGroupConfigRequest::getJsonStr() const { + return jsonStr_; } -std::string CreateSkillGroupConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CreateSkillGroupConfigRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void CreateSkillGroupConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CreateSkillGroupConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateSkillGroupConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/CreateSkillGroupConfigResult.cc b/qualitycheck/src/model/CreateSkillGroupConfigResult.cc index 3c1fd5a87..727606fb0 100644 --- a/qualitycheck/src/model/CreateSkillGroupConfigResult.cc +++ b/qualitycheck/src/model/CreateSkillGroupConfigResult.cc @@ -39,14 +39,14 @@ void CreateSkillGroupConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = std::stol(value["Data"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/CreateTaskAssignRuleRequest.cc b/qualitycheck/src/model/CreateTaskAssignRuleRequest.cc index bfd30a918..1e2c935fb 100644 --- a/qualitycheck/src/model/CreateTaskAssignRuleRequest.cc +++ b/qualitycheck/src/model/CreateTaskAssignRuleRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::CreateTaskAssignRuleRequest; - -CreateTaskAssignRuleRequest::CreateTaskAssignRuleRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "CreateTaskAssignRule") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateTaskAssignRuleRequest::~CreateTaskAssignRuleRequest() -{} - -long CreateTaskAssignRuleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::CreateTaskAssignRuleRequest; + +CreateTaskAssignRuleRequest::CreateTaskAssignRuleRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "CreateTaskAssignRule") { + setMethod(HttpRequest::Method::Post); } -void CreateTaskAssignRuleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateTaskAssignRuleRequest::~CreateTaskAssignRuleRequest() {} + +long CreateTaskAssignRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateTaskAssignRuleRequest::getJsonStr()const -{ - return jsonStr_; +void CreateTaskAssignRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateTaskAssignRuleRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string CreateTaskAssignRuleRequest::getJsonStr() const { + return jsonStr_; } -std::string CreateTaskAssignRuleRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CreateTaskAssignRuleRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void CreateTaskAssignRuleRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CreateTaskAssignRuleRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateTaskAssignRuleRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/CreateTaskAssignRuleResult.cc b/qualitycheck/src/model/CreateTaskAssignRuleResult.cc index 7900d3488..f3b29dbd0 100644 --- a/qualitycheck/src/model/CreateTaskAssignRuleResult.cc +++ b/qualitycheck/src/model/CreateTaskAssignRuleResult.cc @@ -39,14 +39,14 @@ void CreateTaskAssignRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/CreateUserRequest.cc b/qualitycheck/src/model/CreateUserRequest.cc index 61e57db44..5e2e5cdfa 100644 --- a/qualitycheck/src/model/CreateUserRequest.cc +++ b/qualitycheck/src/model/CreateUserRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::CreateUserRequest; - -CreateUserRequest::CreateUserRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "CreateUser") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateUserRequest::~CreateUserRequest() -{} - -long CreateUserRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::CreateUserRequest; + +CreateUserRequest::CreateUserRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "CreateUser") { + setMethod(HttpRequest::Method::Post); } -void CreateUserRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateUserRequest::~CreateUserRequest() {} + +long CreateUserRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateUserRequest::getJsonStr()const -{ - return jsonStr_; +void CreateUserRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateUserRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string CreateUserRequest::getJsonStr() const { + return jsonStr_; } -std::string CreateUserRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CreateUserRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void CreateUserRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CreateUserRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateUserRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/CreateUserResult.cc b/qualitycheck/src/model/CreateUserResult.cc index 31026acb4..2e4e0870e 100644 --- a/qualitycheck/src/model/CreateUserResult.cc +++ b/qualitycheck/src/model/CreateUserResult.cc @@ -39,12 +39,12 @@ void CreateUserResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/CreateWarningConfigRequest.cc b/qualitycheck/src/model/CreateWarningConfigRequest.cc index 9b4cb6645..49282abb2 100644 --- a/qualitycheck/src/model/CreateWarningConfigRequest.cc +++ b/qualitycheck/src/model/CreateWarningConfigRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::CreateWarningConfigRequest; - -CreateWarningConfigRequest::CreateWarningConfigRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "CreateWarningConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateWarningConfigRequest::~CreateWarningConfigRequest() -{} - -long CreateWarningConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::CreateWarningConfigRequest; + +CreateWarningConfigRequest::CreateWarningConfigRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "CreateWarningConfig") { + setMethod(HttpRequest::Method::Post); } -void CreateWarningConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateWarningConfigRequest::~CreateWarningConfigRequest() {} + +long CreateWarningConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateWarningConfigRequest::getJsonStr()const -{ - return jsonStr_; +void CreateWarningConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateWarningConfigRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string CreateWarningConfigRequest::getJsonStr() const { + return jsonStr_; } -std::string CreateWarningConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CreateWarningConfigRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void CreateWarningConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CreateWarningConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateWarningConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/CreateWarningConfigResult.cc b/qualitycheck/src/model/CreateWarningConfigResult.cc index cf7d63861..89f0a42d5 100644 --- a/qualitycheck/src/model/CreateWarningConfigResult.cc +++ b/qualitycheck/src/model/CreateWarningConfigResult.cc @@ -39,14 +39,14 @@ void CreateWarningConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/DelRuleCategoryRequest.cc b/qualitycheck/src/model/DelRuleCategoryRequest.cc index 5ac4560e9..9d5b29ed0 100644 --- a/qualitycheck/src/model/DelRuleCategoryRequest.cc +++ b/qualitycheck/src/model/DelRuleCategoryRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::DelRuleCategoryRequest; - -DelRuleCategoryRequest::DelRuleCategoryRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "DelRuleCategory") -{ - setMethod(HttpRequest::Method::Post); -} - -DelRuleCategoryRequest::~DelRuleCategoryRequest() -{} - -long DelRuleCategoryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::DelRuleCategoryRequest; + +DelRuleCategoryRequest::DelRuleCategoryRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "DelRuleCategory") { + setMethod(HttpRequest::Method::Post); } -void DelRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DelRuleCategoryRequest::~DelRuleCategoryRequest() {} + +long DelRuleCategoryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DelRuleCategoryRequest::getJsonStr()const -{ - return jsonStr_; +void DelRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DelRuleCategoryRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string DelRuleCategoryRequest::getJsonStr() const { + return jsonStr_; } -std::string DelRuleCategoryRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DelRuleCategoryRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void DelRuleCategoryRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DelRuleCategoryRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DelRuleCategoryRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/DelRuleCategoryResult.cc b/qualitycheck/src/model/DelRuleCategoryResult.cc index b511efc61..76181dc82 100644 --- a/qualitycheck/src/model/DelRuleCategoryResult.cc +++ b/qualitycheck/src/model/DelRuleCategoryResult.cc @@ -42,12 +42,12 @@ void DelRuleCategoryResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["Select"].isNull()) data_.select = dataNode["Select"].asString() == "true"; - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/DelThesaurusForApiRequest.cc b/qualitycheck/src/model/DelThesaurusForApiRequest.cc index faf769765..08591be1e 100644 --- a/qualitycheck/src/model/DelThesaurusForApiRequest.cc +++ b/qualitycheck/src/model/DelThesaurusForApiRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::DelThesaurusForApiRequest; - -DelThesaurusForApiRequest::DelThesaurusForApiRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "DelThesaurusForApi") -{ - setMethod(HttpRequest::Method::Post); -} - -DelThesaurusForApiRequest::~DelThesaurusForApiRequest() -{} - -long DelThesaurusForApiRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::DelThesaurusForApiRequest; + +DelThesaurusForApiRequest::DelThesaurusForApiRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "DelThesaurusForApi") { + setMethod(HttpRequest::Method::Post); } -void DelThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DelThesaurusForApiRequest::~DelThesaurusForApiRequest() {} + +long DelThesaurusForApiRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DelThesaurusForApiRequest::getJsonStr()const -{ - return jsonStr_; +void DelThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DelThesaurusForApiRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string DelThesaurusForApiRequest::getJsonStr() const { + return jsonStr_; } -std::string DelThesaurusForApiRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DelThesaurusForApiRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void DelThesaurusForApiRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DelThesaurusForApiRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DelThesaurusForApiRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/DelThesaurusForApiResult.cc b/qualitycheck/src/model/DelThesaurusForApiResult.cc index 4aeb5ecb6..1aa33136d 100644 --- a/qualitycheck/src/model/DelThesaurusForApiResult.cc +++ b/qualitycheck/src/model/DelThesaurusForApiResult.cc @@ -39,12 +39,12 @@ void DelThesaurusForApiResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/DeleteAsrVocabRequest.cc b/qualitycheck/src/model/DeleteAsrVocabRequest.cc index 658d8fc98..9f7ea864c 100644 --- a/qualitycheck/src/model/DeleteAsrVocabRequest.cc +++ b/qualitycheck/src/model/DeleteAsrVocabRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::DeleteAsrVocabRequest; - -DeleteAsrVocabRequest::DeleteAsrVocabRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteAsrVocab") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteAsrVocabRequest::~DeleteAsrVocabRequest() -{} - -long DeleteAsrVocabRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::DeleteAsrVocabRequest; + +DeleteAsrVocabRequest::DeleteAsrVocabRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteAsrVocab") { + setMethod(HttpRequest::Method::Post); } -void DeleteAsrVocabRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteAsrVocabRequest::~DeleteAsrVocabRequest() {} + +long DeleteAsrVocabRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteAsrVocabRequest::getJsonStr()const -{ - return jsonStr_; +void DeleteAsrVocabRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteAsrVocabRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string DeleteAsrVocabRequest::getJsonStr() const { + return jsonStr_; } -std::string DeleteAsrVocabRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteAsrVocabRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void DeleteAsrVocabRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteAsrVocabRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteAsrVocabRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/DeleteAsrVocabResult.cc b/qualitycheck/src/model/DeleteAsrVocabResult.cc index a1caea68d..0475dc96f 100644 --- a/qualitycheck/src/model/DeleteAsrVocabResult.cc +++ b/qualitycheck/src/model/DeleteAsrVocabResult.cc @@ -39,14 +39,14 @@ void DeleteAsrVocabResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/DeleteBusinessCategoryRequest.cc b/qualitycheck/src/model/DeleteBusinessCategoryRequest.cc index eb803fdd8..08b09e163 100644 --- a/qualitycheck/src/model/DeleteBusinessCategoryRequest.cc +++ b/qualitycheck/src/model/DeleteBusinessCategoryRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::DeleteBusinessCategoryRequest; - -DeleteBusinessCategoryRequest::DeleteBusinessCategoryRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteBusinessCategory") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteBusinessCategoryRequest::~DeleteBusinessCategoryRequest() -{} - -long DeleteBusinessCategoryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::DeleteBusinessCategoryRequest; + +DeleteBusinessCategoryRequest::DeleteBusinessCategoryRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteBusinessCategory") { + setMethod(HttpRequest::Method::Post); } -void DeleteBusinessCategoryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteBusinessCategoryRequest::~DeleteBusinessCategoryRequest() {} + +long DeleteBusinessCategoryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteBusinessCategoryRequest::getJsonStr()const -{ - return jsonStr_; +void DeleteBusinessCategoryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteBusinessCategoryRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string DeleteBusinessCategoryRequest::getJsonStr() const { + return jsonStr_; } -std::string DeleteBusinessCategoryRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteBusinessCategoryRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void DeleteBusinessCategoryRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteBusinessCategoryRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteBusinessCategoryRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/DeleteBusinessCategoryResult.cc b/qualitycheck/src/model/DeleteBusinessCategoryResult.cc index 759585009..9a05df446 100644 --- a/qualitycheck/src/model/DeleteBusinessCategoryResult.cc +++ b/qualitycheck/src/model/DeleteBusinessCategoryResult.cc @@ -39,14 +39,14 @@ void DeleteBusinessCategoryResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/DeleteCustomizationConfigRequest.cc b/qualitycheck/src/model/DeleteCustomizationConfigRequest.cc index 98dbfddeb..bd3596e2a 100644 --- a/qualitycheck/src/model/DeleteCustomizationConfigRequest.cc +++ b/qualitycheck/src/model/DeleteCustomizationConfigRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::DeleteCustomizationConfigRequest; - -DeleteCustomizationConfigRequest::DeleteCustomizationConfigRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteCustomizationConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteCustomizationConfigRequest::~DeleteCustomizationConfigRequest() -{} - -long DeleteCustomizationConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::DeleteCustomizationConfigRequest; + +DeleteCustomizationConfigRequest::DeleteCustomizationConfigRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteCustomizationConfig") { + setMethod(HttpRequest::Method::Post); } -void DeleteCustomizationConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteCustomizationConfigRequest::~DeleteCustomizationConfigRequest() {} + +long DeleteCustomizationConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteCustomizationConfigRequest::getJsonStr()const -{ - return jsonStr_; +void DeleteCustomizationConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteCustomizationConfigRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string DeleteCustomizationConfigRequest::getJsonStr() const { + return jsonStr_; } -std::string DeleteCustomizationConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteCustomizationConfigRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void DeleteCustomizationConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteCustomizationConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteCustomizationConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/DeleteCustomizationConfigResult.cc b/qualitycheck/src/model/DeleteCustomizationConfigResult.cc index dad1f1c61..57ec997ba 100644 --- a/qualitycheck/src/model/DeleteCustomizationConfigResult.cc +++ b/qualitycheck/src/model/DeleteCustomizationConfigResult.cc @@ -39,14 +39,14 @@ void DeleteCustomizationConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/DeleteDataSetRequest.cc b/qualitycheck/src/model/DeleteDataSetRequest.cc index 6369d6461..da41333ef 100644 --- a/qualitycheck/src/model/DeleteDataSetRequest.cc +++ b/qualitycheck/src/model/DeleteDataSetRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::DeleteDataSetRequest; - -DeleteDataSetRequest::DeleteDataSetRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteDataSet") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDataSetRequest::~DeleteDataSetRequest() -{} - -long DeleteDataSetRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::DeleteDataSetRequest; + +DeleteDataSetRequest::DeleteDataSetRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteDataSet") { + setMethod(HttpRequest::Method::Post); } -void DeleteDataSetRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteDataSetRequest::~DeleteDataSetRequest() {} + +long DeleteDataSetRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteDataSetRequest::getJsonStr()const -{ - return jsonStr_; +void DeleteDataSetRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteDataSetRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string DeleteDataSetRequest::getJsonStr() const { + return jsonStr_; } -std::string DeleteDataSetRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteDataSetRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void DeleteDataSetRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteDataSetRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteDataSetRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/DeleteDataSetResult.cc b/qualitycheck/src/model/DeleteDataSetResult.cc index 91e62a146..fbc41c6ff 100644 --- a/qualitycheck/src/model/DeleteDataSetResult.cc +++ b/qualitycheck/src/model/DeleteDataSetResult.cc @@ -39,12 +39,12 @@ void DeleteDataSetResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/DeletePrecisionTaskRequest.cc b/qualitycheck/src/model/DeletePrecisionTaskRequest.cc index 3fd9e8b8e..f9d229382 100644 --- a/qualitycheck/src/model/DeletePrecisionTaskRequest.cc +++ b/qualitycheck/src/model/DeletePrecisionTaskRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::DeletePrecisionTaskRequest; - -DeletePrecisionTaskRequest::DeletePrecisionTaskRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "DeletePrecisionTask") -{ - setMethod(HttpRequest::Method::Post); -} - -DeletePrecisionTaskRequest::~DeletePrecisionTaskRequest() -{} - -long DeletePrecisionTaskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::DeletePrecisionTaskRequest; + +DeletePrecisionTaskRequest::DeletePrecisionTaskRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "DeletePrecisionTask") { + setMethod(HttpRequest::Method::Post); } -void DeletePrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeletePrecisionTaskRequest::~DeletePrecisionTaskRequest() {} + +long DeletePrecisionTaskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeletePrecisionTaskRequest::getJsonStr()const -{ - return jsonStr_; +void DeletePrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeletePrecisionTaskRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string DeletePrecisionTaskRequest::getJsonStr() const { + return jsonStr_; } -std::string DeletePrecisionTaskRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeletePrecisionTaskRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void DeletePrecisionTaskRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeletePrecisionTaskRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeletePrecisionTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/DeletePrecisionTaskResult.cc b/qualitycheck/src/model/DeletePrecisionTaskResult.cc index cfa1a589e..25e2a32d5 100644 --- a/qualitycheck/src/model/DeletePrecisionTaskResult.cc +++ b/qualitycheck/src/model/DeletePrecisionTaskResult.cc @@ -39,12 +39,12 @@ void DeletePrecisionTaskResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/DeleteScoreForApiRequest.cc b/qualitycheck/src/model/DeleteScoreForApiRequest.cc index 96566e49b..a76c2e17a 100644 --- a/qualitycheck/src/model/DeleteScoreForApiRequest.cc +++ b/qualitycheck/src/model/DeleteScoreForApiRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::DeleteScoreForApiRequest; - -DeleteScoreForApiRequest::DeleteScoreForApiRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteScoreForApi") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteScoreForApiRequest::~DeleteScoreForApiRequest() -{} - -long DeleteScoreForApiRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::DeleteScoreForApiRequest; + +DeleteScoreForApiRequest::DeleteScoreForApiRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteScoreForApi") { + setMethod(HttpRequest::Method::Post); } -void DeleteScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteScoreForApiRequest::~DeleteScoreForApiRequest() {} + +long DeleteScoreForApiRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteScoreForApiRequest::getJsonStr()const -{ - return jsonStr_; +void DeleteScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteScoreForApiRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string DeleteScoreForApiRequest::getJsonStr() const { + return jsonStr_; } -std::string DeleteScoreForApiRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteScoreForApiRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void DeleteScoreForApiRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteScoreForApiRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteScoreForApiRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/DeleteScoreForApiResult.cc b/qualitycheck/src/model/DeleteScoreForApiResult.cc index 6aba204f9..5463ffe74 100644 --- a/qualitycheck/src/model/DeleteScoreForApiResult.cc +++ b/qualitycheck/src/model/DeleteScoreForApiResult.cc @@ -39,12 +39,12 @@ void DeleteScoreForApiResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/DeleteSkillGroupConfigRequest.cc b/qualitycheck/src/model/DeleteSkillGroupConfigRequest.cc index 46aa5e491..0c452556f 100644 --- a/qualitycheck/src/model/DeleteSkillGroupConfigRequest.cc +++ b/qualitycheck/src/model/DeleteSkillGroupConfigRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::DeleteSkillGroupConfigRequest; - -DeleteSkillGroupConfigRequest::DeleteSkillGroupConfigRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteSkillGroupConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSkillGroupConfigRequest::~DeleteSkillGroupConfigRequest() -{} - -long DeleteSkillGroupConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::DeleteSkillGroupConfigRequest; + +DeleteSkillGroupConfigRequest::DeleteSkillGroupConfigRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteSkillGroupConfig") { + setMethod(HttpRequest::Method::Post); } -void DeleteSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteSkillGroupConfigRequest::~DeleteSkillGroupConfigRequest() {} + +long DeleteSkillGroupConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteSkillGroupConfigRequest::getJsonStr()const -{ - return jsonStr_; +void DeleteSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteSkillGroupConfigRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string DeleteSkillGroupConfigRequest::getJsonStr() const { + return jsonStr_; } -std::string DeleteSkillGroupConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteSkillGroupConfigRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void DeleteSkillGroupConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteSkillGroupConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteSkillGroupConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/DeleteSkillGroupConfigResult.cc b/qualitycheck/src/model/DeleteSkillGroupConfigResult.cc index 0ac959ba8..129d020ad 100644 --- a/qualitycheck/src/model/DeleteSkillGroupConfigResult.cc +++ b/qualitycheck/src/model/DeleteSkillGroupConfigResult.cc @@ -39,12 +39,12 @@ void DeleteSkillGroupConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/DeleteSubScoreForApiRequest.cc b/qualitycheck/src/model/DeleteSubScoreForApiRequest.cc index 3a34bbae3..35fe98d1e 100644 --- a/qualitycheck/src/model/DeleteSubScoreForApiRequest.cc +++ b/qualitycheck/src/model/DeleteSubScoreForApiRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::DeleteSubScoreForApiRequest; - -DeleteSubScoreForApiRequest::DeleteSubScoreForApiRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteSubScoreForApi") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSubScoreForApiRequest::~DeleteSubScoreForApiRequest() -{} - -long DeleteSubScoreForApiRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::DeleteSubScoreForApiRequest; + +DeleteSubScoreForApiRequest::DeleteSubScoreForApiRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteSubScoreForApi") { + setMethod(HttpRequest::Method::Post); } -void DeleteSubScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteSubScoreForApiRequest::~DeleteSubScoreForApiRequest() {} + +long DeleteSubScoreForApiRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteSubScoreForApiRequest::getJsonStr()const -{ - return jsonStr_; +void DeleteSubScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteSubScoreForApiRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string DeleteSubScoreForApiRequest::getJsonStr() const { + return jsonStr_; } -std::string DeleteSubScoreForApiRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteSubScoreForApiRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void DeleteSubScoreForApiRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteSubScoreForApiRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteSubScoreForApiRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/DeleteSubScoreForApiResult.cc b/qualitycheck/src/model/DeleteSubScoreForApiResult.cc index 382470b16..a262eb582 100644 --- a/qualitycheck/src/model/DeleteSubScoreForApiResult.cc +++ b/qualitycheck/src/model/DeleteSubScoreForApiResult.cc @@ -39,12 +39,12 @@ void DeleteSubScoreForApiResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/DeleteTaskAssignRuleRequest.cc b/qualitycheck/src/model/DeleteTaskAssignRuleRequest.cc index 86fdc12b1..d573ebe2e 100644 --- a/qualitycheck/src/model/DeleteTaskAssignRuleRequest.cc +++ b/qualitycheck/src/model/DeleteTaskAssignRuleRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::DeleteTaskAssignRuleRequest; - -DeleteTaskAssignRuleRequest::DeleteTaskAssignRuleRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteTaskAssignRule") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteTaskAssignRuleRequest::~DeleteTaskAssignRuleRequest() -{} - -long DeleteTaskAssignRuleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::DeleteTaskAssignRuleRequest; + +DeleteTaskAssignRuleRequest::DeleteTaskAssignRuleRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteTaskAssignRule") { + setMethod(HttpRequest::Method::Post); } -void DeleteTaskAssignRuleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteTaskAssignRuleRequest::~DeleteTaskAssignRuleRequest() {} + +long DeleteTaskAssignRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteTaskAssignRuleRequest::getJsonStr()const -{ - return jsonStr_; +void DeleteTaskAssignRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteTaskAssignRuleRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string DeleteTaskAssignRuleRequest::getJsonStr() const { + return jsonStr_; } -std::string DeleteTaskAssignRuleRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteTaskAssignRuleRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void DeleteTaskAssignRuleRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteTaskAssignRuleRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteTaskAssignRuleRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/DeleteTaskAssignRuleResult.cc b/qualitycheck/src/model/DeleteTaskAssignRuleResult.cc index 84179345d..904234b52 100644 --- a/qualitycheck/src/model/DeleteTaskAssignRuleResult.cc +++ b/qualitycheck/src/model/DeleteTaskAssignRuleResult.cc @@ -39,12 +39,12 @@ void DeleteTaskAssignRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/DeleteUserRequest.cc b/qualitycheck/src/model/DeleteUserRequest.cc index da3080a44..dc897066a 100644 --- a/qualitycheck/src/model/DeleteUserRequest.cc +++ b/qualitycheck/src/model/DeleteUserRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::DeleteUserRequest; - -DeleteUserRequest::DeleteUserRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteUser") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteUserRequest::~DeleteUserRequest() -{} - -long DeleteUserRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::DeleteUserRequest; + +DeleteUserRequest::DeleteUserRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteUser") { + setMethod(HttpRequest::Method::Post); } -void DeleteUserRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteUserRequest::~DeleteUserRequest() {} + +long DeleteUserRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteUserRequest::getJsonStr()const -{ - return jsonStr_; +void DeleteUserRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteUserRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string DeleteUserRequest::getJsonStr() const { + return jsonStr_; } -std::string DeleteUserRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteUserRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void DeleteUserRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteUserRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteUserRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/DeleteUserResult.cc b/qualitycheck/src/model/DeleteUserResult.cc index 37c386140..28ee0e43b 100644 --- a/qualitycheck/src/model/DeleteUserResult.cc +++ b/qualitycheck/src/model/DeleteUserResult.cc @@ -39,12 +39,12 @@ void DeleteUserResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/DeleteWarningConfigRequest.cc b/qualitycheck/src/model/DeleteWarningConfigRequest.cc index dc3dbe9d3..403eb3a96 100644 --- a/qualitycheck/src/model/DeleteWarningConfigRequest.cc +++ b/qualitycheck/src/model/DeleteWarningConfigRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::DeleteWarningConfigRequest; - -DeleteWarningConfigRequest::DeleteWarningConfigRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteWarningConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteWarningConfigRequest::~DeleteWarningConfigRequest() -{} - -long DeleteWarningConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::DeleteWarningConfigRequest; + +DeleteWarningConfigRequest::DeleteWarningConfigRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "DeleteWarningConfig") { + setMethod(HttpRequest::Method::Post); } -void DeleteWarningConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteWarningConfigRequest::~DeleteWarningConfigRequest() {} + +long DeleteWarningConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteWarningConfigRequest::getJsonStr()const -{ - return jsonStr_; +void DeleteWarningConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteWarningConfigRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string DeleteWarningConfigRequest::getJsonStr() const { + return jsonStr_; } -std::string DeleteWarningConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteWarningConfigRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void DeleteWarningConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteWarningConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteWarningConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/DeleteWarningConfigResult.cc b/qualitycheck/src/model/DeleteWarningConfigResult.cc index fd4c924ae..00723e4c8 100644 --- a/qualitycheck/src/model/DeleteWarningConfigResult.cc +++ b/qualitycheck/src/model/DeleteWarningConfigResult.cc @@ -39,12 +39,12 @@ void DeleteWarningConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/EditThesaurusForApiRequest.cc b/qualitycheck/src/model/EditThesaurusForApiRequest.cc index edffe68f8..eeba0705d 100644 --- a/qualitycheck/src/model/EditThesaurusForApiRequest.cc +++ b/qualitycheck/src/model/EditThesaurusForApiRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::EditThesaurusForApiRequest; - -EditThesaurusForApiRequest::EditThesaurusForApiRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "EditThesaurusForApi") -{ - setMethod(HttpRequest::Method::Post); -} - -EditThesaurusForApiRequest::~EditThesaurusForApiRequest() -{} - -long EditThesaurusForApiRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::EditThesaurusForApiRequest; + +EditThesaurusForApiRequest::EditThesaurusForApiRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "EditThesaurusForApi") { + setMethod(HttpRequest::Method::Post); } -void EditThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +EditThesaurusForApiRequest::~EditThesaurusForApiRequest() {} + +long EditThesaurusForApiRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string EditThesaurusForApiRequest::getJsonStr()const -{ - return jsonStr_; +void EditThesaurusForApiRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void EditThesaurusForApiRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string EditThesaurusForApiRequest::getJsonStr() const { + return jsonStr_; } -std::string EditThesaurusForApiRequest::getAccessKeyId()const -{ - return accessKeyId_; +void EditThesaurusForApiRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void EditThesaurusForApiRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string EditThesaurusForApiRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void EditThesaurusForApiRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/EditThesaurusForApiResult.cc b/qualitycheck/src/model/EditThesaurusForApiResult.cc index 45fc45043..d99e588b5 100644 --- a/qualitycheck/src/model/EditThesaurusForApiResult.cc +++ b/qualitycheck/src/model/EditThesaurusForApiResult.cc @@ -39,14 +39,14 @@ void EditThesaurusForApiResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = std::stol(value["Data"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/GetAsrVocabRequest.cc b/qualitycheck/src/model/GetAsrVocabRequest.cc index 23159206e..3d5ca150a 100644 --- a/qualitycheck/src/model/GetAsrVocabRequest.cc +++ b/qualitycheck/src/model/GetAsrVocabRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetAsrVocabRequest; - -GetAsrVocabRequest::GetAsrVocabRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetAsrVocab") -{ - setMethod(HttpRequest::Method::Post); -} - -GetAsrVocabRequest::~GetAsrVocabRequest() -{} - -long GetAsrVocabRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetAsrVocabRequest; + +GetAsrVocabRequest::GetAsrVocabRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetAsrVocab") { + setMethod(HttpRequest::Method::Post); } -void GetAsrVocabRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetAsrVocabRequest::~GetAsrVocabRequest() {} + +long GetAsrVocabRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetAsrVocabRequest::getJsonStr()const -{ - return jsonStr_; +void GetAsrVocabRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetAsrVocabRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetAsrVocabRequest::getJsonStr() const { + return jsonStr_; } -std::string GetAsrVocabRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetAsrVocabRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetAsrVocabRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetAsrVocabRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetAsrVocabRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetAsrVocabResult.cc b/qualitycheck/src/model/GetAsrVocabResult.cc index 5827f7686..5abb5c633 100644 --- a/qualitycheck/src/model/GetAsrVocabResult.cc +++ b/qualitycheck/src/model/GetAsrVocabResult.cc @@ -46,18 +46,18 @@ void GetAsrVocabResult::parse(const std::string &payload) for (auto dataNodeWordsWord : allWordsNode) { Data::Word wordObject; - if(!dataNodeWordsWord["Word"].isNull()) - wordObject.word = dataNodeWordsWord["Word"].asString(); if(!dataNodeWordsWord["Weight"].isNull()) wordObject.weight = std::stoi(dataNodeWordsWord["Weight"].asString()); + if(!dataNodeWordsWord["Word"].isNull()) + wordObject.word = dataNodeWordsWord["Word"].asString(); data_.words.push_back(wordObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/GetBusinessCategoryListRequest.cc b/qualitycheck/src/model/GetBusinessCategoryListRequest.cc index 343f64185..647dca69e 100644 --- a/qualitycheck/src/model/GetBusinessCategoryListRequest.cc +++ b/qualitycheck/src/model/GetBusinessCategoryListRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetBusinessCategoryListRequest; - -GetBusinessCategoryListRequest::GetBusinessCategoryListRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetBusinessCategoryList") -{ - setMethod(HttpRequest::Method::Post); -} - -GetBusinessCategoryListRequest::~GetBusinessCategoryListRequest() -{} - -long GetBusinessCategoryListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetBusinessCategoryListRequest; + +GetBusinessCategoryListRequest::GetBusinessCategoryListRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetBusinessCategoryList") { + setMethod(HttpRequest::Method::Post); } -void GetBusinessCategoryListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetBusinessCategoryListRequest::~GetBusinessCategoryListRequest() {} + +long GetBusinessCategoryListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetBusinessCategoryListRequest::getJsonStr()const -{ - return jsonStr_; +void GetBusinessCategoryListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetBusinessCategoryListRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetBusinessCategoryListRequest::getJsonStr() const { + return jsonStr_; } -std::string GetBusinessCategoryListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetBusinessCategoryListRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetBusinessCategoryListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetBusinessCategoryListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetBusinessCategoryListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetBusinessCategoryListResult.cc b/qualitycheck/src/model/GetBusinessCategoryListResult.cc index b3fe8c59b..3be151c72 100644 --- a/qualitycheck/src/model/GetBusinessCategoryListResult.cc +++ b/qualitycheck/src/model/GetBusinessCategoryListResult.cc @@ -43,20 +43,20 @@ void GetBusinessCategoryListResult::parse(const std::string &payload) for (auto valueDataBusinessCategoryBasicInfo : allDataNode) { BusinessCategoryBasicInfo dataObject; - if(!valueDataBusinessCategoryBasicInfo["Bid"].isNull()) - dataObject.bid = std::stoi(valueDataBusinessCategoryBasicInfo["Bid"].asString()); - if(!valueDataBusinessCategoryBasicInfo["ServiceType"].isNull()) - dataObject.serviceType = std::stoi(valueDataBusinessCategoryBasicInfo["ServiceType"].asString()); if(!valueDataBusinessCategoryBasicInfo["BusinessName"].isNull()) dataObject.businessName = valueDataBusinessCategoryBasicInfo["BusinessName"].asString(); + if(!valueDataBusinessCategoryBasicInfo["ServiceType"].isNull()) + dataObject.serviceType = std::stoi(valueDataBusinessCategoryBasicInfo["ServiceType"].asString()); + if(!valueDataBusinessCategoryBasicInfo["Bid"].isNull()) + dataObject.bid = std::stoi(valueDataBusinessCategoryBasicInfo["Bid"].asString()); data_.push_back(dataObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/GetCustomizationConfigListRequest.cc b/qualitycheck/src/model/GetCustomizationConfigListRequest.cc index 912a1fef3..13fedf4bb 100644 --- a/qualitycheck/src/model/GetCustomizationConfigListRequest.cc +++ b/qualitycheck/src/model/GetCustomizationConfigListRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetCustomizationConfigListRequest; - -GetCustomizationConfigListRequest::GetCustomizationConfigListRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetCustomizationConfigList") -{ - setMethod(HttpRequest::Method::Post); -} - -GetCustomizationConfigListRequest::~GetCustomizationConfigListRequest() -{} - -long GetCustomizationConfigListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetCustomizationConfigListRequest; + +GetCustomizationConfigListRequest::GetCustomizationConfigListRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetCustomizationConfigList") { + setMethod(HttpRequest::Method::Post); } -void GetCustomizationConfigListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetCustomizationConfigListRequest::~GetCustomizationConfigListRequest() {} + +long GetCustomizationConfigListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetCustomizationConfigListRequest::getJsonStr()const -{ - return jsonStr_; +void GetCustomizationConfigListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetCustomizationConfigListRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetCustomizationConfigListRequest::getJsonStr() const { + return jsonStr_; } -std::string GetCustomizationConfigListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetCustomizationConfigListRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetCustomizationConfigListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetCustomizationConfigListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetCustomizationConfigListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetCustomizationConfigListResult.cc b/qualitycheck/src/model/GetCustomizationConfigListResult.cc index d6ec88cf5..ef2cecc1b 100644 --- a/qualitycheck/src/model/GetCustomizationConfigListResult.cc +++ b/qualitycheck/src/model/GetCustomizationConfigListResult.cc @@ -43,26 +43,26 @@ void GetCustomizationConfigListResult::parse(const std::string &payload) for (auto valueDataModelCustomizationDataSetPo : allDataNode) { ModelCustomizationDataSetPo dataObject; - if(!valueDataModelCustomizationDataSetPo["ModelId"].isNull()) - dataObject.modelId = std::stol(valueDataModelCustomizationDataSetPo["ModelId"].asString()); - if(!valueDataModelCustomizationDataSetPo["ModeCustomizationId"].isNull()) - dataObject.modeCustomizationId = valueDataModelCustomizationDataSetPo["ModeCustomizationId"].asString(); - if(!valueDataModelCustomizationDataSetPo["ModelName"].isNull()) - dataObject.modelName = valueDataModelCustomizationDataSetPo["ModelName"].asString(); - if(!valueDataModelCustomizationDataSetPo["ModelStatus"].isNull()) - dataObject.modelStatus = std::stoi(valueDataModelCustomizationDataSetPo["ModelStatus"].asString()); if(!valueDataModelCustomizationDataSetPo["TaskType"].isNull()) dataObject.taskType = std::stoi(valueDataModelCustomizationDataSetPo["TaskType"].asString()); if(!valueDataModelCustomizationDataSetPo["CreateTime"].isNull()) dataObject.createTime = valueDataModelCustomizationDataSetPo["CreateTime"].asString(); + if(!valueDataModelCustomizationDataSetPo["ModelStatus"].isNull()) + dataObject.modelStatus = std::stoi(valueDataModelCustomizationDataSetPo["ModelStatus"].asString()); + if(!valueDataModelCustomizationDataSetPo["ModelName"].isNull()) + dataObject.modelName = valueDataModelCustomizationDataSetPo["ModelName"].asString(); + if(!valueDataModelCustomizationDataSetPo["ModelId"].isNull()) + dataObject.modelId = std::stol(valueDataModelCustomizationDataSetPo["ModelId"].asString()); + if(!valueDataModelCustomizationDataSetPo["ModeCustomizationId"].isNull()) + dataObject.modeCustomizationId = valueDataModelCustomizationDataSetPo["ModeCustomizationId"].asString(); data_.push_back(dataObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/GetHitResultRequest.cc b/qualitycheck/src/model/GetHitResultRequest.cc index ad9b34f68..d6b5e681e 100644 --- a/qualitycheck/src/model/GetHitResultRequest.cc +++ b/qualitycheck/src/model/GetHitResultRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetHitResultRequest; - -GetHitResultRequest::GetHitResultRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetHitResult") -{ - setMethod(HttpRequest::Method::Post); -} - -GetHitResultRequest::~GetHitResultRequest() -{} - -long GetHitResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetHitResultRequest; + +GetHitResultRequest::GetHitResultRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetHitResult") { + setMethod(HttpRequest::Method::Post); } -void GetHitResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetHitResultRequest::~GetHitResultRequest() {} + +long GetHitResultRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetHitResultRequest::getJsonStr()const -{ - return jsonStr_; +void GetHitResultRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetHitResultRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetHitResultRequest::getJsonStr() const { + return jsonStr_; } -std::string GetHitResultRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetHitResultRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetHitResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetHitResultRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetHitResultRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetHitResultResult.cc b/qualitycheck/src/model/GetHitResultResult.cc index e2b7d26ae..d0a10cdb6 100644 --- a/qualitycheck/src/model/GetHitResultResult.cc +++ b/qualitycheck/src/model/GetHitResultResult.cc @@ -43,10 +43,10 @@ void GetHitResultResult::parse(const std::string &payload) for (auto valueDataResultInfo : allDataNode) { ResultInfo dataObject; - if(!valueDataResultInfo["Rid"].isNull()) - dataObject.rid = std::stol(valueDataResultInfo["Rid"].asString()); if(!valueDataResultInfo["RuleName"].isNull()) dataObject.ruleName = valueDataResultInfo["RuleName"].asString(); + if(!valueDataResultInfo["Rid"].isNull()) + dataObject.rid = std::stol(valueDataResultInfo["Rid"].asString()); data_.push_back(dataObject); } if(!value["Success"].isNull()) @@ -55,12 +55,12 @@ void GetHitResultResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Count"].isNull()) - count_ = std::stoi(value["Count"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); } diff --git a/qualitycheck/src/model/GetNextResultToVerifyRequest.cc b/qualitycheck/src/model/GetNextResultToVerifyRequest.cc index 1d356b799..4a9dc9ec9 100644 --- a/qualitycheck/src/model/GetNextResultToVerifyRequest.cc +++ b/qualitycheck/src/model/GetNextResultToVerifyRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetNextResultToVerifyRequest; - -GetNextResultToVerifyRequest::GetNextResultToVerifyRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetNextResultToVerify") -{ - setMethod(HttpRequest::Method::Post); -} - -GetNextResultToVerifyRequest::~GetNextResultToVerifyRequest() -{} - -long GetNextResultToVerifyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetNextResultToVerifyRequest; + +GetNextResultToVerifyRequest::GetNextResultToVerifyRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetNextResultToVerify") { + setMethod(HttpRequest::Method::Post); } -void GetNextResultToVerifyRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetNextResultToVerifyRequest::~GetNextResultToVerifyRequest() {} + +long GetNextResultToVerifyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetNextResultToVerifyRequest::getJsonStr()const -{ - return jsonStr_; +void GetNextResultToVerifyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetNextResultToVerifyRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetNextResultToVerifyRequest::getJsonStr() const { + return jsonStr_; } -std::string GetNextResultToVerifyRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetNextResultToVerifyRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetNextResultToVerifyRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetNextResultToVerifyRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetNextResultToVerifyRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetNextResultToVerifyResult.cc b/qualitycheck/src/model/GetNextResultToVerifyResult.cc index 81120a12e..1e938e7dc 100644 --- a/qualitycheck/src/model/GetNextResultToVerifyResult.cc +++ b/qualitycheck/src/model/GetNextResultToVerifyResult.cc @@ -40,62 +40,62 @@ void GetNextResultToVerifyResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["Status"].isNull()) - data_.status = std::stoi(dataNode["Status"].asString()); - if(!dataNode["AudioURL"].isNull()) - data_.audioURL = dataNode["AudioURL"].asString(); - if(!dataNode["AudioScheme"].isNull()) - data_.audioScheme = dataNode["AudioScheme"].asString(); - if(!dataNode["FileName"].isNull()) - data_.fileName = dataNode["FileName"].asString(); - if(!dataNode["FileId"].isNull()) - data_.fileId = dataNode["FileId"].asString(); - if(!dataNode["Verified"].isNull()) - data_.verified = dataNode["Verified"].asString() == "true"; - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - if(!dataNode["VerifiedCount"].isNull()) - data_.verifiedCount = std::stoi(dataNode["VerifiedCount"].asString()); - if(!dataNode["IncorrectWords"].isNull()) - data_.incorrectWords = std::stoi(dataNode["IncorrectWords"].asString()); - if(!dataNode["Precision"].isNull()) - data_.precision = std::stof(dataNode["Precision"].asString()); - if(!dataNode["UpdateTime"].isNull()) - data_.updateTime = dataNode["UpdateTime"].asString(); - if(!dataNode["Duration"].isNull()) - data_.duration = std::stoi(dataNode["Duration"].asString()); if(!dataNode["Index"].isNull()) data_.index = std::stoi(dataNode["Index"].asString()); + if(!dataNode["Status"].isNull()) + data_.status = std::stoi(dataNode["Status"].asString()); + if(!dataNode["AudioScheme"].isNull()) + data_.audioScheme = dataNode["AudioScheme"].asString(); + if(!dataNode["AudioURL"].isNull()) + data_.audioURL = dataNode["AudioURL"].asString(); + if(!dataNode["UpdateTime"].isNull()) + data_.updateTime = dataNode["UpdateTime"].asString(); + if(!dataNode["IncorrectWords"].isNull()) + data_.incorrectWords = std::stoi(dataNode["IncorrectWords"].asString()); + if(!dataNode["VerifiedCount"].isNull()) + data_.verifiedCount = std::stoi(dataNode["VerifiedCount"].asString()); + if(!dataNode["Verified"].isNull()) + data_.verified = dataNode["Verified"].asString() == "true"; + if(!dataNode["FileName"].isNull()) + data_.fileName = dataNode["FileName"].asString(); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["Precision"].isNull()) + data_.precision = std::stof(dataNode["Precision"].asString()); + if(!dataNode["FileId"].isNull()) + data_.fileId = dataNode["FileId"].asString(); + if(!dataNode["Duration"].isNull()) + data_.duration = std::stoi(dataNode["Duration"].asString()); auto allDialoguesNode = dataNode["Dialogues"]["Dialogue"]; for (auto dataNodeDialoguesDialogue : allDialoguesNode) { Data::Dialogue dialogueObject; - if(!dataNodeDialoguesDialogue["Begin"].isNull()) - dialogueObject.begin = std::stol(dataNodeDialoguesDialogue["Begin"].asString()); - if(!dataNodeDialoguesDialogue["BeginTime"].isNull()) - dialogueObject.beginTime = dataNodeDialoguesDialogue["BeginTime"].asString(); - if(!dataNodeDialoguesDialogue["EmotionValue"].isNull()) - dialogueObject.emotionValue = std::stoi(dataNodeDialoguesDialogue["EmotionValue"].asString()); - if(!dataNodeDialoguesDialogue["End"].isNull()) - dialogueObject.end = std::stol(dataNodeDialoguesDialogue["End"].asString()); - if(!dataNodeDialoguesDialogue["HourMinSec"].isNull()) - dialogueObject.hourMinSec = dataNodeDialoguesDialogue["HourMinSec"].asString(); - if(!dataNodeDialoguesDialogue["Identity"].isNull()) - dialogueObject.identity = dataNodeDialoguesDialogue["Identity"].asString(); - if(!dataNodeDialoguesDialogue["Role"].isNull()) - dialogueObject.role = dataNodeDialoguesDialogue["Role"].asString(); - if(!dataNodeDialoguesDialogue["SourceRole"].isNull()) - dialogueObject.sourceRole = dataNodeDialoguesDialogue["SourceRole"].asString(); - if(!dataNodeDialoguesDialogue["SilenceDuration"].isNull()) - dialogueObject.silenceDuration = std::stoi(dataNodeDialoguesDialogue["SilenceDuration"].asString()); - if(!dataNodeDialoguesDialogue["SpeechRate"].isNull()) - dialogueObject.speechRate = std::stoi(dataNodeDialoguesDialogue["SpeechRate"].asString()); if(!dataNodeDialoguesDialogue["Words"].isNull()) dialogueObject.words = dataNodeDialoguesDialogue["Words"].asString(); - if(!dataNodeDialoguesDialogue["SourceWords"].isNull()) - dialogueObject.sourceWords = dataNodeDialoguesDialogue["SourceWords"].asString(); + if(!dataNodeDialoguesDialogue["Identity"].isNull()) + dialogueObject.identity = dataNodeDialoguesDialogue["Identity"].asString(); if(!dataNodeDialoguesDialogue["IncorrectWords"].isNull()) dialogueObject.incorrectWords = std::stoi(dataNodeDialoguesDialogue["IncorrectWords"].asString()); + if(!dataNodeDialoguesDialogue["BeginTime"].isNull()) + dialogueObject.beginTime = dataNodeDialoguesDialogue["BeginTime"].asString(); + if(!dataNodeDialoguesDialogue["SourceWords"].isNull()) + dialogueObject.sourceWords = dataNodeDialoguesDialogue["SourceWords"].asString(); + if(!dataNodeDialoguesDialogue["End"].isNull()) + dialogueObject.end = std::stol(dataNodeDialoguesDialogue["End"].asString()); + if(!dataNodeDialoguesDialogue["SpeechRate"].isNull()) + dialogueObject.speechRate = std::stoi(dataNodeDialoguesDialogue["SpeechRate"].asString()); + if(!dataNodeDialoguesDialogue["HourMinSec"].isNull()) + dialogueObject.hourMinSec = dataNodeDialoguesDialogue["HourMinSec"].asString(); + if(!dataNodeDialoguesDialogue["SourceRole"].isNull()) + dialogueObject.sourceRole = dataNodeDialoguesDialogue["SourceRole"].asString(); + if(!dataNodeDialoguesDialogue["Begin"].isNull()) + dialogueObject.begin = std::stol(dataNodeDialoguesDialogue["Begin"].asString()); + if(!dataNodeDialoguesDialogue["EmotionValue"].isNull()) + dialogueObject.emotionValue = std::stoi(dataNodeDialoguesDialogue["EmotionValue"].asString()); + if(!dataNodeDialoguesDialogue["Role"].isNull()) + dialogueObject.role = dataNodeDialoguesDialogue["Role"].asString(); + if(!dataNodeDialoguesDialogue["SilenceDuration"].isNull()) + dialogueObject.silenceDuration = std::stoi(dataNodeDialoguesDialogue["SilenceDuration"].asString()); auto allDeltasNode = dataNodeDialoguesDialogue["Deltas"]["Delta"]; for (auto dataNodeDialoguesDialogueDeltasDelta : allDeltasNode) { @@ -118,12 +118,12 @@ void GetNextResultToVerifyResult::parse(const std::string &payload) } data_.dialogues.push_back(dialogueObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/GetPrecisionTaskRequest.cc b/qualitycheck/src/model/GetPrecisionTaskRequest.cc index 63217acb9..3dbebedef 100644 --- a/qualitycheck/src/model/GetPrecisionTaskRequest.cc +++ b/qualitycheck/src/model/GetPrecisionTaskRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetPrecisionTaskRequest; - -GetPrecisionTaskRequest::GetPrecisionTaskRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetPrecisionTask") -{ - setMethod(HttpRequest::Method::Post); -} - -GetPrecisionTaskRequest::~GetPrecisionTaskRequest() -{} - -long GetPrecisionTaskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetPrecisionTaskRequest; + +GetPrecisionTaskRequest::GetPrecisionTaskRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetPrecisionTask") { + setMethod(HttpRequest::Method::Post); } -void GetPrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetPrecisionTaskRequest::~GetPrecisionTaskRequest() {} + +long GetPrecisionTaskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetPrecisionTaskRequest::getJsonStr()const -{ - return jsonStr_; +void GetPrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetPrecisionTaskRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetPrecisionTaskRequest::getJsonStr() const { + return jsonStr_; } -std::string GetPrecisionTaskRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetPrecisionTaskRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetPrecisionTaskRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetPrecisionTaskRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetPrecisionTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetPrecisionTaskResult.cc b/qualitycheck/src/model/GetPrecisionTaskResult.cc index bd7259cbf..8e905d9e2 100644 --- a/qualitycheck/src/model/GetPrecisionTaskResult.cc +++ b/qualitycheck/src/model/GetPrecisionTaskResult.cc @@ -40,50 +40,50 @@ void GetPrecisionTaskResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["Name"].isNull()) - data_.name = dataNode["Name"].asString(); - if(!dataNode["Source"].isNull()) - data_.source = std::stoi(dataNode["Source"].asString()); - if(!dataNode["DataSetId"].isNull()) - data_.dataSetId = std::stol(dataNode["DataSetId"].asString()); - if(!dataNode["DataSetName"].isNull()) - data_.dataSetName = dataNode["DataSetName"].asString(); - if(!dataNode["TaskId"].isNull()) - data_.taskId = dataNode["TaskId"].asString(); - if(!dataNode["Duration"].isNull()) - data_.duration = std::stoi(dataNode["Duration"].asString()); - if(!dataNode["UpdateTime"].isNull()) - data_.updateTime = dataNode["UpdateTime"].asString(); if(!dataNode["Status"].isNull()) data_.status = std::stoi(dataNode["Status"].asString()); - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); - if(!dataNode["VerifiedCount"].isNull()) - data_.verifiedCount = std::stoi(dataNode["VerifiedCount"].asString()); + if(!dataNode["UpdateTime"].isNull()) + data_.updateTime = dataNode["UpdateTime"].asString(); if(!dataNode["IncorrectWords"].isNull()) data_.incorrectWords = std::stoi(dataNode["IncorrectWords"].asString()); + if(!dataNode["DataSetId"].isNull()) + data_.dataSetId = std::stol(dataNode["DataSetId"].asString()); + if(!dataNode["VerifiedCount"].isNull()) + data_.verifiedCount = std::stoi(dataNode["VerifiedCount"].asString()); + if(!dataNode["Duration"].isNull()) + data_.duration = std::stoi(dataNode["Duration"].asString()); + if(!dataNode["DataSetName"].isNull()) + data_.dataSetName = dataNode["DataSetName"].asString(); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); + if(!dataNode["Source"].isNull()) + data_.source = std::stoi(dataNode["Source"].asString()); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["TaskId"].isNull()) + data_.taskId = dataNode["TaskId"].asString(); auto allPrecisionsNode = dataNode["Precisions"]["Precision"]; for (auto dataNodePrecisionsPrecision : allPrecisionsNode) { Data::Precision precisionObject; - if(!dataNodePrecisionsPrecision["ModelName"].isNull()) - precisionObject.modelName = dataNodePrecisionsPrecision["ModelName"].asString(); - if(!dataNodePrecisionsPrecision["ModelId"].isNull()) - precisionObject.modelId = std::stol(dataNodePrecisionsPrecision["ModelId"].asString()); - if(!dataNodePrecisionsPrecision["Precision"].isNull()) - precisionObject.precision = std::stof(dataNodePrecisionsPrecision["Precision"].asString()); if(!dataNodePrecisionsPrecision["Status"].isNull()) precisionObject.status = std::stoi(dataNodePrecisionsPrecision["Status"].asString()); + if(!dataNodePrecisionsPrecision["ModelName"].isNull()) + precisionObject.modelName = dataNodePrecisionsPrecision["ModelName"].asString(); if(!dataNodePrecisionsPrecision["TaskId"].isNull()) precisionObject.taskId = dataNodePrecisionsPrecision["TaskId"].asString(); + if(!dataNodePrecisionsPrecision["Precision"].isNull()) + precisionObject.precision = std::stof(dataNodePrecisionsPrecision["Precision"].asString()); + if(!dataNodePrecisionsPrecision["ModelId"].isNull()) + precisionObject.modelId = std::stol(dataNodePrecisionsPrecision["ModelId"].asString()); data_.precisions.push_back(precisionObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/GetResultCallbackRequest.cc b/qualitycheck/src/model/GetResultCallbackRequest.cc index 16780fb27..14b28c72e 100644 --- a/qualitycheck/src/model/GetResultCallbackRequest.cc +++ b/qualitycheck/src/model/GetResultCallbackRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetResultCallbackRequest; - -GetResultCallbackRequest::GetResultCallbackRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetResultCallback") -{ - setMethod(HttpRequest::Method::Post); -} - -GetResultCallbackRequest::~GetResultCallbackRequest() -{} - -long GetResultCallbackRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetResultCallbackRequest; + +GetResultCallbackRequest::GetResultCallbackRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetResultCallback") { + setMethod(HttpRequest::Method::Post); } -void GetResultCallbackRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetResultCallbackRequest::~GetResultCallbackRequest() {} + +long GetResultCallbackRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetResultCallbackRequest::getJsonStr()const -{ - return jsonStr_; +void GetResultCallbackRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetResultCallbackRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetResultCallbackRequest::getJsonStr() const { + return jsonStr_; } -std::string GetResultCallbackRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetResultCallbackRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetResultCallbackRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetResultCallbackRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetResultCallbackRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetResultCallbackResult.cc b/qualitycheck/src/model/GetResultCallbackResult.cc index 0fbcf33da..900a54b63 100644 --- a/qualitycheck/src/model/GetResultCallbackResult.cc +++ b/qualitycheck/src/model/GetResultCallbackResult.cc @@ -39,12 +39,12 @@ void GetResultCallbackResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/GetResultRequest.cc b/qualitycheck/src/model/GetResultRequest.cc index 3ff9a753b..8683f37cb 100644 --- a/qualitycheck/src/model/GetResultRequest.cc +++ b/qualitycheck/src/model/GetResultRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetResultRequest; - -GetResultRequest::GetResultRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetResult") -{ - setMethod(HttpRequest::Method::Post); -} - -GetResultRequest::~GetResultRequest() -{} - -long GetResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetResultRequest; + +GetResultRequest::GetResultRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetResult") { + setMethod(HttpRequest::Method::Post); } -void GetResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetResultRequest::~GetResultRequest() {} + +long GetResultRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetResultRequest::getJsonStr()const -{ - return jsonStr_; +void GetResultRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetResultRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetResultRequest::getJsonStr() const { + return jsonStr_; } -std::string GetResultRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetResultRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetResultRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetResultRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetResultResult.cc b/qualitycheck/src/model/GetResultResult.cc index 91f9a1f4b..86491dbc3 100644 --- a/qualitycheck/src/model/GetResultResult.cc +++ b/qualitycheck/src/model/GetResultResult.cc @@ -43,70 +43,70 @@ void GetResultResult::parse(const std::string &payload) for (auto valueDataResultInfo : allDataNode) { ResultInfo dataObject; - if(!valueDataResultInfo["Score"].isNull()) - dataObject.score = std::stoi(valueDataResultInfo["Score"].asString()); - if(!valueDataResultInfo["Comments"].isNull()) - dataObject.comments = valueDataResultInfo["Comments"].asString(); - if(!valueDataResultInfo["ErrorMessage"].isNull()) - dataObject.errorMessage = valueDataResultInfo["ErrorMessage"].asString(); if(!valueDataResultInfo["Status"].isNull()) dataObject.status = std::stoi(valueDataResultInfo["Status"].asString()); - if(!valueDataResultInfo["ReviewStatus"].isNull()) - dataObject.reviewStatus = std::stoi(valueDataResultInfo["ReviewStatus"].asString()); - if(!valueDataResultInfo["ReviewResult"].isNull()) - dataObject.reviewResult = std::stoi(valueDataResultInfo["ReviewResult"].asString()); - if(!valueDataResultInfo["TaskId"].isNull()) - dataObject.taskId = valueDataResultInfo["TaskId"].asString(); - if(!valueDataResultInfo["TaskName"].isNull()) - dataObject.taskName = valueDataResultInfo["TaskName"].asString(); - if(!valueDataResultInfo["CreateTime"].isNull()) - dataObject.createTime = valueDataResultInfo["CreateTime"].asString(); - if(!valueDataResultInfo["Reviewer"].isNull()) - dataObject.reviewer = valueDataResultInfo["Reviewer"].asString(); - if(!valueDataResultInfo["Resolver"].isNull()) - dataObject.resolver = valueDataResultInfo["Resolver"].asString(); - if(!valueDataResultInfo["ReviewTime"].isNull()) - dataObject.reviewTime = valueDataResultInfo["ReviewTime"].asString(); - if(!valueDataResultInfo["CreateTimeLong"].isNull()) - dataObject.createTimeLong = valueDataResultInfo["CreateTimeLong"].asString(); - if(!valueDataResultInfo["ReviewTimeLong"].isNull()) - dataObject.reviewTimeLong = valueDataResultInfo["ReviewTimeLong"].asString(); - if(!valueDataResultInfo["ReviewType"].isNull()) - dataObject.reviewType = std::stoi(valueDataResultInfo["ReviewType"].asString()); if(!valueDataResultInfo["AssignmentTime"].isNull()) dataObject.assignmentTime = valueDataResultInfo["AssignmentTime"].asString(); if(!valueDataResultInfo["LastDataId"].isNull()) dataObject.lastDataId = valueDataResultInfo["LastDataId"].asString(); + if(!valueDataResultInfo["ErrorMessage"].isNull()) + dataObject.errorMessage = valueDataResultInfo["ErrorMessage"].asString(); + if(!valueDataResultInfo["Reviewer"].isNull()) + dataObject.reviewer = valueDataResultInfo["Reviewer"].asString(); + if(!valueDataResultInfo["CreateTime"].isNull()) + dataObject.createTime = valueDataResultInfo["CreateTime"].asString(); + if(!valueDataResultInfo["ReviewStatus"].isNull()) + dataObject.reviewStatus = std::stoi(valueDataResultInfo["ReviewStatus"].asString()); + if(!valueDataResultInfo["ReviewTimeLong"].isNull()) + dataObject.reviewTimeLong = valueDataResultInfo["ReviewTimeLong"].asString(); + if(!valueDataResultInfo["TaskName"].isNull()) + dataObject.taskName = valueDataResultInfo["TaskName"].asString(); + if(!valueDataResultInfo["ReviewResult"].isNull()) + dataObject.reviewResult = std::stoi(valueDataResultInfo["ReviewResult"].asString()); + if(!valueDataResultInfo["Score"].isNull()) + dataObject.score = std::stoi(valueDataResultInfo["Score"].asString()); + if(!valueDataResultInfo["CreateTimeLong"].isNull()) + dataObject.createTimeLong = valueDataResultInfo["CreateTimeLong"].asString(); + if(!valueDataResultInfo["ReviewTime"].isNull()) + dataObject.reviewTime = valueDataResultInfo["ReviewTime"].asString(); + if(!valueDataResultInfo["Comments"].isNull()) + dataObject.comments = valueDataResultInfo["Comments"].asString(); + if(!valueDataResultInfo["TaskId"].isNull()) + dataObject.taskId = valueDataResultInfo["TaskId"].asString(); + if(!valueDataResultInfo["ReviewType"].isNull()) + dataObject.reviewType = std::stoi(valueDataResultInfo["ReviewType"].asString()); + if(!valueDataResultInfo["Resolver"].isNull()) + dataObject.resolver = valueDataResultInfo["Resolver"].asString(); auto allAsrResultNode = valueDataResultInfo["AsrResult"]["AsrResultItem"]; for (auto valueDataResultInfoAsrResultAsrResultItem : allAsrResultNode) { ResultInfo::AsrResultItem asrResultObject; - if(!valueDataResultInfoAsrResultAsrResultItem["Role"].isNull()) - asrResultObject.role = valueDataResultInfoAsrResultAsrResultItem["Role"].asString(); if(!valueDataResultInfoAsrResultAsrResultItem["Words"].isNull()) asrResultObject.words = valueDataResultInfoAsrResultAsrResultItem["Words"].asString(); if(!valueDataResultInfoAsrResultAsrResultItem["Begin"].isNull()) asrResultObject.begin = std::stol(valueDataResultInfoAsrResultAsrResultItem["Begin"].asString()); - if(!valueDataResultInfoAsrResultAsrResultItem["End"].isNull()) - asrResultObject.end = std::stol(valueDataResultInfoAsrResultAsrResultItem["End"].asString()); if(!valueDataResultInfoAsrResultAsrResultItem["EmotionValue"].isNull()) asrResultObject.emotionValue = std::stoi(valueDataResultInfoAsrResultAsrResultItem["EmotionValue"].asString()); + if(!valueDataResultInfoAsrResultAsrResultItem["End"].isNull()) + asrResultObject.end = std::stol(valueDataResultInfoAsrResultAsrResultItem["End"].asString()); if(!valueDataResultInfoAsrResultAsrResultItem["SpeechRate"].isNull()) asrResultObject.speechRate = std::stoi(valueDataResultInfoAsrResultAsrResultItem["SpeechRate"].asString()); + if(!valueDataResultInfoAsrResultAsrResultItem["Role"].isNull()) + asrResultObject.role = valueDataResultInfoAsrResultAsrResultItem["Role"].asString(); dataObject.asrResult.push_back(asrResultObject); } auto allHitResultNode = valueDataResultInfo["HitResult"]["HitResultItem"]; for (auto valueDataResultInfoHitResultHitResultItem : allHitResultNode) { ResultInfo::HitResultItem hitResultObject; - if(!valueDataResultInfoHitResultHitResultItem["Rid"].isNull()) - hitResultObject.rid = valueDataResultInfoHitResultHitResultItem["Rid"].asString(); - if(!valueDataResultInfoHitResultHitResultItem["Name"].isNull()) - hitResultObject.name = valueDataResultInfoHitResultHitResultItem["Name"].asString(); if(!valueDataResultInfoHitResultHitResultItem["Type"].isNull()) hitResultObject.type = valueDataResultInfoHitResultHitResultItem["Type"].asString(); if(!valueDataResultInfoHitResultHitResultItem["ReviewResult"].isNull()) hitResultObject.reviewResult = std::stoi(valueDataResultInfoHitResultHitResultItem["ReviewResult"].asString()); + if(!valueDataResultInfoHitResultHitResultItem["Name"].isNull()) + hitResultObject.name = valueDataResultInfoHitResultHitResultItem["Name"].asString(); + if(!valueDataResultInfoHitResultHitResultItem["Rid"].isNull()) + hitResultObject.rid = valueDataResultInfoHitResultHitResultItem["Rid"].asString(); auto allHitsNode = valueDataResultInfoHitResultHitResultItem["Hits"]["Hit"]; for (auto valueDataResultInfoHitResultHitResultItemHitsHit : allHitsNode) { @@ -115,27 +115,27 @@ void GetResultResult::parse(const std::string &payload) for (auto valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord : allKeyWordsNode) { ResultInfo::HitResultItem::Hit::KeyWord keyWordsObject; - if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].isNull()) - keyWordsObject.cid = valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].asString(); if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["From"].isNull()) keyWordsObject.from = std::stoi(valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["From"].asString()); if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["To"].isNull()) keyWordsObject.to = std::stoi(valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["To"].asString()); if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Val"].isNull()) keyWordsObject.val = valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Val"].asString(); + if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].isNull()) + keyWordsObject.cid = valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].asString(); hitsObject.keyWords.push_back(keyWordsObject); } auto phraseNode = value["Phrase"]; - if(!phraseNode["Role"].isNull()) - hitsObject.phrase.role = phraseNode["Role"].asString(); - if(!phraseNode["Words"].isNull()) - hitsObject.phrase.words = phraseNode["Words"].asString(); - if(!phraseNode["Begin"].isNull()) - hitsObject.phrase.begin = std::stol(phraseNode["Begin"].asString()); - if(!phraseNode["End"].isNull()) - hitsObject.phrase.end = std::stoi(phraseNode["End"].asString()); if(!phraseNode["EmotionValue"].isNull()) hitsObject.phrase.emotionValue = std::stoi(phraseNode["EmotionValue"].asString()); + if(!phraseNode["End"].isNull()) + hitsObject.phrase.end = std::stoi(phraseNode["End"].asString()); + if(!phraseNode["Words"].isNull()) + hitsObject.phrase.words = phraseNode["Words"].asString(); + if(!phraseNode["Role"].isNull()) + hitsObject.phrase.role = phraseNode["Role"].asString(); + if(!phraseNode["Begin"].isNull()) + hitsObject.phrase.begin = std::stol(phraseNode["Begin"].asString()); auto allCid = value["Cid"]["Cid"]; for (auto value : allCid) hitsObject.cid.push_back(value.asString()); @@ -147,92 +147,92 @@ void GetResultResult::parse(const std::string &payload) for (auto valueDataResultInfoHitScoreHitScoreItem : allHitScoreNode) { ResultInfo::HitScoreItem hitScoreObject; - if(!valueDataResultInfoHitScoreHitScoreItem["ScoreId"].isNull()) - hitScoreObject.scoreId = valueDataResultInfoHitScoreHitScoreItem["ScoreId"].asString(); - if(!valueDataResultInfoHitScoreHitScoreItem["RuleId"].isNull()) - hitScoreObject.ruleId = valueDataResultInfoHitScoreHitScoreItem["RuleId"].asString(); if(!valueDataResultInfoHitScoreHitScoreItem["ScoreName"].isNull()) hitScoreObject.scoreName = valueDataResultInfoHitScoreHitScoreItem["ScoreName"].asString(); if(!valueDataResultInfoHitScoreHitScoreItem["ScoreNumber"].isNull()) hitScoreObject.scoreNumber = valueDataResultInfoHitScoreHitScoreItem["ScoreNumber"].asString(); + if(!valueDataResultInfoHitScoreHitScoreItem["ScoreId"].isNull()) + hitScoreObject.scoreId = valueDataResultInfoHitScoreHitScoreItem["ScoreId"].asString(); + if(!valueDataResultInfoHitScoreHitScoreItem["RuleId"].isNull()) + hitScoreObject.ruleId = valueDataResultInfoHitScoreHitScoreItem["RuleId"].asString(); dataObject.hitScore.push_back(hitScoreObject); } auto recordingNode = value["Recording"]; - if(!recordingNode["Id"].isNull()) - dataObject.recording.id = recordingNode["Id"].asString(); - if(!recordingNode["PrimaryId"].isNull()) - dataObject.recording.primaryId = recordingNode["PrimaryId"].asString(); - if(!recordingNode["CallId"].isNull()) - dataObject.recording.callId = recordingNode["CallId"].asString(); - if(!recordingNode["Name"].isNull()) - dataObject.recording.name = recordingNode["Name"].asString(); - if(!recordingNode["Url"].isNull()) - dataObject.recording.url = recordingNode["Url"].asString(); - if(!recordingNode["DataSetName"].isNull()) - dataObject.recording.dataSetName = recordingNode["DataSetName"].asString(); - if(!recordingNode["Duration"].isNull()) - dataObject.recording.duration = std::stol(recordingNode["Duration"].asString()); - if(!recordingNode["Caller"].isNull()) - dataObject.recording.caller = recordingNode["Caller"].asString(); + if(!recordingNode["Remark13"].isNull()) + dataObject.recording.remark13 = recordingNode["Remark13"].asString(); if(!recordingNode["Callee"].isNull()) dataObject.recording.callee = recordingNode["Callee"].asString(); - if(!recordingNode["CallTime"].isNull()) - dataObject.recording.callTime = recordingNode["CallTime"].asString(); - if(!recordingNode["CallType"].isNull()) - dataObject.recording.callType = std::stoi(recordingNode["CallType"].asString()); - if(!recordingNode["Business"].isNull()) - dataObject.recording.business = recordingNode["Business"].asString(); + if(!recordingNode["DialogueSize"].isNull()) + dataObject.recording.dialogueSize = std::stoi(recordingNode["DialogueSize"].asString()); + if(!recordingNode["PrimaryId"].isNull()) + dataObject.recording.primaryId = recordingNode["PrimaryId"].asString(); + if(!recordingNode["Remark12"].isNull()) + dataObject.recording.remark12 = recordingNode["Remark12"].asString(); if(!recordingNode["Remark1"].isNull()) dataObject.recording.remark1 = recordingNode["Remark1"].asString(); - if(!recordingNode["Remark2"].isNull()) - dataObject.recording.remark2 = recordingNode["Remark2"].asString(); - if(!recordingNode["Remark3"].isNull()) - dataObject.recording.remark3 = recordingNode["Remark3"].asString(); - if(!recordingNode["Remark4"].isNull()) - dataObject.recording.remark4 = recordingNode["Remark4"].asString(); - if(!recordingNode["Remark5"].isNull()) - dataObject.recording.remark5 = std::stol(recordingNode["Remark5"].asString()); - if(!recordingNode["Remark6"].isNull()) - dataObject.recording.remark6 = recordingNode["Remark6"].asString(); if(!recordingNode["Remark7"].isNull()) dataObject.recording.remark7 = recordingNode["Remark7"].asString(); if(!recordingNode["Remark8"].isNull()) dataObject.recording.remark8 = recordingNode["Remark8"].asString(); + if(!recordingNode["Remark2"].isNull()) + dataObject.recording.remark2 = recordingNode["Remark2"].asString(); + if(!recordingNode["CallId"].isNull()) + dataObject.recording.callId = recordingNode["CallId"].asString(); if(!recordingNode["Remark9"].isNull()) dataObject.recording.remark9 = recordingNode["Remark9"].asString(); + if(!recordingNode["Name"].isNull()) + dataObject.recording.name = recordingNode["Name"].asString(); + if(!recordingNode["Remark6"].isNull()) + dataObject.recording.remark6 = recordingNode["Remark6"].asString(); if(!recordingNode["Remark10"].isNull()) dataObject.recording.remark10 = recordingNode["Remark10"].asString(); + if(!recordingNode["Business"].isNull()) + dataObject.recording.business = recordingNode["Business"].asString(); + if(!recordingNode["Remark3"].isNull()) + dataObject.recording.remark3 = recordingNode["Remark3"].asString(); + if(!recordingNode["Url"].isNull()) + dataObject.recording.url = recordingNode["Url"].asString(); if(!recordingNode["Remark11"].isNull()) dataObject.recording.remark11 = recordingNode["Remark11"].asString(); - if(!recordingNode["Remark12"].isNull()) - dataObject.recording.remark12 = recordingNode["Remark12"].asString(); - if(!recordingNode["Remark13"].isNull()) - dataObject.recording.remark13 = recordingNode["Remark13"].asString(); - if(!recordingNode["DialogueSize"].isNull()) - dataObject.recording.dialogueSize = std::stoi(recordingNode["DialogueSize"].asString()); + if(!recordingNode["Remark4"].isNull()) + dataObject.recording.remark4 = recordingNode["Remark4"].asString(); + if(!recordingNode["CallType"].isNull()) + dataObject.recording.callType = std::stoi(recordingNode["CallType"].asString()); + if(!recordingNode["Caller"].isNull()) + dataObject.recording.caller = recordingNode["Caller"].asString(); + if(!recordingNode["DataSetName"].isNull()) + dataObject.recording.dataSetName = recordingNode["DataSetName"].asString(); + if(!recordingNode["Duration"].isNull()) + dataObject.recording.duration = std::stol(recordingNode["Duration"].asString()); + if(!recordingNode["Remark5"].isNull()) + dataObject.recording.remark5 = std::stol(recordingNode["Remark5"].asString()); + if(!recordingNode["Id"].isNull()) + dataObject.recording.id = recordingNode["Id"].asString(); + if(!recordingNode["CallTime"].isNull()) + dataObject.recording.callTime = recordingNode["CallTime"].asString(); auto agentNode = value["Agent"]; - if(!agentNode["Id"].isNull()) - dataObject.agent.id = agentNode["Id"].asString(); if(!agentNode["Name"].isNull()) dataObject.agent.name = agentNode["Name"].asString(); if(!agentNode["SkillGroup"].isNull()) dataObject.agent.skillGroup = agentNode["SkillGroup"].asString(); + if(!agentNode["Id"].isNull()) + dataObject.agent.id = agentNode["Id"].asString(); data_.push_back(dataObject); } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["ResultCountId"].isNull()) + resultCountId_ = value["ResultCountId"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Count"].isNull()) - count_ = std::stoi(value["Count"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["ResultCountId"].isNull()) - resultCountId_ = value["ResultCountId"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); } diff --git a/qualitycheck/src/model/GetResultToReviewRequest.cc b/qualitycheck/src/model/GetResultToReviewRequest.cc index d8961c61a..00f234ab1 100644 --- a/qualitycheck/src/model/GetResultToReviewRequest.cc +++ b/qualitycheck/src/model/GetResultToReviewRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetResultToReviewRequest; - -GetResultToReviewRequest::GetResultToReviewRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetResultToReview") -{ - setMethod(HttpRequest::Method::Post); -} - -GetResultToReviewRequest::~GetResultToReviewRequest() -{} - -long GetResultToReviewRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetResultToReviewRequest; + +GetResultToReviewRequest::GetResultToReviewRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetResultToReview") { + setMethod(HttpRequest::Method::Post); } -void GetResultToReviewRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetResultToReviewRequest::~GetResultToReviewRequest() {} + +long GetResultToReviewRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetResultToReviewRequest::getJsonStr()const -{ - return jsonStr_; +void GetResultToReviewRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetResultToReviewRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetResultToReviewRequest::getJsonStr() const { + return jsonStr_; } -std::string GetResultToReviewRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetResultToReviewRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetResultToReviewRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetResultToReviewRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetResultToReviewRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetResultToReviewResult.cc b/qualitycheck/src/model/GetResultToReviewResult.cc index 1e3929973..9f37486d4 100644 --- a/qualitycheck/src/model/GetResultToReviewResult.cc +++ b/qualitycheck/src/model/GetResultToReviewResult.cc @@ -40,36 +40,40 @@ void GetResultToReviewResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["Audio"].isNull()) - data_.audio = dataNode["Audio"].asString() == "true"; + if(!dataNode["Status"].isNull()) + data_.status = std::stoi(dataNode["Status"].asString()); if(!dataNode["AudioScheme"].isNull()) data_.audioScheme = dataNode["AudioScheme"].asString(); if(!dataNode["AudioURL"].isNull()) data_.audioURL = dataNode["AudioURL"].asString(); - if(!dataNode["BusinessType"].isNull()) - data_.businessType = std::stoi(dataNode["BusinessType"].asString()); - if(!dataNode["Deleted"].isNull()) - data_.deleted = dataNode["Deleted"].asString() == "true"; - if(!dataNode["FileMergeName"].isNull()) - data_.fileMergeName = dataNode["FileMergeName"].asString(); if(!dataNode["HitNumber"].isNull()) data_.hitNumber = std::stoi(dataNode["HitNumber"].asString()); - if(!dataNode["ReviewNumber"].isNull()) - data_.reviewNumber = std::stoi(dataNode["ReviewNumber"].asString()); + if(!dataNode["Audio"].isNull()) + data_.audio = dataNode["Audio"].asString() == "true"; if(!dataNode["TotalScore"].isNull()) data_.totalScore = std::stoi(dataNode["TotalScore"].asString()); - if(!dataNode["Vid"].isNull()) - data_.vid = dataNode["Vid"].asString(); - if(!dataNode["Comments"].isNull()) - data_.comments = dataNode["Comments"].asString(); + if(!dataNode["BusinessType"].isNull()) + data_.businessType = std::stoi(dataNode["BusinessType"].asString()); if(!dataNode["FileId"].isNull()) data_.fileId = dataNode["FileId"].asString(); - if(!dataNode["Status"].isNull()) - data_.status = std::stoi(dataNode["Status"].asString()); + if(!dataNode["FileMergeName"].isNull()) + data_.fileMergeName = dataNode["FileMergeName"].asString(); + if(!dataNode["Comments"].isNull()) + data_.comments = dataNode["Comments"].asString(); + if(!dataNode["Deleted"].isNull()) + data_.deleted = dataNode["Deleted"].asString() == "true"; + if(!dataNode["Vid"].isNull()) + data_.vid = dataNode["Vid"].asString(); + if(!dataNode["ReviewNumber"].isNull()) + data_.reviewNumber = std::stoi(dataNode["ReviewNumber"].asString()); auto allDialoguesNode = dataNode["Dialogues"]["Dialogue"]; for (auto dataNodeDialoguesDialogue : allDialoguesNode) { Data::Dialogue dialogueObject; + if(!dataNodeDialoguesDialogue["Words"].isNull()) + dialogueObject.words = dataNodeDialoguesDialogue["Words"].asString(); + if(!dataNodeDialoguesDialogue["Identity"].isNull()) + dialogueObject.identity = dataNodeDialoguesDialogue["Identity"].asString(); if(!dataNodeDialoguesDialogue["Begin"].isNull()) dialogueObject.begin = std::stol(dataNodeDialoguesDialogue["Begin"].asString()); if(!dataNodeDialoguesDialogue["BeginTime"].isNull()) @@ -78,18 +82,14 @@ void GetResultToReviewResult::parse(const std::string &payload) dialogueObject.emotionValue = std::stoi(dataNodeDialoguesDialogue["EmotionValue"].asString()); if(!dataNodeDialoguesDialogue["End"].isNull()) dialogueObject.end = std::stol(dataNodeDialoguesDialogue["End"].asString()); - if(!dataNodeDialoguesDialogue["HourMinSec"].isNull()) - dialogueObject.hourMinSec = dataNodeDialoguesDialogue["HourMinSec"].asString(); - if(!dataNodeDialoguesDialogue["Identity"].isNull()) - dialogueObject.identity = dataNodeDialoguesDialogue["Identity"].asString(); + if(!dataNodeDialoguesDialogue["SpeechRate"].isNull()) + dialogueObject.speechRate = std::stoi(dataNodeDialoguesDialogue["SpeechRate"].asString()); if(!dataNodeDialoguesDialogue["Role"].isNull()) dialogueObject.role = dataNodeDialoguesDialogue["Role"].asString(); if(!dataNodeDialoguesDialogue["SilenceDuration"].isNull()) dialogueObject.silenceDuration = std::stoi(dataNodeDialoguesDialogue["SilenceDuration"].asString()); - if(!dataNodeDialoguesDialogue["SpeechRate"].isNull()) - dialogueObject.speechRate = std::stoi(dataNodeDialoguesDialogue["SpeechRate"].asString()); - if(!dataNodeDialoguesDialogue["Words"].isNull()) - dialogueObject.words = dataNodeDialoguesDialogue["Words"].asString(); + if(!dataNodeDialoguesDialogue["HourMinSec"].isNull()) + dialogueObject.hourMinSec = dataNodeDialoguesDialogue["HourMinSec"].asString(); data_.dialogues.push_back(dialogueObject); } auto allHandScoreInfoListNode = dataNode["HandScoreInfoList"]["ScorePo"]; @@ -104,14 +104,14 @@ void GetResultToReviewResult::parse(const std::string &payload) for (auto dataNodeHandScoreInfoListScorePoScoreInfosScoreParam : allScoreInfosNode) { Data::ScorePo::ScoreParam scoreInfosObject; - if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["Hit"].isNull()) - scoreInfosObject.hit = std::stoi(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["Hit"].asString()); - if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreNum"].isNull()) - scoreInfosObject.scoreNum = std::stoi(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreNum"].asString()); - if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubId"].isNull()) - scoreInfosObject.scoreSubId = std::stol(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubId"].asString()); if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubName"].isNull()) scoreInfosObject.scoreSubName = dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubName"].asString(); + if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreNum"].isNull()) + scoreInfosObject.scoreNum = std::stoi(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreNum"].asString()); + if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["Hit"].isNull()) + scoreInfosObject.hit = std::stoi(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["Hit"].asString()); + if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubId"].isNull()) + scoreInfosObject.scoreSubId = std::stol(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreSubId"].asString()); if(!dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreType"].isNull()) scoreInfosObject.scoreType = std::stoi(dataNodeHandScoreInfoListScorePoScoreInfosScoreParam["ScoreType"].asString()); scorePoObject.scoreInfos.push_back(scoreInfosObject); @@ -122,28 +122,28 @@ void GetResultToReviewResult::parse(const std::string &payload) for (auto dataNodeHitRuleReviewInfoListHitRuleReviewInfo : allHitRuleReviewInfoListNode) { Data::HitRuleReviewInfo hitRuleReviewInfoObject; - if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["AutoReview"].isNull()) - hitRuleReviewInfoObject.autoReview = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["AutoReview"].asString()); - if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Rid"].isNull()) - hitRuleReviewInfoObject.rid = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Rid"].asString()); - if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleName"].isNull()) - hitRuleReviewInfoObject.ruleName = dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleName"].asString(); if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleScoreType"].isNull()) hitRuleReviewInfoObject.ruleScoreType = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleScoreType"].asString()); if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleType"].isNull()) hitRuleReviewInfoObject.ruleType = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleType"].asString()); - if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreId"].isNull()) - hitRuleReviewInfoObject.scoreId = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreId"].asString()); - if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreSubId"].isNull()) - hitRuleReviewInfoObject.scoreSubId = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreSubId"].asString()); - if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["TotalNumber"].isNull()) - hitRuleReviewInfoObject.totalNumber = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["TotalNumber"].asString()); if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreSubName"].isNull()) hitRuleReviewInfoObject.scoreSubName = dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreSubName"].asString(); if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreNum"].isNull()) hitRuleReviewInfoObject.scoreNum = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreNum"].asString()); + if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["AutoReview"].isNull()) + hitRuleReviewInfoObject.autoReview = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["AutoReview"].asString()); + if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreSubId"].isNull()) + hitRuleReviewInfoObject.scoreSubId = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreSubId"].asString()); if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Complainable"].isNull()) hitRuleReviewInfoObject.complainable = dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Complainable"].asString() == "true"; + if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["TotalNumber"].isNull()) + hitRuleReviewInfoObject.totalNumber = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["TotalNumber"].asString()); + if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreId"].isNull()) + hitRuleReviewInfoObject.scoreId = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ScoreId"].asString()); + if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleName"].isNull()) + hitRuleReviewInfoObject.ruleName = dataNodeHitRuleReviewInfoListHitRuleReviewInfo["RuleName"].asString(); + if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Rid"].isNull()) + hitRuleReviewInfoObject.rid = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfo["Rid"].asString()); auto allConditionHitInfoListNode = dataNodeHitRuleReviewInfoListHitRuleReviewInfo["ConditionHitInfoList"]["ConditionHitInfo"]; for (auto dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfo : allConditionHitInfoListNode) { @@ -152,35 +152,35 @@ void GetResultToReviewResult::parse(const std::string &payload) for (auto dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord : allKeyWordsNode) { Data::HitRuleReviewInfo::ConditionHitInfo::KeyWord keyWordsObject; + if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["From"].isNull()) + keyWordsObject.from = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["From"].asString()); if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Val"].isNull()) keyWordsObject.val = dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Val"].asString(); if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Pid"].isNull()) keyWordsObject.pid = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Pid"].asString()); - if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["From"].isNull()) - keyWordsObject.from = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["From"].asString()); - if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["To"].isNull()) - keyWordsObject.to = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["To"].asString()); if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Tid"].isNull()) keyWordsObject.tid = dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Tid"].asString(); if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Cid"].isNull()) keyWordsObject.cid = dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["Cid"].asString(); + if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["To"].isNull()) + keyWordsObject.to = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoConditionHitInfoListConditionHitInfoKeyWordsKeyWord["To"].asString()); conditionHitInfoListObject.keyWords.push_back(keyWordsObject); } auto phraseNode = value["Phrase"]; - if(!phraseNode["Role"].isNull()) - conditionHitInfoListObject.phrase.role = phraseNode["Role"].asString(); - if(!phraseNode["Identity"].isNull()) - conditionHitInfoListObject.phrase.identity = phraseNode["Identity"].asString(); - if(!phraseNode["EmotionValue"].isNull()) - conditionHitInfoListObject.phrase.emotionValue = std::stoi(phraseNode["EmotionValue"].asString()); if(!phraseNode["Words"].isNull()) conditionHitInfoListObject.phrase.words = phraseNode["Words"].asString(); - if(!phraseNode["End"].isNull()) - conditionHitInfoListObject.phrase.end = std::stol(phraseNode["End"].asString()); - if(!phraseNode["Pid"].isNull()) - conditionHitInfoListObject.phrase.pid = std::stoi(phraseNode["Pid"].asString()); if(!phraseNode["Begin"].isNull()) conditionHitInfoListObject.phrase.begin = std::stol(phraseNode["Begin"].asString()); + if(!phraseNode["Identity"].isNull()) + conditionHitInfoListObject.phrase.identity = phraseNode["Identity"].asString(); + if(!phraseNode["Pid"].isNull()) + conditionHitInfoListObject.phrase.pid = std::stoi(phraseNode["Pid"].asString()); + if(!phraseNode["EmotionValue"].isNull()) + conditionHitInfoListObject.phrase.emotionValue = std::stoi(phraseNode["EmotionValue"].asString()); + if(!phraseNode["End"].isNull()) + conditionHitInfoListObject.phrase.end = std::stol(phraseNode["End"].asString()); + if(!phraseNode["Role"].isNull()) + conditionHitInfoListObject.phrase.role = phraseNode["Role"].asString(); auto allCid = value["Cid"]["Cid"]; for (auto value : allCid) conditionHitInfoListObject.cid.push_back(value.asString()); @@ -192,57 +192,57 @@ void GetResultToReviewResult::parse(const std::string &payload) Data::HitRuleReviewInfo::ComplainHistoriesItem complainHistoriesObject; if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["Comments"].isNull()) complainHistoriesObject.comments = dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["Comments"].asString(); - if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperatorName"].isNull()) - complainHistoriesObject.operatorName = dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperatorName"].asString(); if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["Operator"].isNull()) complainHistoriesObject._operator = std::stol(dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["Operator"].asString()); - if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationType"].isNull()) - complainHistoriesObject.operationType = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationType"].asString()); if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationTime"].isNull()) complainHistoriesObject.operationTime = dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationTime"].asString(); + if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationType"].isNull()) + complainHistoriesObject.operationType = std::stoi(dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperationType"].asString()); + if(!dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperatorName"].isNull()) + complainHistoriesObject.operatorName = dataNodeHitRuleReviewInfoListHitRuleReviewInfoComplainHistoriesComplainHistoriesItem["OperatorName"].asString(); hitRuleReviewInfoObject.complainHistories.push_back(complainHistoriesObject); } auto reviewInfoNode = value["ReviewInfo"]; - if(!reviewInfoNode["HitId"].isNull()) - hitRuleReviewInfoObject.reviewInfo.hitId = reviewInfoNode["HitId"].asString(); - if(!reviewInfoNode["Rid"].isNull()) - hitRuleReviewInfoObject.reviewInfo.rid = std::stol(reviewInfoNode["Rid"].asString()); if(!reviewInfoNode["ReviewResult"].isNull()) hitRuleReviewInfoObject.reviewInfo.reviewResult = std::stoi(reviewInfoNode["ReviewResult"].asString()); - if(!reviewInfoNode["Reviewer"].isNull()) - hitRuleReviewInfoObject.reviewInfo.reviewer = reviewInfoNode["Reviewer"].asString(); if(!reviewInfoNode["ReviewTime"].isNull()) hitRuleReviewInfoObject.reviewInfo.reviewTime = reviewInfoNode["ReviewTime"].asString(); + if(!reviewInfoNode["HitId"].isNull()) + hitRuleReviewInfoObject.reviewInfo.hitId = reviewInfoNode["HitId"].asString(); + if(!reviewInfoNode["Reviewer"].isNull()) + hitRuleReviewInfoObject.reviewInfo.reviewer = reviewInfoNode["Reviewer"].asString(); + if(!reviewInfoNode["Rid"].isNull()) + hitRuleReviewInfoObject.reviewInfo.rid = std::stol(reviewInfoNode["Rid"].asString()); data_.hitRuleReviewInfoList.push_back(hitRuleReviewInfoObject); } auto allManualScoreInfoListNode = dataNode["ManualScoreInfoList"]["ManualScoreInfo"]; for (auto dataNodeManualScoreInfoListManualScoreInfo : allManualScoreInfoListNode) { Data::ManualScoreInfo manualScoreInfoObject; - if(!dataNodeManualScoreInfoListManualScoreInfo["ScoreId"].isNull()) - manualScoreInfoObject.scoreId = std::stol(dataNodeManualScoreInfoListManualScoreInfo["ScoreId"].asString()); - if(!dataNodeManualScoreInfoListManualScoreInfo["ScoreSubId"].isNull()) - manualScoreInfoObject.scoreSubId = std::stol(dataNodeManualScoreInfoListManualScoreInfo["ScoreSubId"].asString()); if(!dataNodeManualScoreInfoListManualScoreInfo["ScoreSubName"].isNull()) manualScoreInfoObject.scoreSubName = dataNodeManualScoreInfoListManualScoreInfo["ScoreSubName"].asString(); - if(!dataNodeManualScoreInfoListManualScoreInfo["ScoreNum"].isNull()) - manualScoreInfoObject.scoreNum = std::stoi(dataNodeManualScoreInfoListManualScoreInfo["ScoreNum"].asString()); if(!dataNodeManualScoreInfoListManualScoreInfo["Complainable"].isNull()) manualScoreInfoObject.complainable = dataNodeManualScoreInfoListManualScoreInfo["Complainable"].asString() == "true"; + if(!dataNodeManualScoreInfoListManualScoreInfo["ScoreNum"].isNull()) + manualScoreInfoObject.scoreNum = std::stoi(dataNodeManualScoreInfoListManualScoreInfo["ScoreNum"].asString()); + if(!dataNodeManualScoreInfoListManualScoreInfo["ScoreSubId"].isNull()) + manualScoreInfoObject.scoreSubId = std::stol(dataNodeManualScoreInfoListManualScoreInfo["ScoreSubId"].asString()); + if(!dataNodeManualScoreInfoListManualScoreInfo["ScoreId"].isNull()) + manualScoreInfoObject.scoreId = std::stol(dataNodeManualScoreInfoListManualScoreInfo["ScoreId"].asString()); auto allComplainHistories1Node = dataNodeManualScoreInfoListManualScoreInfo["ComplainHistories"]["ComplainHistoriesItem"]; for (auto dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem : allComplainHistories1Node) { Data::ManualScoreInfo::ComplainHistoriesItem2 complainHistories1Object; if(!dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["Comments"].isNull()) complainHistories1Object.comments = dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["Comments"].asString(); - if(!dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperatorName"].isNull()) - complainHistories1Object.operatorName = dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperatorName"].asString(); if(!dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["Operator"].isNull()) complainHistories1Object._operator = std::stol(dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["Operator"].asString()); - if(!dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperationType"].isNull()) - complainHistories1Object.operationType = std::stoi(dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperationType"].asString()); if(!dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperationTime"].isNull()) complainHistories1Object.operationTime = dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperationTime"].asString(); + if(!dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperationType"].isNull()) + complainHistories1Object.operationType = std::stoi(dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperationType"].asString()); + if(!dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperatorName"].isNull()) + complainHistories1Object.operatorName = dataNodeManualScoreInfoListManualScoreInfoComplainHistoriesComplainHistoriesItem["OperatorName"].asString(); manualScoreInfoObject.complainHistories1.push_back(complainHistories1Object); } data_.manualScoreInfoList.push_back(manualScoreInfoObject); @@ -251,28 +251,28 @@ void GetResultToReviewResult::parse(const std::string &payload) for (auto dataNodeReviewHistoryListReviewHistory : allReviewHistoryListNode) { Data::ReviewHistory reviewHistoryObject; - if(!dataNodeReviewHistoryListReviewHistory["TimeStr"].isNull()) - reviewHistoryObject.timeStr = dataNodeReviewHistoryListReviewHistory["TimeStr"].asString(); - if(!dataNodeReviewHistoryListReviewHistory["OperatorName"].isNull()) - reviewHistoryObject.operatorName = dataNodeReviewHistoryListReviewHistory["OperatorName"].asString(); if(!dataNodeReviewHistoryListReviewHistory["Type"].isNull()) reviewHistoryObject.type = std::stoi(dataNodeReviewHistoryListReviewHistory["Type"].asString()); + if(!dataNodeReviewHistoryListReviewHistory["OperatorName"].isNull()) + reviewHistoryObject.operatorName = dataNodeReviewHistoryListReviewHistory["OperatorName"].asString(); + if(!dataNodeReviewHistoryListReviewHistory["TimeStr"].isNull()) + reviewHistoryObject.timeStr = dataNodeReviewHistoryListReviewHistory["TimeStr"].asString(); + if(!dataNodeReviewHistoryListReviewHistory["Score"].isNull()) + reviewHistoryObject.score = std::stoi(dataNodeReviewHistoryListReviewHistory["Score"].asString()); if(!dataNodeReviewHistoryListReviewHistory["ReviewResult"].isNull()) reviewHistoryObject.reviewResult = std::stoi(dataNodeReviewHistoryListReviewHistory["ReviewResult"].asString()); if(!dataNodeReviewHistoryListReviewHistory["ComplainResult"].isNull()) reviewHistoryObject.complainResult = std::stoi(dataNodeReviewHistoryListReviewHistory["ComplainResult"].asString()); if(!dataNodeReviewHistoryListReviewHistory["OldScore"].isNull()) reviewHistoryObject.oldScore = std::stoi(dataNodeReviewHistoryListReviewHistory["OldScore"].asString()); - if(!dataNodeReviewHistoryListReviewHistory["Score"].isNull()) - reviewHistoryObject.score = std::stoi(dataNodeReviewHistoryListReviewHistory["Score"].asString()); data_.reviewHistoryList.push_back(reviewHistoryObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/GetReviewInfoRequest.cc b/qualitycheck/src/model/GetReviewInfoRequest.cc new file mode 100644 index 000000000..11b56338a --- /dev/null +++ b/qualitycheck/src/model/GetReviewInfoRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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); +} + diff --git a/qualitycheck/src/model/GetReviewInfoResult.cc b/qualitycheck/src/model/GetReviewInfoResult.cc new file mode 100644 index 000000000..c6967ddc8 --- /dev/null +++ b/qualitycheck/src/model/GetReviewInfoResult.cc @@ -0,0 +1,221 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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_; +} + diff --git a/qualitycheck/src/model/GetRuleCategoryRequest.cc b/qualitycheck/src/model/GetRuleCategoryRequest.cc index cb1d18130..6ab44d0ba 100644 --- a/qualitycheck/src/model/GetRuleCategoryRequest.cc +++ b/qualitycheck/src/model/GetRuleCategoryRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetRuleCategoryRequest; - -GetRuleCategoryRequest::GetRuleCategoryRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetRuleCategory") -{ - setMethod(HttpRequest::Method::Post); -} - -GetRuleCategoryRequest::~GetRuleCategoryRequest() -{} - -long GetRuleCategoryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetRuleCategoryRequest; + +GetRuleCategoryRequest::GetRuleCategoryRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetRuleCategory") { + setMethod(HttpRequest::Method::Post); } -void GetRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetRuleCategoryRequest::~GetRuleCategoryRequest() {} + +long GetRuleCategoryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetRuleCategoryRequest::getJsonStr()const -{ - return jsonStr_; +void GetRuleCategoryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetRuleCategoryRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetRuleCategoryRequest::getJsonStr() const { + return jsonStr_; } -std::string GetRuleCategoryRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetRuleCategoryRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetRuleCategoryRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetRuleCategoryRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetRuleCategoryRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetRuleCategoryResult.cc b/qualitycheck/src/model/GetRuleCategoryResult.cc index 4b5c8ffc2..187b8b8d2 100644 --- a/qualitycheck/src/model/GetRuleCategoryResult.cc +++ b/qualitycheck/src/model/GetRuleCategoryResult.cc @@ -51,12 +51,12 @@ void GetRuleCategoryResult::parse(const std::string &payload) dataObject.select = valueDataRuleCountInfo["Select"].asString() == "true"; data_.push_back(dataObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/GetRuleDetailRequest.cc b/qualitycheck/src/model/GetRuleDetailRequest.cc index 606d18299..c6b90ea3a 100644 --- a/qualitycheck/src/model/GetRuleDetailRequest.cc +++ b/qualitycheck/src/model/GetRuleDetailRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetRuleDetailRequest; - -GetRuleDetailRequest::GetRuleDetailRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetRuleDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -GetRuleDetailRequest::~GetRuleDetailRequest() -{} - -long GetRuleDetailRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetRuleDetailRequest; + +GetRuleDetailRequest::GetRuleDetailRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetRuleDetail") { + setMethod(HttpRequest::Method::Post); } -void GetRuleDetailRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetRuleDetailRequest::~GetRuleDetailRequest() {} + +long GetRuleDetailRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetRuleDetailRequest::getJsonStr()const -{ - return jsonStr_; +void GetRuleDetailRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetRuleDetailRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetRuleDetailRequest::getJsonStr() const { + return jsonStr_; } -std::string GetRuleDetailRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetRuleDetailRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetRuleDetailRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetRuleDetailRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetRuleDetailRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetRuleDetailResult.cc b/qualitycheck/src/model/GetRuleDetailResult.cc index 58ae17863..8c79adf9d 100644 --- a/qualitycheck/src/model/GetRuleDetailResult.cc +++ b/qualitycheck/src/model/GetRuleDetailResult.cc @@ -40,6 +40,12 @@ void GetRuleDetailResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; + if(!dataNode["PageSize"].isNull()) + data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["PageNumber"].isNull()) + data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); + if(!dataNode["Count"].isNull()) + data_.count = std::stoi(dataNode["Count"].asString()); auto allConditionsNode = dataNode["Conditions"]["ConditionBasicInfo"]; for (auto dataNodeConditionsConditionBasicInfo : allConditionsNode) { @@ -52,124 +58,120 @@ void GetRuleDetailResult::parse(const std::string &payload) for (auto dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo : allOperatorsNode) { Data::ConditionBasicInfo::OperatorBasicInfo operatorsObject; - if(!dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Oid"].isNull()) - operatorsObject.oid = dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Oid"].asString(); if(!dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Type"].isNull()) operatorsObject.type = dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Type"].asString(); + if(!dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Oid"].isNull()) + operatorsObject.oid = dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["Oid"].asString(); if(!dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["OperName"].isNull()) operatorsObject.operName = dataNodeConditionsConditionBasicInfoOperatorsOperatorBasicInfo["OperName"].asString(); auto paramNode = value["Param"]; - if(!paramNode["Regex"].isNull()) - operatorsObject.param.regex = paramNode["Regex"].asString(); - if(!paramNode["Phrase"].isNull()) - operatorsObject.param.phrase = paramNode["Phrase"].asString(); - if(!paramNode["Interval"].isNull()) - operatorsObject.param.interval = std::stoi(paramNode["Interval"].asString()); - if(!paramNode["Threshold"].isNull()) - operatorsObject.param.threshold = std::stof(paramNode["Threshold"].asString()); - if(!paramNode["InSentence"].isNull()) - operatorsObject.param.inSentence = paramNode["InSentence"].asString() == "true"; - if(!paramNode["Target"].isNull()) - operatorsObject.param.target = std::stoi(paramNode["Target"].asString()); - if(!paramNode["FromEnd"].isNull()) - operatorsObject.param.fromEnd = paramNode["FromEnd"].asString() == "true"; if(!paramNode["DifferentRole"].isNull()) operatorsObject.param.differentRole = paramNode["DifferentRole"].asString() == "true"; + if(!paramNode["Regex"].isNull()) + operatorsObject.param.regex = paramNode["Regex"].asString(); if(!paramNode["TargetRole"].isNull()) operatorsObject.param.targetRole = paramNode["TargetRole"].asString(); - if(!paramNode["Score"].isNull()) - operatorsObject.param.score = std::stoi(paramNode["Score"].asString()); - if(!paramNode["ContextChatMatch"].isNull()) - operatorsObject.param.contextChatMatch = paramNode["ContextChatMatch"].asString() == "true"; - if(!paramNode["KeywordMatchSize"].isNull()) - operatorsObject.param.keywordMatchSize = std::stoi(paramNode["KeywordMatchSize"].asString()); - if(!paramNode["Average"].isNull()) - operatorsObject.param.average = paramNode["Average"].asString() == "true"; if(!paramNode["VelocityInMint"].isNull()) operatorsObject.param.velocityInMint = std::stoi(paramNode["VelocityInMint"].asString()); - if(!paramNode["MinWordSize"].isNull()) - operatorsObject.param.minWordSize = std::stoi(paramNode["MinWordSize"].asString()); + if(!paramNode["Average"].isNull()) + operatorsObject.param.average = paramNode["Average"].asString() == "true"; if(!paramNode["KeywordExtension"].isNull()) operatorsObject.param.keywordExtension = paramNode["KeywordExtension"].asString() == "true"; - if(!paramNode["HitTime"].isNull()) - operatorsObject.param.hitTime = std::stoi(paramNode["HitTime"].asString()); - if(!paramNode["From"].isNull()) - operatorsObject.param.from = std::stoi(paramNode["From"].asString()); - if(!paramNode["BeginType"].isNull()) - operatorsObject.param.beginType = paramNode["BeginType"].asString(); - if(!paramNode["CompareOperator"].isNull()) - operatorsObject.param.compareOperator = paramNode["CompareOperator"].asString(); - if(!paramNode["CheckType"].isNull()) - operatorsObject.param.checkType = std::stoi(paramNode["CheckType"].asString()); - if(!paramNode["MaxEmotionChangeValue"].isNull()) - operatorsObject.param.maxEmotionChangeValue = std::stoi(paramNode["MaxEmotionChangeValue"].asString()); - if(!paramNode["CheckType"].isNull()) - operatorsObject.param.checkType1 = std::stoi(paramNode["CheckType"].asString()); - if(!paramNode["MaxEmotionChangeValue"].isNull()) - operatorsObject.param.maxEmotionChangeValue2 = std::stoi(paramNode["MaxEmotionChangeValue"].asString()); + if(!paramNode["Score"].isNull()) + operatorsObject.param.score = std::stoi(paramNode["Score"].asString()); if(!paramNode["NotRegex"].isNull()) operatorsObject.param.notRegex = paramNode["NotRegex"].asString(); - if(!paramNode["Similarity_threshold"].isNull()) - operatorsObject.param.similarity_threshold = std::stof(paramNode["Similarity_threshold"].asString()); + if(!paramNode["CompareOperator"].isNull()) + operatorsObject.param.compareOperator = paramNode["CompareOperator"].asString(); if(!paramNode["DelayTime"].isNull()) operatorsObject.param.delayTime = std::stoi(paramNode["DelayTime"].asString()); - auto allOperKeyWords = paramNode["OperKeyWords"]["OperKeyWord"]; - for (auto value : allOperKeyWords) - operatorsObject.param.operKeyWords.push_back(value.asString()); + if(!paramNode["KeywordMatchSize"].isNull()) + operatorsObject.param.keywordMatchSize = std::stoi(paramNode["KeywordMatchSize"].asString()); + if(!paramNode["HitTime"].isNull()) + operatorsObject.param.hitTime = std::stoi(paramNode["HitTime"].asString()); + if(!paramNode["BeginType"].isNull()) + operatorsObject.param.beginType = paramNode["BeginType"].asString(); + if(!paramNode["Target"].isNull()) + operatorsObject.param.target = std::stoi(paramNode["Target"].asString()); + if(!paramNode["MaxEmotionChangeValue"].isNull()) + operatorsObject.param.maxEmotionChangeValue = std::stoi(paramNode["MaxEmotionChangeValue"].asString()); + if(!paramNode["Threshold"].isNull()) + operatorsObject.param.threshold = std::stof(paramNode["Threshold"].asString()); + if(!paramNode["From"].isNull()) + operatorsObject.param.from = std::stoi(paramNode["From"].asString()); + if(!paramNode["FromEnd"].isNull()) + operatorsObject.param.fromEnd = paramNode["FromEnd"].asString() == "true"; + if(!paramNode["MinWordSize"].isNull()) + operatorsObject.param.minWordSize = std::stoi(paramNode["MinWordSize"].asString()); + if(!paramNode["InSentence"].isNull()) + operatorsObject.param.inSentence = paramNode["InSentence"].asString() == "true"; + if(!paramNode["Phrase"].isNull()) + operatorsObject.param.phrase = paramNode["Phrase"].asString(); + if(!paramNode["Similarity_threshold"].isNull()) + operatorsObject.param.similarity_threshold = std::stof(paramNode["Similarity_threshold"].asString()); + if(!paramNode["CheckType"].isNull()) + operatorsObject.param.checkType = std::stoi(paramNode["CheckType"].asString()); + if(!paramNode["Interval"].isNull()) + operatorsObject.param.interval = std::stoi(paramNode["Interval"].asString()); + if(!paramNode["ContextChatMatch"].isNull()) + operatorsObject.param.contextChatMatch = paramNode["ContextChatMatch"].asString() == "true"; + auto allExcludes = paramNode["Excludes"]["Excludes"]; + for (auto value : allExcludes) + operatorsObject.param.excludes.push_back(value.asString()); + auto allAntModelInfo = paramNode["AntModelInfo"]["AntModelInfo"]; + for (auto value : allAntModelInfo) + operatorsObject.param.antModelInfo.push_back(value.asString()); + auto allPvalues = paramNode["Pvalues"]["Pvalues"]; + for (auto value : allPvalues) + operatorsObject.param.pvalues.push_back(value.asString()); auto allReferences = paramNode["References"]["Reference"]; for (auto value : allReferences) operatorsObject.param.references.push_back(value.asString()); auto allSimilarlySentences = paramNode["SimilarlySentences"]["SimilarlySentence"]; for (auto value : allSimilarlySentences) operatorsObject.param.similarlySentences.push_back(value.asString()); - auto allExcludes = paramNode["Excludes"]["Excludes"]; - for (auto value : allExcludes) - operatorsObject.param.excludes.push_back(value.asString()); - auto allPvalues = paramNode["Pvalues"]["Pvalues"]; - for (auto value : allPvalues) - operatorsObject.param.pvalues.push_back(value.asString()); - auto allAntModelInfo = paramNode["AntModelInfo"]["AntModelInfo"]; - for (auto value : allAntModelInfo) - operatorsObject.param.antModelInfo.push_back(value.asString()); + auto allOperKeyWords = paramNode["OperKeyWords"]["OperKeyWord"]; + for (auto value : allOperKeyWords) + operatorsObject.param.operKeyWords.push_back(value.asString()); conditionBasicInfoObject.operators.push_back(operatorsObject); } auto checkRangeNode = value["CheckRange"]; - if(!checkRangeNode["Role"].isNull()) - conditionBasicInfoObject.checkRange.role = checkRangeNode["Role"].asString(); if(!checkRangeNode["Absolute"].isNull()) conditionBasicInfoObject.checkRange.absolute = checkRangeNode["Absolute"].asString() == "true"; + if(!checkRangeNode["Role"].isNull()) + conditionBasicInfoObject.checkRange.role = checkRangeNode["Role"].asString(); auto anchorNode = checkRangeNode["Anchor"]; - if(!anchorNode["AnchorCid"].isNull()) - conditionBasicInfoObject.checkRange.anchor.anchorCid = anchorNode["AnchorCid"].asString(); - if(!anchorNode["Location"].isNull()) - conditionBasicInfoObject.checkRange.anchor.location = anchorNode["Location"].asString(); if(!anchorNode["HitTime"].isNull()) conditionBasicInfoObject.checkRange.anchor.hitTime = std::stoi(anchorNode["HitTime"].asString()); + if(!anchorNode["Location"].isNull()) + conditionBasicInfoObject.checkRange.anchor.location = anchorNode["Location"].asString(); + if(!anchorNode["AnchorCid"].isNull()) + conditionBasicInfoObject.checkRange.anchor.anchorCid = anchorNode["AnchorCid"].asString(); auto rangeNode = checkRangeNode["Range"]; - if(!rangeNode["From"].isNull()) - conditionBasicInfoObject.checkRange.range.from = std::stoi(rangeNode["From"].asString()); if(!rangeNode["To"].isNull()) conditionBasicInfoObject.checkRange.range.to = std::stoi(rangeNode["To"].asString()); + if(!rangeNode["From"].isNull()) + conditionBasicInfoObject.checkRange.range.from = std::stoi(rangeNode["From"].asString()); data_.conditions.push_back(conditionBasicInfoObject); } auto allRulesNode = dataNode["Rules"]["RuleBasicInfo"]; for (auto dataNodeRulesRuleBasicInfo : allRulesNode) { Data::RuleBasicInfo ruleBasicInfoObject; - if(!dataNodeRulesRuleBasicInfo["Rid"].isNull()) - ruleBasicInfoObject.rid = dataNodeRulesRuleBasicInfo["Rid"].asString(); if(!dataNodeRulesRuleBasicInfo["RuleLambda"].isNull()) ruleBasicInfoObject.ruleLambda = dataNodeRulesRuleBasicInfo["RuleLambda"].asString(); + if(!dataNodeRulesRuleBasicInfo["Rid"].isNull()) + ruleBasicInfoObject.rid = dataNodeRulesRuleBasicInfo["Rid"].asString(); auto allBusinessCategoriesNode = dataNodeRulesRuleBasicInfo["BusinessCategories"]["BusinessCategoryBasicInfo"]; for (auto dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo : allBusinessCategoriesNode) { Data::RuleBasicInfo::BusinessCategoryBasicInfo businessCategoriesObject; - if(!dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["Bid"].isNull()) - businessCategoriesObject.bid = std::stoi(dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["Bid"].asString()); - if(!dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["ServiceType"].isNull()) - businessCategoriesObject.serviceType = std::stoi(dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["ServiceType"].asString()); if(!dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["BusinessName"].isNull()) businessCategoriesObject.businessName = dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["BusinessName"].asString(); + if(!dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["ServiceType"].isNull()) + businessCategoriesObject.serviceType = std::stoi(dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["ServiceType"].asString()); + if(!dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["Bid"].isNull()) + businessCategoriesObject.bid = std::stoi(dataNodeRulesRuleBasicInfoBusinessCategoriesBusinessCategoryBasicInfo["Bid"].asString()); ruleBasicInfoObject.businessCategories.push_back(businessCategoriesObject); } auto allTriggers = value["Triggers"]["Trigger"]; @@ -177,12 +179,12 @@ void GetRuleDetailResult::parse(const std::string &payload) ruleBasicInfoObject.triggers.push_back(value.asString()); data_.rules.push_back(ruleBasicInfoObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/GetRuleDimensionRequest.cc b/qualitycheck/src/model/GetRuleDimensionRequest.cc new file mode 100644 index 000000000..ad1e8e753 --- /dev/null +++ b/qualitycheck/src/model/GetRuleDimensionRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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); +} + diff --git a/qualitycheck/src/model/GetRuleDimensionResult.cc b/qualitycheck/src/model/GetRuleDimensionResult.cc new file mode 100644 index 000000000..bc631f350 --- /dev/null +++ b/qualitycheck/src/model/GetRuleDimensionResult.cc @@ -0,0 +1,161 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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::getData()const +{ + return data_; +} + +std::string GetRuleDimensionResult::getCode()const +{ + return code_; +} + +bool GetRuleDimensionResult::getSuccess()const +{ + return success_; +} + +int GetRuleDimensionResult::getTotalSubTaskCount()const +{ + return totalSubTaskCount_; +} + diff --git a/qualitycheck/src/model/GetRuleRequest.cc b/qualitycheck/src/model/GetRuleRequest.cc index d09e73953..2f2a1a878 100644 --- a/qualitycheck/src/model/GetRuleRequest.cc +++ b/qualitycheck/src/model/GetRuleRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetRuleRequest; - -GetRuleRequest::GetRuleRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetRule") -{ - setMethod(HttpRequest::Method::Post); -} - -GetRuleRequest::~GetRuleRequest() -{} - -long GetRuleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetRuleRequest; + +GetRuleRequest::GetRuleRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetRule") { + setMethod(HttpRequest::Method::Post); } -void GetRuleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetRuleRequest::~GetRuleRequest() {} + +long GetRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetRuleRequest::getJsonStr()const -{ - return jsonStr_; +void GetRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetRuleRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetRuleRequest::getJsonStr() const { + return jsonStr_; } -std::string GetRuleRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetRuleRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetRuleRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetRuleRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetRuleRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetRuleResult.cc b/qualitycheck/src/model/GetRuleResult.cc index bf48880a8..e2ecd1ad5 100644 --- a/qualitycheck/src/model/GetRuleResult.cc +++ b/qualitycheck/src/model/GetRuleResult.cc @@ -44,59 +44,59 @@ void GetRuleResult::parse(const std::string &payload) for (auto dataNodeRulesRuleInfo : allRulesNode) { Data::RuleInfo ruleInfoObject; - if(!dataNodeRulesRuleInfo["Rid"].isNull()) - ruleInfoObject.rid = dataNodeRulesRuleInfo["Rid"].asString(); - if(!dataNodeRulesRuleInfo["RuleLambda"].isNull()) - ruleInfoObject.ruleLambda = dataNodeRulesRuleInfo["RuleLambda"].asString(); - if(!dataNodeRulesRuleInfo["Name"].isNull()) - ruleInfoObject.name = dataNodeRulesRuleInfo["Name"].asString(); - if(!dataNodeRulesRuleInfo["Type"].isNull()) - ruleInfoObject.type = std::stoi(dataNodeRulesRuleInfo["Type"].asString()); if(!dataNodeRulesRuleInfo["Status"].isNull()) ruleInfoObject.status = std::stoi(dataNodeRulesRuleInfo["Status"].asString()); + if(!dataNodeRulesRuleInfo["Type"].isNull()) + ruleInfoObject.type = std::stoi(dataNodeRulesRuleInfo["Type"].asString()); + if(!dataNodeRulesRuleInfo["ScoreSubId"].isNull()) + ruleInfoObject.scoreSubId = std::stoi(dataNodeRulesRuleInfo["ScoreSubId"].asString()); + if(!dataNodeRulesRuleInfo["IsOnline"].isNull()) + ruleInfoObject.isOnline = std::stoi(dataNodeRulesRuleInfo["IsOnline"].asString()); + if(!dataNodeRulesRuleInfo["CreateTime"].isNull()) + ruleInfoObject.createTime = dataNodeRulesRuleInfo["CreateTime"].asString(); + if(!dataNodeRulesRuleInfo["CreateEmpid"].isNull()) + ruleInfoObject.createEmpid = dataNodeRulesRuleInfo["CreateEmpid"].asString(); + if(!dataNodeRulesRuleInfo["LastUpdateEmpid"].isNull()) + ruleInfoObject.lastUpdateEmpid = dataNodeRulesRuleInfo["LastUpdateEmpid"].asString(); if(!dataNodeRulesRuleInfo["IsDelete"].isNull()) ruleInfoObject.isDelete = std::stoi(dataNodeRulesRuleInfo["IsDelete"].asString()); - if(!dataNodeRulesRuleInfo["StartTime"].isNull()) - ruleInfoObject.startTime = dataNodeRulesRuleInfo["StartTime"].asString(); + if(!dataNodeRulesRuleInfo["Rid"].isNull()) + ruleInfoObject.rid = dataNodeRulesRuleInfo["Rid"].asString(); + if(!dataNodeRulesRuleInfo["RuleScoreType"].isNull()) + ruleInfoObject.ruleScoreType = std::stoi(dataNodeRulesRuleInfo["RuleScoreType"].asString()); if(!dataNodeRulesRuleInfo["EndTime"].isNull()) ruleInfoObject.endTime = dataNodeRulesRuleInfo["EndTime"].asString(); if(!dataNodeRulesRuleInfo["Weight"].isNull()) ruleInfoObject.weight = dataNodeRulesRuleInfo["Weight"].asString(); - if(!dataNodeRulesRuleInfo["IsOnline"].isNull()) - ruleInfoObject.isOnline = std::stoi(dataNodeRulesRuleInfo["IsOnline"].asString()); - if(!dataNodeRulesRuleInfo["CreateEmpid"].isNull()) - ruleInfoObject.createEmpid = dataNodeRulesRuleInfo["CreateEmpid"].asString(); - if(!dataNodeRulesRuleInfo["CreateTime"].isNull()) - ruleInfoObject.createTime = dataNodeRulesRuleInfo["CreateTime"].asString(); - if(!dataNodeRulesRuleInfo["LastUpdateTime"].isNull()) - ruleInfoObject.lastUpdateTime = dataNodeRulesRuleInfo["LastUpdateTime"].asString(); - if(!dataNodeRulesRuleInfo["LastUpdateEmpid"].isNull()) - ruleInfoObject.lastUpdateEmpid = dataNodeRulesRuleInfo["LastUpdateEmpid"].asString(); - if(!dataNodeRulesRuleInfo["Comments"].isNull()) - ruleInfoObject.comments = dataNodeRulesRuleInfo["Comments"].asString(); - if(!dataNodeRulesRuleInfo["AutoReview"].isNull()) - ruleInfoObject.autoReview = std::stoi(dataNodeRulesRuleInfo["AutoReview"].asString()); - if(!dataNodeRulesRuleInfo["RuleScoreType"].isNull()) - ruleInfoObject.ruleScoreType = std::stoi(dataNodeRulesRuleInfo["RuleScoreType"].asString()); - if(!dataNodeRulesRuleInfo["ScoreName"].isNull()) - ruleInfoObject.scoreName = dataNodeRulesRuleInfo["ScoreName"].asString(); + if(!dataNodeRulesRuleInfo["StartTime"].isNull()) + ruleInfoObject.startTime = dataNodeRulesRuleInfo["StartTime"].asString(); + if(!dataNodeRulesRuleInfo["RuleLambda"].isNull()) + ruleInfoObject.ruleLambda = dataNodeRulesRuleInfo["RuleLambda"].asString(); if(!dataNodeRulesRuleInfo["ScoreSubName"].isNull()) ruleInfoObject.scoreSubName = dataNodeRulesRuleInfo["ScoreSubName"].asString(); + if(!dataNodeRulesRuleInfo["AutoReview"].isNull()) + ruleInfoObject.autoReview = std::stoi(dataNodeRulesRuleInfo["AutoReview"].asString()); + if(!dataNodeRulesRuleInfo["Comments"].isNull()) + ruleInfoObject.comments = dataNodeRulesRuleInfo["Comments"].asString(); + if(!dataNodeRulesRuleInfo["LastUpdateTime"].isNull()) + ruleInfoObject.lastUpdateTime = dataNodeRulesRuleInfo["LastUpdateTime"].asString(); + if(!dataNodeRulesRuleInfo["ScoreName"].isNull()) + ruleInfoObject.scoreName = dataNodeRulesRuleInfo["ScoreName"].asString(); + if(!dataNodeRulesRuleInfo["Name"].isNull()) + ruleInfoObject.name = dataNodeRulesRuleInfo["Name"].asString(); if(!dataNodeRulesRuleInfo["ScoreId"].isNull()) ruleInfoObject.scoreId = std::stoi(dataNodeRulesRuleInfo["ScoreId"].asString()); - if(!dataNodeRulesRuleInfo["ScoreSubId"].isNull()) - ruleInfoObject.scoreSubId = std::stoi(dataNodeRulesRuleInfo["ScoreSubId"].asString()); auto allBusinessCategoryNameList = value["BusinessCategoryNameList"]["BusinessCategoryNameList"]; for (auto value : allBusinessCategoryNameList) ruleInfoObject.businessCategoryNameList.push_back(value.asString()); data_.rules.push_back(ruleInfoObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/GetScoreInfoRequest.cc b/qualitycheck/src/model/GetScoreInfoRequest.cc index 4dc3d1a41..e289e80d7 100644 --- a/qualitycheck/src/model/GetScoreInfoRequest.cc +++ b/qualitycheck/src/model/GetScoreInfoRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetScoreInfoRequest; - -GetScoreInfoRequest::GetScoreInfoRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetScoreInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -GetScoreInfoRequest::~GetScoreInfoRequest() -{} - -long GetScoreInfoRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetScoreInfoRequest; + +GetScoreInfoRequest::GetScoreInfoRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetScoreInfo") { + setMethod(HttpRequest::Method::Post); } -void GetScoreInfoRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetScoreInfoRequest::~GetScoreInfoRequest() {} + +long GetScoreInfoRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetScoreInfoRequest::getJsonStr()const -{ - return jsonStr_; +void GetScoreInfoRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetScoreInfoRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetScoreInfoRequest::getJsonStr() const { + return jsonStr_; } -std::string GetScoreInfoRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetScoreInfoRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetScoreInfoRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetScoreInfoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetScoreInfoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetScoreInfoResult.cc b/qualitycheck/src/model/GetScoreInfoResult.cc index 0690f5072..1682cc6f0 100644 --- a/qualitycheck/src/model/GetScoreInfoResult.cc +++ b/qualitycheck/src/model/GetScoreInfoResult.cc @@ -51,24 +51,24 @@ void GetScoreInfoResult::parse(const std::string &payload) for (auto valueDataScorePoScoreInfosScoreParam : allScoreInfosNode) { ScorePo::ScoreParam scoreInfosObject; + if(!valueDataScorePoScoreInfosScoreParam["ScoreSubName"].isNull()) + scoreInfosObject.scoreSubName = valueDataScorePoScoreInfosScoreParam["ScoreSubName"].asString(); if(!valueDataScorePoScoreInfosScoreParam["ScoreNum"].isNull()) scoreInfosObject.scoreNum = std::stoi(valueDataScorePoScoreInfosScoreParam["ScoreNum"].asString()); if(!valueDataScorePoScoreInfosScoreParam["ScoreSubId"].isNull()) scoreInfosObject.scoreSubId = std::stoi(valueDataScorePoScoreInfosScoreParam["ScoreSubId"].asString()); - if(!valueDataScorePoScoreInfosScoreParam["ScoreSubName"].isNull()) - scoreInfosObject.scoreSubName = valueDataScorePoScoreInfosScoreParam["ScoreSubName"].asString(); if(!valueDataScorePoScoreInfosScoreParam["ScoreType"].isNull()) scoreInfosObject.scoreType = std::stoi(valueDataScorePoScoreInfosScoreParam["ScoreType"].asString()); dataObject.scoreInfos.push_back(scoreInfosObject); } data_.push_back(dataObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/GetSkillGroupConfigRequest.cc b/qualitycheck/src/model/GetSkillGroupConfigRequest.cc index 5c74fe533..2f95a1ffe 100644 --- a/qualitycheck/src/model/GetSkillGroupConfigRequest.cc +++ b/qualitycheck/src/model/GetSkillGroupConfigRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetSkillGroupConfigRequest; - -GetSkillGroupConfigRequest::GetSkillGroupConfigRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetSkillGroupConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -GetSkillGroupConfigRequest::~GetSkillGroupConfigRequest() -{} - -long GetSkillGroupConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetSkillGroupConfigRequest; + +GetSkillGroupConfigRequest::GetSkillGroupConfigRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetSkillGroupConfig") { + setMethod(HttpRequest::Method::Post); } -void GetSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetSkillGroupConfigRequest::~GetSkillGroupConfigRequest() {} + +long GetSkillGroupConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetSkillGroupConfigRequest::getJsonStr()const -{ - return jsonStr_; +void GetSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetSkillGroupConfigRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetSkillGroupConfigRequest::getJsonStr() const { + return jsonStr_; } -std::string GetSkillGroupConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetSkillGroupConfigRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetSkillGroupConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetSkillGroupConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetSkillGroupConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetSkillGroupConfigResult.cc b/qualitycheck/src/model/GetSkillGroupConfigResult.cc index adc7d0a04..e5fef3aa9 100644 --- a/qualitycheck/src/model/GetSkillGroupConfigResult.cc +++ b/qualitycheck/src/model/GetSkillGroupConfigResult.cc @@ -40,68 +40,68 @@ void GetSkillGroupConfigResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["Id"].isNull()) - data_.id = std::stol(dataNode["Id"].asString()); - if(!dataNode["InstanceId"].isNull()) - data_.instanceId = dataNode["InstanceId"].asString(); - if(!dataNode["ModelId"].isNull()) - data_.modelId = std::stol(dataNode["ModelId"].asString()); - if(!dataNode["ModelName"].isNull()) - data_.modelName = dataNode["ModelName"].asString(); - if(!dataNode["Name"].isNull()) - data_.name = dataNode["Name"].asString(); - if(!dataNode["Rid"].isNull()) - data_.rid = dataNode["Rid"].asString(); - if(!dataNode["SkillGroupId"].isNull()) - data_.skillGroupId = dataNode["SkillGroupId"].asString(); - if(!dataNode["SkillGroupName"].isNull()) - data_.skillGroupName = dataNode["SkillGroupName"].asString(); - if(!dataNode["Status"].isNull()) - data_.status = std::stoi(dataNode["Status"].asString()); if(!dataNode["Type"].isNull()) data_.type = std::stoi(dataNode["Type"].asString()); - if(!dataNode["VocabId"].isNull()) - data_.vocabId = std::stol(dataNode["VocabId"].asString()); - if(!dataNode["VocabName"].isNull()) - data_.vocabName = dataNode["VocabName"].asString(); - if(!dataNode["CreateTime"].isNull()) - data_.createTime = dataNode["CreateTime"].asString(); + if(!dataNode["Status"].isNull()) + data_.status = std::stoi(dataNode["Status"].asString()); if(!dataNode["UpdateTime"].isNull()) data_.updateTime = dataNode["UpdateTime"].asString(); - if(!dataNode["QualityCheckType"].isNull()) - data_.qualityCheckType = std::stoi(dataNode["QualityCheckType"].asString()); if(!dataNode["AllContentQualityCheck"].isNull()) data_.allContentQualityCheck = std::stoi(dataNode["AllContentQualityCheck"].asString()); - if(!dataNode["AllRids"].isNull()) - data_.allRids = dataNode["AllRids"].asString(); + if(!dataNode["CreateTime"].isNull()) + data_.createTime = dataNode["CreateTime"].asString(); + if(!dataNode["SkillGroupId"].isNull()) + data_.skillGroupId = dataNode["SkillGroupId"].asString(); + if(!dataNode["InstanceId"].isNull()) + data_.instanceId = dataNode["InstanceId"].asString(); + if(!dataNode["VocabId"].isNull()) + data_.vocabId = std::stol(dataNode["VocabId"].asString()); if(!dataNode["SkillGroupFrom"].isNull()) data_.skillGroupFrom = std::stoi(dataNode["SkillGroupFrom"].asString()); + if(!dataNode["Rid"].isNull()) + data_.rid = dataNode["Rid"].asString(); + if(!dataNode["SkillGroupName"].isNull()) + data_.skillGroupName = dataNode["SkillGroupName"].asString(); + if(!dataNode["ModelName"].isNull()) + data_.modelName = dataNode["ModelName"].asString(); + if(!dataNode["AllRids"].isNull()) + data_.allRids = dataNode["AllRids"].asString(); + if(!dataNode["Name"].isNull()) + data_.name = dataNode["Name"].asString(); + if(!dataNode["ModelId"].isNull()) + data_.modelId = std::stol(dataNode["ModelId"].asString()); + if(!dataNode["Id"].isNull()) + data_.id = std::stol(dataNode["Id"].asString()); + if(!dataNode["QualityCheckType"].isNull()) + data_.qualityCheckType = std::stoi(dataNode["QualityCheckType"].asString()); + if(!dataNode["VocabName"].isNull()) + data_.vocabName = dataNode["VocabName"].asString(); auto allRuleListNode = dataNode["RuleList"]["RuleNameInfo"]; for (auto dataNodeRuleListRuleNameInfo : allRuleListNode) { Data::RuleNameInfo ruleNameInfoObject; - if(!dataNodeRuleListRuleNameInfo["Rid"].isNull()) - ruleNameInfoObject.rid = std::stol(dataNodeRuleListRuleNameInfo["Rid"].asString()); if(!dataNodeRuleListRuleNameInfo["RuleName"].isNull()) ruleNameInfoObject.ruleName = dataNodeRuleListRuleNameInfo["RuleName"].asString(); + if(!dataNodeRuleListRuleNameInfo["Rid"].isNull()) + ruleNameInfoObject.rid = std::stol(dataNodeRuleListRuleNameInfo["Rid"].asString()); data_.ruleList.push_back(ruleNameInfoObject); } auto allAllRuleListNode = dataNode["AllRuleList"]["RuleNameInfo"]; for (auto dataNodeAllRuleListRuleNameInfo : allAllRuleListNode) { Data::RuleNameInfo ruleNameInfoObject; - if(!dataNodeAllRuleListRuleNameInfo["Rid"].isNull()) - ruleNameInfoObject.rid = std::stol(dataNodeAllRuleListRuleNameInfo["Rid"].asString()); if(!dataNodeAllRuleListRuleNameInfo["RuleName"].isNull()) ruleNameInfoObject.ruleName = dataNodeAllRuleListRuleNameInfo["RuleName"].asString(); + if(!dataNodeAllRuleListRuleNameInfo["Rid"].isNull()) + ruleNameInfoObject.rid = std::stol(dataNodeAllRuleListRuleNameInfo["Rid"].asString()); data_.allRuleList.push_back(ruleNameInfoObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/GetSyncResultRequest.cc b/qualitycheck/src/model/GetSyncResultRequest.cc index 7624cce74..60ebb8d18 100644 --- a/qualitycheck/src/model/GetSyncResultRequest.cc +++ b/qualitycheck/src/model/GetSyncResultRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetSyncResultRequest; - -GetSyncResultRequest::GetSyncResultRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetSyncResult") -{ - setMethod(HttpRequest::Method::Post); -} - -GetSyncResultRequest::~GetSyncResultRequest() -{} - -std::string GetSyncResultRequest::getJsonStr()const -{ - return jsonStr_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetSyncResultRequest; + +GetSyncResultRequest::GetSyncResultRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetSyncResult") { + setMethod(HttpRequest::Method::Post); } -void GetSyncResultRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +GetSyncResultRequest::~GetSyncResultRequest() {} + +std::string GetSyncResultRequest::getJsonStr() const { + return jsonStr_; +} + +void GetSyncResultRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } diff --git a/qualitycheck/src/model/GetSyncResultResult.cc b/qualitycheck/src/model/GetSyncResultResult.cc index 8aa27cdd3..6435de3d0 100644 --- a/qualitycheck/src/model/GetSyncResultResult.cc +++ b/qualitycheck/src/model/GetSyncResultResult.cc @@ -43,60 +43,60 @@ void GetSyncResultResult::parse(const std::string &payload) for (auto valueDataResultInfo : allDataNode) { ResultInfo dataObject; - if(!valueDataResultInfo["Score"].isNull()) - dataObject.score = std::stoi(valueDataResultInfo["Score"].asString()); - if(!valueDataResultInfo["Comments"].isNull()) - dataObject.comments = valueDataResultInfo["Comments"].asString(); - if(!valueDataResultInfo["ErrorMessage"].isNull()) - dataObject.errorMessage = valueDataResultInfo["ErrorMessage"].asString(); if(!valueDataResultInfo["Status"].isNull()) dataObject.status = std::stoi(valueDataResultInfo["Status"].asString()); - if(!valueDataResultInfo["ReviewStatus"].isNull()) - dataObject.reviewStatus = std::stoi(valueDataResultInfo["ReviewStatus"].asString()); - if(!valueDataResultInfo["ReviewResult"].isNull()) - dataObject.reviewResult = std::stoi(valueDataResultInfo["ReviewResult"].asString()); - if(!valueDataResultInfo["TaskId"].isNull()) - dataObject.taskId = valueDataResultInfo["TaskId"].asString(); - if(!valueDataResultInfo["TaskName"].isNull()) - dataObject.taskName = valueDataResultInfo["TaskName"].asString(); - if(!valueDataResultInfo["CreateTime"].isNull()) - dataObject.createTime = valueDataResultInfo["CreateTime"].asString(); + if(!valueDataResultInfo["ErrorMessage"].isNull()) + dataObject.errorMessage = valueDataResultInfo["ErrorMessage"].asString(); if(!valueDataResultInfo["Reviewer"].isNull()) dataObject.reviewer = valueDataResultInfo["Reviewer"].asString(); + if(!valueDataResultInfo["CreateTime"].isNull()) + dataObject.createTime = valueDataResultInfo["CreateTime"].asString(); + if(!valueDataResultInfo["ReviewStatus"].isNull()) + dataObject.reviewStatus = std::stoi(valueDataResultInfo["ReviewStatus"].asString()); + if(!valueDataResultInfo["TaskName"].isNull()) + dataObject.taskName = valueDataResultInfo["TaskName"].asString(); + if(!valueDataResultInfo["Comments"].isNull()) + dataObject.comments = valueDataResultInfo["Comments"].asString(); + if(!valueDataResultInfo["ReviewResult"].isNull()) + dataObject.reviewResult = std::stoi(valueDataResultInfo["ReviewResult"].asString()); + if(!valueDataResultInfo["Score"].isNull()) + dataObject.score = std::stoi(valueDataResultInfo["Score"].asString()); + if(!valueDataResultInfo["TaskId"].isNull()) + dataObject.taskId = valueDataResultInfo["TaskId"].asString(); if(!valueDataResultInfo["Resolver"].isNull()) dataObject.resolver = valueDataResultInfo["Resolver"].asString(); auto allAsrResultNode = valueDataResultInfo["AsrResult"]["AsrResultItem"]; for (auto valueDataResultInfoAsrResultAsrResultItem : allAsrResultNode) { ResultInfo::AsrResultItem asrResultObject; - if(!valueDataResultInfoAsrResultAsrResultItem["Role"].isNull()) - asrResultObject.role = valueDataResultInfoAsrResultAsrResultItem["Role"].asString(); if(!valueDataResultInfoAsrResultAsrResultItem["Words"].isNull()) asrResultObject.words = valueDataResultInfoAsrResultAsrResultItem["Words"].asString(); if(!valueDataResultInfoAsrResultAsrResultItem["Begin"].isNull()) asrResultObject.begin = std::stol(valueDataResultInfoAsrResultAsrResultItem["Begin"].asString()); - if(!valueDataResultInfoAsrResultAsrResultItem["End"].isNull()) - asrResultObject.end = std::stol(valueDataResultInfoAsrResultAsrResultItem["End"].asString()); if(!valueDataResultInfoAsrResultAsrResultItem["EmotionValue"].isNull()) asrResultObject.emotionValue = std::stoi(valueDataResultInfoAsrResultAsrResultItem["EmotionValue"].asString()); - if(!valueDataResultInfoAsrResultAsrResultItem["SilenceDuration"].isNull()) - asrResultObject.silenceDuration = std::stoi(valueDataResultInfoAsrResultAsrResultItem["SilenceDuration"].asString()); + if(!valueDataResultInfoAsrResultAsrResultItem["End"].isNull()) + asrResultObject.end = std::stol(valueDataResultInfoAsrResultAsrResultItem["End"].asString()); if(!valueDataResultInfoAsrResultAsrResultItem["SpeechRate"].isNull()) asrResultObject.speechRate = std::stoi(valueDataResultInfoAsrResultAsrResultItem["SpeechRate"].asString()); + if(!valueDataResultInfoAsrResultAsrResultItem["Role"].isNull()) + asrResultObject.role = valueDataResultInfoAsrResultAsrResultItem["Role"].asString(); + if(!valueDataResultInfoAsrResultAsrResultItem["SilenceDuration"].isNull()) + asrResultObject.silenceDuration = std::stoi(valueDataResultInfoAsrResultAsrResultItem["SilenceDuration"].asString()); dataObject.asrResult.push_back(asrResultObject); } auto allHitResultNode = valueDataResultInfo["HitResult"]["HitResultItem"]; for (auto valueDataResultInfoHitResultHitResultItem : allHitResultNode) { ResultInfo::HitResultItem hitResultObject; - if(!valueDataResultInfoHitResultHitResultItem["Rid"].isNull()) - hitResultObject.rid = valueDataResultInfoHitResultHitResultItem["Rid"].asString(); - if(!valueDataResultInfoHitResultHitResultItem["Name"].isNull()) - hitResultObject.name = valueDataResultInfoHitResultHitResultItem["Name"].asString(); if(!valueDataResultInfoHitResultHitResultItem["Type"].isNull()) hitResultObject.type = valueDataResultInfoHitResultHitResultItem["Type"].asString(); if(!valueDataResultInfoHitResultHitResultItem["ReviewResult"].isNull()) hitResultObject.reviewResult = std::stoi(valueDataResultInfoHitResultHitResultItem["ReviewResult"].asString()); + if(!valueDataResultInfoHitResultHitResultItem["Name"].isNull()) + hitResultObject.name = valueDataResultInfoHitResultHitResultItem["Name"].asString(); + if(!valueDataResultInfoHitResultHitResultItem["Rid"].isNull()) + hitResultObject.rid = valueDataResultInfoHitResultHitResultItem["Rid"].asString(); auto allHitsNode = valueDataResultInfoHitResultHitResultItem["Hits"]["Hit"]; for (auto valueDataResultInfoHitResultHitResultItemHitsHit : allHitsNode) { @@ -105,31 +105,31 @@ void GetSyncResultResult::parse(const std::string &payload) for (auto valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord : allKeyWordsNode) { ResultInfo::HitResultItem::Hit::KeyWord keyWordsObject; - if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].isNull()) - keyWordsObject.cid = valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].asString(); if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["From"].isNull()) keyWordsObject.from = std::stoi(valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["From"].asString()); if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["To"].isNull()) keyWordsObject.to = std::stoi(valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["To"].asString()); if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Val"].isNull()) keyWordsObject.val = valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Val"].asString(); + if(!valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].isNull()) + keyWordsObject.cid = valueDataResultInfoHitResultHitResultItemHitsHitKeyWordsKeyWord["Cid"].asString(); hitsObject.keyWords.push_back(keyWordsObject); } auto phraseNode = value["Phrase"]; - if(!phraseNode["Role"].isNull()) - hitsObject.phrase.role = phraseNode["Role"].asString(); if(!phraseNode["Words"].isNull()) hitsObject.phrase.words = phraseNode["Words"].asString(); if(!phraseNode["Begin"].isNull()) hitsObject.phrase.begin = std::stol(phraseNode["Begin"].asString()); - if(!phraseNode["End"].isNull()) - hitsObject.phrase.end = std::stoi(phraseNode["End"].asString()); if(!phraseNode["EmotionValue"].isNull()) hitsObject.phrase.emotionValue = std::stoi(phraseNode["EmotionValue"].asString()); - if(!phraseNode["SilenceDuration"].isNull()) - hitsObject.phrase.silenceDuration = std::stoi(phraseNode["SilenceDuration"].asString()); + if(!phraseNode["End"].isNull()) + hitsObject.phrase.end = std::stoi(phraseNode["End"].asString()); if(!phraseNode["SpeechRate"].isNull()) hitsObject.phrase.speechRate = std::stoi(phraseNode["SpeechRate"].asString()); + if(!phraseNode["Role"].isNull()) + hitsObject.phrase.role = phraseNode["Role"].asString(); + if(!phraseNode["SilenceDuration"].isNull()) + hitsObject.phrase.silenceDuration = std::stoi(phraseNode["SilenceDuration"].asString()); auto allCid = value["Cid"]["Cid"]; for (auto value : allCid) hitsObject.cid.push_back(value.asString()); @@ -138,59 +138,61 @@ void GetSyncResultResult::parse(const std::string &payload) dataObject.hitResult.push_back(hitResultObject); } auto recordingNode = value["Recording"]; - if(!recordingNode["Id"].isNull()) - dataObject.recording.id = recordingNode["Id"].asString(); - if(!recordingNode["PrimaryId"].isNull()) - dataObject.recording.primaryId = recordingNode["PrimaryId"].asString(); - if(!recordingNode["CallId"].isNull()) - dataObject.recording.callId = recordingNode["CallId"].asString(); - if(!recordingNode["Name"].isNull()) - dataObject.recording.name = recordingNode["Name"].asString(); - if(!recordingNode["Url"].isNull()) - dataObject.recording.url = recordingNode["Url"].asString(); - if(!recordingNode["DataSetName"].isNull()) - dataObject.recording.dataSetName = recordingNode["DataSetName"].asString(); - if(!recordingNode["Duration"].isNull()) - dataObject.recording.duration = std::stol(recordingNode["Duration"].asString()); - if(!recordingNode["Caller"].isNull()) - dataObject.recording.caller = recordingNode["Caller"].asString(); if(!recordingNode["Callee"].isNull()) dataObject.recording.callee = recordingNode["Callee"].asString(); - if(!recordingNode["CallTime"].isNull()) - dataObject.recording.callTime = recordingNode["CallTime"].asString(); - if(!recordingNode["CallType"].isNull()) - dataObject.recording.callType = std::stoi(recordingNode["CallType"].asString()); + if(!recordingNode["Remark3"].isNull()) + dataObject.recording.remark3 = recordingNode["Remark3"].asString(); if(!recordingNode["Business"].isNull()) dataObject.recording.business = recordingNode["Business"].asString(); + if(!recordingNode["Url"].isNull()) + dataObject.recording.url = recordingNode["Url"].asString(); + if(!recordingNode["PrimaryId"].isNull()) + dataObject.recording.primaryId = recordingNode["PrimaryId"].asString(); if(!recordingNode["Remark1"].isNull()) dataObject.recording.remark1 = recordingNode["Remark1"].asString(); if(!recordingNode["Remark2"].isNull()) dataObject.recording.remark2 = recordingNode["Remark2"].asString(); - if(!recordingNode["Remark3"].isNull()) - dataObject.recording.remark3 = recordingNode["Remark3"].asString(); + if(!recordingNode["CallType"].isNull()) + dataObject.recording.callType = std::stoi(recordingNode["CallType"].asString()); + if(!recordingNode["Caller"].isNull()) + dataObject.recording.caller = recordingNode["Caller"].asString(); + if(!recordingNode["CallId"].isNull()) + dataObject.recording.callId = recordingNode["CallId"].asString(); + if(!recordingNode["DataSetName"].isNull()) + dataObject.recording.dataSetName = recordingNode["DataSetName"].asString(); + if(!recordingNode["Duration"].isNull()) + dataObject.recording.duration = std::stol(recordingNode["Duration"].asString()); + if(!recordingNode["DurationAudio"].isNull()) + dataObject.recording.durationAudio = std::stol(recordingNode["DurationAudio"].asString()); + if(!recordingNode["Name"].isNull()) + dataObject.recording.name = recordingNode["Name"].asString(); + if(!recordingNode["Id"].isNull()) + dataObject.recording.id = recordingNode["Id"].asString(); + if(!recordingNode["CallTime"].isNull()) + dataObject.recording.callTime = recordingNode["CallTime"].asString(); auto agentNode = value["Agent"]; - if(!agentNode["Id"].isNull()) - dataObject.agent.id = agentNode["Id"].asString(); if(!agentNode["Name"].isNull()) dataObject.agent.name = agentNode["Name"].asString(); if(!agentNode["SkillGroup"].isNull()) dataObject.agent.skillGroup = agentNode["SkillGroup"].asString(); + if(!agentNode["Id"].isNull()) + dataObject.agent.id = agentNode["Id"].asString(); data_.push_back(dataObject); } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["ResultCountId"].isNull()) + resultCountId_ = value["ResultCountId"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Count"].isNull()) - count_ = std::stoi(value["Count"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["ResultCountId"].isNull()) - resultCountId_ = value["ResultCountId"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); } diff --git a/qualitycheck/src/model/GetTaskFileResultListRequest.cc b/qualitycheck/src/model/GetTaskFileResultListRequest.cc new file mode 100644 index 000000000..fcf58f48a --- /dev/null +++ b/qualitycheck/src/model/GetTaskFileResultListRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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); +} + diff --git a/qualitycheck/src/model/GetTaskFileResultListResult.cc b/qualitycheck/src/model/GetTaskFileResultListResult.cc new file mode 100644 index 000000000..6db30d3ac --- /dev/null +++ b/qualitycheck/src/model/GetTaskFileResultListResult.cc @@ -0,0 +1,134 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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::getData()const +{ + return data_; +} + +std::string GetTaskFileResultListResult::getCode()const +{ + return code_; +} + +bool GetTaskFileResultListResult::getSuccess()const +{ + return success_; +} + diff --git a/qualitycheck/src/model/GetTaskRuleListRequest.cc b/qualitycheck/src/model/GetTaskRuleListRequest.cc new file mode 100644 index 000000000..e5aca06e2 --- /dev/null +++ b/qualitycheck/src/model/GetTaskRuleListRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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); +} + diff --git a/qualitycheck/src/model/GetTaskRuleListResult.cc b/qualitycheck/src/model/GetTaskRuleListResult.cc new file mode 100644 index 000000000..599d516b3 --- /dev/null +++ b/qualitycheck/src/model/GetTaskRuleListResult.cc @@ -0,0 +1,161 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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::getData()const +{ + return data_; +} + +std::string GetTaskRuleListResult::getCode()const +{ + return code_; +} + +bool GetTaskRuleListResult::getSuccess()const +{ + return success_; +} + +int GetTaskRuleListResult::getTotalSubTaskCount()const +{ + return totalSubTaskCount_; +} + diff --git a/qualitycheck/src/model/GetThesaurusBySynonymForApiRequest.cc b/qualitycheck/src/model/GetThesaurusBySynonymForApiRequest.cc index 38152d2c8..8cb078774 100644 --- a/qualitycheck/src/model/GetThesaurusBySynonymForApiRequest.cc +++ b/qualitycheck/src/model/GetThesaurusBySynonymForApiRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::GetThesaurusBySynonymForApiRequest; - -GetThesaurusBySynonymForApiRequest::GetThesaurusBySynonymForApiRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "GetThesaurusBySynonymForApi") -{ - setMethod(HttpRequest::Method::Post); -} - -GetThesaurusBySynonymForApiRequest::~GetThesaurusBySynonymForApiRequest() -{} - -long GetThesaurusBySynonymForApiRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::GetThesaurusBySynonymForApiRequest; + +GetThesaurusBySynonymForApiRequest::GetThesaurusBySynonymForApiRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "GetThesaurusBySynonymForApi") { + setMethod(HttpRequest::Method::Post); } -void GetThesaurusBySynonymForApiRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +GetThesaurusBySynonymForApiRequest::~GetThesaurusBySynonymForApiRequest() {} + +long GetThesaurusBySynonymForApiRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetThesaurusBySynonymForApiRequest::getJsonStr()const -{ - return jsonStr_; +void GetThesaurusBySynonymForApiRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void GetThesaurusBySynonymForApiRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string GetThesaurusBySynonymForApiRequest::getJsonStr() const { + return jsonStr_; } -std::string GetThesaurusBySynonymForApiRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetThesaurusBySynonymForApiRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void GetThesaurusBySynonymForApiRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetThesaurusBySynonymForApiRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetThesaurusBySynonymForApiRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/GetThesaurusBySynonymForApiResult.cc b/qualitycheck/src/model/GetThesaurusBySynonymForApiResult.cc index 0989fde62..e5b45511c 100644 --- a/qualitycheck/src/model/GetThesaurusBySynonymForApiResult.cc +++ b/qualitycheck/src/model/GetThesaurusBySynonymForApiResult.cc @@ -43,21 +43,21 @@ void GetThesaurusBySynonymForApiResult::parse(const std::string &payload) for (auto valueDataThesaurusPo : allDataNode) { ThesaurusPo dataObject; - if(!valueDataThesaurusPo["Id"].isNull()) - dataObject.id = std::stol(valueDataThesaurusPo["Id"].asString()); if(!valueDataThesaurusPo["Business"].isNull()) dataObject.business = valueDataThesaurusPo["Business"].asString(); + if(!valueDataThesaurusPo["Id"].isNull()) + dataObject.id = std::stol(valueDataThesaurusPo["Id"].asString()); auto allSynonymList = value["SynonymList"]["SynonymList"]; for (auto value : allSynonymList) dataObject.synonymList.push_back(value.asString()); data_.push_back(dataObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/HandleComplaintRequest.cc b/qualitycheck/src/model/HandleComplaintRequest.cc index e70ad778d..258bd9a3f 100644 --- a/qualitycheck/src/model/HandleComplaintRequest.cc +++ b/qualitycheck/src/model/HandleComplaintRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::HandleComplaintRequest; - -HandleComplaintRequest::HandleComplaintRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "HandleComplaint") -{ - setMethod(HttpRequest::Method::Post); -} - -HandleComplaintRequest::~HandleComplaintRequest() -{} - -long HandleComplaintRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::HandleComplaintRequest; + +HandleComplaintRequest::HandleComplaintRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "HandleComplaint") { + setMethod(HttpRequest::Method::Post); } -void HandleComplaintRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +HandleComplaintRequest::~HandleComplaintRequest() {} + +long HandleComplaintRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string HandleComplaintRequest::getJsonStr()const -{ - return jsonStr_; +void HandleComplaintRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void HandleComplaintRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string HandleComplaintRequest::getJsonStr() const { + return jsonStr_; } -std::string HandleComplaintRequest::getAccessKeyId()const -{ - return accessKeyId_; +void HandleComplaintRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void HandleComplaintRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string HandleComplaintRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void HandleComplaintRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/HandleComplaintResult.cc b/qualitycheck/src/model/HandleComplaintResult.cc index 099760b28..1539ddfd2 100644 --- a/qualitycheck/src/model/HandleComplaintResult.cc +++ b/qualitycheck/src/model/HandleComplaintResult.cc @@ -39,14 +39,14 @@ void HandleComplaintResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/InsertScoreForApiRequest.cc b/qualitycheck/src/model/InsertScoreForApiRequest.cc index bd2ef5b02..bc56f4103 100644 --- a/qualitycheck/src/model/InsertScoreForApiRequest.cc +++ b/qualitycheck/src/model/InsertScoreForApiRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::InsertScoreForApiRequest; - -InsertScoreForApiRequest::InsertScoreForApiRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "InsertScoreForApi") -{ - setMethod(HttpRequest::Method::Post); -} - -InsertScoreForApiRequest::~InsertScoreForApiRequest() -{} - -long InsertScoreForApiRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::InsertScoreForApiRequest; + +InsertScoreForApiRequest::InsertScoreForApiRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "InsertScoreForApi") { + setMethod(HttpRequest::Method::Post); } -void InsertScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +InsertScoreForApiRequest::~InsertScoreForApiRequest() {} + +long InsertScoreForApiRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string InsertScoreForApiRequest::getJsonStr()const -{ - return jsonStr_; +void InsertScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void InsertScoreForApiRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string InsertScoreForApiRequest::getJsonStr() const { + return jsonStr_; } -std::string InsertScoreForApiRequest::getAccessKeyId()const -{ - return accessKeyId_; +void InsertScoreForApiRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void InsertScoreForApiRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string InsertScoreForApiRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void InsertScoreForApiRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/InsertScoreForApiResult.cc b/qualitycheck/src/model/InsertScoreForApiResult.cc index dcd9968df..79214c0e6 100644 --- a/qualitycheck/src/model/InsertScoreForApiResult.cc +++ b/qualitycheck/src/model/InsertScoreForApiResult.cc @@ -44,12 +44,12 @@ void InsertScoreForApiResult::parse(const std::string &payload) data_.scoreId = std::stol(dataNode["ScoreId"].asString()); if(!dataNode["ScoreName"].isNull()) data_.scoreName = dataNode["ScoreName"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/InsertSubScoreForApiRequest.cc b/qualitycheck/src/model/InsertSubScoreForApiRequest.cc index cbb638f21..117963f55 100644 --- a/qualitycheck/src/model/InsertSubScoreForApiRequest.cc +++ b/qualitycheck/src/model/InsertSubScoreForApiRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::InsertSubScoreForApiRequest; - -InsertSubScoreForApiRequest::InsertSubScoreForApiRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "InsertSubScoreForApi") -{ - setMethod(HttpRequest::Method::Post); -} - -InsertSubScoreForApiRequest::~InsertSubScoreForApiRequest() -{} - -long InsertSubScoreForApiRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::InsertSubScoreForApiRequest; + +InsertSubScoreForApiRequest::InsertSubScoreForApiRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "InsertSubScoreForApi") { + setMethod(HttpRequest::Method::Post); } -void InsertSubScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +InsertSubScoreForApiRequest::~InsertSubScoreForApiRequest() {} + +long InsertSubScoreForApiRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string InsertSubScoreForApiRequest::getJsonStr()const -{ - return jsonStr_; +void InsertSubScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void InsertSubScoreForApiRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string InsertSubScoreForApiRequest::getJsonStr() const { + return jsonStr_; } -std::string InsertSubScoreForApiRequest::getAccessKeyId()const -{ - return accessKeyId_; +void InsertSubScoreForApiRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void InsertSubScoreForApiRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string InsertSubScoreForApiRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void InsertSubScoreForApiRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/InsertSubScoreForApiResult.cc b/qualitycheck/src/model/InsertSubScoreForApiResult.cc index f75d1cbc4..f0e29c80e 100644 --- a/qualitycheck/src/model/InsertSubScoreForApiResult.cc +++ b/qualitycheck/src/model/InsertSubScoreForApiResult.cc @@ -44,12 +44,12 @@ void InsertSubScoreForApiResult::parse(const std::string &payload) data_.scoreSubId = std::stol(dataNode["ScoreSubId"].asString()); if(!dataNode["ScoreSubName"].isNull()) data_.scoreSubName = dataNode["ScoreSubName"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/InvalidRuleRequest.cc b/qualitycheck/src/model/InvalidRuleRequest.cc index 95ea39290..4d77706a0 100644 --- a/qualitycheck/src/model/InvalidRuleRequest.cc +++ b/qualitycheck/src/model/InvalidRuleRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::InvalidRuleRequest; - -InvalidRuleRequest::InvalidRuleRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "InvalidRule") -{ - setMethod(HttpRequest::Method::Post); -} - -InvalidRuleRequest::~InvalidRuleRequest() -{} - -long InvalidRuleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::InvalidRuleRequest; + +InvalidRuleRequest::InvalidRuleRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "InvalidRule") { + setMethod(HttpRequest::Method::Post); } -void InvalidRuleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +InvalidRuleRequest::~InvalidRuleRequest() {} + +long InvalidRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string InvalidRuleRequest::getJsonStr()const -{ - return jsonStr_; +void InvalidRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void InvalidRuleRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string InvalidRuleRequest::getJsonStr() const { + return jsonStr_; } -std::string InvalidRuleRequest::getAccessKeyId()const -{ - return accessKeyId_; +void InvalidRuleRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void InvalidRuleRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string InvalidRuleRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void InvalidRuleRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/InvalidRuleResult.cc b/qualitycheck/src/model/InvalidRuleResult.cc index bf4abf0e5..629705b71 100644 --- a/qualitycheck/src/model/InvalidRuleResult.cc +++ b/qualitycheck/src/model/InvalidRuleResult.cc @@ -39,14 +39,14 @@ void InvalidRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString() == "true"; + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/ListAsrVocabRequest.cc b/qualitycheck/src/model/ListAsrVocabRequest.cc index 3cda22166..ae8bfc46a 100644 --- a/qualitycheck/src/model/ListAsrVocabRequest.cc +++ b/qualitycheck/src/model/ListAsrVocabRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::ListAsrVocabRequest; - -ListAsrVocabRequest::ListAsrVocabRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "ListAsrVocab") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAsrVocabRequest::~ListAsrVocabRequest() -{} - -long ListAsrVocabRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::ListAsrVocabRequest; + +ListAsrVocabRequest::ListAsrVocabRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "ListAsrVocab") { + setMethod(HttpRequest::Method::Post); } -void ListAsrVocabRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListAsrVocabRequest::~ListAsrVocabRequest() {} + +long ListAsrVocabRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListAsrVocabRequest::getJsonStr()const -{ - return jsonStr_; +void ListAsrVocabRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListAsrVocabRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string ListAsrVocabRequest::getJsonStr() const { + return jsonStr_; } -std::string ListAsrVocabRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListAsrVocabRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void ListAsrVocabRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListAsrVocabRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListAsrVocabRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/ListAsrVocabResult.cc b/qualitycheck/src/model/ListAsrVocabResult.cc index c61eac47a..5f9bd427b 100644 --- a/qualitycheck/src/model/ListAsrVocabResult.cc +++ b/qualitycheck/src/model/ListAsrVocabResult.cc @@ -43,24 +43,24 @@ void ListAsrVocabResult::parse(const std::string &payload) for (auto valueDataAsrVocab : allDataNode) { AsrVocab dataObject; - if(!valueDataAsrVocab["Id"].isNull()) - dataObject.id = valueDataAsrVocab["Id"].asString(); + if(!valueDataAsrVocab["VocabularyId"].isNull()) + dataObject.vocabularyId = valueDataAsrVocab["VocabularyId"].asString(); + if(!valueDataAsrVocab["UpdateTime"].isNull()) + dataObject.updateTime = valueDataAsrVocab["UpdateTime"].asString(); if(!valueDataAsrVocab["Name"].isNull()) dataObject.name = valueDataAsrVocab["Name"].asString(); if(!valueDataAsrVocab["CreateTime"].isNull()) dataObject.createTime = valueDataAsrVocab["CreateTime"].asString(); - if(!valueDataAsrVocab["UpdateTime"].isNull()) - dataObject.updateTime = valueDataAsrVocab["UpdateTime"].asString(); - if(!valueDataAsrVocab["VocabularyId"].isNull()) - dataObject.vocabularyId = valueDataAsrVocab["VocabularyId"].asString(); + if(!valueDataAsrVocab["Id"].isNull()) + dataObject.id = valueDataAsrVocab["Id"].asString(); data_.push_back(dataObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/ListDataSetTaskRequest.cc b/qualitycheck/src/model/ListDataSetTaskRequest.cc new file mode 100644 index 000000000..f70870f59 --- /dev/null +++ b/qualitycheck/src/model/ListDataSetTaskRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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); +} + diff --git a/qualitycheck/src/model/ListDataSetTaskResult.cc b/qualitycheck/src/model/ListDataSetTaskResult.cc new file mode 100644 index 000000000..f0d1c9cd2 --- /dev/null +++ b/qualitycheck/src/model/ListDataSetTaskResult.cc @@ -0,0 +1,140 @@ +/* + * 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 +#include + +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::getData()const +{ + return data_; +} + +int ListDataSetTaskResult::getIsAllcomplete()const +{ + return isAllcomplete_; +} + +std::string ListDataSetTaskResult::getCode()const +{ + return code_; +} + +bool ListDataSetTaskResult::getSuccess()const +{ + return success_; +} + diff --git a/qualitycheck/src/model/ListHotWordsTasksRequest.cc b/qualitycheck/src/model/ListHotWordsTasksRequest.cc index 40de35761..70165f4f4 100644 --- a/qualitycheck/src/model/ListHotWordsTasksRequest.cc +++ b/qualitycheck/src/model/ListHotWordsTasksRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::ListHotWordsTasksRequest; - -ListHotWordsTasksRequest::ListHotWordsTasksRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "ListHotWordsTasks") -{ - setMethod(HttpRequest::Method::Post); -} - -ListHotWordsTasksRequest::~ListHotWordsTasksRequest() -{} - -long ListHotWordsTasksRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::ListHotWordsTasksRequest; + +ListHotWordsTasksRequest::ListHotWordsTasksRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "ListHotWordsTasks") { + setMethod(HttpRequest::Method::Post); } -void ListHotWordsTasksRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListHotWordsTasksRequest::~ListHotWordsTasksRequest() {} + +long ListHotWordsTasksRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListHotWordsTasksRequest::getJsonStr()const -{ - return jsonStr_; +void ListHotWordsTasksRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListHotWordsTasksRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string ListHotWordsTasksRequest::getJsonStr() const { + return jsonStr_; } -std::string ListHotWordsTasksRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListHotWordsTasksRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void ListHotWordsTasksRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListHotWordsTasksRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListHotWordsTasksRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/ListHotWordsTasksResult.cc b/qualitycheck/src/model/ListHotWordsTasksResult.cc index a16efe74b..80212434f 100644 --- a/qualitycheck/src/model/ListHotWordsTasksResult.cc +++ b/qualitycheck/src/model/ListHotWordsTasksResult.cc @@ -43,52 +43,52 @@ void ListHotWordsTasksResult::parse(const std::string &payload) for (auto valueDataHotWordsTaskPo : allDataNode) { HotWordsTaskPo dataObject; - if(!valueDataHotWordsTaskPo["TaskConfigId"].isNull()) - dataObject.taskConfigId = std::stol(valueDataHotWordsTaskPo["TaskConfigId"].asString()); - if(!valueDataHotWordsTaskPo["Name"].isNull()) - dataObject.name = valueDataHotWordsTaskPo["Name"].asString(); - if(!valueDataHotWordsTaskPo["Status"].isNull()) - dataObject.status = std::stoi(valueDataHotWordsTaskPo["Status"].asString()); - if(!valueDataHotWordsTaskPo["Type"].isNull()) - dataObject.type = std::stoi(valueDataHotWordsTaskPo["Type"].asString()); - if(!valueDataHotWordsTaskPo["StartTime"].isNull()) - dataObject.startTime = valueDataHotWordsTaskPo["StartTime"].asString(); - if(!valueDataHotWordsTaskPo["TimeInterval"].isNull()) - dataObject.timeInterval = std::stoi(valueDataHotWordsTaskPo["TimeInterval"].asString()); - if(!valueDataHotWordsTaskPo["TimeUnit"].isNull()) - dataObject.timeUnit = std::stoi(valueDataHotWordsTaskPo["TimeUnit"].asString()); if(!valueDataHotWordsTaskPo["EndTime"].isNull()) dataObject.endTime = valueDataHotWordsTaskPo["EndTime"].asString(); + if(!valueDataHotWordsTaskPo["Type"].isNull()) + dataObject.type = std::stoi(valueDataHotWordsTaskPo["Type"].asString()); + if(!valueDataHotWordsTaskPo["Status"].isNull()) + dataObject.status = std::stoi(valueDataHotWordsTaskPo["Status"].asString()); + if(!valueDataHotWordsTaskPo["TimeInterval"].isNull()) + dataObject.timeInterval = std::stoi(valueDataHotWordsTaskPo["TimeInterval"].asString()); + if(!valueDataHotWordsTaskPo["StartTime"].isNull()) + dataObject.startTime = valueDataHotWordsTaskPo["StartTime"].asString(); + if(!valueDataHotWordsTaskPo["TaskConfigId"].isNull()) + dataObject.taskConfigId = std::stol(valueDataHotWordsTaskPo["TaskConfigId"].asString()); + if(!valueDataHotWordsTaskPo["Message"].isNull()) + dataObject.message = valueDataHotWordsTaskPo["Message"].asString(); if(!valueDataHotWordsTaskPo["InstanceStatus"].isNull()) dataObject.instanceStatus = std::stoi(valueDataHotWordsTaskPo["InstanceStatus"].asString()); if(!valueDataHotWordsTaskPo["LastExecutionTime"].isNull()) dataObject.lastExecutionTime = valueDataHotWordsTaskPo["LastExecutionTime"].asString(); - if(!valueDataHotWordsTaskPo["Message"].isNull()) - dataObject.message = valueDataHotWordsTaskPo["Message"].asString(); + if(!valueDataHotWordsTaskPo["Name"].isNull()) + dataObject.name = valueDataHotWordsTaskPo["Name"].asString(); + if(!valueDataHotWordsTaskPo["TimeUnit"].isNull()) + dataObject.timeUnit = std::stoi(valueDataHotWordsTaskPo["TimeUnit"].asString()); auto dialogueParamNode = value["DialogueParam"]; - if(!dialogueParamNode["DialogueId"].isNull()) - dataObject.dialogueParam.dialogueId = std::stol(dialogueParamNode["DialogueId"].asString()); - if(!dialogueParamNode["Role"].isNull()) - dataObject.dialogueParam.role = std::stoi(dialogueParamNode["Role"].asString()); - if(!dialogueParamNode["StartIndex"].isNull()) - dataObject.dialogueParam.startIndex = std::stoi(dialogueParamNode["StartIndex"].asString()); - if(!dialogueParamNode["EndIndex"].isNull()) - dataObject.dialogueParam.endIndex = std::stoi(dialogueParamNode["EndIndex"].asString()); - if(!dialogueParamNode["SourceType"].isNull()) - dataObject.dialogueParam.sourceType = std::stoi(dialogueParamNode["SourceType"].asString()); - if(!dialogueParamNode["DataSetIds"].isNull()) - dataObject.dialogueParam.dataSetIds = dialogueParamNode["DataSetIds"].asString(); - if(!dialogueParamNode["StartTime"].isNull()) - dataObject.dialogueParam.startTime = dialogueParamNode["StartTime"].asString(); if(!dialogueParamNode["EndTime"].isNull()) dataObject.dialogueParam.endTime = dialogueParamNode["EndTime"].asString(); + if(!dialogueParamNode["DialogueId"].isNull()) + dataObject.dialogueParam.dialogueId = std::stol(dialogueParamNode["DialogueId"].asString()); + if(!dialogueParamNode["EndIndex"].isNull()) + dataObject.dialogueParam.endIndex = std::stoi(dialogueParamNode["EndIndex"].asString()); + if(!dialogueParamNode["StartTime"].isNull()) + dataObject.dialogueParam.startTime = dialogueParamNode["StartTime"].asString(); + if(!dialogueParamNode["SourceType"].isNull()) + dataObject.dialogueParam.sourceType = std::stoi(dialogueParamNode["SourceType"].asString()); + if(!dialogueParamNode["StartIndex"].isNull()) + dataObject.dialogueParam.startIndex = std::stoi(dialogueParamNode["StartIndex"].asString()); + if(!dialogueParamNode["Role"].isNull()) + dataObject.dialogueParam.role = std::stoi(dialogueParamNode["Role"].asString()); + if(!dialogueParamNode["DataSetIds"].isNull()) + dataObject.dialogueParam.dataSetIds = dialogueParamNode["DataSetIds"].asString(); auto wordsParamNode = value["WordsParam"]; - if(!wordsParamNode["ExtraConfigId"].isNull()) - dataObject.wordsParam.extraConfigId = std::stol(wordsParamNode["ExtraConfigId"].asString()); if(!wordsParamNode["Excludes"].isNull()) dataObject.wordsParam.excludes = wordsParamNode["Excludes"].asString(); if(!wordsParamNode["Includes"].isNull()) dataObject.wordsParam.includes = wordsParamNode["Includes"].asString(); + if(!wordsParamNode["ExtraConfigId"].isNull()) + dataObject.wordsParam.extraConfigId = std::stol(wordsParamNode["ExtraConfigId"].asString()); data_.push_back(dataObject); } if(!value["Success"].isNull()) diff --git a/qualitycheck/src/model/ListPrecisionTaskRequest.cc b/qualitycheck/src/model/ListPrecisionTaskRequest.cc index 0e19a77ca..aed8f635f 100644 --- a/qualitycheck/src/model/ListPrecisionTaskRequest.cc +++ b/qualitycheck/src/model/ListPrecisionTaskRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::ListPrecisionTaskRequest; - -ListPrecisionTaskRequest::ListPrecisionTaskRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "ListPrecisionTask") -{ - setMethod(HttpRequest::Method::Post); -} - -ListPrecisionTaskRequest::~ListPrecisionTaskRequest() -{} - -long ListPrecisionTaskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::ListPrecisionTaskRequest; + +ListPrecisionTaskRequest::ListPrecisionTaskRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "ListPrecisionTask") { + setMethod(HttpRequest::Method::Post); } -void ListPrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListPrecisionTaskRequest::~ListPrecisionTaskRequest() {} + +long ListPrecisionTaskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListPrecisionTaskRequest::getJsonStr()const -{ - return jsonStr_; +void ListPrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListPrecisionTaskRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string ListPrecisionTaskRequest::getJsonStr() const { + return jsonStr_; } -std::string ListPrecisionTaskRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListPrecisionTaskRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void ListPrecisionTaskRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListPrecisionTaskRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListPrecisionTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/ListPrecisionTaskResult.cc b/qualitycheck/src/model/ListPrecisionTaskResult.cc index dedbadbe7..0a1c84d04 100644 --- a/qualitycheck/src/model/ListPrecisionTaskResult.cc +++ b/qualitycheck/src/model/ListPrecisionTaskResult.cc @@ -43,46 +43,46 @@ void ListPrecisionTaskResult::parse(const std::string &payload) for (auto valueDataPrecisionTask : allDataNode) { PrecisionTask dataObject; - if(!valueDataPrecisionTask["Name"].isNull()) - dataObject.name = valueDataPrecisionTask["Name"].asString(); - if(!valueDataPrecisionTask["TaskId"].isNull()) - dataObject.taskId = valueDataPrecisionTask["TaskId"].asString(); - if(!valueDataPrecisionTask["Source"].isNull()) - dataObject.source = std::stoi(valueDataPrecisionTask["Source"].asString()); - if(!valueDataPrecisionTask["DataSetId"].isNull()) - dataObject.dataSetId = std::stol(valueDataPrecisionTask["DataSetId"].asString()); - if(!valueDataPrecisionTask["DataSetName"].isNull()) - dataObject.dataSetName = valueDataPrecisionTask["DataSetName"].asString(); - if(!valueDataPrecisionTask["Duration"].isNull()) - dataObject.duration = std::stoi(valueDataPrecisionTask["Duration"].asString()); if(!valueDataPrecisionTask["Status"].isNull()) dataObject.status = std::stoi(valueDataPrecisionTask["Status"].asString()); - if(!valueDataPrecisionTask["TotalCount"].isNull()) - dataObject.totalCount = std::stoi(valueDataPrecisionTask["TotalCount"].asString()); - if(!valueDataPrecisionTask["VerifiedCount"].isNull()) - dataObject.verifiedCount = std::stoi(valueDataPrecisionTask["VerifiedCount"].asString()); + if(!valueDataPrecisionTask["UpdateTime"].isNull()) + dataObject.updateTime = valueDataPrecisionTask["UpdateTime"].asString(); if(!valueDataPrecisionTask["IncorrectWords"].isNull()) dataObject.incorrectWords = std::stoi(valueDataPrecisionTask["IncorrectWords"].asString()); if(!valueDataPrecisionTask["CreateTime"].isNull()) dataObject.createTime = valueDataPrecisionTask["CreateTime"].asString(); - if(!valueDataPrecisionTask["UpdateTime"].isNull()) - dataObject.updateTime = valueDataPrecisionTask["UpdateTime"].asString(); + if(!valueDataPrecisionTask["DataSetId"].isNull()) + dataObject.dataSetId = std::stol(valueDataPrecisionTask["DataSetId"].asString()); + if(!valueDataPrecisionTask["VerifiedCount"].isNull()) + dataObject.verifiedCount = std::stoi(valueDataPrecisionTask["VerifiedCount"].asString()); + if(!valueDataPrecisionTask["Source"].isNull()) + dataObject.source = std::stoi(valueDataPrecisionTask["Source"].asString()); + if(!valueDataPrecisionTask["TotalCount"].isNull()) + dataObject.totalCount = std::stoi(valueDataPrecisionTask["TotalCount"].asString()); + if(!valueDataPrecisionTask["DataSetName"].isNull()) + dataObject.dataSetName = valueDataPrecisionTask["DataSetName"].asString(); + if(!valueDataPrecisionTask["Duration"].isNull()) + dataObject.duration = std::stoi(valueDataPrecisionTask["Duration"].asString()); + if(!valueDataPrecisionTask["Name"].isNull()) + dataObject.name = valueDataPrecisionTask["Name"].asString(); + if(!valueDataPrecisionTask["TaskId"].isNull()) + dataObject.taskId = valueDataPrecisionTask["TaskId"].asString(); auto allPrecisionsNode = valueDataPrecisionTask["Precisions"]["Precision"]; for (auto valueDataPrecisionTaskPrecisionsPrecision : allPrecisionsNode) { PrecisionTask::Precision precisionsObject; + if(!valueDataPrecisionTaskPrecisionsPrecision["Status"].isNull()) + precisionsObject.status = std::stoi(valueDataPrecisionTaskPrecisionsPrecision["Status"].asString()); + if(!valueDataPrecisionTaskPrecisionsPrecision["CreateTime"].isNull()) + precisionsObject.createTime = valueDataPrecisionTaskPrecisionsPrecision["CreateTime"].asString(); if(!valueDataPrecisionTaskPrecisionsPrecision["ModelName"].isNull()) precisionsObject.modelName = valueDataPrecisionTaskPrecisionsPrecision["ModelName"].asString(); + if(!valueDataPrecisionTaskPrecisionsPrecision["TaskId"].isNull()) + precisionsObject.taskId = valueDataPrecisionTaskPrecisionsPrecision["TaskId"].asString(); if(!valueDataPrecisionTaskPrecisionsPrecision["ModelId"].isNull()) precisionsObject.modelId = std::stol(valueDataPrecisionTaskPrecisionsPrecision["ModelId"].asString()); if(!valueDataPrecisionTaskPrecisionsPrecision["Precision"].isNull()) precisionsObject.precision = std::stof(valueDataPrecisionTaskPrecisionsPrecision["Precision"].asString()); - if(!valueDataPrecisionTaskPrecisionsPrecision["Status"].isNull()) - precisionsObject.status = std::stoi(valueDataPrecisionTaskPrecisionsPrecision["Status"].asString()); - if(!valueDataPrecisionTaskPrecisionsPrecision["TaskId"].isNull()) - precisionsObject.taskId = valueDataPrecisionTaskPrecisionsPrecision["TaskId"].asString(); - if(!valueDataPrecisionTaskPrecisionsPrecision["CreateTime"].isNull()) - precisionsObject.createTime = valueDataPrecisionTaskPrecisionsPrecision["CreateTime"].asString(); dataObject.precisions.push_back(precisionsObject); } data_.push_back(dataObject); diff --git a/qualitycheck/src/model/ListRolesRequest.cc b/qualitycheck/src/model/ListRolesRequest.cc index 090985aca..d3fb3397c 100644 --- a/qualitycheck/src/model/ListRolesRequest.cc +++ b/qualitycheck/src/model/ListRolesRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::ListRolesRequest; - -ListRolesRequest::ListRolesRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "ListRoles") -{ - setMethod(HttpRequest::Method::Post); -} - -ListRolesRequest::~ListRolesRequest() -{} - -long ListRolesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::ListRolesRequest; + +ListRolesRequest::ListRolesRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "ListRoles") { + setMethod(HttpRequest::Method::Post); } -void ListRolesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListRolesRequest::~ListRolesRequest() {} + +long ListRolesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListRolesRequest::getJsonStr()const -{ - return jsonStr_; +void ListRolesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListRolesRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string ListRolesRequest::getJsonStr() const { + return jsonStr_; } -std::string ListRolesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListRolesRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void ListRolesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListRolesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListRolesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/ListRolesResult.cc b/qualitycheck/src/model/ListRolesResult.cc index 1c27994cf..2155cce86 100644 --- a/qualitycheck/src/model/ListRolesResult.cc +++ b/qualitycheck/src/model/ListRolesResult.cc @@ -43,26 +43,26 @@ void ListRolesResult::parse(const std::string &payload) for (auto valueDataRole : allDataNode) { Role dataObject; - if(!valueDataRole["Id"].isNull()) - dataObject.id = std::stol(valueDataRole["Id"].asString()); - if(!valueDataRole["Name"].isNull()) - dataObject.name = valueDataRole["Name"].asString(); if(!valueDataRole["DisplayName"].isNull()) dataObject.displayName = valueDataRole["DisplayName"].asString(); - if(!valueDataRole["Level"].isNull()) - dataObject.level = std::stoi(valueDataRole["Level"].asString()); - if(!valueDataRole["CreateTime"].isNull()) - dataObject.createTime = valueDataRole["CreateTime"].asString(); if(!valueDataRole["UpdateTime"].isNull()) dataObject.updateTime = valueDataRole["UpdateTime"].asString(); + if(!valueDataRole["CreateTime"].isNull()) + dataObject.createTime = valueDataRole["CreateTime"].asString(); + if(!valueDataRole["Name"].isNull()) + dataObject.name = valueDataRole["Name"].asString(); + if(!valueDataRole["Id"].isNull()) + dataObject.id = std::stol(valueDataRole["Id"].asString()); + if(!valueDataRole["Level"].isNull()) + dataObject.level = std::stoi(valueDataRole["Level"].asString()); data_.push_back(dataObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/ListRulesRequest.cc b/qualitycheck/src/model/ListRulesRequest.cc index 22526a673..aa2a560bb 100644 --- a/qualitycheck/src/model/ListRulesRequest.cc +++ b/qualitycheck/src/model/ListRulesRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::ListRulesRequest; - -ListRulesRequest::ListRulesRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "ListRules") -{ - setMethod(HttpRequest::Method::Post); -} - -ListRulesRequest::~ListRulesRequest() -{} - -long ListRulesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::ListRulesRequest; + +ListRulesRequest::ListRulesRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "ListRules") { + setMethod(HttpRequest::Method::Post); } -void ListRulesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListRulesRequest::~ListRulesRequest() {} + +long ListRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListRulesRequest::getJsonStr()const -{ - return jsonStr_; +void ListRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListRulesRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string ListRulesRequest::getJsonStr() const { + return jsonStr_; } -std::string ListRulesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListRulesRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void ListRulesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListRulesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListRulesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/ListRulesResult.cc b/qualitycheck/src/model/ListRulesResult.cc index 8248b2cd8..be728e47c 100644 --- a/qualitycheck/src/model/ListRulesResult.cc +++ b/qualitycheck/src/model/ListRulesResult.cc @@ -43,18 +43,18 @@ void ListRulesResult::parse(const std::string &payload) for (auto valueDataRule : allDataNode) { Rule dataObject; - if(!valueDataRule["Name"].isNull()) - dataObject.name = valueDataRule["Name"].asString(); if(!valueDataRule["Type"].isNull()) dataObject.type = std::stoi(valueDataRule["Type"].asString()); - if(!valueDataRule["Comments"].isNull()) - dataObject.comments = valueDataRule["Comments"].asString(); - if(!valueDataRule["CreateTime"].isNull()) - dataObject.createTime = valueDataRule["CreateTime"].asString(); - if(!valueDataRule["TypeName"].isNull()) - dataObject.typeName = valueDataRule["TypeName"].asString(); if(!valueDataRule["RuleType"].isNull()) dataObject.ruleType = std::stoi(valueDataRule["RuleType"].asString()); + if(!valueDataRule["CreateTime"].isNull()) + dataObject.createTime = valueDataRule["CreateTime"].asString(); + if(!valueDataRule["Comments"].isNull()) + dataObject.comments = valueDataRule["Comments"].asString(); + if(!valueDataRule["TypeName"].isNull()) + dataObject.typeName = valueDataRule["TypeName"].asString(); + if(!valueDataRule["Name"].isNull()) + dataObject.name = valueDataRule["Name"].asString(); if(!valueDataRule["Rid"].isNull()) dataObject.rid = std::stol(valueDataRule["Rid"].asString()); auto allBusinessCategoryNameList = value["BusinessCategoryNameList"]["BusinessCategoryNameList"]; @@ -68,12 +68,12 @@ void ListRulesResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Count"].isNull()) - count_ = std::stoi(value["Count"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); } diff --git a/qualitycheck/src/model/ListSkillGroupConfigRequest.cc b/qualitycheck/src/model/ListSkillGroupConfigRequest.cc index 2aa664c9b..a088cd29d 100644 --- a/qualitycheck/src/model/ListSkillGroupConfigRequest.cc +++ b/qualitycheck/src/model/ListSkillGroupConfigRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::ListSkillGroupConfigRequest; - -ListSkillGroupConfigRequest::ListSkillGroupConfigRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "ListSkillGroupConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSkillGroupConfigRequest::~ListSkillGroupConfigRequest() -{} - -long ListSkillGroupConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::ListSkillGroupConfigRequest; + +ListSkillGroupConfigRequest::ListSkillGroupConfigRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "ListSkillGroupConfig") { + setMethod(HttpRequest::Method::Post); } -void ListSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListSkillGroupConfigRequest::~ListSkillGroupConfigRequest() {} + +long ListSkillGroupConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListSkillGroupConfigRequest::getJsonStr()const -{ - return jsonStr_; +void ListSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListSkillGroupConfigRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string ListSkillGroupConfigRequest::getJsonStr() const { + return jsonStr_; } -std::string ListSkillGroupConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListSkillGroupConfigRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void ListSkillGroupConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListSkillGroupConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListSkillGroupConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/ListSkillGroupConfigResult.cc b/qualitycheck/src/model/ListSkillGroupConfigResult.cc index 1c34e7f4a..25620056a 100644 --- a/qualitycheck/src/model/ListSkillGroupConfigResult.cc +++ b/qualitycheck/src/model/ListSkillGroupConfigResult.cc @@ -43,86 +43,86 @@ void ListSkillGroupConfigResult::parse(const std::string &payload) for (auto valueDataSkillGroupConfig : allDataNode) { SkillGroupConfig dataObject; - if(!valueDataSkillGroupConfig["Id"].isNull()) - dataObject.id = std::stol(valueDataSkillGroupConfig["Id"].asString()); - if(!valueDataSkillGroupConfig["InstanceId"].isNull()) - dataObject.instanceId = valueDataSkillGroupConfig["InstanceId"].asString(); - if(!valueDataSkillGroupConfig["ModelId"].isNull()) - dataObject.modelId = std::stol(valueDataSkillGroupConfig["ModelId"].asString()); - if(!valueDataSkillGroupConfig["ModelName"].isNull()) - dataObject.modelName = valueDataSkillGroupConfig["ModelName"].asString(); - if(!valueDataSkillGroupConfig["Name"].isNull()) - dataObject.name = valueDataSkillGroupConfig["Name"].asString(); - if(!valueDataSkillGroupConfig["Rid"].isNull()) - dataObject.rid = valueDataSkillGroupConfig["Rid"].asString(); - if(!valueDataSkillGroupConfig["SkillGroupId"].isNull()) - dataObject.skillGroupId = valueDataSkillGroupConfig["SkillGroupId"].asString(); - if(!valueDataSkillGroupConfig["SkillGroupName"].isNull()) - dataObject.skillGroupName = valueDataSkillGroupConfig["SkillGroupName"].asString(); - if(!valueDataSkillGroupConfig["Status"].isNull()) - dataObject.status = std::stoi(valueDataSkillGroupConfig["Status"].asString()); if(!valueDataSkillGroupConfig["Type"].isNull()) dataObject.type = std::stoi(valueDataSkillGroupConfig["Type"].asString()); - if(!valueDataSkillGroupConfig["VocabId"].isNull()) - dataObject.vocabId = std::stol(valueDataSkillGroupConfig["VocabId"].asString()); - if(!valueDataSkillGroupConfig["VocabName"].isNull()) - dataObject.vocabName = valueDataSkillGroupConfig["VocabName"].asString(); - if(!valueDataSkillGroupConfig["CreateTime"].isNull()) - dataObject.createTime = valueDataSkillGroupConfig["CreateTime"].asString(); + if(!valueDataSkillGroupConfig["Status"].isNull()) + dataObject.status = std::stoi(valueDataSkillGroupConfig["Status"].asString()); if(!valueDataSkillGroupConfig["UpdateTime"].isNull()) dataObject.updateTime = valueDataSkillGroupConfig["UpdateTime"].asString(); - if(!valueDataSkillGroupConfig["QualityCheckType"].isNull()) - dataObject.qualityCheckType = std::stoi(valueDataSkillGroupConfig["QualityCheckType"].asString()); if(!valueDataSkillGroupConfig["AllContentQualityCheck"].isNull()) dataObject.allContentQualityCheck = std::stoi(valueDataSkillGroupConfig["AllContentQualityCheck"].asString()); - if(!valueDataSkillGroupConfig["AllRids"].isNull()) - dataObject.allRids = valueDataSkillGroupConfig["AllRids"].asString(); - if(!valueDataSkillGroupConfig["SkillGroupFrom"].isNull()) - dataObject.skillGroupFrom = std::stoi(valueDataSkillGroupConfig["SkillGroupFrom"].asString()); + if(!valueDataSkillGroupConfig["CreateTime"].isNull()) + dataObject.createTime = valueDataSkillGroupConfig["CreateTime"].asString(); + if(!valueDataSkillGroupConfig["SkillGroupId"].isNull()) + dataObject.skillGroupId = valueDataSkillGroupConfig["SkillGroupId"].asString(); if(!valueDataSkillGroupConfig["ScreenSwitch"].isNull()) dataObject.screenSwitch = valueDataSkillGroupConfig["ScreenSwitch"].asString() == "true"; + if(!valueDataSkillGroupConfig["InstanceId"].isNull()) + dataObject.instanceId = valueDataSkillGroupConfig["InstanceId"].asString(); + if(!valueDataSkillGroupConfig["VocabId"].isNull()) + dataObject.vocabId = std::stol(valueDataSkillGroupConfig["VocabId"].asString()); + if(!valueDataSkillGroupConfig["SkillGroupFrom"].isNull()) + dataObject.skillGroupFrom = std::stoi(valueDataSkillGroupConfig["SkillGroupFrom"].asString()); + if(!valueDataSkillGroupConfig["Rid"].isNull()) + dataObject.rid = valueDataSkillGroupConfig["Rid"].asString(); + if(!valueDataSkillGroupConfig["SkillGroupName"].isNull()) + dataObject.skillGroupName = valueDataSkillGroupConfig["SkillGroupName"].asString(); + if(!valueDataSkillGroupConfig["ModelName"].isNull()) + dataObject.modelName = valueDataSkillGroupConfig["ModelName"].asString(); + if(!valueDataSkillGroupConfig["AllRids"].isNull()) + dataObject.allRids = valueDataSkillGroupConfig["AllRids"].asString(); + if(!valueDataSkillGroupConfig["Name"].isNull()) + dataObject.name = valueDataSkillGroupConfig["Name"].asString(); + if(!valueDataSkillGroupConfig["ModelId"].isNull()) + dataObject.modelId = std::stol(valueDataSkillGroupConfig["ModelId"].asString()); + if(!valueDataSkillGroupConfig["Id"].isNull()) + dataObject.id = std::stol(valueDataSkillGroupConfig["Id"].asString()); + if(!valueDataSkillGroupConfig["QualityCheckType"].isNull()) + dataObject.qualityCheckType = std::stoi(valueDataSkillGroupConfig["QualityCheckType"].asString()); + if(!valueDataSkillGroupConfig["VocabName"].isNull()) + dataObject.vocabName = valueDataSkillGroupConfig["VocabName"].asString(); auto allRuleListNode = valueDataSkillGroupConfig["RuleList"]["RuleNameInfo"]; for (auto valueDataSkillGroupConfigRuleListRuleNameInfo : allRuleListNode) { SkillGroupConfig::RuleNameInfo ruleListObject; - if(!valueDataSkillGroupConfigRuleListRuleNameInfo["Rid"].isNull()) - ruleListObject.rid = std::stol(valueDataSkillGroupConfigRuleListRuleNameInfo["Rid"].asString()); if(!valueDataSkillGroupConfigRuleListRuleNameInfo["RuleName"].isNull()) ruleListObject.ruleName = valueDataSkillGroupConfigRuleListRuleNameInfo["RuleName"].asString(); + if(!valueDataSkillGroupConfigRuleListRuleNameInfo["Rid"].isNull()) + ruleListObject.rid = std::stol(valueDataSkillGroupConfigRuleListRuleNameInfo["Rid"].asString()); dataObject.ruleList.push_back(ruleListObject); } auto allAllRuleListNode = valueDataSkillGroupConfig["AllRuleList"]["RuleNameInfo"]; for (auto valueDataSkillGroupConfigAllRuleListRuleNameInfo : allAllRuleListNode) { SkillGroupConfig::RuleNameInfo allRuleListObject; - if(!valueDataSkillGroupConfigAllRuleListRuleNameInfo["Rid"].isNull()) - allRuleListObject.rid = std::stol(valueDataSkillGroupConfigAllRuleListRuleNameInfo["Rid"].asString()); if(!valueDataSkillGroupConfigAllRuleListRuleNameInfo["RuleName"].isNull()) allRuleListObject.ruleName = valueDataSkillGroupConfigAllRuleListRuleNameInfo["RuleName"].asString(); + if(!valueDataSkillGroupConfigAllRuleListRuleNameInfo["Rid"].isNull()) + allRuleListObject.rid = std::stol(valueDataSkillGroupConfigAllRuleListRuleNameInfo["Rid"].asString()); dataObject.allRuleList.push_back(allRuleListObject); } auto allSkillGroupScreensNode = valueDataSkillGroupConfig["SkillGroupScreens"]["SkillGroupScreen"]; for (auto valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen : allSkillGroupScreensNode) { SkillGroupConfig::SkillGroupScreen skillGroupScreensObject; - if(!valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Name"].isNull()) - skillGroupScreensObject.name = valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Name"].asString(); + if(!valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Value"].isNull()) + skillGroupScreensObject.value = valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Value"].asString(); if(!valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["DataType"].isNull()) skillGroupScreensObject.dataType = std::stoi(valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["DataType"].asString()); if(!valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Symbol"].isNull()) skillGroupScreensObject.symbol = std::stoi(valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Symbol"].asString()); - if(!valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Value"].isNull()) - skillGroupScreensObject.value = valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Value"].asString(); + if(!valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Name"].isNull()) + skillGroupScreensObject.name = valueDataSkillGroupConfigSkillGroupScreensSkillGroupScreen["Name"].asString(); dataObject.skillGroupScreens.push_back(skillGroupScreensObject); } data_.push_back(dataObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/ListTaskAssignRulesRequest.cc b/qualitycheck/src/model/ListTaskAssignRulesRequest.cc index bbc0467b3..a8b2d8c96 100644 --- a/qualitycheck/src/model/ListTaskAssignRulesRequest.cc +++ b/qualitycheck/src/model/ListTaskAssignRulesRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::ListTaskAssignRulesRequest; - -ListTaskAssignRulesRequest::ListTaskAssignRulesRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "ListTaskAssignRules") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTaskAssignRulesRequest::~ListTaskAssignRulesRequest() -{} - -long ListTaskAssignRulesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::ListTaskAssignRulesRequest; + +ListTaskAssignRulesRequest::ListTaskAssignRulesRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "ListTaskAssignRules") { + setMethod(HttpRequest::Method::Post); } -void ListTaskAssignRulesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListTaskAssignRulesRequest::~ListTaskAssignRulesRequest() {} + +long ListTaskAssignRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListTaskAssignRulesRequest::getJsonStr()const -{ - return jsonStr_; +void ListTaskAssignRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListTaskAssignRulesRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string ListTaskAssignRulesRequest::getJsonStr() const { + return jsonStr_; } -std::string ListTaskAssignRulesRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListTaskAssignRulesRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void ListTaskAssignRulesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListTaskAssignRulesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListTaskAssignRulesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/ListTaskAssignRulesResult.cc b/qualitycheck/src/model/ListTaskAssignRulesResult.cc index 7e6d705a2..eb91f66e7 100644 --- a/qualitycheck/src/model/ListTaskAssignRulesResult.cc +++ b/qualitycheck/src/model/ListTaskAssignRulesResult.cc @@ -43,52 +43,52 @@ void ListTaskAssignRulesResult::parse(const std::string &payload) for (auto valueDataTaskAssignRuleInfo : allDataNode) { TaskAssignRuleInfo dataObject; - if(!valueDataTaskAssignRuleInfo["RuleId"].isNull()) - dataObject.ruleId = std::stol(valueDataTaskAssignRuleInfo["RuleId"].asString()); - if(!valueDataTaskAssignRuleInfo["Enabled"].isNull()) - dataObject.enabled = std::stoi(valueDataTaskAssignRuleInfo["Enabled"].asString()); - if(!valueDataTaskAssignRuleInfo["CallType"].isNull()) - dataObject.callType = std::stoi(valueDataTaskAssignRuleInfo["CallType"].asString()); - if(!valueDataTaskAssignRuleInfo["Priority"].isNull()) - dataObject.priority = std::stoi(valueDataTaskAssignRuleInfo["Priority"].asString()); - if(!valueDataTaskAssignRuleInfo["DurationMin"].isNull()) - dataObject.durationMin = std::stoi(valueDataTaskAssignRuleInfo["DurationMin"].asString()); + if(!valueDataTaskAssignRuleInfo["UpdateTime"].isNull()) + dataObject.updateTime = valueDataTaskAssignRuleInfo["UpdateTime"].asString(); + if(!valueDataTaskAssignRuleInfo["SkillGroupsStr"].isNull()) + dataObject.skillGroupsStr = valueDataTaskAssignRuleInfo["SkillGroupsStr"].asString(); + if(!valueDataTaskAssignRuleInfo["CallTimeEnd"].isNull()) + dataObject.callTimeEnd = std::stol(valueDataTaskAssignRuleInfo["CallTimeEnd"].asString()); if(!valueDataTaskAssignRuleInfo["DurationMax"].isNull()) dataObject.durationMax = std::stoi(valueDataTaskAssignRuleInfo["DurationMax"].asString()); if(!valueDataTaskAssignRuleInfo["CreateTime"].isNull()) dataObject.createTime = valueDataTaskAssignRuleInfo["CreateTime"].asString(); - if(!valueDataTaskAssignRuleInfo["UpdateTime"].isNull()) - dataObject.updateTime = valueDataTaskAssignRuleInfo["UpdateTime"].asString(); + if(!valueDataTaskAssignRuleInfo["Priority"].isNull()) + dataObject.priority = std::stoi(valueDataTaskAssignRuleInfo["Priority"].asString()); + if(!valueDataTaskAssignRuleInfo["DurationMin"].isNull()) + dataObject.durationMin = std::stoi(valueDataTaskAssignRuleInfo["DurationMin"].asString()); if(!valueDataTaskAssignRuleInfo["AgentsStr"].isNull()) dataObject.agentsStr = valueDataTaskAssignRuleInfo["AgentsStr"].asString(); - if(!valueDataTaskAssignRuleInfo["SkillGroupsStr"].isNull()) - dataObject.skillGroupsStr = valueDataTaskAssignRuleInfo["SkillGroupsStr"].asString(); - if(!valueDataTaskAssignRuleInfo["CallTimeStart"].isNull()) - dataObject.callTimeStart = std::stol(valueDataTaskAssignRuleInfo["CallTimeStart"].asString()); - if(!valueDataTaskAssignRuleInfo["CallTimeEnd"].isNull()) - dataObject.callTimeEnd = std::stol(valueDataTaskAssignRuleInfo["CallTimeEnd"].asString()); - if(!valueDataTaskAssignRuleInfo["AssignmentType"].isNull()) - dataObject.assignmentType = std::stoi(valueDataTaskAssignRuleInfo["AssignmentType"].asString()); if(!valueDataTaskAssignRuleInfo["RuleName"].isNull()) dataObject.ruleName = valueDataTaskAssignRuleInfo["RuleName"].asString(); + if(!valueDataTaskAssignRuleInfo["RuleId"].isNull()) + dataObject.ruleId = std::stol(valueDataTaskAssignRuleInfo["RuleId"].asString()); + if(!valueDataTaskAssignRuleInfo["AssignmentType"].isNull()) + dataObject.assignmentType = std::stoi(valueDataTaskAssignRuleInfo["AssignmentType"].asString()); + if(!valueDataTaskAssignRuleInfo["CallType"].isNull()) + dataObject.callType = std::stoi(valueDataTaskAssignRuleInfo["CallType"].asString()); + if(!valueDataTaskAssignRuleInfo["Enabled"].isNull()) + dataObject.enabled = std::stoi(valueDataTaskAssignRuleInfo["Enabled"].asString()); + if(!valueDataTaskAssignRuleInfo["CallTimeStart"].isNull()) + dataObject.callTimeStart = std::stol(valueDataTaskAssignRuleInfo["CallTimeStart"].asString()); auto allAgentsNode = valueDataTaskAssignRuleInfo["Agents"]["Agent"]; for (auto valueDataTaskAssignRuleInfoAgentsAgent : allAgentsNode) { TaskAssignRuleInfo::Agent agentsObject; - if(!valueDataTaskAssignRuleInfoAgentsAgent["AgentId"].isNull()) - agentsObject.agentId = valueDataTaskAssignRuleInfoAgentsAgent["AgentId"].asString(); if(!valueDataTaskAssignRuleInfoAgentsAgent["AgentName"].isNull()) agentsObject.agentName = valueDataTaskAssignRuleInfoAgentsAgent["AgentName"].asString(); + if(!valueDataTaskAssignRuleInfoAgentsAgent["AgentId"].isNull()) + agentsObject.agentId = valueDataTaskAssignRuleInfoAgentsAgent["AgentId"].asString(); dataObject.agents.push_back(agentsObject); } auto allSkillGroupsNode = valueDataTaskAssignRuleInfo["SkillGroups"]["SkillGroup"]; for (auto valueDataTaskAssignRuleInfoSkillGroupsSkillGroup : allSkillGroupsNode) { TaskAssignRuleInfo::SkillGroup skillGroupsObject; - if(!valueDataTaskAssignRuleInfoSkillGroupsSkillGroup["SkillId"].isNull()) - skillGroupsObject.skillId = valueDataTaskAssignRuleInfoSkillGroupsSkillGroup["SkillId"].asString(); if(!valueDataTaskAssignRuleInfoSkillGroupsSkillGroup["SkillName"].isNull()) skillGroupsObject.skillName = valueDataTaskAssignRuleInfoSkillGroupsSkillGroup["SkillName"].asString(); + if(!valueDataTaskAssignRuleInfoSkillGroupsSkillGroup["SkillId"].isNull()) + skillGroupsObject.skillId = valueDataTaskAssignRuleInfoSkillGroupsSkillGroup["SkillId"].asString(); dataObject.skillGroups.push_back(skillGroupsObject); } auto allReviewersNode = valueDataTaskAssignRuleInfo["Reviewers"]["Reviewer"]; @@ -105,23 +105,23 @@ void ListTaskAssignRulesResult::parse(const std::string &payload) for (auto valueDataTaskAssignRuleInfoRulesRuleBasicInfo : allRulesNode) { TaskAssignRuleInfo::RuleBasicInfo rulesObject; - if(!valueDataTaskAssignRuleInfoRulesRuleBasicInfo["Rid"].isNull()) - rulesObject.rid = valueDataTaskAssignRuleInfoRulesRuleBasicInfo["Rid"].asString(); if(!valueDataTaskAssignRuleInfoRulesRuleBasicInfo["Name"].isNull()) rulesObject.name = valueDataTaskAssignRuleInfoRulesRuleBasicInfo["Name"].asString(); + if(!valueDataTaskAssignRuleInfoRulesRuleBasicInfo["Rid"].isNull()) + rulesObject.rid = valueDataTaskAssignRuleInfoRulesRuleBasicInfo["Rid"].asString(); dataObject.rules.push_back(rulesObject); } auto samplingModeNode = value["SamplingMode"]; - if(!samplingModeNode["Dimension"].isNull()) - dataObject.samplingMode.dimension = std::stoi(samplingModeNode["Dimension"].asString()); - if(!samplingModeNode["Proportion"].isNull()) - dataObject.samplingMode.proportion = std::stof(samplingModeNode["Proportion"].asString()); - if(!samplingModeNode["Limit"].isNull()) - dataObject.samplingMode.limit = std::stoi(samplingModeNode["Limit"].asString()); if(!samplingModeNode["NumberOfDraws"].isNull()) dataObject.samplingMode.numberOfDraws = std::stoi(samplingModeNode["NumberOfDraws"].asString()); if(!samplingModeNode["AnyNumberOfDraws"].isNull()) dataObject.samplingMode.anyNumberOfDraws = std::stoi(samplingModeNode["AnyNumberOfDraws"].asString()); + if(!samplingModeNode["Limit"].isNull()) + dataObject.samplingMode.limit = std::stoi(samplingModeNode["Limit"].asString()); + if(!samplingModeNode["Proportion"].isNull()) + dataObject.samplingMode.proportion = std::stof(samplingModeNode["Proportion"].asString()); + if(!samplingModeNode["Dimension"].isNull()) + dataObject.samplingMode.dimension = std::stoi(samplingModeNode["Dimension"].asString()); if(!samplingModeNode["Designated"].isNull()) dataObject.samplingMode.designated = samplingModeNode["Designated"].asString() == "true"; if(!samplingModeNode["RandomInspectionNumber"].isNull()) @@ -130,10 +130,10 @@ void ListTaskAssignRulesResult::parse(const std::string &payload) for (auto samplingModeNodeSamplingModeAgentsSamplingModeAgent : allSamplingModeAgentsNode) { TaskAssignRuleInfo::SamplingMode::SamplingModeAgent samplingModeAgentObject; - if(!samplingModeNodeSamplingModeAgentsSamplingModeAgent["AgentId"].isNull()) - samplingModeAgentObject.agentId = samplingModeNodeSamplingModeAgentsSamplingModeAgent["AgentId"].asString(); if(!samplingModeNodeSamplingModeAgentsSamplingModeAgent["AgentName"].isNull()) samplingModeAgentObject.agentName = samplingModeNodeSamplingModeAgentsSamplingModeAgent["AgentName"].asString(); + if(!samplingModeNodeSamplingModeAgentsSamplingModeAgent["AgentId"].isNull()) + samplingModeAgentObject.agentId = samplingModeNodeSamplingModeAgentsSamplingModeAgent["AgentId"].asString(); dataObject.samplingMode.samplingModeAgents.push_back(samplingModeAgentObject); } data_.push_back(dataObject); diff --git a/qualitycheck/src/model/ListUsersRequest.cc b/qualitycheck/src/model/ListUsersRequest.cc index bb6e2f545..8417c26f0 100644 --- a/qualitycheck/src/model/ListUsersRequest.cc +++ b/qualitycheck/src/model/ListUsersRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::ListUsersRequest; - -ListUsersRequest::ListUsersRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "ListUsers") -{ - setMethod(HttpRequest::Method::Post); -} - -ListUsersRequest::~ListUsersRequest() -{} - -long ListUsersRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::ListUsersRequest; + +ListUsersRequest::ListUsersRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "ListUsers") { + setMethod(HttpRequest::Method::Post); } -void ListUsersRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListUsersRequest::~ListUsersRequest() {} + +long ListUsersRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListUsersRequest::getJsonStr()const -{ - return jsonStr_; +void ListUsersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListUsersRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string ListUsersRequest::getJsonStr() const { + return jsonStr_; } -std::string ListUsersRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListUsersRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void ListUsersRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListUsersRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListUsersRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/ListUsersResult.cc b/qualitycheck/src/model/ListUsersResult.cc index cee2dd280..43774ca5c 100644 --- a/qualitycheck/src/model/ListUsersResult.cc +++ b/qualitycheck/src/model/ListUsersResult.cc @@ -43,24 +43,24 @@ void ListUsersResult::parse(const std::string &payload) for (auto valueDataUser : allDataNode) { User dataObject; - if(!valueDataUser["Id"].isNull()) - dataObject.id = std::stol(valueDataUser["Id"].asString()); - if(!valueDataUser["UserName"].isNull()) - dataObject.userName = valueDataUser["UserName"].asString(); if(!valueDataUser["DisplayName"].isNull()) dataObject.displayName = valueDataUser["DisplayName"].asString(); - if(!valueDataUser["CreateTime"].isNull()) - dataObject.createTime = valueDataUser["CreateTime"].asString(); if(!valueDataUser["UpdateTime"].isNull()) dataObject.updateTime = valueDataUser["UpdateTime"].asString(); if(!valueDataUser["Description"].isNull()) dataObject.description = valueDataUser["Description"].asString(); + if(!valueDataUser["CreateTime"].isNull()) + dataObject.createTime = valueDataUser["CreateTime"].asString(); + if(!valueDataUser["LoginUserType"].isNull()) + dataObject.loginUserType = std::stoi(valueDataUser["LoginUserType"].asString()); if(!valueDataUser["AliUid"].isNull()) dataObject.aliUid = valueDataUser["AliUid"].asString(); if(!valueDataUser["RoleName"].isNull()) dataObject.roleName = valueDataUser["RoleName"].asString(); - if(!valueDataUser["LoginUserType"].isNull()) - dataObject.loginUserType = std::stoi(valueDataUser["LoginUserType"].asString()); + if(!valueDataUser["UserName"].isNull()) + dataObject.userName = valueDataUser["UserName"].asString(); + if(!valueDataUser["Id"].isNull()) + dataObject.id = std::stol(valueDataUser["Id"].asString()); data_.push_back(dataObject); } if(!value["Success"].isNull()) diff --git a/qualitycheck/src/model/ListWarningConfigRequest.cc b/qualitycheck/src/model/ListWarningConfigRequest.cc index 11590a755..31e8c3941 100644 --- a/qualitycheck/src/model/ListWarningConfigRequest.cc +++ b/qualitycheck/src/model/ListWarningConfigRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::ListWarningConfigRequest; - -ListWarningConfigRequest::ListWarningConfigRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "ListWarningConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -ListWarningConfigRequest::~ListWarningConfigRequest() -{} - -long ListWarningConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::ListWarningConfigRequest; + +ListWarningConfigRequest::ListWarningConfigRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "ListWarningConfig") { + setMethod(HttpRequest::Method::Post); } -void ListWarningConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListWarningConfigRequest::~ListWarningConfigRequest() {} + +long ListWarningConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListWarningConfigRequest::getJsonStr()const -{ - return jsonStr_; +void ListWarningConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListWarningConfigRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string ListWarningConfigRequest::getJsonStr() const { + return jsonStr_; } -std::string ListWarningConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListWarningConfigRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void ListWarningConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListWarningConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListWarningConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/ListWarningConfigResult.cc b/qualitycheck/src/model/ListWarningConfigResult.cc index 51d46989a..e77ae30cf 100644 --- a/qualitycheck/src/model/ListWarningConfigResult.cc +++ b/qualitycheck/src/model/ListWarningConfigResult.cc @@ -43,24 +43,24 @@ void ListWarningConfigResult::parse(const std::string &payload) for (auto valueDataWarningConfigInfo : allDataNode) { WarningConfigInfo dataObject; - if(!valueDataWarningConfigInfo["ConfigId"].isNull()) - dataObject.configId = std::stol(valueDataWarningConfigInfo["ConfigId"].asString()); - if(!valueDataWarningConfigInfo["ConfigName"].isNull()) - dataObject.configName = valueDataWarningConfigInfo["ConfigName"].asString(); if(!valueDataWarningConfigInfo["Status"].isNull()) dataObject.status = std::stoi(valueDataWarningConfigInfo["Status"].asString()); - if(!valueDataWarningConfigInfo["CreateTime"].isNull()) - dataObject.createTime = valueDataWarningConfigInfo["CreateTime"].asString(); + if(!valueDataWarningConfigInfo["ConfigName"].isNull()) + dataObject.configName = valueDataWarningConfigInfo["ConfigName"].asString(); if(!valueDataWarningConfigInfo["UpdateTime"].isNull()) dataObject.updateTime = valueDataWarningConfigInfo["UpdateTime"].asString(); + if(!valueDataWarningConfigInfo["ConfigId"].isNull()) + dataObject.configId = std::stol(valueDataWarningConfigInfo["ConfigId"].asString()); + if(!valueDataWarningConfigInfo["CreateTime"].isNull()) + dataObject.createTime = valueDataWarningConfigInfo["CreateTime"].asString(); auto allRuleListNode = valueDataWarningConfigInfo["RuleList"]["WarningRule"]; for (auto valueDataWarningConfigInfoRuleListWarningRule : allRuleListNode) { WarningConfigInfo::WarningRule ruleListObject; - if(!valueDataWarningConfigInfoRuleListWarningRule["Rid"].isNull()) - ruleListObject.rid = std::stol(valueDataWarningConfigInfoRuleListWarningRule["Rid"].asString()); if(!valueDataWarningConfigInfoRuleListWarningRule["RuleName"].isNull()) ruleListObject.ruleName = valueDataWarningConfigInfoRuleListWarningRule["RuleName"].asString(); + if(!valueDataWarningConfigInfoRuleListWarningRule["Rid"].isNull()) + ruleListObject.rid = std::stol(valueDataWarningConfigInfoRuleListWarningRule["Rid"].asString()); dataObject.ruleList.push_back(ruleListObject); } auto allChannelsNode = valueDataWarningConfigInfo["Channels"]["Channel"]; @@ -78,12 +78,12 @@ void ListWarningConfigResult::parse(const std::string &payload) dataObject.ridList.push_back(value.asString()); data_.push_back(dataObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/RemoveAndGetTaskRulesRequest.cc b/qualitycheck/src/model/RemoveAndGetTaskRulesRequest.cc new file mode 100644 index 000000000..946b3cacc --- /dev/null +++ b/qualitycheck/src/model/RemoveAndGetTaskRulesRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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); +} + diff --git a/qualitycheck/src/model/RemoveAndGetTaskRulesResult.cc b/qualitycheck/src/model/RemoveAndGetTaskRulesResult.cc new file mode 100644 index 000000000..c013c230b --- /dev/null +++ b/qualitycheck/src/model/RemoveAndGetTaskRulesResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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_; +} + diff --git a/qualitycheck/src/model/RestartAsrTaskRequest.cc b/qualitycheck/src/model/RestartAsrTaskRequest.cc index 070274738..2fcd2b0db 100644 --- a/qualitycheck/src/model/RestartAsrTaskRequest.cc +++ b/qualitycheck/src/model/RestartAsrTaskRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::RestartAsrTaskRequest; - -RestartAsrTaskRequest::RestartAsrTaskRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "RestartAsrTask") -{ - setMethod(HttpRequest::Method::Post); -} - -RestartAsrTaskRequest::~RestartAsrTaskRequest() -{} - -long RestartAsrTaskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::RestartAsrTaskRequest; + +RestartAsrTaskRequest::RestartAsrTaskRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "RestartAsrTask") { + setMethod(HttpRequest::Method::Post); } -void RestartAsrTaskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RestartAsrTaskRequest::~RestartAsrTaskRequest() {} + +long RestartAsrTaskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RestartAsrTaskRequest::getJsonStr()const -{ - return jsonStr_; +void RestartAsrTaskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RestartAsrTaskRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string RestartAsrTaskRequest::getJsonStr() const { + return jsonStr_; } -std::string RestartAsrTaskRequest::getAccessKeyId()const -{ - return accessKeyId_; +void RestartAsrTaskRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void RestartAsrTaskRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string RestartAsrTaskRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void RestartAsrTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/RestartAsrTaskResult.cc b/qualitycheck/src/model/RestartAsrTaskResult.cc index 33d824252..2d718781a 100644 --- a/qualitycheck/src/model/RestartAsrTaskResult.cc +++ b/qualitycheck/src/model/RestartAsrTaskResult.cc @@ -43,20 +43,20 @@ void RestartAsrTaskResult::parse(const std::string &payload) for (auto valueDataRestartResult : allDataNode) { RestartResult dataObject; - if(!valueDataRestartResult["Success"].isNull()) - dataObject.success = valueDataRestartResult["Success"].asString() == "true"; - if(!valueDataRestartResult["Data"].isNull()) - dataObject.data = valueDataRestartResult["Data"].asString(); if(!valueDataRestartResult["Message"].isNull()) dataObject.message = valueDataRestartResult["Message"].asString(); + if(!valueDataRestartResult["Data"].isNull()) + dataObject.data = valueDataRestartResult["Data"].asString(); + if(!valueDataRestartResult["Success"].isNull()) + dataObject.success = valueDataRestartResult["Success"].asString() == "true"; data_.push_back(dataObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/ReviewSingleResultByIdRequest.cc b/qualitycheck/src/model/ReviewSingleResultByIdRequest.cc new file mode 100644 index 000000000..7b7852cca --- /dev/null +++ b/qualitycheck/src/model/ReviewSingleResultByIdRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::ReviewSingleResultByIdRequest; + +ReviewSingleResultByIdRequest::ReviewSingleResultByIdRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "ReviewSingleResultById") { + setMethod(HttpRequest::Method::Post); +} + +ReviewSingleResultByIdRequest::~ReviewSingleResultByIdRequest() {} + +long ReviewSingleResultByIdRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ReviewSingleResultByIdRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ReviewSingleResultByIdRequest::getJsonStr() const { + return jsonStr_; +} + +void ReviewSingleResultByIdRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); +} + +std::string ReviewSingleResultByIdRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ReviewSingleResultByIdRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/qualitycheck/src/model/ReviewSingleResultByIdResult.cc b/qualitycheck/src/model/ReviewSingleResultByIdResult.cc new file mode 100644 index 000000000..45a6ccee6 --- /dev/null +++ b/qualitycheck/src/model/ReviewSingleResultByIdResult.cc @@ -0,0 +1,223 @@ +/* + * 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 +#include + +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_; +} + diff --git a/qualitycheck/src/model/SaveConfigDataSetRequest.cc b/qualitycheck/src/model/SaveConfigDataSetRequest.cc index c42109e78..9fcb93b45 100644 --- a/qualitycheck/src/model/SaveConfigDataSetRequest.cc +++ b/qualitycheck/src/model/SaveConfigDataSetRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::SaveConfigDataSetRequest; - -SaveConfigDataSetRequest::SaveConfigDataSetRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "SaveConfigDataSet") -{ - setMethod(HttpRequest::Method::Post); -} - -SaveConfigDataSetRequest::~SaveConfigDataSetRequest() -{} - -long SaveConfigDataSetRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::SaveConfigDataSetRequest; + +SaveConfigDataSetRequest::SaveConfigDataSetRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "SaveConfigDataSet") { + setMethod(HttpRequest::Method::Post); } -void SaveConfigDataSetRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SaveConfigDataSetRequest::~SaveConfigDataSetRequest() {} + +long SaveConfigDataSetRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SaveConfigDataSetRequest::getJsonStr()const -{ - return jsonStr_; +void SaveConfigDataSetRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SaveConfigDataSetRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string SaveConfigDataSetRequest::getJsonStr() const { + return jsonStr_; } -std::string SaveConfigDataSetRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SaveConfigDataSetRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void SaveConfigDataSetRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SaveConfigDataSetRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SaveConfigDataSetRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/SaveConfigDataSetResult.cc b/qualitycheck/src/model/SaveConfigDataSetResult.cc index 287bec0f6..ce945a97b 100644 --- a/qualitycheck/src/model/SaveConfigDataSetResult.cc +++ b/qualitycheck/src/model/SaveConfigDataSetResult.cc @@ -39,12 +39,12 @@ void SaveConfigDataSetResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/SubmitComplaintRequest.cc b/qualitycheck/src/model/SubmitComplaintRequest.cc index cf901563c..9cb593f64 100644 --- a/qualitycheck/src/model/SubmitComplaintRequest.cc +++ b/qualitycheck/src/model/SubmitComplaintRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::SubmitComplaintRequest; - -SubmitComplaintRequest::SubmitComplaintRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "SubmitComplaint") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitComplaintRequest::~SubmitComplaintRequest() -{} - -long SubmitComplaintRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::SubmitComplaintRequest; + +SubmitComplaintRequest::SubmitComplaintRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "SubmitComplaint") { + setMethod(HttpRequest::Method::Post); } -void SubmitComplaintRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitComplaintRequest::~SubmitComplaintRequest() {} + +long SubmitComplaintRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitComplaintRequest::getJsonStr()const -{ - return jsonStr_; +void SubmitComplaintRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitComplaintRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string SubmitComplaintRequest::getJsonStr() const { + return jsonStr_; } -std::string SubmitComplaintRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitComplaintRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void SubmitComplaintRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitComplaintRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SubmitComplaintRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/SubmitComplaintResult.cc b/qualitycheck/src/model/SubmitComplaintResult.cc index 72feebe79..c808c4931 100644 --- a/qualitycheck/src/model/SubmitComplaintResult.cc +++ b/qualitycheck/src/model/SubmitComplaintResult.cc @@ -39,14 +39,14 @@ void SubmitComplaintResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/SubmitCustomizationConfigRequest.cc b/qualitycheck/src/model/SubmitCustomizationConfigRequest.cc new file mode 100644 index 000000000..df5233be1 --- /dev/null +++ b/qualitycheck/src/model/SubmitCustomizationConfigRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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); +} + diff --git a/qualitycheck/src/model/SubmitCustomizationConfigResult.cc b/qualitycheck/src/model/SubmitCustomizationConfigResult.cc new file mode 100644 index 000000000..1085f4633 --- /dev/null +++ b/qualitycheck/src/model/SubmitCustomizationConfigResult.cc @@ -0,0 +1,79 @@ +/* + * 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 +#include + +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_; +} + diff --git a/qualitycheck/src/model/SubmitPrecisionTaskRequest.cc b/qualitycheck/src/model/SubmitPrecisionTaskRequest.cc index a32b6959a..e177e125d 100644 --- a/qualitycheck/src/model/SubmitPrecisionTaskRequest.cc +++ b/qualitycheck/src/model/SubmitPrecisionTaskRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::SubmitPrecisionTaskRequest; - -SubmitPrecisionTaskRequest::SubmitPrecisionTaskRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "SubmitPrecisionTask") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitPrecisionTaskRequest::~SubmitPrecisionTaskRequest() -{} - -long SubmitPrecisionTaskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::SubmitPrecisionTaskRequest; + +SubmitPrecisionTaskRequest::SubmitPrecisionTaskRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "SubmitPrecisionTask") { + setMethod(HttpRequest::Method::Post); } -void SubmitPrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitPrecisionTaskRequest::~SubmitPrecisionTaskRequest() {} + +long SubmitPrecisionTaskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitPrecisionTaskRequest::getJsonStr()const -{ - return jsonStr_; +void SubmitPrecisionTaskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitPrecisionTaskRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string SubmitPrecisionTaskRequest::getJsonStr() const { + return jsonStr_; } -std::string SubmitPrecisionTaskRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitPrecisionTaskRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void SubmitPrecisionTaskRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitPrecisionTaskRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SubmitPrecisionTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/SubmitPrecisionTaskResult.cc b/qualitycheck/src/model/SubmitPrecisionTaskResult.cc index 2168370a9..c4d794f0c 100644 --- a/qualitycheck/src/model/SubmitPrecisionTaskResult.cc +++ b/qualitycheck/src/model/SubmitPrecisionTaskResult.cc @@ -39,14 +39,14 @@ void SubmitPrecisionTaskResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/SubmitQualityCheckTaskRequest.cc b/qualitycheck/src/model/SubmitQualityCheckTaskRequest.cc index c00eda01e..0dd745a6e 100644 --- a/qualitycheck/src/model/SubmitQualityCheckTaskRequest.cc +++ b/qualitycheck/src/model/SubmitQualityCheckTaskRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::SubmitQualityCheckTaskRequest; - -SubmitQualityCheckTaskRequest::SubmitQualityCheckTaskRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "SubmitQualityCheckTask") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitQualityCheckTaskRequest::~SubmitQualityCheckTaskRequest() -{} - -long SubmitQualityCheckTaskRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::SubmitQualityCheckTaskRequest; + +SubmitQualityCheckTaskRequest::SubmitQualityCheckTaskRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "SubmitQualityCheckTask") { + setMethod(HttpRequest::Method::Post); } -void SubmitQualityCheckTaskRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitQualityCheckTaskRequest::~SubmitQualityCheckTaskRequest() {} + +long SubmitQualityCheckTaskRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitQualityCheckTaskRequest::getJsonStr()const -{ - return jsonStr_; +void SubmitQualityCheckTaskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitQualityCheckTaskRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string SubmitQualityCheckTaskRequest::getJsonStr() const { + return jsonStr_; } -std::string SubmitQualityCheckTaskRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitQualityCheckTaskRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void SubmitQualityCheckTaskRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitQualityCheckTaskRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SubmitQualityCheckTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/SubmitQualityCheckTaskResult.cc b/qualitycheck/src/model/SubmitQualityCheckTaskResult.cc index 118e1bb31..ab900e56f 100644 --- a/qualitycheck/src/model/SubmitQualityCheckTaskResult.cc +++ b/qualitycheck/src/model/SubmitQualityCheckTaskResult.cc @@ -39,14 +39,14 @@ void SubmitQualityCheckTaskResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/SubmitReviewInfoRequest.cc b/qualitycheck/src/model/SubmitReviewInfoRequest.cc index fea1d77f4..1b2fdf357 100644 --- a/qualitycheck/src/model/SubmitReviewInfoRequest.cc +++ b/qualitycheck/src/model/SubmitReviewInfoRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::SubmitReviewInfoRequest; - -SubmitReviewInfoRequest::SubmitReviewInfoRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "SubmitReviewInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitReviewInfoRequest::~SubmitReviewInfoRequest() -{} - -long SubmitReviewInfoRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::SubmitReviewInfoRequest; + +SubmitReviewInfoRequest::SubmitReviewInfoRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "SubmitReviewInfo") { + setMethod(HttpRequest::Method::Post); } -void SubmitReviewInfoRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitReviewInfoRequest::~SubmitReviewInfoRequest() {} + +long SubmitReviewInfoRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitReviewInfoRequest::getJsonStr()const -{ - return jsonStr_; +void SubmitReviewInfoRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitReviewInfoRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string SubmitReviewInfoRequest::getJsonStr() const { + return jsonStr_; } -std::string SubmitReviewInfoRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitReviewInfoRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void SubmitReviewInfoRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitReviewInfoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SubmitReviewInfoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/SubmitReviewInfoResult.cc b/qualitycheck/src/model/SubmitReviewInfoResult.cc index 5387af0ac..f55bed94c 100644 --- a/qualitycheck/src/model/SubmitReviewInfoResult.cc +++ b/qualitycheck/src/model/SubmitReviewInfoResult.cc @@ -39,14 +39,14 @@ void SubmitReviewInfoResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/SyncQualityCheckRequest.cc b/qualitycheck/src/model/SyncQualityCheckRequest.cc index 339f0f1bf..98760d5db 100644 --- a/qualitycheck/src/model/SyncQualityCheckRequest.cc +++ b/qualitycheck/src/model/SyncQualityCheckRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::SyncQualityCheckRequest; - -SyncQualityCheckRequest::SyncQualityCheckRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "SyncQualityCheck") -{ - setMethod(HttpRequest::Method::Post); -} - -SyncQualityCheckRequest::~SyncQualityCheckRequest() -{} - -long SyncQualityCheckRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::SyncQualityCheckRequest; + +SyncQualityCheckRequest::SyncQualityCheckRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "SyncQualityCheck") { + setMethod(HttpRequest::Method::Post); } -void SyncQualityCheckRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SyncQualityCheckRequest::~SyncQualityCheckRequest() {} + +long SyncQualityCheckRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SyncQualityCheckRequest::getJsonStr()const -{ - return jsonStr_; +void SyncQualityCheckRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SyncQualityCheckRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string SyncQualityCheckRequest::getJsonStr() const { + return jsonStr_; } -std::string SyncQualityCheckRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SyncQualityCheckRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void SyncQualityCheckRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SyncQualityCheckRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SyncQualityCheckRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/SyncQualityCheckResult.cc b/qualitycheck/src/model/SyncQualityCheckResult.cc index f63451948..db5550794 100644 --- a/qualitycheck/src/model/SyncQualityCheckResult.cc +++ b/qualitycheck/src/model/SyncQualityCheckResult.cc @@ -42,20 +42,20 @@ void SyncQualityCheckResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["Score"].isNull()) data_.score = std::stoi(dataNode["Score"].asString()); + if(!dataNode["TaskId"].isNull()) + data_.taskId = dataNode["TaskId"].asString(); if(!dataNode["Tid"].isNull()) data_.tid = dataNode["Tid"].asString(); if(!dataNode["BeginTime"].isNull()) data_.beginTime = std::stol(dataNode["BeginTime"].asString()); - if(!dataNode["TaskId"].isNull()) - data_.taskId = dataNode["TaskId"].asString(); auto allRulesNode = dataNode["Rules"]["RuleHitInfo"]; for (auto dataNodeRulesRuleHitInfo : allRulesNode) { Data::RuleHitInfo ruleHitInfoObject; - if(!dataNodeRulesRuleHitInfo["Rid"].isNull()) - ruleHitInfoObject.rid = dataNodeRulesRuleHitInfo["Rid"].asString(); if(!dataNodeRulesRuleHitInfo["RuleName"].isNull()) ruleHitInfoObject.ruleName = dataNodeRulesRuleHitInfo["RuleName"].asString(); + if(!dataNodeRulesRuleHitInfo["Rid"].isNull()) + ruleHitInfoObject.rid = dataNodeRulesRuleHitInfo["Rid"].asString(); auto allHitNode = dataNodeRulesRuleHitInfo["Hit"]["ConditionHitInfo"]; for (auto dataNodeRulesRuleHitInfoHitConditionHitInfo : allHitNode) { @@ -64,45 +64,45 @@ void SyncQualityCheckResult::parse(const std::string &payload) for (auto dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord : allHitKeyWordsNode) { Data::RuleHitInfo::ConditionHitInfo::HitKeyWord hitKeyWordsObject; - if(!dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Val"].isNull()) - hitKeyWordsObject.val = dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Val"].asString(); - if(!dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Pid"].isNull()) - hitKeyWordsObject.pid = std::stoi(dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Pid"].asString()); - if(!dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["From"].isNull()) - hitKeyWordsObject.from = std::stoi(dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["From"].asString()); if(!dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["To"].isNull()) hitKeyWordsObject.to = std::stoi(dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["To"].asString()); + if(!dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["From"].isNull()) + hitKeyWordsObject.from = std::stoi(dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["From"].asString()); + if(!dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Val"].isNull()) + hitKeyWordsObject.val = dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Val"].asString(); if(!dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Cid"].isNull()) hitKeyWordsObject.cid = std::stoi(dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Cid"].asString()); + if(!dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Pid"].isNull()) + hitKeyWordsObject.pid = std::stoi(dataNodeRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Pid"].asString()); hitObject.hitKeyWords.push_back(hitKeyWordsObject); } auto phraseNode = value["Phrase"]; - if(!phraseNode["Role"].isNull()) - hitObject.phrase.role = phraseNode["Role"].asString(); - if(!phraseNode["Identity"].isNull()) - hitObject.phrase.identity = phraseNode["Identity"].asString(); if(!phraseNode["Words"].isNull()) hitObject.phrase.words = phraseNode["Words"].asString(); + if(!phraseNode["Identity"].isNull()) + hitObject.phrase.identity = phraseNode["Identity"].asString(); if(!phraseNode["Begin"].isNull()) hitObject.phrase.begin = std::stol(phraseNode["Begin"].asString()); - if(!phraseNode["End"].isNull()) - hitObject.phrase.end = std::stol(phraseNode["End"].asString()); if(!phraseNode["EmotionValue"].isNull()) hitObject.phrase.emotionValue = std::stoi(phraseNode["EmotionValue"].asString()); + if(!phraseNode["End"].isNull()) + hitObject.phrase.end = std::stol(phraseNode["End"].asString()); if(!phraseNode["SpeechRate"].isNull()) hitObject.phrase.speechRate = std::stoi(phraseNode["SpeechRate"].asString()); + if(!phraseNode["Role"].isNull()) + hitObject.phrase.role = phraseNode["Role"].asString(); if(!phraseNode["SilenceDuration"].isNull()) hitObject.phrase.silenceDuration = std::stoi(phraseNode["SilenceDuration"].asString()); ruleHitInfoObject.hit.push_back(hitObject); } data_.rules.push_back(ruleHitInfoObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/TestRuleRequest.cc b/qualitycheck/src/model/TestRuleRequest.cc new file mode 100644 index 000000000..3dad32905 --- /dev/null +++ b/qualitycheck/src/model/TestRuleRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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); +} + diff --git a/qualitycheck/src/model/TestRuleResult.cc b/qualitycheck/src/model/TestRuleResult.cc new file mode 100644 index 000000000..60ccf3932 --- /dev/null +++ b/qualitycheck/src/model/TestRuleResult.cc @@ -0,0 +1,121 @@ +/* + * 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 +#include + +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_; +} + diff --git a/qualitycheck/src/model/UpdateAsrVocabRequest.cc b/qualitycheck/src/model/UpdateAsrVocabRequest.cc index 334f09820..9406beb7d 100644 --- a/qualitycheck/src/model/UpdateAsrVocabRequest.cc +++ b/qualitycheck/src/model/UpdateAsrVocabRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UpdateAsrVocabRequest; - -UpdateAsrVocabRequest::UpdateAsrVocabRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateAsrVocab") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateAsrVocabRequest::~UpdateAsrVocabRequest() -{} - -long UpdateAsrVocabRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::UpdateAsrVocabRequest; + +UpdateAsrVocabRequest::UpdateAsrVocabRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateAsrVocab") { + setMethod(HttpRequest::Method::Post); } -void UpdateAsrVocabRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateAsrVocabRequest::~UpdateAsrVocabRequest() {} + +long UpdateAsrVocabRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateAsrVocabRequest::getJsonStr()const -{ - return jsonStr_; +void UpdateAsrVocabRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateAsrVocabRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string UpdateAsrVocabRequest::getJsonStr() const { + return jsonStr_; } -std::string UpdateAsrVocabRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateAsrVocabRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void UpdateAsrVocabRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateAsrVocabRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateAsrVocabRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/UpdateAsrVocabResult.cc b/qualitycheck/src/model/UpdateAsrVocabResult.cc index 36bd37970..d33e69940 100644 --- a/qualitycheck/src/model/UpdateAsrVocabResult.cc +++ b/qualitycheck/src/model/UpdateAsrVocabResult.cc @@ -39,14 +39,14 @@ void UpdateAsrVocabResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/UpdateOnPurchaseSuccessRequest.cc b/qualitycheck/src/model/UpdateOnPurchaseSuccessRequest.cc new file mode 100644 index 000000000..0381d6db6 --- /dev/null +++ b/qualitycheck/src/model/UpdateOnPurchaseSuccessRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +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); +} + diff --git a/qualitycheck/src/model/UpdateOnPurchaseSuccessResult.cc b/qualitycheck/src/model/UpdateOnPurchaseSuccessResult.cc new file mode 100644 index 000000000..964a8c134 --- /dev/null +++ b/qualitycheck/src/model/UpdateOnPurchaseSuccessResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +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_; +} + diff --git a/qualitycheck/src/model/UpdateRuleRequest.cc b/qualitycheck/src/model/UpdateRuleRequest.cc index a101187d0..bd880df02 100644 --- a/qualitycheck/src/model/UpdateRuleRequest.cc +++ b/qualitycheck/src/model/UpdateRuleRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UpdateRuleRequest; - -UpdateRuleRequest::UpdateRuleRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateRule") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateRuleRequest::~UpdateRuleRequest() -{} - -long UpdateRuleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::UpdateRuleRequest; + +UpdateRuleRequest::UpdateRuleRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateRule") { + setMethod(HttpRequest::Method::Post); } -void UpdateRuleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateRuleRequest::~UpdateRuleRequest() {} + +long UpdateRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateRuleRequest::getJsonStr()const -{ - return jsonStr_; +void UpdateRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateRuleRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string UpdateRuleRequest::getJsonStr() const { + return jsonStr_; } -std::string UpdateRuleRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateRuleRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void UpdateRuleRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateRuleRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateRuleRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/UpdateRuleResult.cc b/qualitycheck/src/model/UpdateRuleResult.cc index 841343573..691de5b34 100644 --- a/qualitycheck/src/model/UpdateRuleResult.cc +++ b/qualitycheck/src/model/UpdateRuleResult.cc @@ -39,14 +39,14 @@ void UpdateRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/UpdateScoreForApiRequest.cc b/qualitycheck/src/model/UpdateScoreForApiRequest.cc index 2500e5e56..41fb9df47 100644 --- a/qualitycheck/src/model/UpdateScoreForApiRequest.cc +++ b/qualitycheck/src/model/UpdateScoreForApiRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UpdateScoreForApiRequest; - -UpdateScoreForApiRequest::UpdateScoreForApiRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateScoreForApi") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateScoreForApiRequest::~UpdateScoreForApiRequest() -{} - -long UpdateScoreForApiRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::UpdateScoreForApiRequest; + +UpdateScoreForApiRequest::UpdateScoreForApiRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateScoreForApi") { + setMethod(HttpRequest::Method::Post); } -void UpdateScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateScoreForApiRequest::~UpdateScoreForApiRequest() {} + +long UpdateScoreForApiRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateScoreForApiRequest::getJsonStr()const -{ - return jsonStr_; +void UpdateScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateScoreForApiRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string UpdateScoreForApiRequest::getJsonStr() const { + return jsonStr_; } -std::string UpdateScoreForApiRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateScoreForApiRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void UpdateScoreForApiRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateScoreForApiRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateScoreForApiRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/UpdateScoreForApiResult.cc b/qualitycheck/src/model/UpdateScoreForApiResult.cc index 2ece6ba23..b61a6650c 100644 --- a/qualitycheck/src/model/UpdateScoreForApiResult.cc +++ b/qualitycheck/src/model/UpdateScoreForApiResult.cc @@ -39,12 +39,12 @@ void UpdateScoreForApiResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/UpdateSkillGroupConfigRequest.cc b/qualitycheck/src/model/UpdateSkillGroupConfigRequest.cc index a324dc7db..8b69c4bbb 100644 --- a/qualitycheck/src/model/UpdateSkillGroupConfigRequest.cc +++ b/qualitycheck/src/model/UpdateSkillGroupConfigRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UpdateSkillGroupConfigRequest; - -UpdateSkillGroupConfigRequest::UpdateSkillGroupConfigRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateSkillGroupConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateSkillGroupConfigRequest::~UpdateSkillGroupConfigRequest() -{} - -long UpdateSkillGroupConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::UpdateSkillGroupConfigRequest; + +UpdateSkillGroupConfigRequest::UpdateSkillGroupConfigRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateSkillGroupConfig") { + setMethod(HttpRequest::Method::Post); } -void UpdateSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateSkillGroupConfigRequest::~UpdateSkillGroupConfigRequest() {} + +long UpdateSkillGroupConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateSkillGroupConfigRequest::getJsonStr()const -{ - return jsonStr_; +void UpdateSkillGroupConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateSkillGroupConfigRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string UpdateSkillGroupConfigRequest::getJsonStr() const { + return jsonStr_; } -std::string UpdateSkillGroupConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateSkillGroupConfigRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void UpdateSkillGroupConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateSkillGroupConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateSkillGroupConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/UpdateSkillGroupConfigResult.cc b/qualitycheck/src/model/UpdateSkillGroupConfigResult.cc index 670a96515..7b113eee1 100644 --- a/qualitycheck/src/model/UpdateSkillGroupConfigResult.cc +++ b/qualitycheck/src/model/UpdateSkillGroupConfigResult.cc @@ -39,12 +39,12 @@ void UpdateSkillGroupConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/UpdateSubScoreForApiRequest.cc b/qualitycheck/src/model/UpdateSubScoreForApiRequest.cc index f77193c73..86ba813c0 100644 --- a/qualitycheck/src/model/UpdateSubScoreForApiRequest.cc +++ b/qualitycheck/src/model/UpdateSubScoreForApiRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UpdateSubScoreForApiRequest; - -UpdateSubScoreForApiRequest::UpdateSubScoreForApiRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateSubScoreForApi") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateSubScoreForApiRequest::~UpdateSubScoreForApiRequest() -{} - -long UpdateSubScoreForApiRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::UpdateSubScoreForApiRequest; + +UpdateSubScoreForApiRequest::UpdateSubScoreForApiRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateSubScoreForApi") { + setMethod(HttpRequest::Method::Post); } -void UpdateSubScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateSubScoreForApiRequest::~UpdateSubScoreForApiRequest() {} + +long UpdateSubScoreForApiRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateSubScoreForApiRequest::getJsonStr()const -{ - return jsonStr_; +void UpdateSubScoreForApiRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateSubScoreForApiRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string UpdateSubScoreForApiRequest::getJsonStr() const { + return jsonStr_; } -std::string UpdateSubScoreForApiRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateSubScoreForApiRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void UpdateSubScoreForApiRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateSubScoreForApiRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateSubScoreForApiRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/UpdateSubScoreForApiResult.cc b/qualitycheck/src/model/UpdateSubScoreForApiResult.cc index 6053a06c3..5cd6bf2b1 100644 --- a/qualitycheck/src/model/UpdateSubScoreForApiResult.cc +++ b/qualitycheck/src/model/UpdateSubScoreForApiResult.cc @@ -39,12 +39,12 @@ void UpdateSubScoreForApiResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/UpdateSyncQualityCheckDataRequest.cc b/qualitycheck/src/model/UpdateSyncQualityCheckDataRequest.cc index bca8047e5..e9a2a0332 100644 --- a/qualitycheck/src/model/UpdateSyncQualityCheckDataRequest.cc +++ b/qualitycheck/src/model/UpdateSyncQualityCheckDataRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UpdateSyncQualityCheckDataRequest; - -UpdateSyncQualityCheckDataRequest::UpdateSyncQualityCheckDataRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateSyncQualityCheckData") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateSyncQualityCheckDataRequest::~UpdateSyncQualityCheckDataRequest() -{} - -long UpdateSyncQualityCheckDataRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::UpdateSyncQualityCheckDataRequest; + +UpdateSyncQualityCheckDataRequest::UpdateSyncQualityCheckDataRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateSyncQualityCheckData") { + setMethod(HttpRequest::Method::Post); } -void UpdateSyncQualityCheckDataRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateSyncQualityCheckDataRequest::~UpdateSyncQualityCheckDataRequest() {} + +long UpdateSyncQualityCheckDataRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateSyncQualityCheckDataRequest::getJsonStr()const -{ - return jsonStr_; +void UpdateSyncQualityCheckDataRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateSyncQualityCheckDataRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string UpdateSyncQualityCheckDataRequest::getJsonStr() const { + return jsonStr_; } -std::string UpdateSyncQualityCheckDataRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateSyncQualityCheckDataRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void UpdateSyncQualityCheckDataRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateSyncQualityCheckDataRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateSyncQualityCheckDataRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/UpdateSyncQualityCheckDataResult.cc b/qualitycheck/src/model/UpdateSyncQualityCheckDataResult.cc index 474392413..129149050 100644 --- a/qualitycheck/src/model/UpdateSyncQualityCheckDataResult.cc +++ b/qualitycheck/src/model/UpdateSyncQualityCheckDataResult.cc @@ -44,12 +44,12 @@ void UpdateSyncQualityCheckDataResult::parse(const std::string &payload) data_.taskId = dataNode["TaskId"].asString(); if(!dataNode["Tid"].isNull()) data_.tid = dataNode["Tid"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/UpdateTaskAssignRuleRequest.cc b/qualitycheck/src/model/UpdateTaskAssignRuleRequest.cc index a773cec52..7e4903302 100644 --- a/qualitycheck/src/model/UpdateTaskAssignRuleRequest.cc +++ b/qualitycheck/src/model/UpdateTaskAssignRuleRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UpdateTaskAssignRuleRequest; - -UpdateTaskAssignRuleRequest::UpdateTaskAssignRuleRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateTaskAssignRule") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateTaskAssignRuleRequest::~UpdateTaskAssignRuleRequest() -{} - -long UpdateTaskAssignRuleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::UpdateTaskAssignRuleRequest; + +UpdateTaskAssignRuleRequest::UpdateTaskAssignRuleRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateTaskAssignRule") { + setMethod(HttpRequest::Method::Post); } -void UpdateTaskAssignRuleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateTaskAssignRuleRequest::~UpdateTaskAssignRuleRequest() {} + +long UpdateTaskAssignRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateTaskAssignRuleRequest::getJsonStr()const -{ - return jsonStr_; +void UpdateTaskAssignRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateTaskAssignRuleRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string UpdateTaskAssignRuleRequest::getJsonStr() const { + return jsonStr_; } -std::string UpdateTaskAssignRuleRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateTaskAssignRuleRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void UpdateTaskAssignRuleRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateTaskAssignRuleRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateTaskAssignRuleRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/UpdateTaskAssignRuleResult.cc b/qualitycheck/src/model/UpdateTaskAssignRuleResult.cc index 5fd1c2488..696904b26 100644 --- a/qualitycheck/src/model/UpdateTaskAssignRuleResult.cc +++ b/qualitycheck/src/model/UpdateTaskAssignRuleResult.cc @@ -39,12 +39,12 @@ void UpdateTaskAssignRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/UpdateUserConfigRequest.cc b/qualitycheck/src/model/UpdateUserConfigRequest.cc index 97787fc65..1cd9a8743 100644 --- a/qualitycheck/src/model/UpdateUserConfigRequest.cc +++ b/qualitycheck/src/model/UpdateUserConfigRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UpdateUserConfigRequest; - -UpdateUserConfigRequest::UpdateUserConfigRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateUserConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateUserConfigRequest::~UpdateUserConfigRequest() -{} - -long UpdateUserConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::UpdateUserConfigRequest; + +UpdateUserConfigRequest::UpdateUserConfigRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateUserConfig") { + setMethod(HttpRequest::Method::Post); } -void UpdateUserConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateUserConfigRequest::~UpdateUserConfigRequest() {} + +long UpdateUserConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateUserConfigRequest::getJsonStr()const -{ - return jsonStr_; +void UpdateUserConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateUserConfigRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string UpdateUserConfigRequest::getJsonStr() const { + return jsonStr_; } -std::string UpdateUserConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateUserConfigRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void UpdateUserConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateUserConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateUserConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/UpdateUserConfigResult.cc b/qualitycheck/src/model/UpdateUserConfigResult.cc index fbf7f1e39..dee6aadc1 100644 --- a/qualitycheck/src/model/UpdateUserConfigResult.cc +++ b/qualitycheck/src/model/UpdateUserConfigResult.cc @@ -39,12 +39,12 @@ void UpdateUserConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/UpdateUserRequest.cc b/qualitycheck/src/model/UpdateUserRequest.cc index cd80bec46..9295666b5 100644 --- a/qualitycheck/src/model/UpdateUserRequest.cc +++ b/qualitycheck/src/model/UpdateUserRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UpdateUserRequest; - -UpdateUserRequest::UpdateUserRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateUser") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateUserRequest::~UpdateUserRequest() -{} - -long UpdateUserRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::UpdateUserRequest; + +UpdateUserRequest::UpdateUserRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateUser") { + setMethod(HttpRequest::Method::Post); } -void UpdateUserRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateUserRequest::~UpdateUserRequest() {} + +long UpdateUserRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateUserRequest::getJsonStr()const -{ - return jsonStr_; +void UpdateUserRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateUserRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string UpdateUserRequest::getJsonStr() const { + return jsonStr_; } -std::string UpdateUserRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateUserRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void UpdateUserRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateUserRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateUserRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/UpdateUserResult.cc b/qualitycheck/src/model/UpdateUserResult.cc index 4b345c57b..56d590039 100644 --- a/qualitycheck/src/model/UpdateUserResult.cc +++ b/qualitycheck/src/model/UpdateUserResult.cc @@ -39,12 +39,12 @@ void UpdateUserResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/UpdateWarningConfigRequest.cc b/qualitycheck/src/model/UpdateWarningConfigRequest.cc index d48dc0d2e..8e628e663 100644 --- a/qualitycheck/src/model/UpdateWarningConfigRequest.cc +++ b/qualitycheck/src/model/UpdateWarningConfigRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UpdateWarningConfigRequest; - -UpdateWarningConfigRequest::UpdateWarningConfigRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateWarningConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateWarningConfigRequest::~UpdateWarningConfigRequest() -{} - -long UpdateWarningConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::UpdateWarningConfigRequest; + +UpdateWarningConfigRequest::UpdateWarningConfigRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "UpdateWarningConfig") { + setMethod(HttpRequest::Method::Post); } -void UpdateWarningConfigRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateWarningConfigRequest::~UpdateWarningConfigRequest() {} + +long UpdateWarningConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateWarningConfigRequest::getJsonStr()const -{ - return jsonStr_; +void UpdateWarningConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateWarningConfigRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string UpdateWarningConfigRequest::getJsonStr() const { + return jsonStr_; } -std::string UpdateWarningConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateWarningConfigRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void UpdateWarningConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateWarningConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateWarningConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/UpdateWarningConfigResult.cc b/qualitycheck/src/model/UpdateWarningConfigResult.cc index c87689e22..5e4af679b 100644 --- a/qualitycheck/src/model/UpdateWarningConfigResult.cc +++ b/qualitycheck/src/model/UpdateWarningConfigResult.cc @@ -39,12 +39,12 @@ void UpdateWarningConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/UploadAudioDataRequest.cc b/qualitycheck/src/model/UploadAudioDataRequest.cc index e62e7e7df..9b9f565b6 100644 --- a/qualitycheck/src/model/UploadAudioDataRequest.cc +++ b/qualitycheck/src/model/UploadAudioDataRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UploadAudioDataRequest; - -UploadAudioDataRequest::UploadAudioDataRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UploadAudioData") -{ - setMethod(HttpRequest::Method::Post); -} - -UploadAudioDataRequest::~UploadAudioDataRequest() -{} - -long UploadAudioDataRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::UploadAudioDataRequest; + +UploadAudioDataRequest::UploadAudioDataRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "UploadAudioData") { + setMethod(HttpRequest::Method::Post); } -void UploadAudioDataRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UploadAudioDataRequest::~UploadAudioDataRequest() {} + +long UploadAudioDataRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UploadAudioDataRequest::getJsonStr()const -{ - return jsonStr_; +void UploadAudioDataRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UploadAudioDataRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string UploadAudioDataRequest::getJsonStr() const { + return jsonStr_; } -std::string UploadAudioDataRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UploadAudioDataRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void UploadAudioDataRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UploadAudioDataRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UploadAudioDataRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/UploadAudioDataResult.cc b/qualitycheck/src/model/UploadAudioDataResult.cc index d264abcf6..7c41a2834 100644 --- a/qualitycheck/src/model/UploadAudioDataResult.cc +++ b/qualitycheck/src/model/UploadAudioDataResult.cc @@ -39,14 +39,14 @@ void UploadAudioDataResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/UploadDataRequest.cc b/qualitycheck/src/model/UploadDataRequest.cc index e06df465b..4f101b386 100644 --- a/qualitycheck/src/model/UploadDataRequest.cc +++ b/qualitycheck/src/model/UploadDataRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UploadDataRequest; - -UploadDataRequest::UploadDataRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UploadData") -{ - setMethod(HttpRequest::Method::Post); -} - -UploadDataRequest::~UploadDataRequest() -{} - -long UploadDataRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::UploadDataRequest; + +UploadDataRequest::UploadDataRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "UploadData") { + setMethod(HttpRequest::Method::Post); } -void UploadDataRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UploadDataRequest::~UploadDataRequest() {} + +long UploadDataRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UploadDataRequest::getJsonStr()const -{ - return jsonStr_; +void UploadDataRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UploadDataRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string UploadDataRequest::getJsonStr() const { + return jsonStr_; } -std::string UploadDataRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UploadDataRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void UploadDataRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UploadDataRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UploadDataRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/UploadDataResult.cc b/qualitycheck/src/model/UploadDataResult.cc index ab60f91a6..a2a23e649 100644 --- a/qualitycheck/src/model/UploadDataResult.cc +++ b/qualitycheck/src/model/UploadDataResult.cc @@ -39,14 +39,14 @@ void UploadDataResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = value["Data"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/UploadDataSyncRequest.cc b/qualitycheck/src/model/UploadDataSyncRequest.cc index f389d465f..378ebecf7 100644 --- a/qualitycheck/src/model/UploadDataSyncRequest.cc +++ b/qualitycheck/src/model/UploadDataSyncRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UploadDataSyncRequest; - -UploadDataSyncRequest::UploadDataSyncRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UploadDataSync") -{ - setMethod(HttpRequest::Method::Post); -} - -UploadDataSyncRequest::~UploadDataSyncRequest() -{} - -long UploadDataSyncRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::UploadDataSyncRequest; + +UploadDataSyncRequest::UploadDataSyncRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "UploadDataSync") { + setMethod(HttpRequest::Method::Post); } -void UploadDataSyncRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UploadDataSyncRequest::~UploadDataSyncRequest() {} + +long UploadDataSyncRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UploadDataSyncRequest::getJsonStr()const -{ - return jsonStr_; +void UploadDataSyncRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UploadDataSyncRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string UploadDataSyncRequest::getJsonStr() const { + return jsonStr_; } -std::string UploadDataSyncRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UploadDataSyncRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void UploadDataSyncRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UploadDataSyncRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UploadDataSyncRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/UploadDataSyncResult.cc b/qualitycheck/src/model/UploadDataSyncResult.cc index 11b7bbd2d..726cdef03 100644 --- a/qualitycheck/src/model/UploadDataSyncResult.cc +++ b/qualitycheck/src/model/UploadDataSyncResult.cc @@ -49,10 +49,10 @@ void UploadDataSyncResult::parse(const std::string &payload) for (auto valueDataResultInfoRulesRuleHitInfo : allRulesNode) { ResultInfo::RuleHitInfo rulesObject; - if(!valueDataResultInfoRulesRuleHitInfo["Rid"].isNull()) - rulesObject.rid = valueDataResultInfoRulesRuleHitInfo["Rid"].asString(); if(!valueDataResultInfoRulesRuleHitInfo["Tid"].isNull()) rulesObject.tid = valueDataResultInfoRulesRuleHitInfo["Tid"].asString(); + if(!valueDataResultInfoRulesRuleHitInfo["Rid"].isNull()) + rulesObject.rid = valueDataResultInfoRulesRuleHitInfo["Rid"].asString(); auto allHitNode = valueDataResultInfoRulesRuleHitInfo["Hit"]["ConditionHitInfo"]; for (auto valueDataResultInfoRulesRuleHitInfoHitConditionHitInfo : allHitNode) { @@ -61,31 +61,31 @@ void UploadDataSyncResult::parse(const std::string &payload) for (auto valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord : allHitKeyWordsNode) { ResultInfo::RuleHitInfo::ConditionHitInfo::HitKeyWord hitKeyWordsObject; - if(!valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Val"].isNull()) - hitKeyWordsObject.val = valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Val"].asString(); - if(!valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Pid"].isNull()) - hitKeyWordsObject.pid = std::stoi(valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Pid"].asString()); - if(!valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["From"].isNull()) - hitKeyWordsObject.from = std::stoi(valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["From"].asString()); if(!valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["To"].isNull()) hitKeyWordsObject.to = std::stoi(valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["To"].asString()); + if(!valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["From"].isNull()) + hitKeyWordsObject.from = std::stoi(valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["From"].asString()); + if(!valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Val"].isNull()) + hitKeyWordsObject.val = valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Val"].asString(); if(!valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Tid"].isNull()) hitKeyWordsObject.tid = valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Tid"].asString(); + if(!valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Pid"].isNull()) + hitKeyWordsObject.pid = std::stoi(valueDataResultInfoRulesRuleHitInfoHitConditionHitInfoHitKeyWordsHitKeyWord["Pid"].asString()); hitObject.hitKeyWords.push_back(hitKeyWordsObject); } auto phraseNode = value["Phrase"]; - if(!phraseNode["Role"].isNull()) - hitObject.phrase.role = phraseNode["Role"].asString(); - if(!phraseNode["Identity"].isNull()) - hitObject.phrase.identity = phraseNode["Identity"].asString(); if(!phraseNode["Words"].isNull()) hitObject.phrase.words = phraseNode["Words"].asString(); + if(!phraseNode["Identity"].isNull()) + hitObject.phrase.identity = phraseNode["Identity"].asString(); if(!phraseNode["Begin"].isNull()) hitObject.phrase.begin = std::stol(phraseNode["Begin"].asString()); - if(!phraseNode["End"].isNull()) - hitObject.phrase.end = std::stol(phraseNode["End"].asString()); if(!phraseNode["BeginTime"].isNull()) hitObject.phrase.beginTime = phraseNode["BeginTime"].asString(); + if(!phraseNode["End"].isNull()) + hitObject.phrase.end = std::stol(phraseNode["End"].asString()); + if(!phraseNode["Role"].isNull()) + hitObject.phrase.role = phraseNode["Role"].asString(); auto allHitCids = value["HitCids"]["CidItem"]; for (auto value : allHitCids) hitObject.hitCids.push_back(value.asString()); @@ -106,12 +106,12 @@ void UploadDataSyncResult::parse(const std::string &payload) dataObject.handScoreIdList.push_back(value.asString()); data_.push_back(dataObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/UploadRuleRequest.cc b/qualitycheck/src/model/UploadRuleRequest.cc index 2745f68e3..6d75a5568 100644 --- a/qualitycheck/src/model/UploadRuleRequest.cc +++ b/qualitycheck/src/model/UploadRuleRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::UploadRuleRequest; - -UploadRuleRequest::UploadRuleRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "UploadRule") -{ - setMethod(HttpRequest::Method::Post); -} - -UploadRuleRequest::~UploadRuleRequest() -{} - -long UploadRuleRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::UploadRuleRequest; + +UploadRuleRequest::UploadRuleRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "UploadRule") { + setMethod(HttpRequest::Method::Post); } -void UploadRuleRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UploadRuleRequest::~UploadRuleRequest() {} + +long UploadRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UploadRuleRequest::getJsonStr()const -{ - return jsonStr_; +void UploadRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UploadRuleRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string UploadRuleRequest::getJsonStr() const { + return jsonStr_; } -std::string UploadRuleRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UploadRuleRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void UploadRuleRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UploadRuleRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UploadRuleRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/UploadRuleResult.cc b/qualitycheck/src/model/UploadRuleResult.cc index 771e19f02..632721b63 100644 --- a/qualitycheck/src/model/UploadRuleResult.cc +++ b/qualitycheck/src/model/UploadRuleResult.cc @@ -42,12 +42,12 @@ void UploadRuleResult::parse(const std::string &payload) auto allData = value["Data"]["RidInfo"]; for (const auto &item : allData) data_.push_back(item.asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/VerifyFileRequest.cc b/qualitycheck/src/model/VerifyFileRequest.cc index c26d03268..7c0e53699 100644 --- a/qualitycheck/src/model/VerifyFileRequest.cc +++ b/qualitycheck/src/model/VerifyFileRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::VerifyFileRequest; - -VerifyFileRequest::VerifyFileRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "VerifyFile") -{ - setMethod(HttpRequest::Method::Post); -} - -VerifyFileRequest::~VerifyFileRequest() -{} - -long VerifyFileRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::VerifyFileRequest; + +VerifyFileRequest::VerifyFileRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "VerifyFile") { + setMethod(HttpRequest::Method::Post); } -void VerifyFileRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +VerifyFileRequest::~VerifyFileRequest() {} + +long VerifyFileRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string VerifyFileRequest::getJsonStr()const -{ - return jsonStr_; +void VerifyFileRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void VerifyFileRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string VerifyFileRequest::getJsonStr() const { + return jsonStr_; } -std::string VerifyFileRequest::getAccessKeyId()const -{ - return accessKeyId_; +void VerifyFileRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void VerifyFileRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string VerifyFileRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void VerifyFileRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/VerifyFileResult.cc b/qualitycheck/src/model/VerifyFileResult.cc index 23eeb96c4..6a72ce73c 100644 --- a/qualitycheck/src/model/VerifyFileResult.cc +++ b/qualitycheck/src/model/VerifyFileResult.cc @@ -39,14 +39,14 @@ void VerifyFileResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Data"].isNull()) data_ = std::stof(value["Data"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/qualitycheck/src/model/VerifySentenceRequest.cc b/qualitycheck/src/model/VerifySentenceRequest.cc index 6d92be5e0..e625ea8d4 100644 --- a/qualitycheck/src/model/VerifySentenceRequest.cc +++ b/qualitycheck/src/model/VerifySentenceRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Qualitycheck::Model::VerifySentenceRequest; - -VerifySentenceRequest::VerifySentenceRequest() : - RpcServiceRequest("qualitycheck", "2019-01-15", "VerifySentence") -{ - setMethod(HttpRequest::Method::Post); -} - -VerifySentenceRequest::~VerifySentenceRequest() -{} - -long VerifySentenceRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Qualitycheck::Model::VerifySentenceRequest; + +VerifySentenceRequest::VerifySentenceRequest() + : RpcServiceRequest("qualitycheck", "2019-01-15", "VerifySentence") { + setMethod(HttpRequest::Method::Post); } -void VerifySentenceRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +VerifySentenceRequest::~VerifySentenceRequest() {} + +long VerifySentenceRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string VerifySentenceRequest::getJsonStr()const -{ - return jsonStr_; +void VerifySentenceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void VerifySentenceRequest::setJsonStr(const std::string& jsonStr) -{ - jsonStr_ = jsonStr; - setParameter("JsonStr", jsonStr); +std::string VerifySentenceRequest::getJsonStr() const { + return jsonStr_; } -std::string VerifySentenceRequest::getAccessKeyId()const -{ - return accessKeyId_; +void VerifySentenceRequest::setJsonStr(const std::string &jsonStr) { + jsonStr_ = jsonStr; + setParameter(std::string("JsonStr"), jsonStr); } -void VerifySentenceRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string VerifySentenceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void VerifySentenceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/qualitycheck/src/model/VerifySentenceResult.cc b/qualitycheck/src/model/VerifySentenceResult.cc index 3fd6d98f3..5400bc22e 100644 --- a/qualitycheck/src/model/VerifySentenceResult.cc +++ b/qualitycheck/src/model/VerifySentenceResult.cc @@ -61,16 +61,16 @@ void VerifySentenceResult::parse(const std::string &payload) } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["IncorrectWords"].isNull()) + incorrectWords_ = std::stoi(value["IncorrectWords"].asString()); + if(!value["TargetRole"].isNull()) + targetRole_ = std::stoi(value["TargetRole"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["SourceRole"].isNull()) sourceRole_ = std::stoi(value["SourceRole"].asString()); - if(!value["TargetRole"].isNull()) - targetRole_ = std::stoi(value["TargetRole"].asString()); - if(!value["IncorrectWords"].isNull()) - incorrectWords_ = std::stoi(value["IncorrectWords"].asString()); }