Supported new features for outbound.

This commit is contained in:
sdk-team
2022-01-12 12:30:44 +00:00
parent b4ecf9926e
commit ad478b719d
59 changed files with 2377 additions and 63 deletions

View File

@@ -1,3 +1,6 @@
2022-01-12 Version: 1.36.1025
- Supported new features for outbound.
2022-01-12 Version: 1.36.1024
- Support folder for rule.

View File

@@ -1 +1 @@
1.36.1024
1.36.1025

View File

@@ -21,6 +21,8 @@ set(outboundbot_public_header
include/alibabacloud/outboundbot/OutboundBotExport.h )
set(outboundbot_public_header_model
include/alibabacloud/outboundbot/model/ApplyNumberDistrictInfoParsingResultRequest.h
include/alibabacloud/outboundbot/model/ApplyNumberDistrictInfoParsingResultResult.h
include/alibabacloud/outboundbot/model/AssignJobsRequest.h
include/alibabacloud/outboundbot/model/AssignJobsResult.h
include/alibabacloud/outboundbot/model/CancelJobsRequest.h
@@ -47,6 +49,10 @@ set(outboundbot_public_header_model
include/alibabacloud/outboundbot/model/CreateJobGroupResult.h
include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskRequest.h
include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskResult.h
include/alibabacloud/outboundbot/model/CreateNumberDistrictInfoDownloadUrlRequest.h
include/alibabacloud/outboundbot/model/CreateNumberDistrictInfoDownloadUrlResult.h
include/alibabacloud/outboundbot/model/CreateNumberDistrictInfoParsingTaskRequest.h
include/alibabacloud/outboundbot/model/CreateNumberDistrictInfoParsingTaskResult.h
include/alibabacloud/outboundbot/model/CreateOutboundCallNumberRequest.h
include/alibabacloud/outboundbot/model/CreateOutboundCallNumberResult.h
include/alibabacloud/outboundbot/model/CreateScriptRequest.h
@@ -55,6 +61,8 @@ set(outboundbot_public_header_model
include/alibabacloud/outboundbot/model/CreateScriptWaveformResult.h
include/alibabacloud/outboundbot/model/CreateTagRequest.h
include/alibabacloud/outboundbot/model/CreateTagResult.h
include/alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoRequest.h
include/alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoResult.h
include/alibabacloud/outboundbot/model/DeleteContactBlockListRequest.h
include/alibabacloud/outboundbot/model/DeleteContactBlockListResult.h
include/alibabacloud/outboundbot/model/DeleteContactWhiteListRequest.h
@@ -97,6 +105,8 @@ set(outboundbot_public_header_model
include/alibabacloud/outboundbot/model/DescribeJobGroupResult.h
include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressRequest.h
include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressResult.h
include/alibabacloud/outboundbot/model/DescribeNumberDistrictInfoStatusRequest.h
include/alibabacloud/outboundbot/model/DescribeNumberDistrictInfoStatusResult.h
include/alibabacloud/outboundbot/model/DescribeScriptRequest.h
include/alibabacloud/outboundbot/model/DescribeScriptResult.h
include/alibabacloud/outboundbot/model/DescribeScriptVoiceConfigRequest.h
@@ -109,6 +119,8 @@ set(outboundbot_public_header_model
include/alibabacloud/outboundbot/model/DescribeTagHitsSummaryResult.h
include/alibabacloud/outboundbot/model/DialogueRequest.h
include/alibabacloud/outboundbot/model/DialogueResult.h
include/alibabacloud/outboundbot/model/DismissNumberDistrictInfoParsingResultRequest.h
include/alibabacloud/outboundbot/model/DismissNumberDistrictInfoParsingResultResult.h
include/alibabacloud/outboundbot/model/DownloadRecordingRequest.h
include/alibabacloud/outboundbot/model/DownloadRecordingResult.h
include/alibabacloud/outboundbot/model/DuplicateScriptRequest.h
@@ -137,6 +149,8 @@ set(outboundbot_public_header_model
include/alibabacloud/outboundbot/model/GetInstanceConfigResult.h
include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayRequest.h
include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayResult.h
include/alibabacloud/outboundbot/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.h
include/alibabacloud/outboundbot/model/GetNumberDistrictInfoTemplateDownloadUrlResult.h
include/alibabacloud/outboundbot/model/GetSummaryInfoRequest.h
include/alibabacloud/outboundbot/model/GetSummaryInfoResult.h
include/alibabacloud/outboundbot/model/GetTaskByUuidRequest.h
@@ -147,6 +161,8 @@ set(outboundbot_public_header_model
include/alibabacloud/outboundbot/model/ImportScriptResult.h
include/alibabacloud/outboundbot/model/InflightTaskTimeoutRequest.h
include/alibabacloud/outboundbot/model/InflightTaskTimeoutResult.h
include/alibabacloud/outboundbot/model/ListChatbotInstancesRequest.h
include/alibabacloud/outboundbot/model/ListChatbotInstancesResult.h
include/alibabacloud/outboundbot/model/ListDialogueFlowsRequest.h
include/alibabacloud/outboundbot/model/ListDialogueFlowsResult.h
include/alibabacloud/outboundbot/model/ListDownloadTasksRequest.h
@@ -264,6 +280,8 @@ set(outboundbot_public_header_model
set(outboundbot_src
src/OutboundBotClient.cc
src/model/ApplyNumberDistrictInfoParsingResultRequest.cc
src/model/ApplyNumberDistrictInfoParsingResultResult.cc
src/model/AssignJobsRequest.cc
src/model/AssignJobsResult.cc
src/model/CancelJobsRequest.cc
@@ -290,6 +308,10 @@ set(outboundbot_src
src/model/CreateJobGroupResult.cc
src/model/CreateJobGroupExportTaskRequest.cc
src/model/CreateJobGroupExportTaskResult.cc
src/model/CreateNumberDistrictInfoDownloadUrlRequest.cc
src/model/CreateNumberDistrictInfoDownloadUrlResult.cc
src/model/CreateNumberDistrictInfoParsingTaskRequest.cc
src/model/CreateNumberDistrictInfoParsingTaskResult.cc
src/model/CreateOutboundCallNumberRequest.cc
src/model/CreateOutboundCallNumberResult.cc
src/model/CreateScriptRequest.cc
@@ -298,6 +320,8 @@ set(outboundbot_src
src/model/CreateScriptWaveformResult.cc
src/model/CreateTagRequest.cc
src/model/CreateTagResult.cc
src/model/DeleteAllNumberDistrictInfoRequest.cc
src/model/DeleteAllNumberDistrictInfoResult.cc
src/model/DeleteContactBlockListRequest.cc
src/model/DeleteContactBlockListResult.cc
src/model/DeleteContactWhiteListRequest.cc
@@ -340,6 +364,8 @@ set(outboundbot_src
src/model/DescribeJobGroupResult.cc
src/model/DescribeJobGroupExportTaskProgressRequest.cc
src/model/DescribeJobGroupExportTaskProgressResult.cc
src/model/DescribeNumberDistrictInfoStatusRequest.cc
src/model/DescribeNumberDistrictInfoStatusResult.cc
src/model/DescribeScriptRequest.cc
src/model/DescribeScriptResult.cc
src/model/DescribeScriptVoiceConfigRequest.cc
@@ -352,6 +378,8 @@ set(outboundbot_src
src/model/DescribeTagHitsSummaryResult.cc
src/model/DialogueRequest.cc
src/model/DialogueResult.cc
src/model/DismissNumberDistrictInfoParsingResultRequest.cc
src/model/DismissNumberDistrictInfoParsingResultResult.cc
src/model/DownloadRecordingRequest.cc
src/model/DownloadRecordingResult.cc
src/model/DuplicateScriptRequest.cc
@@ -380,6 +408,8 @@ set(outboundbot_src
src/model/GetInstanceConfigResult.cc
src/model/GetMaxAttemptsPerDayRequest.cc
src/model/GetMaxAttemptsPerDayResult.cc
src/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.cc
src/model/GetNumberDistrictInfoTemplateDownloadUrlResult.cc
src/model/GetSummaryInfoRequest.cc
src/model/GetSummaryInfoResult.cc
src/model/GetTaskByUuidRequest.cc
@@ -390,6 +420,8 @@ set(outboundbot_src
src/model/ImportScriptResult.cc
src/model/InflightTaskTimeoutRequest.cc
src/model/InflightTaskTimeoutResult.cc
src/model/ListChatbotInstancesRequest.cc
src/model/ListChatbotInstancesResult.cc
src/model/ListDialogueFlowsRequest.cc
src/model/ListDialogueFlowsResult.cc
src/model/ListDownloadTasksRequest.cc

View File

@@ -22,6 +22,8 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "OutboundBotExport.h"
#include "model/ApplyNumberDistrictInfoParsingResultRequest.h"
#include "model/ApplyNumberDistrictInfoParsingResultResult.h"
#include "model/AssignJobsRequest.h"
#include "model/AssignJobsResult.h"
#include "model/CancelJobsRequest.h"
@@ -48,6 +50,10 @@
#include "model/CreateJobGroupResult.h"
#include "model/CreateJobGroupExportTaskRequest.h"
#include "model/CreateJobGroupExportTaskResult.h"
#include "model/CreateNumberDistrictInfoDownloadUrlRequest.h"
#include "model/CreateNumberDistrictInfoDownloadUrlResult.h"
#include "model/CreateNumberDistrictInfoParsingTaskRequest.h"
#include "model/CreateNumberDistrictInfoParsingTaskResult.h"
#include "model/CreateOutboundCallNumberRequest.h"
#include "model/CreateOutboundCallNumberResult.h"
#include "model/CreateScriptRequest.h"
@@ -56,6 +62,8 @@
#include "model/CreateScriptWaveformResult.h"
#include "model/CreateTagRequest.h"
#include "model/CreateTagResult.h"
#include "model/DeleteAllNumberDistrictInfoRequest.h"
#include "model/DeleteAllNumberDistrictInfoResult.h"
#include "model/DeleteContactBlockListRequest.h"
#include "model/DeleteContactBlockListResult.h"
#include "model/DeleteContactWhiteListRequest.h"
@@ -98,6 +106,8 @@
#include "model/DescribeJobGroupResult.h"
#include "model/DescribeJobGroupExportTaskProgressRequest.h"
#include "model/DescribeJobGroupExportTaskProgressResult.h"
#include "model/DescribeNumberDistrictInfoStatusRequest.h"
#include "model/DescribeNumberDistrictInfoStatusResult.h"
#include "model/DescribeScriptRequest.h"
#include "model/DescribeScriptResult.h"
#include "model/DescribeScriptVoiceConfigRequest.h"
@@ -110,6 +120,8 @@
#include "model/DescribeTagHitsSummaryResult.h"
#include "model/DialogueRequest.h"
#include "model/DialogueResult.h"
#include "model/DismissNumberDistrictInfoParsingResultRequest.h"
#include "model/DismissNumberDistrictInfoParsingResultResult.h"
#include "model/DownloadRecordingRequest.h"
#include "model/DownloadRecordingResult.h"
#include "model/DuplicateScriptRequest.h"
@@ -138,6 +150,8 @@
#include "model/GetInstanceConfigResult.h"
#include "model/GetMaxAttemptsPerDayRequest.h"
#include "model/GetMaxAttemptsPerDayResult.h"
#include "model/GetNumberDistrictInfoTemplateDownloadUrlRequest.h"
#include "model/GetNumberDistrictInfoTemplateDownloadUrlResult.h"
#include "model/GetSummaryInfoRequest.h"
#include "model/GetSummaryInfoResult.h"
#include "model/GetTaskByUuidRequest.h"
@@ -148,6 +162,8 @@
#include "model/ImportScriptResult.h"
#include "model/InflightTaskTimeoutRequest.h"
#include "model/InflightTaskTimeoutResult.h"
#include "model/ListChatbotInstancesRequest.h"
#include "model/ListChatbotInstancesResult.h"
#include "model/ListDialogueFlowsRequest.h"
#include "model/ListDialogueFlowsResult.h"
#include "model/ListDownloadTasksRequest.h"
@@ -271,6 +287,9 @@ namespace AlibabaCloud
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT OutboundBotClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::ApplyNumberDistrictInfoParsingResultResult> ApplyNumberDistrictInfoParsingResultOutcome;
typedef std::future<ApplyNumberDistrictInfoParsingResultOutcome> ApplyNumberDistrictInfoParsingResultOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::ApplyNumberDistrictInfoParsingResultRequest&, const ApplyNumberDistrictInfoParsingResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApplyNumberDistrictInfoParsingResultAsyncHandler;
typedef Outcome<Error, Model::AssignJobsResult> AssignJobsOutcome;
typedef std::future<AssignJobsOutcome> AssignJobsOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::AssignJobsRequest&, const AssignJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssignJobsAsyncHandler;
@@ -310,6 +329,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateJobGroupExportTaskResult> CreateJobGroupExportTaskOutcome;
typedef std::future<CreateJobGroupExportTaskOutcome> CreateJobGroupExportTaskOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::CreateJobGroupExportTaskRequest&, const CreateJobGroupExportTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateJobGroupExportTaskAsyncHandler;
typedef Outcome<Error, Model::CreateNumberDistrictInfoDownloadUrlResult> CreateNumberDistrictInfoDownloadUrlOutcome;
typedef std::future<CreateNumberDistrictInfoDownloadUrlOutcome> CreateNumberDistrictInfoDownloadUrlOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::CreateNumberDistrictInfoDownloadUrlRequest&, const CreateNumberDistrictInfoDownloadUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateNumberDistrictInfoDownloadUrlAsyncHandler;
typedef Outcome<Error, Model::CreateNumberDistrictInfoParsingTaskResult> CreateNumberDistrictInfoParsingTaskOutcome;
typedef std::future<CreateNumberDistrictInfoParsingTaskOutcome> CreateNumberDistrictInfoParsingTaskOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::CreateNumberDistrictInfoParsingTaskRequest&, const CreateNumberDistrictInfoParsingTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateNumberDistrictInfoParsingTaskAsyncHandler;
typedef Outcome<Error, Model::CreateOutboundCallNumberResult> CreateOutboundCallNumberOutcome;
typedef std::future<CreateOutboundCallNumberOutcome> CreateOutboundCallNumberOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::CreateOutboundCallNumberRequest&, const CreateOutboundCallNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateOutboundCallNumberAsyncHandler;
@@ -322,6 +347,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateTagResult> CreateTagOutcome;
typedef std::future<CreateTagOutcome> CreateTagOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::CreateTagRequest&, const CreateTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTagAsyncHandler;
typedef Outcome<Error, Model::DeleteAllNumberDistrictInfoResult> DeleteAllNumberDistrictInfoOutcome;
typedef std::future<DeleteAllNumberDistrictInfoOutcome> DeleteAllNumberDistrictInfoOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::DeleteAllNumberDistrictInfoRequest&, const DeleteAllNumberDistrictInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAllNumberDistrictInfoAsyncHandler;
typedef Outcome<Error, Model::DeleteContactBlockListResult> DeleteContactBlockListOutcome;
typedef std::future<DeleteContactBlockListOutcome> DeleteContactBlockListOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::DeleteContactBlockListRequest&, const DeleteContactBlockListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteContactBlockListAsyncHandler;
@@ -385,6 +413,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeJobGroupExportTaskProgressResult> DescribeJobGroupExportTaskProgressOutcome;
typedef std::future<DescribeJobGroupExportTaskProgressOutcome> DescribeJobGroupExportTaskProgressOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::DescribeJobGroupExportTaskProgressRequest&, const DescribeJobGroupExportTaskProgressOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeJobGroupExportTaskProgressAsyncHandler;
typedef Outcome<Error, Model::DescribeNumberDistrictInfoStatusResult> DescribeNumberDistrictInfoStatusOutcome;
typedef std::future<DescribeNumberDistrictInfoStatusOutcome> DescribeNumberDistrictInfoStatusOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::DescribeNumberDistrictInfoStatusRequest&, const DescribeNumberDistrictInfoStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeNumberDistrictInfoStatusAsyncHandler;
typedef Outcome<Error, Model::DescribeScriptResult> DescribeScriptOutcome;
typedef std::future<DescribeScriptOutcome> DescribeScriptOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::DescribeScriptRequest&, const DescribeScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeScriptAsyncHandler;
@@ -403,6 +434,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DialogueResult> DialogueOutcome;
typedef std::future<DialogueOutcome> DialogueOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::DialogueRequest&, const DialogueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DialogueAsyncHandler;
typedef Outcome<Error, Model::DismissNumberDistrictInfoParsingResultResult> DismissNumberDistrictInfoParsingResultOutcome;
typedef std::future<DismissNumberDistrictInfoParsingResultOutcome> DismissNumberDistrictInfoParsingResultOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::DismissNumberDistrictInfoParsingResultRequest&, const DismissNumberDistrictInfoParsingResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DismissNumberDistrictInfoParsingResultAsyncHandler;
typedef Outcome<Error, Model::DownloadRecordingResult> DownloadRecordingOutcome;
typedef std::future<DownloadRecordingOutcome> DownloadRecordingOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::DownloadRecordingRequest&, const DownloadRecordingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadRecordingAsyncHandler;
@@ -445,6 +479,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetMaxAttemptsPerDayResult> GetMaxAttemptsPerDayOutcome;
typedef std::future<GetMaxAttemptsPerDayOutcome> GetMaxAttemptsPerDayOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::GetMaxAttemptsPerDayRequest&, const GetMaxAttemptsPerDayOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMaxAttemptsPerDayAsyncHandler;
typedef Outcome<Error, Model::GetNumberDistrictInfoTemplateDownloadUrlResult> GetNumberDistrictInfoTemplateDownloadUrlOutcome;
typedef std::future<GetNumberDistrictInfoTemplateDownloadUrlOutcome> GetNumberDistrictInfoTemplateDownloadUrlOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::GetNumberDistrictInfoTemplateDownloadUrlRequest&, const GetNumberDistrictInfoTemplateDownloadUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNumberDistrictInfoTemplateDownloadUrlAsyncHandler;
typedef Outcome<Error, Model::GetSummaryInfoResult> GetSummaryInfoOutcome;
typedef std::future<GetSummaryInfoOutcome> GetSummaryInfoOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::GetSummaryInfoRequest&, const GetSummaryInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSummaryInfoAsyncHandler;
@@ -460,6 +497,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::InflightTaskTimeoutResult> InflightTaskTimeoutOutcome;
typedef std::future<InflightTaskTimeoutOutcome> InflightTaskTimeoutOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::InflightTaskTimeoutRequest&, const InflightTaskTimeoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InflightTaskTimeoutAsyncHandler;
typedef Outcome<Error, Model::ListChatbotInstancesResult> ListChatbotInstancesOutcome;
typedef std::future<ListChatbotInstancesOutcome> ListChatbotInstancesOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::ListChatbotInstancesRequest&, const ListChatbotInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListChatbotInstancesAsyncHandler;
typedef Outcome<Error, Model::ListDialogueFlowsResult> ListDialogueFlowsOutcome;
typedef std::future<ListDialogueFlowsOutcome> ListDialogueFlowsOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::ListDialogueFlowsRequest&, const ListDialogueFlowsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDialogueFlowsAsyncHandler;
@@ -636,6 +676,9 @@ namespace AlibabaCloud
OutboundBotClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
OutboundBotClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~OutboundBotClient();
ApplyNumberDistrictInfoParsingResultOutcome applyNumberDistrictInfoParsingResult(const Model::ApplyNumberDistrictInfoParsingResultRequest &request)const;
void applyNumberDistrictInfoParsingResultAsync(const Model::ApplyNumberDistrictInfoParsingResultRequest& request, const ApplyNumberDistrictInfoParsingResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ApplyNumberDistrictInfoParsingResultOutcomeCallable applyNumberDistrictInfoParsingResultCallable(const Model::ApplyNumberDistrictInfoParsingResultRequest& request) const;
AssignJobsOutcome assignJobs(const Model::AssignJobsRequest &request)const;
void assignJobsAsync(const Model::AssignJobsRequest& request, const AssignJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AssignJobsOutcomeCallable assignJobsCallable(const Model::AssignJobsRequest& request) const;
@@ -675,6 +718,12 @@ namespace AlibabaCloud
CreateJobGroupExportTaskOutcome createJobGroupExportTask(const Model::CreateJobGroupExportTaskRequest &request)const;
void createJobGroupExportTaskAsync(const Model::CreateJobGroupExportTaskRequest& request, const CreateJobGroupExportTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateJobGroupExportTaskOutcomeCallable createJobGroupExportTaskCallable(const Model::CreateJobGroupExportTaskRequest& request) const;
CreateNumberDistrictInfoDownloadUrlOutcome createNumberDistrictInfoDownloadUrl(const Model::CreateNumberDistrictInfoDownloadUrlRequest &request)const;
void createNumberDistrictInfoDownloadUrlAsync(const Model::CreateNumberDistrictInfoDownloadUrlRequest& request, const CreateNumberDistrictInfoDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateNumberDistrictInfoDownloadUrlOutcomeCallable createNumberDistrictInfoDownloadUrlCallable(const Model::CreateNumberDistrictInfoDownloadUrlRequest& request) const;
CreateNumberDistrictInfoParsingTaskOutcome createNumberDistrictInfoParsingTask(const Model::CreateNumberDistrictInfoParsingTaskRequest &request)const;
void createNumberDistrictInfoParsingTaskAsync(const Model::CreateNumberDistrictInfoParsingTaskRequest& request, const CreateNumberDistrictInfoParsingTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateNumberDistrictInfoParsingTaskOutcomeCallable createNumberDistrictInfoParsingTaskCallable(const Model::CreateNumberDistrictInfoParsingTaskRequest& request) const;
CreateOutboundCallNumberOutcome createOutboundCallNumber(const Model::CreateOutboundCallNumberRequest &request)const;
void createOutboundCallNumberAsync(const Model::CreateOutboundCallNumberRequest& request, const CreateOutboundCallNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateOutboundCallNumberOutcomeCallable createOutboundCallNumberCallable(const Model::CreateOutboundCallNumberRequest& request) const;
@@ -687,6 +736,9 @@ namespace AlibabaCloud
CreateTagOutcome createTag(const Model::CreateTagRequest &request)const;
void createTagAsync(const Model::CreateTagRequest& request, const CreateTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateTagOutcomeCallable createTagCallable(const Model::CreateTagRequest& request) const;
DeleteAllNumberDistrictInfoOutcome deleteAllNumberDistrictInfo(const Model::DeleteAllNumberDistrictInfoRequest &request)const;
void deleteAllNumberDistrictInfoAsync(const Model::DeleteAllNumberDistrictInfoRequest& request, const DeleteAllNumberDistrictInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteAllNumberDistrictInfoOutcomeCallable deleteAllNumberDistrictInfoCallable(const Model::DeleteAllNumberDistrictInfoRequest& request) const;
DeleteContactBlockListOutcome deleteContactBlockList(const Model::DeleteContactBlockListRequest &request)const;
void deleteContactBlockListAsync(const Model::DeleteContactBlockListRequest& request, const DeleteContactBlockListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteContactBlockListOutcomeCallable deleteContactBlockListCallable(const Model::DeleteContactBlockListRequest& request) const;
@@ -750,6 +802,9 @@ namespace AlibabaCloud
DescribeJobGroupExportTaskProgressOutcome describeJobGroupExportTaskProgress(const Model::DescribeJobGroupExportTaskProgressRequest &request)const;
void describeJobGroupExportTaskProgressAsync(const Model::DescribeJobGroupExportTaskProgressRequest& request, const DescribeJobGroupExportTaskProgressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeJobGroupExportTaskProgressOutcomeCallable describeJobGroupExportTaskProgressCallable(const Model::DescribeJobGroupExportTaskProgressRequest& request) const;
DescribeNumberDistrictInfoStatusOutcome describeNumberDistrictInfoStatus(const Model::DescribeNumberDistrictInfoStatusRequest &request)const;
void describeNumberDistrictInfoStatusAsync(const Model::DescribeNumberDistrictInfoStatusRequest& request, const DescribeNumberDistrictInfoStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeNumberDistrictInfoStatusOutcomeCallable describeNumberDistrictInfoStatusCallable(const Model::DescribeNumberDistrictInfoStatusRequest& request) const;
DescribeScriptOutcome describeScript(const Model::DescribeScriptRequest &request)const;
void describeScriptAsync(const Model::DescribeScriptRequest& request, const DescribeScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeScriptOutcomeCallable describeScriptCallable(const Model::DescribeScriptRequest& request) const;
@@ -768,6 +823,9 @@ namespace AlibabaCloud
DialogueOutcome dialogue(const Model::DialogueRequest &request)const;
void dialogueAsync(const Model::DialogueRequest& request, const DialogueAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DialogueOutcomeCallable dialogueCallable(const Model::DialogueRequest& request) const;
DismissNumberDistrictInfoParsingResultOutcome dismissNumberDistrictInfoParsingResult(const Model::DismissNumberDistrictInfoParsingResultRequest &request)const;
void dismissNumberDistrictInfoParsingResultAsync(const Model::DismissNumberDistrictInfoParsingResultRequest& request, const DismissNumberDistrictInfoParsingResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DismissNumberDistrictInfoParsingResultOutcomeCallable dismissNumberDistrictInfoParsingResultCallable(const Model::DismissNumberDistrictInfoParsingResultRequest& request) const;
DownloadRecordingOutcome downloadRecording(const Model::DownloadRecordingRequest &request)const;
void downloadRecordingAsync(const Model::DownloadRecordingRequest& request, const DownloadRecordingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DownloadRecordingOutcomeCallable downloadRecordingCallable(const Model::DownloadRecordingRequest& request) const;
@@ -810,6 +868,9 @@ namespace AlibabaCloud
GetMaxAttemptsPerDayOutcome getMaxAttemptsPerDay(const Model::GetMaxAttemptsPerDayRequest &request)const;
void getMaxAttemptsPerDayAsync(const Model::GetMaxAttemptsPerDayRequest& request, const GetMaxAttemptsPerDayAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMaxAttemptsPerDayOutcomeCallable getMaxAttemptsPerDayCallable(const Model::GetMaxAttemptsPerDayRequest& request) const;
GetNumberDistrictInfoTemplateDownloadUrlOutcome getNumberDistrictInfoTemplateDownloadUrl(const Model::GetNumberDistrictInfoTemplateDownloadUrlRequest &request)const;
void getNumberDistrictInfoTemplateDownloadUrlAsync(const Model::GetNumberDistrictInfoTemplateDownloadUrlRequest& request, const GetNumberDistrictInfoTemplateDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetNumberDistrictInfoTemplateDownloadUrlOutcomeCallable getNumberDistrictInfoTemplateDownloadUrlCallable(const Model::GetNumberDistrictInfoTemplateDownloadUrlRequest& request) const;
GetSummaryInfoOutcome getSummaryInfo(const Model::GetSummaryInfoRequest &request)const;
void getSummaryInfoAsync(const Model::GetSummaryInfoRequest& request, const GetSummaryInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSummaryInfoOutcomeCallable getSummaryInfoCallable(const Model::GetSummaryInfoRequest& request) const;
@@ -825,6 +886,9 @@ namespace AlibabaCloud
InflightTaskTimeoutOutcome inflightTaskTimeout(const Model::InflightTaskTimeoutRequest &request)const;
void inflightTaskTimeoutAsync(const Model::InflightTaskTimeoutRequest& request, const InflightTaskTimeoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InflightTaskTimeoutOutcomeCallable inflightTaskTimeoutCallable(const Model::InflightTaskTimeoutRequest& request) const;
ListChatbotInstancesOutcome listChatbotInstances(const Model::ListChatbotInstancesRequest &request)const;
void listChatbotInstancesAsync(const Model::ListChatbotInstancesRequest& request, const ListChatbotInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListChatbotInstancesOutcomeCallable listChatbotInstancesCallable(const Model::ListChatbotInstancesRequest& request) const;
ListDialogueFlowsOutcome listDialogueFlows(const Model::ListDialogueFlowsRequest &request)const;
void listDialogueFlowsAsync(const Model::ListDialogueFlowsRequest& request, const ListDialogueFlowsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDialogueFlowsOutcomeCallable listDialogueFlowsCallable(const Model::ListDialogueFlowsRequest& request) const;

View File

@@ -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_OUTBOUNDBOT_MODEL_APPLYNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_APPLYNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ApplyNumberDistrictInfoParsingResultRequest : public RpcServiceRequest
{
public:
ApplyNumberDistrictInfoParsingResultRequest();
~ApplyNumberDistrictInfoParsingResultRequest();
std::string getVersionId()const;
void setVersionId(const std::string& versionId);
private:
std::string versionId_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_APPLYNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_

View File

@@ -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_OUTBOUNDBOT_MODEL_APPLYNUMBERDISTRICTINFOPARSINGRESULTRESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_APPLYNUMBERDISTRICTINFOPARSINGRESULTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ApplyNumberDistrictInfoParsingResultResult : public ServiceResult
{
public:
ApplyNumberDistrictInfoParsingResultResult();
explicit ApplyNumberDistrictInfoParsingResultResult(const std::string &payload);
~ApplyNumberDistrictInfoParsingResultResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_APPLYNUMBERDISTRICTINFOPARSINGRESULTRESULT_H_

View File

@@ -53,6 +53,8 @@ namespace AlibabaCloud
void setName(const std::string& name);
std::string getSourceGroupId()const;
void setSourceGroupId(const std::string& sourceGroupId);
long getRingingDuration()const;
void setRingingDuration(long ringingDuration);
private:
std::string recallStrategyJson_;
@@ -64,6 +66,7 @@ namespace AlibabaCloud
std::string strategyJson_;
std::string name_;
std::string sourceGroupId_;
long ringingDuration_;
};
}

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct JobGroup
{
std::string id;
long ringingDuration;
};

View File

@@ -49,6 +49,8 @@ namespace AlibabaCloud
void setInstanceId(const std::string& instanceId);
std::string getStrategyJson()const;
void setStrategyJson(const std::string& strategyJson);
long getRingingDuration()const;
void setRingingDuration(long ringingDuration);
std::string getScenarioId()const;
void setScenarioId(const std::string& scenarioId);
@@ -60,6 +62,7 @@ namespace AlibabaCloud
std::vector<std::string> callingNumber_;
std::string instanceId_;
std::string strategyJson_;
long ringingDuration_;
std::string scenarioId_;
};

View File

@@ -76,6 +76,7 @@ namespace AlibabaCloud
std::string jobGroupName;
std::string scriptVersion;
std::string jobGroupDescription;
long ringingDuration;
std::string jobGroupId;
std::string scriptName;
long creationTime;

View File

@@ -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_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFODOWNLOADURLREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFODOWNLOADURLREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateNumberDistrictInfoDownloadUrlRequest : public RpcServiceRequest
{
public:
CreateNumberDistrictInfoDownloadUrlRequest();
~CreateNumberDistrictInfoDownloadUrlRequest();
std::string getVersionId()const;
void setVersionId(const std::string& versionId);
private:
std::string versionId_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFODOWNLOADURLREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFODOWNLOADURLRESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFODOWNLOADURLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateNumberDistrictInfoDownloadUrlResult : public ServiceResult
{
public:
CreateNumberDistrictInfoDownloadUrlResult();
explicit CreateNumberDistrictInfoDownloadUrlResult(const std::string &payload);
~CreateNumberDistrictInfoDownloadUrlResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::string getFileHttpUrl()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::string fileHttpUrl_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFODOWNLOADURLRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFOPARSINGTASKREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFOPARSINGTASKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateNumberDistrictInfoParsingTaskRequest : public RpcServiceRequest
{
public:
CreateNumberDistrictInfoParsingTaskRequest();
~CreateNumberDistrictInfoParsingTaskRequest();
long getFileSize()const;
void setFileSize(long fileSize);
std::string getFilePath()const;
void setFilePath(const std::string& filePath);
private:
long fileSize_;
std::string filePath_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFOPARSINGTASKREQUEST_H_

View File

@@ -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_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFOPARSINGTASKRESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFOPARSINGTASKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateNumberDistrictInfoParsingTaskResult : public ServiceResult
{
public:
CreateNumberDistrictInfoParsingTaskResult();
explicit CreateNumberDistrictInfoParsingTaskResult(const std::string &payload);
~CreateNumberDistrictInfoParsingTaskResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFOPARSINGTASKRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_OUTBOUNDBOT_MODEL_DELETEALLNUMBERDISTRICTINFOREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEALLNUMBERDISTRICTINFOREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteAllNumberDistrictInfoRequest : public RpcServiceRequest
{
public:
DeleteAllNumberDistrictInfoRequest();
~DeleteAllNumberDistrictInfoRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEALLNUMBERDISTRICTINFOREQUEST_H_

View File

@@ -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_OUTBOUNDBOT_MODEL_DELETEALLNUMBERDISTRICTINFORESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEALLNUMBERDISTRICTINFORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteAllNumberDistrictInfoResult : public ServiceResult
{
public:
DeleteAllNumberDistrictInfoResult();
explicit DeleteAllNumberDistrictInfoResult(const std::string &payload);
~DeleteAllNumberDistrictInfoResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEALLNUMBERDISTRICTINFORESULT_H_

View File

@@ -39,6 +39,7 @@ namespace AlibabaCloud
int handledJobCount;
std::string failReason;
std::string failErrorCode;
std::string feedbackUrl;
};

View File

@@ -108,6 +108,7 @@ namespace AlibabaCloud
std::string scriptId;
std::string jobGroupDescription;
Result result;
long ringingDuration;
std::string jobGroupId;
std::string scriptName;
long creationTime;

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_OUTBOUNDBOT_MODEL_DESCRIBENUMBERDISTRICTINFOSTATUSREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBENUMBERDISTRICTINFOSTATUSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeNumberDistrictInfoStatusRequest : public RpcServiceRequest
{
public:
DescribeNumberDistrictInfoStatusRequest();
~DescribeNumberDistrictInfoStatusRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBENUMBERDISTRICTINFOSTATUSREQUEST_H_

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_OUTBOUNDBOT_MODEL_DESCRIBENUMBERDISTRICTINFOSTATUSRESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBENUMBERDISTRICTINFOSTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeNumberDistrictInfoStatusResult : public ServiceResult
{
public:
struct AppliedVersion
{
std::string versionId;
std::string fileName;
long fileSize;
};
struct ParsingVersion
{
std::string versionId;
long parseProgress;
std::string fileName;
long fileSize;
};
DescribeNumberDistrictInfoStatusResult();
explicit DescribeNumberDistrictInfoStatusResult(const std::string &payload);
~DescribeNumberDistrictInfoStatusResult();
std::string getStatus()const;
AppliedVersion getAppliedVersion()const;
ParsingVersion getParsingVersion()const;
std::string getMessage()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string status_;
AppliedVersion appliedVersion_;
ParsingVersion parsingVersion_;
std::string message_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBENUMBERDISTRICTINFOSTATUSRESULT_H_

View File

@@ -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_OUTBOUNDBOT_MODEL_DISMISSNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DISMISSNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DismissNumberDistrictInfoParsingResultRequest : public RpcServiceRequest
{
public:
DismissNumberDistrictInfoParsingResultRequest();
~DismissNumberDistrictInfoParsingResultRequest();
std::string getVersionId()const;
void setVersionId(const std::string& versionId);
private:
std::string versionId_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DISMISSNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_

View File

@@ -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_OUTBOUNDBOT_MODEL_DISMISSNUMBERDISTRICTINFOPARSINGRESULTRESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DISMISSNUMBERDISTRICTINFOPARSINGRESULTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DismissNumberDistrictInfoParsingResultResult : public ServiceResult
{
public:
DismissNumberDistrictInfoParsingResultResult();
explicit DismissNumberDistrictInfoParsingResultResult(const std::string &payload);
~DismissNumberDistrictInfoParsingResultResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DISMISSNUMBERDISTRICTINFOPARSINGRESULTRESULT_H_

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_OUTBOUNDBOT_MODEL_GETNUMBERDISTRICTINFOTEMPLATEDOWNLOADURLREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETNUMBERDISTRICTINFOTEMPLATEDOWNLOADURLREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetNumberDistrictInfoTemplateDownloadUrlRequest : public RpcServiceRequest
{
public:
GetNumberDistrictInfoTemplateDownloadUrlRequest();
~GetNumberDistrictInfoTemplateDownloadUrlRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETNUMBERDISTRICTINFOTEMPLATEDOWNLOADURLREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_OUTBOUNDBOT_MODEL_GETNUMBERDISTRICTINFOTEMPLATEDOWNLOADURLRESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETNUMBERDISTRICTINFOTEMPLATEDOWNLOADURLRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetNumberDistrictInfoTemplateDownloadUrlResult : public ServiceResult
{
public:
GetNumberDistrictInfoTemplateDownloadUrlResult();
explicit GetNumberDistrictInfoTemplateDownloadUrlResult(const std::string &payload);
~GetNumberDistrictInfoTemplateDownloadUrlResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::string getFileHttpUrl()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::string fileHttpUrl_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETNUMBERDISTRICTINFOTEMPLATEDOWNLOADURLRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_OUTBOUNDBOT_MODEL_LISTCHATBOTINSTANCESREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCHATBOTINSTANCESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListChatbotInstancesRequest : public RpcServiceRequest
{
public:
ListChatbotInstancesRequest();
~ListChatbotInstancesRequest();
int getPageNumber()const;
void setPageNumber(int pageNumber);
int getPageSize()const;
void setPageSize(int pageSize);
private:
int pageNumber_;
int pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCHATBOTINSTANCESREQUEST_H_

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCHATBOTINSTANCESRESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCHATBOTINSTANCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/outboundbot/OutboundBotExport.h>
namespace AlibabaCloud
{
namespace OutboundBot
{
namespace Model
{
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListChatbotInstancesResult : public ServiceResult
{
public:
struct Bot
{
std::string languageCode;
std::string timeZone;
std::string introduction;
std::string instanceId;
std::string createTime;
std::string avatar;
std::string name;
};
ListChatbotInstancesResult();
explicit ListChatbotInstancesResult(const std::string &payload);
~ListChatbotInstancesResult();
long getTotalCount()const;
std::vector<Bot> getBots()const;
std::string getMessage()const;
long getPageSize()const;
long getPageNumber()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
long totalCount_;
std::vector<Bot> bots_;
std::string message_;
long pageSize_;
long pageNumber_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCHATBOTINSTANCESRESULT_H_

View File

@@ -41,29 +41,35 @@ namespace AlibabaCloud
void setDescription(const std::string& description);
std::string getScriptId()const;
void setScriptId(const std::string& scriptId);
std::string getStrategyJson()const;
void setStrategyJson(const std::string& strategyJson);
long getRingingDuration()const;
void setRingingDuration(long ringingDuration);
std::string getScenarioId()const;
void setScenarioId(const std::string& scenarioId);
std::string getJobGroupStatus()const;
void setJobGroupStatus(const std::string& jobGroupStatus);
std::vector<std::string> getCallingNumber()const;
void setCallingNumber(const std::vector<std::string>& callingNumber);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getStrategyJson()const;
void setStrategyJson(const std::string& strategyJson);
std::string getJobGroupId()const;
void setJobGroupId(const std::string& jobGroupId);
std::string getName()const;
void setName(const std::string& name);
std::string getScenarioId()const;
void setScenarioId(const std::string& scenarioId);
private:
std::string recallStrategyJson_;
std::string description_;
std::string scriptId_;
std::string strategyJson_;
long ringingDuration_;
std::string scenarioId_;
std::string jobGroupStatus_;
std::vector<std::string> callingNumber_;
std::string instanceId_;
std::string strategyJson_;
std::string jobGroupId_;
std::string name_;
std::string scenarioId_;
};
}

View File

@@ -76,6 +76,7 @@ namespace AlibabaCloud
std::string jobGroupName;
std::string scriptVersion;
std::string jobGroupDescription;
long ringingDuration;
std::string jobGroupId;
std::string scriptName;
long creationTime;

View File

@@ -51,6 +51,42 @@ OutboundBotClient::OutboundBotClient(const std::string & accessKeyId, const std:
OutboundBotClient::~OutboundBotClient()
{}
OutboundBotClient::ApplyNumberDistrictInfoParsingResultOutcome OutboundBotClient::applyNumberDistrictInfoParsingResult(const ApplyNumberDistrictInfoParsingResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ApplyNumberDistrictInfoParsingResultOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ApplyNumberDistrictInfoParsingResultOutcome(ApplyNumberDistrictInfoParsingResultResult(outcome.result()));
else
return ApplyNumberDistrictInfoParsingResultOutcome(outcome.error());
}
void OutboundBotClient::applyNumberDistrictInfoParsingResultAsync(const ApplyNumberDistrictInfoParsingResultRequest& request, const ApplyNumberDistrictInfoParsingResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, applyNumberDistrictInfoParsingResult(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::ApplyNumberDistrictInfoParsingResultOutcomeCallable OutboundBotClient::applyNumberDistrictInfoParsingResultCallable(const ApplyNumberDistrictInfoParsingResultRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ApplyNumberDistrictInfoParsingResultOutcome()>>(
[this, request]()
{
return this->applyNumberDistrictInfoParsingResult(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::AssignJobsOutcome OutboundBotClient::assignJobs(const AssignJobsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -519,6 +555,78 @@ OutboundBotClient::CreateJobGroupExportTaskOutcomeCallable OutboundBotClient::cr
return task->get_future();
}
OutboundBotClient::CreateNumberDistrictInfoDownloadUrlOutcome OutboundBotClient::createNumberDistrictInfoDownloadUrl(const CreateNumberDistrictInfoDownloadUrlRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateNumberDistrictInfoDownloadUrlOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateNumberDistrictInfoDownloadUrlOutcome(CreateNumberDistrictInfoDownloadUrlResult(outcome.result()));
else
return CreateNumberDistrictInfoDownloadUrlOutcome(outcome.error());
}
void OutboundBotClient::createNumberDistrictInfoDownloadUrlAsync(const CreateNumberDistrictInfoDownloadUrlRequest& request, const CreateNumberDistrictInfoDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createNumberDistrictInfoDownloadUrl(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::CreateNumberDistrictInfoDownloadUrlOutcomeCallable OutboundBotClient::createNumberDistrictInfoDownloadUrlCallable(const CreateNumberDistrictInfoDownloadUrlRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateNumberDistrictInfoDownloadUrlOutcome()>>(
[this, request]()
{
return this->createNumberDistrictInfoDownloadUrl(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::CreateNumberDistrictInfoParsingTaskOutcome OutboundBotClient::createNumberDistrictInfoParsingTask(const CreateNumberDistrictInfoParsingTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateNumberDistrictInfoParsingTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateNumberDistrictInfoParsingTaskOutcome(CreateNumberDistrictInfoParsingTaskResult(outcome.result()));
else
return CreateNumberDistrictInfoParsingTaskOutcome(outcome.error());
}
void OutboundBotClient::createNumberDistrictInfoParsingTaskAsync(const CreateNumberDistrictInfoParsingTaskRequest& request, const CreateNumberDistrictInfoParsingTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createNumberDistrictInfoParsingTask(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::CreateNumberDistrictInfoParsingTaskOutcomeCallable OutboundBotClient::createNumberDistrictInfoParsingTaskCallable(const CreateNumberDistrictInfoParsingTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateNumberDistrictInfoParsingTaskOutcome()>>(
[this, request]()
{
return this->createNumberDistrictInfoParsingTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::CreateOutboundCallNumberOutcome OutboundBotClient::createOutboundCallNumber(const CreateOutboundCallNumberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -663,6 +771,42 @@ OutboundBotClient::CreateTagOutcomeCallable OutboundBotClient::createTagCallable
return task->get_future();
}
OutboundBotClient::DeleteAllNumberDistrictInfoOutcome OutboundBotClient::deleteAllNumberDistrictInfo(const DeleteAllNumberDistrictInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteAllNumberDistrictInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteAllNumberDistrictInfoOutcome(DeleteAllNumberDistrictInfoResult(outcome.result()));
else
return DeleteAllNumberDistrictInfoOutcome(outcome.error());
}
void OutboundBotClient::deleteAllNumberDistrictInfoAsync(const DeleteAllNumberDistrictInfoRequest& request, const DeleteAllNumberDistrictInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteAllNumberDistrictInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::DeleteAllNumberDistrictInfoOutcomeCallable OutboundBotClient::deleteAllNumberDistrictInfoCallable(const DeleteAllNumberDistrictInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteAllNumberDistrictInfoOutcome()>>(
[this, request]()
{
return this->deleteAllNumberDistrictInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::DeleteContactBlockListOutcome OutboundBotClient::deleteContactBlockList(const DeleteContactBlockListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1419,6 +1563,42 @@ OutboundBotClient::DescribeJobGroupExportTaskProgressOutcomeCallable OutboundBot
return task->get_future();
}
OutboundBotClient::DescribeNumberDistrictInfoStatusOutcome OutboundBotClient::describeNumberDistrictInfoStatus(const DescribeNumberDistrictInfoStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeNumberDistrictInfoStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeNumberDistrictInfoStatusOutcome(DescribeNumberDistrictInfoStatusResult(outcome.result()));
else
return DescribeNumberDistrictInfoStatusOutcome(outcome.error());
}
void OutboundBotClient::describeNumberDistrictInfoStatusAsync(const DescribeNumberDistrictInfoStatusRequest& request, const DescribeNumberDistrictInfoStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeNumberDistrictInfoStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::DescribeNumberDistrictInfoStatusOutcomeCallable OutboundBotClient::describeNumberDistrictInfoStatusCallable(const DescribeNumberDistrictInfoStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeNumberDistrictInfoStatusOutcome()>>(
[this, request]()
{
return this->describeNumberDistrictInfoStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::DescribeScriptOutcome OutboundBotClient::describeScript(const DescribeScriptRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1635,6 +1815,42 @@ OutboundBotClient::DialogueOutcomeCallable OutboundBotClient::dialogueCallable(c
return task->get_future();
}
OutboundBotClient::DismissNumberDistrictInfoParsingResultOutcome OutboundBotClient::dismissNumberDistrictInfoParsingResult(const DismissNumberDistrictInfoParsingResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DismissNumberDistrictInfoParsingResultOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DismissNumberDistrictInfoParsingResultOutcome(DismissNumberDistrictInfoParsingResultResult(outcome.result()));
else
return DismissNumberDistrictInfoParsingResultOutcome(outcome.error());
}
void OutboundBotClient::dismissNumberDistrictInfoParsingResultAsync(const DismissNumberDistrictInfoParsingResultRequest& request, const DismissNumberDistrictInfoParsingResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, dismissNumberDistrictInfoParsingResult(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::DismissNumberDistrictInfoParsingResultOutcomeCallable OutboundBotClient::dismissNumberDistrictInfoParsingResultCallable(const DismissNumberDistrictInfoParsingResultRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DismissNumberDistrictInfoParsingResultOutcome()>>(
[this, request]()
{
return this->dismissNumberDistrictInfoParsingResult(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::DownloadRecordingOutcome OutboundBotClient::downloadRecording(const DownloadRecordingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2139,6 +2355,42 @@ OutboundBotClient::GetMaxAttemptsPerDayOutcomeCallable OutboundBotClient::getMax
return task->get_future();
}
OutboundBotClient::GetNumberDistrictInfoTemplateDownloadUrlOutcome OutboundBotClient::getNumberDistrictInfoTemplateDownloadUrl(const GetNumberDistrictInfoTemplateDownloadUrlRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetNumberDistrictInfoTemplateDownloadUrlOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetNumberDistrictInfoTemplateDownloadUrlOutcome(GetNumberDistrictInfoTemplateDownloadUrlResult(outcome.result()));
else
return GetNumberDistrictInfoTemplateDownloadUrlOutcome(outcome.error());
}
void OutboundBotClient::getNumberDistrictInfoTemplateDownloadUrlAsync(const GetNumberDistrictInfoTemplateDownloadUrlRequest& request, const GetNumberDistrictInfoTemplateDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getNumberDistrictInfoTemplateDownloadUrl(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::GetNumberDistrictInfoTemplateDownloadUrlOutcomeCallable OutboundBotClient::getNumberDistrictInfoTemplateDownloadUrlCallable(const GetNumberDistrictInfoTemplateDownloadUrlRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetNumberDistrictInfoTemplateDownloadUrlOutcome()>>(
[this, request]()
{
return this->getNumberDistrictInfoTemplateDownloadUrl(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::GetSummaryInfoOutcome OutboundBotClient::getSummaryInfo(const GetSummaryInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2319,6 +2571,42 @@ OutboundBotClient::InflightTaskTimeoutOutcomeCallable OutboundBotClient::infligh
return task->get_future();
}
OutboundBotClient::ListChatbotInstancesOutcome OutboundBotClient::listChatbotInstances(const ListChatbotInstancesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListChatbotInstancesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListChatbotInstancesOutcome(ListChatbotInstancesResult(outcome.result()));
else
return ListChatbotInstancesOutcome(outcome.error());
}
void OutboundBotClient::listChatbotInstancesAsync(const ListChatbotInstancesRequest& request, const ListChatbotInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listChatbotInstances(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::ListChatbotInstancesOutcomeCallable OutboundBotClient::listChatbotInstancesCallable(const ListChatbotInstancesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListChatbotInstancesOutcome()>>(
[this, request]()
{
return this->listChatbotInstances(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::ListDialogueFlowsOutcome OutboundBotClient::listDialogueFlows(const ListDialogueFlowsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/ApplyNumberDistrictInfoParsingResultRequest.h>
using AlibabaCloud::OutboundBot::Model::ApplyNumberDistrictInfoParsingResultRequest;
ApplyNumberDistrictInfoParsingResultRequest::ApplyNumberDistrictInfoParsingResultRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ApplyNumberDistrictInfoParsingResult")
{
setMethod(HttpRequest::Method::Post);
}
ApplyNumberDistrictInfoParsingResultRequest::~ApplyNumberDistrictInfoParsingResultRequest()
{}
std::string ApplyNumberDistrictInfoParsingResultRequest::getVersionId()const
{
return versionId_;
}
void ApplyNumberDistrictInfoParsingResultRequest::setVersionId(const std::string& versionId)
{
versionId_ = versionId;
setParameter("VersionId", versionId);
}

View File

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

View File

@@ -128,3 +128,14 @@ void CreateBatchRepeatJobRequest::setSourceGroupId(const std::string& sourceGrou
setParameter("SourceGroupId", sourceGroupId);
}
long CreateBatchRepeatJobRequest::getRingingDuration()const
{
return ringingDuration_;
}
void CreateBatchRepeatJobRequest::setRingingDuration(long ringingDuration)
{
ringingDuration_ = ringingDuration;
setParameter("RingingDuration", std::to_string(ringingDuration));
}

View File

@@ -42,6 +42,8 @@ void CreateBatchRepeatJobResult::parse(const std::string &payload)
auto jobGroupNode = value["JobGroup"];
if(!jobGroupNode["Id"].isNull())
jobGroup_.id = jobGroupNode["Id"].asString();
if(!jobGroupNode["RingingDuration"].isNull())
jobGroup_.ringingDuration = std::stol(jobGroupNode["RingingDuration"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())

View File

@@ -106,6 +106,17 @@ void CreateJobGroupRequest::setStrategyJson(const std::string& strategyJson)
setParameter("StrategyJson", strategyJson);
}
long CreateJobGroupRequest::getRingingDuration()const
{
return ringingDuration_;
}
void CreateJobGroupRequest::setRingingDuration(long ringingDuration)
{
ringingDuration_ = ringingDuration;
setParameter("RingingDuration", std::to_string(ringingDuration));
}
std::string CreateJobGroupRequest::getScenarioId()const
{
return scenarioId_;

View File

@@ -62,6 +62,8 @@ void CreateJobGroupResult::parse(const std::string &payload)
jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString();
if(!jobGroupNode["ModifyTime"].isNull())
jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString();
if(!jobGroupNode["RingingDuration"].isNull())
jobGroup_.ringingDuration = std::stol(jobGroupNode["RingingDuration"].asString());
auto exportProgressNode = jobGroupNode["ExportProgress"];
if(!exportProgressNode["Status"].isNull())
jobGroup_.exportProgress.status = exportProgressNode["Status"].asString();

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/CreateNumberDistrictInfoDownloadUrlRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateNumberDistrictInfoDownloadUrlRequest;
CreateNumberDistrictInfoDownloadUrlRequest::CreateNumberDistrictInfoDownloadUrlRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateNumberDistrictInfoDownloadUrl")
{
setMethod(HttpRequest::Method::Post);
}
CreateNumberDistrictInfoDownloadUrlRequest::~CreateNumberDistrictInfoDownloadUrlRequest()
{}
std::string CreateNumberDistrictInfoDownloadUrlRequest::getVersionId()const
{
return versionId_;
}
void CreateNumberDistrictInfoDownloadUrlRequest::setVersionId(const std::string& versionId)
{
versionId_ = versionId;
setParameter("VersionId", versionId);
}

View File

@@ -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 <alibabacloud/outboundbot/model/CreateNumberDistrictInfoDownloadUrlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateNumberDistrictInfoDownloadUrlResult::CreateNumberDistrictInfoDownloadUrlResult() :
ServiceResult()
{}
CreateNumberDistrictInfoDownloadUrlResult::CreateNumberDistrictInfoDownloadUrlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNumberDistrictInfoDownloadUrlResult::~CreateNumberDistrictInfoDownloadUrlResult()
{}
void CreateNumberDistrictInfoDownloadUrlResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].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";
if(!value["FileHttpUrl"].isNull())
fileHttpUrl_ = value["FileHttpUrl"].asString();
}
std::string CreateNumberDistrictInfoDownloadUrlResult::getMessage()const
{
return message_;
}
int CreateNumberDistrictInfoDownloadUrlResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateNumberDistrictInfoDownloadUrlResult::getFileHttpUrl()const
{
return fileHttpUrl_;
}
std::string CreateNumberDistrictInfoDownloadUrlResult::getCode()const
{
return code_;
}
bool CreateNumberDistrictInfoDownloadUrlResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/CreateNumberDistrictInfoParsingTaskRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateNumberDistrictInfoParsingTaskRequest;
CreateNumberDistrictInfoParsingTaskRequest::CreateNumberDistrictInfoParsingTaskRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateNumberDistrictInfoParsingTask")
{
setMethod(HttpRequest::Method::Post);
}
CreateNumberDistrictInfoParsingTaskRequest::~CreateNumberDistrictInfoParsingTaskRequest()
{}
long CreateNumberDistrictInfoParsingTaskRequest::getFileSize()const
{
return fileSize_;
}
void CreateNumberDistrictInfoParsingTaskRequest::setFileSize(long fileSize)
{
fileSize_ = fileSize;
setParameter("FileSize", std::to_string(fileSize));
}
std::string CreateNumberDistrictInfoParsingTaskRequest::getFilePath()const
{
return filePath_;
}
void CreateNumberDistrictInfoParsingTaskRequest::setFilePath(const std::string& filePath)
{
filePath_ = filePath;
setParameter("FilePath", filePath);
}

View File

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

View File

@@ -0,0 +1,29 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoRequest.h>
using AlibabaCloud::OutboundBot::Model::DeleteAllNumberDistrictInfoRequest;
DeleteAllNumberDistrictInfoRequest::DeleteAllNumberDistrictInfoRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DeleteAllNumberDistrictInfo")
{
setMethod(HttpRequest::Method::Post);
}
DeleteAllNumberDistrictInfoRequest::~DeleteAllNumberDistrictInfoRequest()
{}

View File

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

View File

@@ -40,24 +40,26 @@ void DescribeJobDataParsingTaskProgressResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto progressNode = value["Progress"];
if(!progressNode["Status"].isNull())
progress_.status = progressNode["Status"].asString();
if(!progressNode["FailErrorCode"].isNull())
progress_.failErrorCode = progressNode["FailErrorCode"].asString();
if(!progressNode["FailReason"].isNull())
progress_.failReason = progressNode["FailReason"].asString();
if(!progressNode["TotalJobCount"].isNull())
progress_.totalJobCount = std::stoi(progressNode["TotalJobCount"].asString());
if(!progressNode["Status"].isNull())
progress_.status = progressNode["Status"].asString();
if(!progressNode["HandledJobCount"].isNull())
progress_.handledJobCount = std::stoi(progressNode["HandledJobCount"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!progressNode["TotalJobCount"].isNull())
progress_.totalJobCount = std::stoi(progressNode["TotalJobCount"].asString());
if(!progressNode["FailReason"].isNull())
progress_.failReason = progressNode["FailReason"].asString();
if(!progressNode["FeedbackUrl"].isNull())
progress_.feedbackUrl = progressNode["FeedbackUrl"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -64,6 +64,8 @@ void DescribeJobGroupResult::parse(const std::string &payload)
jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString();
if(!jobGroupNode["ScriptVersion"].isNull())
jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString();
if(!jobGroupNode["RingingDuration"].isNull())
jobGroup_.ringingDuration = std::stol(jobGroupNode["RingingDuration"].asString());
auto exportProgressNode = jobGroupNode["ExportProgress"];
if(!exportProgressNode["Status"].isNull())
jobGroup_.exportProgress.status = exportProgressNode["Status"].asString();

View File

@@ -0,0 +1,29 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/DescribeNumberDistrictInfoStatusRequest.h>
using AlibabaCloud::OutboundBot::Model::DescribeNumberDistrictInfoStatusRequest;
DescribeNumberDistrictInfoStatusRequest::DescribeNumberDistrictInfoStatusRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeNumberDistrictInfoStatus")
{
setMethod(HttpRequest::Method::Post);
}
DescribeNumberDistrictInfoStatusRequest::~DescribeNumberDistrictInfoStatusRequest()
{}

View File

@@ -0,0 +1,105 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/DescribeNumberDistrictInfoStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeNumberDistrictInfoStatusResult::DescribeNumberDistrictInfoStatusResult() :
ServiceResult()
{}
DescribeNumberDistrictInfoStatusResult::DescribeNumberDistrictInfoStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeNumberDistrictInfoStatusResult::~DescribeNumberDistrictInfoStatusResult()
{}
void DescribeNumberDistrictInfoStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto appliedVersionNode = value["AppliedVersion"];
if(!appliedVersionNode["VersionId"].isNull())
appliedVersion_.versionId = appliedVersionNode["VersionId"].asString();
if(!appliedVersionNode["FileName"].isNull())
appliedVersion_.fileName = appliedVersionNode["FileName"].asString();
if(!appliedVersionNode["FileSize"].isNull())
appliedVersion_.fileSize = std::stol(appliedVersionNode["FileSize"].asString());
auto parsingVersionNode = value["ParsingVersion"];
if(!parsingVersionNode["VersionId"].isNull())
parsingVersion_.versionId = parsingVersionNode["VersionId"].asString();
if(!parsingVersionNode["FileName"].isNull())
parsingVersion_.fileName = parsingVersionNode["FileName"].asString();
if(!parsingVersionNode["FileSize"].isNull())
parsingVersion_.fileSize = std::stol(parsingVersionNode["FileSize"].asString());
if(!parsingVersionNode["ParseProgress"].isNull())
parsingVersion_.parseProgress = std::stol(parsingVersionNode["ParseProgress"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].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";
if(!value["Status"].isNull())
status_ = value["Status"].asString();
}
std::string DescribeNumberDistrictInfoStatusResult::getStatus()const
{
return status_;
}
DescribeNumberDistrictInfoStatusResult::AppliedVersion DescribeNumberDistrictInfoStatusResult::getAppliedVersion()const
{
return appliedVersion_;
}
DescribeNumberDistrictInfoStatusResult::ParsingVersion DescribeNumberDistrictInfoStatusResult::getParsingVersion()const
{
return parsingVersion_;
}
std::string DescribeNumberDistrictInfoStatusResult::getMessage()const
{
return message_;
}
int DescribeNumberDistrictInfoStatusResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeNumberDistrictInfoStatusResult::getCode()const
{
return code_;
}
bool DescribeNumberDistrictInfoStatusResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/DismissNumberDistrictInfoParsingResultRequest.h>
using AlibabaCloud::OutboundBot::Model::DismissNumberDistrictInfoParsingResultRequest;
DismissNumberDistrictInfoParsingResultRequest::DismissNumberDistrictInfoParsingResultRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DismissNumberDistrictInfoParsingResult")
{
setMethod(HttpRequest::Method::Post);
}
DismissNumberDistrictInfoParsingResultRequest::~DismissNumberDistrictInfoParsingResultRequest()
{}
std::string DismissNumberDistrictInfoParsingResultRequest::getVersionId()const
{
return versionId_;
}
void DismissNumberDistrictInfoParsingResultRequest::setVersionId(const std::string& versionId)
{
versionId_ = versionId;
setParameter("VersionId", versionId);
}

View File

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

View File

@@ -0,0 +1,29 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.h>
using AlibabaCloud::OutboundBot::Model::GetNumberDistrictInfoTemplateDownloadUrlRequest;
GetNumberDistrictInfoTemplateDownloadUrlRequest::GetNumberDistrictInfoTemplateDownloadUrlRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "GetNumberDistrictInfoTemplateDownloadUrl")
{
setMethod(HttpRequest::Method::Post);
}
GetNumberDistrictInfoTemplateDownloadUrlRequest::~GetNumberDistrictInfoTemplateDownloadUrlRequest()
{}

View File

@@ -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 <alibabacloud/outboundbot/model/GetNumberDistrictInfoTemplateDownloadUrlResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
GetNumberDistrictInfoTemplateDownloadUrlResult::GetNumberDistrictInfoTemplateDownloadUrlResult() :
ServiceResult()
{}
GetNumberDistrictInfoTemplateDownloadUrlResult::GetNumberDistrictInfoTemplateDownloadUrlResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetNumberDistrictInfoTemplateDownloadUrlResult::~GetNumberDistrictInfoTemplateDownloadUrlResult()
{}
void GetNumberDistrictInfoTemplateDownloadUrlResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].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";
if(!value["FileHttpUrl"].isNull())
fileHttpUrl_ = value["FileHttpUrl"].asString();
}
std::string GetNumberDistrictInfoTemplateDownloadUrlResult::getMessage()const
{
return message_;
}
int GetNumberDistrictInfoTemplateDownloadUrlResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string GetNumberDistrictInfoTemplateDownloadUrlResult::getFileHttpUrl()const
{
return fileHttpUrl_;
}
std::string GetNumberDistrictInfoTemplateDownloadUrlResult::getCode()const
{
return code_;
}
bool GetNumberDistrictInfoTemplateDownloadUrlResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/ListChatbotInstancesRequest.h>
using AlibabaCloud::OutboundBot::Model::ListChatbotInstancesRequest;
ListChatbotInstancesRequest::ListChatbotInstancesRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListChatbotInstances")
{
setMethod(HttpRequest::Method::Post);
}
ListChatbotInstancesRequest::~ListChatbotInstancesRequest()
{}
int ListChatbotInstancesRequest::getPageNumber()const
{
return pageNumber_;
}
void ListChatbotInstancesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
int ListChatbotInstancesRequest::getPageSize()const
{
return pageSize_;
}
void ListChatbotInstancesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,118 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/outboundbot/model/ListChatbotInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListChatbotInstancesResult::ListChatbotInstancesResult() :
ServiceResult()
{}
ListChatbotInstancesResult::ListChatbotInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListChatbotInstancesResult::~ListChatbotInstancesResult()
{}
void ListChatbotInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBotsNode = value["Bots"]["Bot"];
for (auto valueBotsBot : allBotsNode)
{
Bot botsObject;
if(!valueBotsBot["Introduction"].isNull())
botsObject.introduction = valueBotsBot["Introduction"].asString();
if(!valueBotsBot["Avatar"].isNull())
botsObject.avatar = valueBotsBot["Avatar"].asString();
if(!valueBotsBot["TimeZone"].isNull())
botsObject.timeZone = valueBotsBot["TimeZone"].asString();
if(!valueBotsBot["CreateTime"].isNull())
botsObject.createTime = valueBotsBot["CreateTime"].asString();
if(!valueBotsBot["LanguageCode"].isNull())
botsObject.languageCode = valueBotsBot["LanguageCode"].asString();
if(!valueBotsBot["InstanceId"].isNull())
botsObject.instanceId = valueBotsBot["InstanceId"].asString();
if(!valueBotsBot["Name"].isNull())
botsObject.name = valueBotsBot["Name"].asString();
bots_.push_back(botsObject);
}
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].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";
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListChatbotInstancesResult::getTotalCount()const
{
return totalCount_;
}
std::vector<ListChatbotInstancesResult::Bot> ListChatbotInstancesResult::getBots()const
{
return bots_;
}
std::string ListChatbotInstancesResult::getMessage()const
{
return message_;
}
long ListChatbotInstancesResult::getPageSize()const
{
return pageSize_;
}
long ListChatbotInstancesResult::getPageNumber()const
{
return pageNumber_;
}
int ListChatbotInstancesResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string ListChatbotInstancesResult::getCode()const
{
return code_;
}
bool ListChatbotInstancesResult::getSuccess()const
{
return success_;
}

View File

@@ -60,6 +60,50 @@ void ModifyJobGroupRequest::setScriptId(const std::string& scriptId)
setParameter("ScriptId", scriptId);
}
std::string ModifyJobGroupRequest::getStrategyJson()const
{
return strategyJson_;
}
void ModifyJobGroupRequest::setStrategyJson(const std::string& strategyJson)
{
strategyJson_ = strategyJson;
setParameter("StrategyJson", strategyJson);
}
long ModifyJobGroupRequest::getRingingDuration()const
{
return ringingDuration_;
}
void ModifyJobGroupRequest::setRingingDuration(long ringingDuration)
{
ringingDuration_ = ringingDuration;
setParameter("RingingDuration", std::to_string(ringingDuration));
}
std::string ModifyJobGroupRequest::getScenarioId()const
{
return scenarioId_;
}
void ModifyJobGroupRequest::setScenarioId(const std::string& scenarioId)
{
scenarioId_ = scenarioId;
setParameter("ScenarioId", scenarioId);
}
std::string ModifyJobGroupRequest::getJobGroupStatus()const
{
return jobGroupStatus_;
}
void ModifyJobGroupRequest::setJobGroupStatus(const std::string& jobGroupStatus)
{
jobGroupStatus_ = jobGroupStatus;
setParameter("JobGroupStatus", jobGroupStatus);
}
std::vector<std::string> ModifyJobGroupRequest::getCallingNumber()const
{
return callingNumber_;
@@ -84,17 +128,6 @@ void ModifyJobGroupRequest::setInstanceId(const std::string& instanceId)
setParameter("InstanceId", instanceId);
}
std::string ModifyJobGroupRequest::getStrategyJson()const
{
return strategyJson_;
}
void ModifyJobGroupRequest::setStrategyJson(const std::string& strategyJson)
{
strategyJson_ = strategyJson;
setParameter("StrategyJson", strategyJson);
}
std::string ModifyJobGroupRequest::getJobGroupId()const
{
return jobGroupId_;
@@ -117,14 +150,3 @@ void ModifyJobGroupRequest::setName(const std::string& name)
setParameter("Name", name);
}
std::string ModifyJobGroupRequest::getScenarioId()const
{
return scenarioId_;
}
void ModifyJobGroupRequest::setScenarioId(const std::string& scenarioId)
{
scenarioId_ = scenarioId;
setParameter("ScenarioId", scenarioId);
}

View File

@@ -62,6 +62,8 @@ void ModifyJobGroupResult::parse(const std::string &payload)
jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString();
if(!jobGroupNode["ModifyTime"].isNull())
jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString();
if(!jobGroupNode["RingingDuration"].isNull())
jobGroup_.ringingDuration = std::stol(jobGroupNode["RingingDuration"].asString());
auto exportProgressNode = jobGroupNode["ExportProgress"];
if(!exportProgressNode["Status"].isNull())
jobGroup_.exportProgress.status = exportProgressNode["Status"].asString();

View File

@@ -39,14 +39,14 @@ void SaveAfterAnswerDelayPlaybackResult::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["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -39,14 +39,14 @@ void SaveBaseStrategyPeriodResult::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["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -39,16 +39,16 @@ void SaveContactBlockListResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["AffectedRows"].isNull())
affectedRows_ = std::stoi(value["AffectedRows"].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["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["AffectedRows"].isNull())
affectedRows_ = std::stoi(value["AffectedRows"].asString());
}

View File

@@ -39,16 +39,16 @@ void SaveContactWhiteListResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["AffectedRows"].isNull())
affectedRows_ = std::stoi(value["AffectedRows"].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["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["AffectedRows"].isNull())
affectedRows_ = std::stoi(value["AffectedRows"].asString());
}

View File

@@ -39,14 +39,14 @@ void SaveMaxAttemptsPerDayResult::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["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -39,14 +39,14 @@ void SuspendCallResult::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["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}