Supported new features for outbound.

This commit is contained in:
sdk-team
2022-03-07 12:29:43 +00:00
parent e23adc1324
commit a0cde540cb
37 changed files with 1672 additions and 74 deletions

View File

@@ -41,6 +41,8 @@ set(outboundbot_public_header_model
include/alibabacloud/outboundbot/model/CreateGlobalQuestionResult.h
include/alibabacloud/outboundbot/model/CreateInstanceRequest.h
include/alibabacloud/outboundbot/model/CreateInstanceResult.h
include/alibabacloud/outboundbot/model/CreateInstanceBindNumberRequest.h
include/alibabacloud/outboundbot/model/CreateInstanceBindNumberResult.h
include/alibabacloud/outboundbot/model/CreateIntentRequest.h
include/alibabacloud/outboundbot/model/CreateIntentResult.h
include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskRequest.h
@@ -61,6 +63,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/CreateTaskExportTaskRequest.h
include/alibabacloud/outboundbot/model/CreateTaskExportTaskResult.h
include/alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoRequest.h
include/alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoResult.h
include/alibabacloud/outboundbot/model/DeleteContactBlockListRequest.h
@@ -117,6 +121,8 @@ set(outboundbot_public_header_model
include/alibabacloud/outboundbot/model/DescribeTTSDemoResult.h
include/alibabacloud/outboundbot/model/DescribeTagHitsSummaryRequest.h
include/alibabacloud/outboundbot/model/DescribeTagHitsSummaryResult.h
include/alibabacloud/outboundbot/model/DescribeTenantBindNumberRequest.h
include/alibabacloud/outboundbot/model/DescribeTenantBindNumberResult.h
include/alibabacloud/outboundbot/model/DialogueRequest.h
include/alibabacloud/outboundbot/model/DialogueResult.h
include/alibabacloud/outboundbot/model/DismissNumberDistrictInfoParsingResultRequest.h
@@ -161,6 +167,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/ListAllTenantBindNumberBindingRequest.h
include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingResult.h
include/alibabacloud/outboundbot/model/ListChatbotInstancesRequest.h
include/alibabacloud/outboundbot/model/ListChatbotInstancesResult.h
include/alibabacloud/outboundbot/model/ListDialogueFlowsRequest.h
@@ -300,6 +308,8 @@ set(outboundbot_src
src/model/CreateGlobalQuestionResult.cc
src/model/CreateInstanceRequest.cc
src/model/CreateInstanceResult.cc
src/model/CreateInstanceBindNumberRequest.cc
src/model/CreateInstanceBindNumberResult.cc
src/model/CreateIntentRequest.cc
src/model/CreateIntentResult.cc
src/model/CreateJobDataParsingTaskRequest.cc
@@ -320,6 +330,8 @@ set(outboundbot_src
src/model/CreateScriptWaveformResult.cc
src/model/CreateTagRequest.cc
src/model/CreateTagResult.cc
src/model/CreateTaskExportTaskRequest.cc
src/model/CreateTaskExportTaskResult.cc
src/model/DeleteAllNumberDistrictInfoRequest.cc
src/model/DeleteAllNumberDistrictInfoResult.cc
src/model/DeleteContactBlockListRequest.cc
@@ -376,6 +388,8 @@ set(outboundbot_src
src/model/DescribeTTSDemoResult.cc
src/model/DescribeTagHitsSummaryRequest.cc
src/model/DescribeTagHitsSummaryResult.cc
src/model/DescribeTenantBindNumberRequest.cc
src/model/DescribeTenantBindNumberResult.cc
src/model/DialogueRequest.cc
src/model/DialogueResult.cc
src/model/DismissNumberDistrictInfoParsingResultRequest.cc
@@ -420,6 +434,8 @@ set(outboundbot_src
src/model/ImportScriptResult.cc
src/model/InflightTaskTimeoutRequest.cc
src/model/InflightTaskTimeoutResult.cc
src/model/ListAllTenantBindNumberBindingRequest.cc
src/model/ListAllTenantBindNumberBindingResult.cc
src/model/ListChatbotInstancesRequest.cc
src/model/ListChatbotInstancesResult.cc
src/model/ListDialogueFlowsRequest.cc

View File

@@ -42,6 +42,8 @@
#include "model/CreateGlobalQuestionResult.h"
#include "model/CreateInstanceRequest.h"
#include "model/CreateInstanceResult.h"
#include "model/CreateInstanceBindNumberRequest.h"
#include "model/CreateInstanceBindNumberResult.h"
#include "model/CreateIntentRequest.h"
#include "model/CreateIntentResult.h"
#include "model/CreateJobDataParsingTaskRequest.h"
@@ -62,6 +64,8 @@
#include "model/CreateScriptWaveformResult.h"
#include "model/CreateTagRequest.h"
#include "model/CreateTagResult.h"
#include "model/CreateTaskExportTaskRequest.h"
#include "model/CreateTaskExportTaskResult.h"
#include "model/DeleteAllNumberDistrictInfoRequest.h"
#include "model/DeleteAllNumberDistrictInfoResult.h"
#include "model/DeleteContactBlockListRequest.h"
@@ -118,6 +122,8 @@
#include "model/DescribeTTSDemoResult.h"
#include "model/DescribeTagHitsSummaryRequest.h"
#include "model/DescribeTagHitsSummaryResult.h"
#include "model/DescribeTenantBindNumberRequest.h"
#include "model/DescribeTenantBindNumberResult.h"
#include "model/DialogueRequest.h"
#include "model/DialogueResult.h"
#include "model/DismissNumberDistrictInfoParsingResultRequest.h"
@@ -162,6 +168,8 @@
#include "model/ImportScriptResult.h"
#include "model/InflightTaskTimeoutRequest.h"
#include "model/InflightTaskTimeoutResult.h"
#include "model/ListAllTenantBindNumberBindingRequest.h"
#include "model/ListAllTenantBindNumberBindingResult.h"
#include "model/ListChatbotInstancesRequest.h"
#include "model/ListChatbotInstancesResult.h"
#include "model/ListDialogueFlowsRequest.h"
@@ -317,6 +325,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateInstanceResult> CreateInstanceOutcome;
typedef std::future<CreateInstanceOutcome> CreateInstanceOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::CreateInstanceRequest&, const CreateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceAsyncHandler;
typedef Outcome<Error, Model::CreateInstanceBindNumberResult> CreateInstanceBindNumberOutcome;
typedef std::future<CreateInstanceBindNumberOutcome> CreateInstanceBindNumberOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::CreateInstanceBindNumberRequest&, const CreateInstanceBindNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceBindNumberAsyncHandler;
typedef Outcome<Error, Model::CreateIntentResult> CreateIntentOutcome;
typedef std::future<CreateIntentOutcome> CreateIntentOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::CreateIntentRequest&, const CreateIntentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateIntentAsyncHandler;
@@ -347,6 +358,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::CreateTaskExportTaskResult> CreateTaskExportTaskOutcome;
typedef std::future<CreateTaskExportTaskOutcome> CreateTaskExportTaskOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::CreateTaskExportTaskRequest&, const CreateTaskExportTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTaskExportTaskAsyncHandler;
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;
@@ -431,6 +445,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeTagHitsSummaryResult> DescribeTagHitsSummaryOutcome;
typedef std::future<DescribeTagHitsSummaryOutcome> DescribeTagHitsSummaryOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::DescribeTagHitsSummaryRequest&, const DescribeTagHitsSummaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTagHitsSummaryAsyncHandler;
typedef Outcome<Error, Model::DescribeTenantBindNumberResult> DescribeTenantBindNumberOutcome;
typedef std::future<DescribeTenantBindNumberOutcome> DescribeTenantBindNumberOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::DescribeTenantBindNumberRequest&, const DescribeTenantBindNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTenantBindNumberAsyncHandler;
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;
@@ -497,6 +514,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::ListAllTenantBindNumberBindingResult> ListAllTenantBindNumberBindingOutcome;
typedef std::future<ListAllTenantBindNumberBindingOutcome> ListAllTenantBindNumberBindingOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::ListAllTenantBindNumberBindingRequest&, const ListAllTenantBindNumberBindingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAllTenantBindNumberBindingAsyncHandler;
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;
@@ -706,6 +726,9 @@ namespace AlibabaCloud
CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const;
void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const;
CreateInstanceBindNumberOutcome createInstanceBindNumber(const Model::CreateInstanceBindNumberRequest &request)const;
void createInstanceBindNumberAsync(const Model::CreateInstanceBindNumberRequest& request, const CreateInstanceBindNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateInstanceBindNumberOutcomeCallable createInstanceBindNumberCallable(const Model::CreateInstanceBindNumberRequest& request) const;
CreateIntentOutcome createIntent(const Model::CreateIntentRequest &request)const;
void createIntentAsync(const Model::CreateIntentRequest& request, const CreateIntentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateIntentOutcomeCallable createIntentCallable(const Model::CreateIntentRequest& request) const;
@@ -736,6 +759,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;
CreateTaskExportTaskOutcome createTaskExportTask(const Model::CreateTaskExportTaskRequest &request)const;
void createTaskExportTaskAsync(const Model::CreateTaskExportTaskRequest& request, const CreateTaskExportTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateTaskExportTaskOutcomeCallable createTaskExportTaskCallable(const Model::CreateTaskExportTaskRequest& 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;
@@ -820,6 +846,9 @@ namespace AlibabaCloud
DescribeTagHitsSummaryOutcome describeTagHitsSummary(const Model::DescribeTagHitsSummaryRequest &request)const;
void describeTagHitsSummaryAsync(const Model::DescribeTagHitsSummaryRequest& request, const DescribeTagHitsSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeTagHitsSummaryOutcomeCallable describeTagHitsSummaryCallable(const Model::DescribeTagHitsSummaryRequest& request) const;
DescribeTenantBindNumberOutcome describeTenantBindNumber(const Model::DescribeTenantBindNumberRequest &request)const;
void describeTenantBindNumberAsync(const Model::DescribeTenantBindNumberRequest& request, const DescribeTenantBindNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeTenantBindNumberOutcomeCallable describeTenantBindNumberCallable(const Model::DescribeTenantBindNumberRequest& request) const;
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;
@@ -886,6 +915,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;
ListAllTenantBindNumberBindingOutcome listAllTenantBindNumberBinding(const Model::ListAllTenantBindNumberBindingRequest &request)const;
void listAllTenantBindNumberBindingAsync(const Model::ListAllTenantBindNumberBindingRequest& request, const ListAllTenantBindNumberBindingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListAllTenantBindNumberBindingOutcomeCallable listAllTenantBindNumberBindingCallable(const Model::ListAllTenantBindNumberBindingRequest& 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;

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_CREATEINSTANCEBINDNUMBERREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERREQUEST_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 CreateInstanceBindNumberRequest : public RpcServiceRequest
{
public:
CreateInstanceBindNumberRequest();
~CreateInstanceBindNumberRequest();
std::string getInstanceList()const;
void setInstanceList(const std::string& instanceList);
std::string getNumber()const;
void setNumber(const std::string& number);
private:
std::string instanceList_;
std::string number_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERREQUEST_H_

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_CREATEINSTANCEBINDNUMBERRESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERRESULT_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 CreateInstanceBindNumberResult : public ServiceResult
{
public:
struct Data
{
struct ListItem
{
std::string instanceId;
bool success;
};
std::vector<ListItem> list;
};
CreateInstanceBindNumberResult();
explicit CreateInstanceBindNumberResult(const std::string &payload);
~CreateInstanceBindNumberResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERRESULT_H_

View File

@@ -0,0 +1,123 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_CREATETASKEXPORTTASKREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKREQUEST_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 CreateTaskExportTaskRequest : public RpcServiceRequest
{
public:
CreateTaskExportTaskRequest();
~CreateTaskExportTaskRequest();
bool getHasAnswered()const;
void setHasAnswered(bool hasAnswered);
long getActualTimeLte()const;
void setActualTimeLte(long actualTimeLte);
std::string getOtherId()const;
void setOtherId(const std::string& otherId);
long getTaskCreateTimeLte()const;
void setTaskCreateTimeLte(long taskCreateTimeLte);
std::string getJobId()const;
void setJobId(const std::string& jobId);
long getTaskCreateTimeGte()const;
void setTaskCreateTimeGte(long taskCreateTimeGte);
std::string getCalledNumber()const;
void setCalledNumber(const std::string& calledNumber);
std::string getUserIdMatch()const;
void setUserIdMatch(const std::string& userIdMatch);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getScriptNameQuery()const;
void setScriptNameQuery(const std::string& scriptNameQuery);
int getPageIndex()const;
void setPageIndex(int pageIndex);
std::string getSortOrder()const;
void setSortOrder(const std::string& sortOrder);
std::string getTaskStatusStringList()const;
void setTaskStatusStringList(const std::string& taskStatusStringList);
std::string getJobGroupNameQuery()const;
void setJobGroupNameQuery(const std::string& jobGroupNameQuery);
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
bool getHasHangUpByRejection()const;
void setHasHangUpByRejection(bool hasHangUpByRejection);
bool getHasReachedEndOfFlow()const;
void setHasReachedEndOfFlow(bool hasReachedEndOfFlow);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
long getRecordingDurationGte()const;
void setRecordingDurationGte(long recordingDurationGte);
long getCallDurationLte()const;
void setCallDurationLte(long callDurationLte);
std::string getJobGroupId()const;
void setJobGroupId(const std::string& jobGroupId);
std::string getSortBy()const;
void setSortBy(const std::string& sortBy);
std::string getJobStatusStringList()const;
void setJobStatusStringList(const std::string& jobStatusStringList);
long getActualTimeGte()const;
void setActualTimeGte(long actualTimeGte);
long getCallDurationGte()const;
void setCallDurationGte(long callDurationGte);
long getRecordingDurationLte()const;
void setRecordingDurationLte(long recordingDurationLte);
private:
bool hasAnswered_;
long actualTimeLte_;
std::string otherId_;
long taskCreateTimeLte_;
std::string jobId_;
long taskCreateTimeGte_;
std::string calledNumber_;
std::string userIdMatch_;
int pageSize_;
std::string scriptNameQuery_;
int pageIndex_;
std::string sortOrder_;
std::string taskStatusStringList_;
std::string jobGroupNameQuery_;
std::string taskId_;
bool hasHangUpByRejection_;
bool hasReachedEndOfFlow_;
std::string instanceId_;
long recordingDurationGte_;
long callDurationLte_;
std::string jobGroupId_;
std::string sortBy_;
std::string jobStatusStringList_;
long actualTimeGte_;
long callDurationGte_;
long recordingDurationLte_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKREQUEST_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_CREATETASKEXPORTTASKRESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKRESULT_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 CreateTaskExportTaskResult : public ServiceResult
{
public:
CreateTaskExportTaskResult();
explicit CreateTaskExportTaskResult(const std::string &payload);
~CreateTaskExportTaskResult();
std::string getTaskId()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 taskId_;
std::string message_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKRESULT_H_

View File

@@ -62,6 +62,7 @@ namespace AlibabaCloud
std::string getTtsConfig()const;
std::string getCode()const;
bool getSuccess()const;
std::string getNlsConfig()const;
protected:
void parse(const std::string &payload);
@@ -74,6 +75,7 @@ namespace AlibabaCloud
std::string ttsConfig_;
std::string code_;
bool success_;
std::string nlsConfig_;
};
}

View File

@@ -34,10 +34,10 @@ namespace AlibabaCloud
public:
struct TTSConfig
{
std::string instanceId;
std::string volume;
std::string scriptId;
std::string id;
std::string instanceId;
std::string appKey;
std::string nlsServiceType;
std::string voice;
std::string speechRate;
};

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_DESCRIBETENANTBINDNUMBERREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERREQUEST_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 DescribeTenantBindNumberRequest : public RpcServiceRequest
{
public:
DescribeTenantBindNumberRequest();
~DescribeTenantBindNumberRequest();
std::string getNumber()const;
void setNumber(const std::string& number);
private:
std::string number_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERREQUEST_H_

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_DESCRIBETENANTBINDNUMBERRESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERRESULT_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 DescribeTenantBindNumberResult : public ServiceResult
{
public:
struct Data
{
struct ListItem
{
std::string instanceName;
std::string instanceId;
bool isBinding;
};
std::vector<ListItem> list;
};
DescribeTenantBindNumberResult();
explicit DescribeTenantBindNumberResult(const std::string &payload);
~DescribeTenantBindNumberResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERRESULT_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_LISTALLTENANTBINDNUMBERBINDINGREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGREQUEST_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 ListAllTenantBindNumberBindingRequest : public RpcServiceRequest
{
public:
ListAllTenantBindNumberBindingRequest();
~ListAllTenantBindNumberBindingRequest();
std::string getTenant()const;
void setTenant(const std::string& tenant);
private:
std::string tenant_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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_LISTALLTENANTBINDNUMBERBINDINGRESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGRESULT_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 ListAllTenantBindNumberBindingResult : public ServiceResult
{
public:
struct Data
{
struct ListItem
{
std::string serializedParams;
std::string number;
std::vector<std::string> instanceNameList;
std::string bindingId;
std::string trunkName;
};
std::vector<ListItem> list;
};
ListAllTenantBindNumberBindingResult();
explicit ListAllTenantBindNumberBindingResult(const std::string &payload);
~ListAllTenantBindNumberBindingResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGRESULT_H_

View File

@@ -49,6 +49,8 @@ namespace AlibabaCloud
void setScriptWaveform(const std::vector<std::string>& scriptWaveform);
std::string getAsrConfig()const;
void setAsrConfig(const std::string& asrConfig);
std::string getNlsConfig()const;
void setNlsConfig(const std::string& nlsConfig);
bool getMiniPlaybackEnabled()const;
void setMiniPlaybackEnabled(bool miniPlaybackEnabled);
std::string getChatbotId()const;
@@ -68,6 +70,7 @@ namespace AlibabaCloud
std::string scriptId_;
std::vector<std::string> scriptWaveform_;
std::string asrConfig_;
std::string nlsConfig_;
bool miniPlaybackEnabled_;
std::string chatbotId_;
std::string instanceId_;

View File

@@ -34,12 +34,12 @@ namespace AlibabaCloud
public:
struct Script
{
std::string industry;
std::string status;
std::string industry;
bool isDrafted;
std::string scriptName;
std::string scriptDescription;
long updateTime;
std::string scriptDescription;
std::string scriptId;
std::string debugStatus;
std::string scene;

View File

@@ -37,20 +37,26 @@ namespace AlibabaCloud
std::string getVoice()const;
void setVoice(const std::string& voice);
std::string getNlsServiceType()const;
void setNlsServiceType(const std::string& nlsServiceType);
std::string getVolume()const;
void setVolume(const std::string& volume);
std::string getScriptId()const;
void setScriptId(const std::string& scriptId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getAppKey()const;
void setAppKey(const std::string& appKey);
std::string getSpeechRate()const;
void setSpeechRate(const std::string& speechRate);
private:
std::string voice_;
std::string nlsServiceType_;
std::string volume_;
std::string scriptId_;
std::string instanceId_;
std::string appKey_;
std::string speechRate_;
};

View File

@@ -34,10 +34,10 @@ namespace AlibabaCloud
public:
struct TTSConfig
{
std::string instanceId;
std::string volume;
std::string scriptId;
std::string instanceId;
std::string tTSConfigId;
std::string scriptId;
std::string voice;
std::string speechRate;
};

View File

@@ -51,6 +51,8 @@ namespace AlibabaCloud
void setUserIdMatch(const std::string& userIdMatch);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getScriptNameQuery()const;
void setScriptNameQuery(const std::string& scriptNameQuery);
int getPageIndex()const;
void setPageIndex(int pageIndex);
std::string getSortOrder()const;
@@ -89,6 +91,7 @@ namespace AlibabaCloud
std::string calledNumber_;
std::string userIdMatch_;
int pageSize_;
std::string scriptNameQuery_;
int pageIndex_;
std::string sortOrder_;
std::string taskStatusStringList_;

View File

@@ -59,6 +59,7 @@ namespace AlibabaCloud
std::string taskStatusString;
int callDuration;
std::string userId;
std::string scriptName;
std::string jobStatusString;
int recordingDuration;
};

View File

@@ -411,6 +411,42 @@ OutboundBotClient::CreateInstanceOutcomeCallable OutboundBotClient::createInstan
return task->get_future();
}
OutboundBotClient::CreateInstanceBindNumberOutcome OutboundBotClient::createInstanceBindNumber(const CreateInstanceBindNumberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateInstanceBindNumberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateInstanceBindNumberOutcome(CreateInstanceBindNumberResult(outcome.result()));
else
return CreateInstanceBindNumberOutcome(outcome.error());
}
void OutboundBotClient::createInstanceBindNumberAsync(const CreateInstanceBindNumberRequest& request, const CreateInstanceBindNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createInstanceBindNumber(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::CreateInstanceBindNumberOutcomeCallable OutboundBotClient::createInstanceBindNumberCallable(const CreateInstanceBindNumberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateInstanceBindNumberOutcome()>>(
[this, request]()
{
return this->createInstanceBindNumber(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::CreateIntentOutcome OutboundBotClient::createIntent(const CreateIntentRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -771,6 +807,42 @@ OutboundBotClient::CreateTagOutcomeCallable OutboundBotClient::createTagCallable
return task->get_future();
}
OutboundBotClient::CreateTaskExportTaskOutcome OutboundBotClient::createTaskExportTask(const CreateTaskExportTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateTaskExportTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateTaskExportTaskOutcome(CreateTaskExportTaskResult(outcome.result()));
else
return CreateTaskExportTaskOutcome(outcome.error());
}
void OutboundBotClient::createTaskExportTaskAsync(const CreateTaskExportTaskRequest& request, const CreateTaskExportTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createTaskExportTask(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::CreateTaskExportTaskOutcomeCallable OutboundBotClient::createTaskExportTaskCallable(const CreateTaskExportTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateTaskExportTaskOutcome()>>(
[this, request]()
{
return this->createTaskExportTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::DeleteAllNumberDistrictInfoOutcome OutboundBotClient::deleteAllNumberDistrictInfo(const DeleteAllNumberDistrictInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1779,6 +1851,42 @@ OutboundBotClient::DescribeTagHitsSummaryOutcomeCallable OutboundBotClient::desc
return task->get_future();
}
OutboundBotClient::DescribeTenantBindNumberOutcome OutboundBotClient::describeTenantBindNumber(const DescribeTenantBindNumberRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeTenantBindNumberOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeTenantBindNumberOutcome(DescribeTenantBindNumberResult(outcome.result()));
else
return DescribeTenantBindNumberOutcome(outcome.error());
}
void OutboundBotClient::describeTenantBindNumberAsync(const DescribeTenantBindNumberRequest& request, const DescribeTenantBindNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeTenantBindNumber(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::DescribeTenantBindNumberOutcomeCallable OutboundBotClient::describeTenantBindNumberCallable(const DescribeTenantBindNumberRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeTenantBindNumberOutcome()>>(
[this, request]()
{
return this->describeTenantBindNumber(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::DialogueOutcome OutboundBotClient::dialogue(const DialogueRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2571,6 +2679,42 @@ OutboundBotClient::InflightTaskTimeoutOutcomeCallable OutboundBotClient::infligh
return task->get_future();
}
OutboundBotClient::ListAllTenantBindNumberBindingOutcome OutboundBotClient::listAllTenantBindNumberBinding(const ListAllTenantBindNumberBindingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListAllTenantBindNumberBindingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListAllTenantBindNumberBindingOutcome(ListAllTenantBindNumberBindingResult(outcome.result()));
else
return ListAllTenantBindNumberBindingOutcome(outcome.error());
}
void OutboundBotClient::listAllTenantBindNumberBindingAsync(const ListAllTenantBindNumberBindingRequest& request, const ListAllTenantBindNumberBindingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listAllTenantBindNumberBinding(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::ListAllTenantBindNumberBindingOutcomeCallable OutboundBotClient::listAllTenantBindNumberBindingCallable(const ListAllTenantBindNumberBindingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListAllTenantBindNumberBindingOutcome()>>(
[this, request]()
{
return this->listAllTenantBindNumberBinding(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::ListChatbotInstancesOutcome OutboundBotClient::listChatbotInstances(const ListChatbotInstancesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

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/CreateInstanceBindNumberRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateInstanceBindNumberRequest;
CreateInstanceBindNumberRequest::CreateInstanceBindNumberRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateInstanceBindNumber")
{
setMethod(HttpRequest::Method::Post);
}
CreateInstanceBindNumberRequest::~CreateInstanceBindNumberRequest()
{}
std::string CreateInstanceBindNumberRequest::getInstanceList()const
{
return instanceList_;
}
void CreateInstanceBindNumberRequest::setInstanceList(const std::string& instanceList)
{
instanceList_ = instanceList;
setParameter("InstanceList", instanceList);
}
std::string CreateInstanceBindNumberRequest::getNumber()const
{
return number_;
}
void CreateInstanceBindNumberRequest::setNumber(const std::string& number)
{
number_ = number;
setParameter("Number", number);
}

View File

@@ -0,0 +1,88 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/CreateInstanceBindNumberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateInstanceBindNumberResult::CreateInstanceBindNumberResult() :
ServiceResult()
{}
CreateInstanceBindNumberResult::CreateInstanceBindNumberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateInstanceBindNumberResult::~CreateInstanceBindNumberResult()
{}
void CreateInstanceBindNumberResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allListNode = dataNode["List"]["ListItem"];
for (auto dataNodeListListItem : allListNode)
{
Data::ListItem listItemObject;
if(!dataNodeListListItem["InstanceId"].isNull())
listItemObject.instanceId = dataNodeListListItem["InstanceId"].asString();
if(!dataNodeListListItem["Success"].isNull())
listItemObject.success = dataNodeListListItem["Success"].asString() == "true";
data_.list.push_back(listItemObject);
}
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());
}
std::string CreateInstanceBindNumberResult::getMessage()const
{
return message_;
}
int CreateInstanceBindNumberResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
CreateInstanceBindNumberResult::Data CreateInstanceBindNumberResult::getData()const
{
return data_;
}
std::string CreateInstanceBindNumberResult::getCode()const
{
return code_;
}
bool CreateInstanceBindNumberResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,315 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/CreateTaskExportTaskRequest.h>
using AlibabaCloud::OutboundBot::Model::CreateTaskExportTaskRequest;
CreateTaskExportTaskRequest::CreateTaskExportTaskRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "CreateTaskExportTask")
{
setMethod(HttpRequest::Method::Get);
}
CreateTaskExportTaskRequest::~CreateTaskExportTaskRequest()
{}
bool CreateTaskExportTaskRequest::getHasAnswered()const
{
return hasAnswered_;
}
void CreateTaskExportTaskRequest::setHasAnswered(bool hasAnswered)
{
hasAnswered_ = hasAnswered;
setParameter("HasAnswered", hasAnswered ? "true" : "false");
}
long CreateTaskExportTaskRequest::getActualTimeLte()const
{
return actualTimeLte_;
}
void CreateTaskExportTaskRequest::setActualTimeLte(long actualTimeLte)
{
actualTimeLte_ = actualTimeLte;
setParameter("ActualTimeLte", std::to_string(actualTimeLte));
}
std::string CreateTaskExportTaskRequest::getOtherId()const
{
return otherId_;
}
void CreateTaskExportTaskRequest::setOtherId(const std::string& otherId)
{
otherId_ = otherId;
setParameter("OtherId", otherId);
}
long CreateTaskExportTaskRequest::getTaskCreateTimeLte()const
{
return taskCreateTimeLte_;
}
void CreateTaskExportTaskRequest::setTaskCreateTimeLte(long taskCreateTimeLte)
{
taskCreateTimeLte_ = taskCreateTimeLte;
setParameter("TaskCreateTimeLte", std::to_string(taskCreateTimeLte));
}
std::string CreateTaskExportTaskRequest::getJobId()const
{
return jobId_;
}
void CreateTaskExportTaskRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setParameter("JobId", jobId);
}
long CreateTaskExportTaskRequest::getTaskCreateTimeGte()const
{
return taskCreateTimeGte_;
}
void CreateTaskExportTaskRequest::setTaskCreateTimeGte(long taskCreateTimeGte)
{
taskCreateTimeGte_ = taskCreateTimeGte;
setParameter("TaskCreateTimeGte", std::to_string(taskCreateTimeGte));
}
std::string CreateTaskExportTaskRequest::getCalledNumber()const
{
return calledNumber_;
}
void CreateTaskExportTaskRequest::setCalledNumber(const std::string& calledNumber)
{
calledNumber_ = calledNumber;
setParameter("CalledNumber", calledNumber);
}
std::string CreateTaskExportTaskRequest::getUserIdMatch()const
{
return userIdMatch_;
}
void CreateTaskExportTaskRequest::setUserIdMatch(const std::string& userIdMatch)
{
userIdMatch_ = userIdMatch;
setParameter("UserIdMatch", userIdMatch);
}
int CreateTaskExportTaskRequest::getPageSize()const
{
return pageSize_;
}
void CreateTaskExportTaskRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string CreateTaskExportTaskRequest::getScriptNameQuery()const
{
return scriptNameQuery_;
}
void CreateTaskExportTaskRequest::setScriptNameQuery(const std::string& scriptNameQuery)
{
scriptNameQuery_ = scriptNameQuery;
setParameter("ScriptNameQuery", scriptNameQuery);
}
int CreateTaskExportTaskRequest::getPageIndex()const
{
return pageIndex_;
}
void CreateTaskExportTaskRequest::setPageIndex(int pageIndex)
{
pageIndex_ = pageIndex;
setParameter("PageIndex", std::to_string(pageIndex));
}
std::string CreateTaskExportTaskRequest::getSortOrder()const
{
return sortOrder_;
}
void CreateTaskExportTaskRequest::setSortOrder(const std::string& sortOrder)
{
sortOrder_ = sortOrder;
setParameter("SortOrder", sortOrder);
}
std::string CreateTaskExportTaskRequest::getTaskStatusStringList()const
{
return taskStatusStringList_;
}
void CreateTaskExportTaskRequest::setTaskStatusStringList(const std::string& taskStatusStringList)
{
taskStatusStringList_ = taskStatusStringList;
setParameter("TaskStatusStringList", taskStatusStringList);
}
std::string CreateTaskExportTaskRequest::getJobGroupNameQuery()const
{
return jobGroupNameQuery_;
}
void CreateTaskExportTaskRequest::setJobGroupNameQuery(const std::string& jobGroupNameQuery)
{
jobGroupNameQuery_ = jobGroupNameQuery;
setParameter("JobGroupNameQuery", jobGroupNameQuery);
}
std::string CreateTaskExportTaskRequest::getTaskId()const
{
return taskId_;
}
void CreateTaskExportTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}
bool CreateTaskExportTaskRequest::getHasHangUpByRejection()const
{
return hasHangUpByRejection_;
}
void CreateTaskExportTaskRequest::setHasHangUpByRejection(bool hasHangUpByRejection)
{
hasHangUpByRejection_ = hasHangUpByRejection;
setParameter("HasHangUpByRejection", hasHangUpByRejection ? "true" : "false");
}
bool CreateTaskExportTaskRequest::getHasReachedEndOfFlow()const
{
return hasReachedEndOfFlow_;
}
void CreateTaskExportTaskRequest::setHasReachedEndOfFlow(bool hasReachedEndOfFlow)
{
hasReachedEndOfFlow_ = hasReachedEndOfFlow;
setParameter("HasReachedEndOfFlow", hasReachedEndOfFlow ? "true" : "false");
}
std::string CreateTaskExportTaskRequest::getInstanceId()const
{
return instanceId_;
}
void CreateTaskExportTaskRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
long CreateTaskExportTaskRequest::getRecordingDurationGte()const
{
return recordingDurationGte_;
}
void CreateTaskExportTaskRequest::setRecordingDurationGte(long recordingDurationGte)
{
recordingDurationGte_ = recordingDurationGte;
setParameter("RecordingDurationGte", std::to_string(recordingDurationGte));
}
long CreateTaskExportTaskRequest::getCallDurationLte()const
{
return callDurationLte_;
}
void CreateTaskExportTaskRequest::setCallDurationLte(long callDurationLte)
{
callDurationLte_ = callDurationLte;
setParameter("CallDurationLte", std::to_string(callDurationLte));
}
std::string CreateTaskExportTaskRequest::getJobGroupId()const
{
return jobGroupId_;
}
void CreateTaskExportTaskRequest::setJobGroupId(const std::string& jobGroupId)
{
jobGroupId_ = jobGroupId;
setParameter("JobGroupId", jobGroupId);
}
std::string CreateTaskExportTaskRequest::getSortBy()const
{
return sortBy_;
}
void CreateTaskExportTaskRequest::setSortBy(const std::string& sortBy)
{
sortBy_ = sortBy;
setParameter("SortBy", sortBy);
}
std::string CreateTaskExportTaskRequest::getJobStatusStringList()const
{
return jobStatusStringList_;
}
void CreateTaskExportTaskRequest::setJobStatusStringList(const std::string& jobStatusStringList)
{
jobStatusStringList_ = jobStatusStringList;
setParameter("JobStatusStringList", jobStatusStringList);
}
long CreateTaskExportTaskRequest::getActualTimeGte()const
{
return actualTimeGte_;
}
void CreateTaskExportTaskRequest::setActualTimeGte(long actualTimeGte)
{
actualTimeGte_ = actualTimeGte;
setParameter("ActualTimeGte", std::to_string(actualTimeGte));
}
long CreateTaskExportTaskRequest::getCallDurationGte()const
{
return callDurationGte_;
}
void CreateTaskExportTaskRequest::setCallDurationGte(long callDurationGte)
{
callDurationGte_ = callDurationGte;
setParameter("CallDurationGte", std::to_string(callDurationGte));
}
long CreateTaskExportTaskRequest::getRecordingDurationLte()const
{
return recordingDurationLte_;
}
void CreateTaskExportTaskRequest::setRecordingDurationLte(long recordingDurationLte)
{
recordingDurationLte_ = recordingDurationLte;
setParameter("RecordingDurationLte", std::to_string(recordingDurationLte));
}

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/CreateTaskExportTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
CreateTaskExportTaskResult::CreateTaskExportTaskResult() :
ServiceResult()
{}
CreateTaskExportTaskResult::CreateTaskExportTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateTaskExportTaskResult::~CreateTaskExportTaskResult()
{}
void CreateTaskExportTaskResult::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["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["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}
std::string CreateTaskExportTaskResult::getTaskId()const
{
return taskId_;
}
std::string CreateTaskExportTaskResult::getMessage()const
{
return message_;
}
int CreateTaskExportTaskResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string CreateTaskExportTaskResult::getCode()const
{
return code_;
}
bool CreateTaskExportTaskResult::getSuccess()const
{
return success_;
}

View File

@@ -40,48 +40,50 @@ void DescribeScriptResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto scriptNode = value["Script"];
if(!scriptNode["DebugStatus"].isNull())
script_.debugStatus = scriptNode["DebugStatus"].asString();
if(!scriptNode["Industry"].isNull())
script_.industry = scriptNode["Industry"].asString();
if(!scriptNode["IsDebugDrafted"].isNull())
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
if(!scriptNode["IsDrafted"].isNull())
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
if(!scriptNode["Scene"].isNull())
script_.scene = scriptNode["Scene"].asString();
if(!scriptNode["ScriptDescription"].isNull())
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
if(!scriptNode["ScriptId"].isNull())
script_.scriptId = scriptNode["ScriptId"].asString();
if(!scriptNode["ScriptName"].isNull())
script_.scriptName = scriptNode["ScriptName"].asString();
if(!scriptNode["Status"].isNull())
script_.status = scriptNode["Status"].asString();
if(!scriptNode["UpdateTime"].isNull())
script_.updateTime = std::stol(scriptNode["UpdateTime"].asString());
if(!scriptNode["ChatbotId"].isNull())
script_.chatbotId = scriptNode["ChatbotId"].asString();
if(!scriptNode["AsrConfig"].isNull())
script_.asrConfig = scriptNode["AsrConfig"].asString();
if(!scriptNode["TtsConfig"].isNull())
script_.ttsConfig = scriptNode["TtsConfig"].asString();
if(!scriptNode["ScriptId"].isNull())
script_.scriptId = scriptNode["ScriptId"].asString();
if(!scriptNode["IsDebugDrafted"].isNull())
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
if(!scriptNode["Industry"].isNull())
script_.industry = scriptNode["Industry"].asString();
if(!scriptNode["ScriptDescription"].isNull())
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
if(!scriptNode["MiniPlaybackConfigEnabled"].isNull())
script_.miniPlaybackConfigEnabled = scriptNode["MiniPlaybackConfigEnabled"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!scriptNode["IsDrafted"].isNull())
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
if(!scriptNode["TtsConfig"].isNull())
script_.ttsConfig = scriptNode["TtsConfig"].asString();
if(!scriptNode["DebugStatus"].isNull())
script_.debugStatus = scriptNode["DebugStatus"].asString();
if(!scriptNode["AsrConfig"].isNull())
script_.asrConfig = scriptNode["AsrConfig"].asString();
if(!scriptNode["Scene"].isNull())
script_.scene = scriptNode["Scene"].asString();
if(!scriptNode["ScriptName"].isNull())
script_.scriptName = scriptNode["ScriptName"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ChatbotId"].isNull())
chatbotId_ = value["ChatbotId"].asString();
if(!value["AsrConfig"].isNull())
asrConfig_ = value["AsrConfig"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["TtsConfig"].isNull())
ttsConfig_ = value["TtsConfig"].asString();
if(!value["AsrConfig"].isNull())
asrConfig_ = value["AsrConfig"].asString();
if(!value["NlsConfig"].isNull())
nlsConfig_ = value["NlsConfig"].asString();
}
@@ -125,3 +127,8 @@ bool DescribeScriptResult::getSuccess()const
return success_;
}
std::string DescribeScriptResult::getNlsConfig()const
{
return nlsConfig_;
}

View File

@@ -40,22 +40,22 @@ void DescribeTTSConfigResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto tTSConfigNode = value["TTSConfig"];
if(!tTSConfigNode["Id"].isNull())
tTSConfig_.id = tTSConfigNode["Id"].asString();
if(!tTSConfigNode["InstanceId"].isNull())
tTSConfig_.instanceId = tTSConfigNode["InstanceId"].asString();
if(!tTSConfigNode["ScriptId"].isNull())
tTSConfig_.scriptId = tTSConfigNode["ScriptId"].asString();
if(!tTSConfigNode["SpeechRate"].isNull())
tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString();
if(!tTSConfigNode["Voice"].isNull())
tTSConfig_.voice = tTSConfigNode["Voice"].asString();
if(!tTSConfigNode["SpeechRate"].isNull())
tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString();
if(!tTSConfigNode["Volume"].isNull())
tTSConfig_.volume = tTSConfigNode["Volume"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!tTSConfigNode["InstanceId"].isNull())
tTSConfig_.instanceId = tTSConfigNode["InstanceId"].asString();
if(!tTSConfigNode["NlsServiceType"].isNull())
tTSConfig_.nlsServiceType = tTSConfigNode["NlsServiceType"].asString();
if(!tTSConfigNode["AppKey"].isNull())
tTSConfig_.appKey = tTSConfigNode["AppKey"].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())

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/DescribeTenantBindNumberRequest.h>
using AlibabaCloud::OutboundBot::Model::DescribeTenantBindNumberRequest;
DescribeTenantBindNumberRequest::DescribeTenantBindNumberRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTenantBindNumber")
{
setMethod(HttpRequest::Method::Post);
}
DescribeTenantBindNumberRequest::~DescribeTenantBindNumberRequest()
{}
std::string DescribeTenantBindNumberRequest::getNumber()const
{
return number_;
}
void DescribeTenantBindNumberRequest::setNumber(const std::string& number)
{
number_ = number;
setParameter("Number", number);
}

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/DescribeTenantBindNumberResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
DescribeTenantBindNumberResult::DescribeTenantBindNumberResult() :
ServiceResult()
{}
DescribeTenantBindNumberResult::DescribeTenantBindNumberResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeTenantBindNumberResult::~DescribeTenantBindNumberResult()
{}
void DescribeTenantBindNumberResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allListNode = dataNode["List"]["ListItem"];
for (auto dataNodeListListItem : allListNode)
{
Data::ListItem listItemObject;
if(!dataNodeListListItem["InstanceId"].isNull())
listItemObject.instanceId = dataNodeListListItem["InstanceId"].asString();
if(!dataNodeListListItem["InstanceName"].isNull())
listItemObject.instanceName = dataNodeListListItem["InstanceName"].asString();
if(!dataNodeListListItem["IsBinding"].isNull())
listItemObject.isBinding = dataNodeListListItem["IsBinding"].asString() == "true";
data_.list.push_back(listItemObject);
}
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());
}
std::string DescribeTenantBindNumberResult::getMessage()const
{
return message_;
}
int DescribeTenantBindNumberResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
DescribeTenantBindNumberResult::Data DescribeTenantBindNumberResult::getData()const
{
return data_;
}
std::string DescribeTenantBindNumberResult::getCode()const
{
return code_;
}
bool DescribeTenantBindNumberResult::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/ListAllTenantBindNumberBindingRequest.h>
using AlibabaCloud::OutboundBot::Model::ListAllTenantBindNumberBindingRequest;
ListAllTenantBindNumberBindingRequest::ListAllTenantBindNumberBindingRequest() :
RpcServiceRequest("outboundbot", "2019-12-26", "ListAllTenantBindNumberBinding")
{
setMethod(HttpRequest::Method::Post);
}
ListAllTenantBindNumberBindingRequest::~ListAllTenantBindNumberBindingRequest()
{}
std::string ListAllTenantBindNumberBindingRequest::getTenant()const
{
return tenant_;
}
void ListAllTenantBindNumberBindingRequest::setTenant(const std::string& tenant)
{
tenant_ = tenant;
setParameter("Tenant", tenant);
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT 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/ListAllTenantBindNumberBindingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OutboundBot;
using namespace AlibabaCloud::OutboundBot::Model;
ListAllTenantBindNumberBindingResult::ListAllTenantBindNumberBindingResult() :
ServiceResult()
{}
ListAllTenantBindNumberBindingResult::ListAllTenantBindNumberBindingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAllTenantBindNumberBindingResult::~ListAllTenantBindNumberBindingResult()
{}
void ListAllTenantBindNumberBindingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allListNode = dataNode["List"]["ListItem"];
for (auto dataNodeListListItem : allListNode)
{
Data::ListItem listItemObject;
if(!dataNodeListListItem["BindingId"].isNull())
listItemObject.bindingId = dataNodeListListItem["BindingId"].asString();
if(!dataNodeListListItem["Number"].isNull())
listItemObject.number = dataNodeListListItem["Number"].asString();
if(!dataNodeListListItem["TrunkName"].isNull())
listItemObject.trunkName = dataNodeListListItem["TrunkName"].asString();
if(!dataNodeListListItem["SerializedParams"].isNull())
listItemObject.serializedParams = dataNodeListListItem["SerializedParams"].asString();
auto allInstanceNameList = value["InstanceNameList"]["InstanceNameList"];
for (auto value : allInstanceNameList)
listItemObject.instanceNameList.push_back(value.asString());
data_.list.push_back(listItemObject);
}
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());
}
std::string ListAllTenantBindNumberBindingResult::getMessage()const
{
return message_;
}
int ListAllTenantBindNumberBindingResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
ListAllTenantBindNumberBindingResult::Data ListAllTenantBindNumberBindingResult::getData()const
{
return data_;
}
std::string ListAllTenantBindNumberBindingResult::getCode()const
{
return code_;
}
bool ListAllTenantBindNumberBindingResult::getSuccess()const
{
return success_;
}

View File

@@ -106,6 +106,17 @@ void ModifyScriptRequest::setAsrConfig(const std::string& asrConfig)
setParameter("AsrConfig", asrConfig);
}
std::string ModifyScriptRequest::getNlsConfig()const
{
return nlsConfig_;
}
void ModifyScriptRequest::setNlsConfig(const std::string& nlsConfig)
{
nlsConfig_ = nlsConfig;
setParameter("NlsConfig", nlsConfig);
}
bool ModifyScriptRequest::getMiniPlaybackEnabled()const
{
return miniPlaybackEnabled_;

View File

@@ -40,36 +40,36 @@ void ModifyScriptResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto scriptNode = value["Script"];
if(!scriptNode["DebugStatus"].isNull())
script_.debugStatus = scriptNode["DebugStatus"].asString();
if(!scriptNode["Industry"].isNull())
script_.industry = scriptNode["Industry"].asString();
if(!scriptNode["IsDebugDrafted"].isNull())
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
if(!scriptNode["IsDrafted"].isNull())
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
if(!scriptNode["Scene"].isNull())
script_.scene = scriptNode["Scene"].asString();
if(!scriptNode["ScriptDescription"].isNull())
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
if(!scriptNode["ScriptId"].isNull())
script_.scriptId = scriptNode["ScriptId"].asString();
if(!scriptNode["ScriptName"].isNull())
script_.scriptName = scriptNode["ScriptName"].asString();
if(!scriptNode["Status"].isNull())
script_.status = scriptNode["Status"].asString();
if(!scriptNode["UpdateTime"].isNull())
script_.updateTime = std::stol(scriptNode["UpdateTime"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!scriptNode["Industry"].isNull())
script_.industry = scriptNode["Industry"].asString();
if(!scriptNode["ScriptDescription"].isNull())
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
if(!scriptNode["IsDrafted"].isNull())
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
if(!scriptNode["DebugStatus"].isNull())
script_.debugStatus = scriptNode["DebugStatus"].asString();
if(!scriptNode["ScriptId"].isNull())
script_.scriptId = scriptNode["ScriptId"].asString();
if(!scriptNode["IsDebugDrafted"].isNull())
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
if(!scriptNode["ScriptName"].isNull())
script_.scriptName = scriptNode["ScriptName"].asString();
if(!scriptNode["Scene"].isNull())
script_.scene = scriptNode["Scene"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ChatbotId"].isNull())
chatbotId_ = value["ChatbotId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}

View File

@@ -38,6 +38,17 @@ void ModifyTTSConfigRequest::setVoice(const std::string& voice)
setParameter("Voice", voice);
}
std::string ModifyTTSConfigRequest::getNlsServiceType()const
{
return nlsServiceType_;
}
void ModifyTTSConfigRequest::setNlsServiceType(const std::string& nlsServiceType)
{
nlsServiceType_ = nlsServiceType;
setParameter("NlsServiceType", nlsServiceType);
}
std::string ModifyTTSConfigRequest::getVolume()const
{
return volume_;
@@ -71,6 +82,17 @@ void ModifyTTSConfigRequest::setInstanceId(const std::string& instanceId)
setParameter("InstanceId", instanceId);
}
std::string ModifyTTSConfigRequest::getAppKey()const
{
return appKey_;
}
void ModifyTTSConfigRequest::setAppKey(const std::string& appKey)
{
appKey_ = appKey;
setParameter("AppKey", appKey);
}
std::string ModifyTTSConfigRequest::getSpeechRate()const
{
return speechRate_;

View File

@@ -40,22 +40,22 @@ void ModifyTTSConfigResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto tTSConfigNode = value["TTSConfig"];
if(!tTSConfigNode["Voice"].isNull())
tTSConfig_.voice = tTSConfigNode["Voice"].asString();
if(!tTSConfigNode["TTSConfigId"].isNull())
tTSConfig_.tTSConfigId = tTSConfigNode["TTSConfigId"].asString();
if(!tTSConfigNode["SpeechRate"].isNull())
tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString();
if(!tTSConfigNode["Volume"].isNull())
tTSConfig_.volume = tTSConfigNode["Volume"].asString();
if(!tTSConfigNode["InstanceId"].isNull())
tTSConfig_.instanceId = tTSConfigNode["InstanceId"].asString();
if(!tTSConfigNode["ScriptId"].isNull())
tTSConfig_.scriptId = tTSConfigNode["ScriptId"].asString();
if(!tTSConfigNode["SpeechRate"].isNull())
tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString();
if(!tTSConfigNode["TTSConfigId"].isNull())
tTSConfig_.tTSConfigId = tTSConfigNode["TTSConfigId"].asString();
if(!tTSConfigNode["Voice"].isNull())
tTSConfig_.voice = tTSConfigNode["Voice"].asString();
if(!tTSConfigNode["Volume"].isNull())
tTSConfig_.volume = tTSConfigNode["Volume"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].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())

View File

@@ -115,6 +115,17 @@ void SearchTaskRequest::setPageSize(int pageSize)
setParameter("PageSize", std::to_string(pageSize));
}
std::string SearchTaskRequest::getScriptNameQuery()const
{
return scriptNameQuery_;
}
void SearchTaskRequest::setScriptNameQuery(const std::string& scriptNameQuery)
{
scriptNameQuery_ = scriptNameQuery;
setParameter("ScriptNameQuery", scriptNameQuery);
}
int SearchTaskRequest::getPageIndex()const
{
return pageIndex_;

View File

@@ -95,6 +95,8 @@ void SearchTaskResult::parse(const std::string &payload)
searchTaskInfoListObject.dialExceptionOld = valueSearchTaskInfoListSearchTaskInfo["DialExceptionOld"].asString();
if(!valueSearchTaskInfoListSearchTaskInfo["HasLastPlaybackCompleted"].isNull())
searchTaskInfoListObject.hasLastPlaybackCompleted = valueSearchTaskInfoListSearchTaskInfo["HasLastPlaybackCompleted"].asString() == "true";
if(!valueSearchTaskInfoListSearchTaskInfo["ScriptName"].isNull())
searchTaskInfoListObject.scriptName = valueSearchTaskInfoListSearchTaskInfo["ScriptName"].asString();
auto allDialExceptionCodes = value["DialExceptionCodes"]["String"];
for (auto value : allDialExceptionCodes)
searchTaskInfoListObject.dialExceptionCodes.push_back(value.asString());