Supported new features for outbound.

This commit is contained in:
sdk-team
2022-06-24 03:04:04 +00:00
parent 477e188af9
commit 848fed61b7
23 changed files with 90 additions and 298 deletions

View File

@@ -153,8 +153,6 @@ set(outboundbot_public_header_model
include/alibabacloud/outboundbot/model/GetEffectiveDaysResult.h
include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoRequest.h
include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoResult.h
include/alibabacloud/outboundbot/model/GetInstanceConfigRequest.h
include/alibabacloud/outboundbot/model/GetInstanceConfigResult.h
include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayRequest.h
include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayResult.h
include/alibabacloud/outboundbot/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.h
@@ -422,8 +420,6 @@ set(outboundbot_src
src/model/GetEffectiveDaysResult.cc
src/model/GetEmptyNumberNoMoreCallsInfoRequest.cc
src/model/GetEmptyNumberNoMoreCallsInfoResult.cc
src/model/GetInstanceConfigRequest.cc
src/model/GetInstanceConfigResult.cc
src/model/GetMaxAttemptsPerDayRequest.cc
src/model/GetMaxAttemptsPerDayResult.cc
src/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.cc

View File

@@ -154,8 +154,6 @@
#include "model/GetEffectiveDaysResult.h"
#include "model/GetEmptyNumberNoMoreCallsInfoRequest.h"
#include "model/GetEmptyNumberNoMoreCallsInfoResult.h"
#include "model/GetInstanceConfigRequest.h"
#include "model/GetInstanceConfigResult.h"
#include "model/GetMaxAttemptsPerDayRequest.h"
#include "model/GetMaxAttemptsPerDayResult.h"
#include "model/GetNumberDistrictInfoTemplateDownloadUrlRequest.h"
@@ -495,9 +493,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetEmptyNumberNoMoreCallsInfoResult> GetEmptyNumberNoMoreCallsInfoOutcome;
typedef std::future<GetEmptyNumberNoMoreCallsInfoOutcome> GetEmptyNumberNoMoreCallsInfoOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::GetEmptyNumberNoMoreCallsInfoRequest&, const GetEmptyNumberNoMoreCallsInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEmptyNumberNoMoreCallsInfoAsyncHandler;
typedef Outcome<Error, Model::GetInstanceConfigResult> GetInstanceConfigOutcome;
typedef std::future<GetInstanceConfigOutcome> GetInstanceConfigOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::GetInstanceConfigRequest&, const GetInstanceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInstanceConfigAsyncHandler;
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;
@@ -899,9 +894,6 @@ namespace AlibabaCloud
GetEmptyNumberNoMoreCallsInfoOutcome getEmptyNumberNoMoreCallsInfo(const Model::GetEmptyNumberNoMoreCallsInfoRequest &request)const;
void getEmptyNumberNoMoreCallsInfoAsync(const Model::GetEmptyNumberNoMoreCallsInfoRequest& request, const GetEmptyNumberNoMoreCallsInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetEmptyNumberNoMoreCallsInfoOutcomeCallable getEmptyNumberNoMoreCallsInfoCallable(const Model::GetEmptyNumberNoMoreCallsInfoRequest& request) const;
GetInstanceConfigOutcome getInstanceConfig(const Model::GetInstanceConfigRequest &request)const;
void getInstanceConfigAsync(const Model::GetInstanceConfigRequest& request, const GetInstanceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetInstanceConfigOutcomeCallable getInstanceConfigCallable(const Model::GetInstanceConfigRequest& request) const;
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;

View File

@@ -52,6 +52,8 @@ public:
void setInstanceId(const std::string &instanceId);
std::string getScriptDescription() const;
void setScriptDescription(const std::string &scriptDescription);
bool getLongWaitEnable() const;
void setLongWaitEnable(bool longWaitEnable);
std::vector<std::string> getScriptContent() const;
void setScriptContent(const std::vector<std::string> &scriptContent);
@@ -67,6 +69,7 @@ private:
std::string chatbotId_;
std::string instanceId_;
std::string scriptDescription_;
bool longWaitEnable_;
std::vector<std::string> scriptContent_;
};
} // namespace Model

View File

@@ -36,9 +36,9 @@ namespace AlibabaCloud
{
std::string status;
std::string chatbotId;
bool miniPlaybackConfigEnabled;
std::string scriptDescription;
std::string scriptId;
bool newBargeInEnable;
std::string debugStatus;
std::string scene;
bool isDebugDrafted;
@@ -48,6 +48,8 @@ namespace AlibabaCloud
std::string scriptName;
long updateTime;
std::string ttsConfig;
bool longWaitEnable;
bool miniPlaybackEnable;
};

View File

@@ -42,6 +42,8 @@ public:
void setText(const std::string &text);
int getSpeechRate() const;
void setSpeechRate(int speechRate);
int getPitchRate() const;
void setPitchRate(int pitchRate);
private:
std::string voice_;
@@ -50,6 +52,7 @@ private:
std::string instanceId_;
std::string text_;
int speechRate_;
int pitchRate_;
};
} // namespace Model
} // namespace OutboundBot

View File

@@ -32,6 +32,8 @@ public:
~DialogueRequest();
std::string getCallId() const;
void setCallId(const std::string &callId);
std::string getScriptId() const;
void setScriptId(const std::string &scriptId);
long getInstanceOwnerId() const;
void setInstanceOwnerId(long instanceOwnerId);
std::string getCalledNumber() const;
@@ -55,6 +57,7 @@ public:
private:
std::string callId_;
std::string scriptId_;
long instanceOwnerId_;
std::string calledNumber_;
std::string callType_;

View File

@@ -1,42 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETINSTANCECONFIGREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETINSTANCECONFIGREQUEST_H_
#include <alibabacloud/outboundbot/OutboundBotExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace OutboundBot {
namespace Model {
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetInstanceConfigRequest : public RpcServiceRequest {
public:
GetInstanceConfigRequest();
~GetInstanceConfigRequest();
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
private:
std::string instanceId_;
};
} // namespace Model
} // namespace OutboundBot
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETINSTANCECONFIGREQUEST_H_

View File

@@ -1,70 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETINSTANCECONFIGRESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETINSTANCECONFIGRESULT_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 GetInstanceConfigResult : public ServiceResult
{
public:
struct Data
{
struct InstanceConfig
{
long esAllDataKeepDay;
bool newBargeInSystemSwitch;
bool searchTaskFunctionSwitch;
bool miniPlaybackSystemSwitch;
};
InstanceConfig instanceConfig;
};
GetInstanceConfigResult();
explicit GetInstanceConfigResult(const std::string &payload);
~GetInstanceConfigResult();
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_GETINSTANCECONFIGRESULT_H_

View File

@@ -41,6 +41,7 @@ namespace AlibabaCloud
std::vector<std::string> instanceNameList;
std::string bindingId;
std::string trunkName;
std::string billingType;
};
std::vector<ListItem> list;
};

View File

@@ -43,13 +43,14 @@ namespace AlibabaCloud
std::string failReason;
std::string debugStatus;
std::string scene;
bool miniPlaybackEnabled;
bool isDebugDrafted;
std::string industry;
bool isDrafted;
std::string scriptName;
long updateTime;
std::string rejectReason;
bool longWaitEnable;
bool miniPlaybackEnable;
};
int totalCount;
int pageSize;

View File

@@ -46,14 +46,18 @@ public:
void setAsrConfig(const std::string &asrConfig);
std::string getNlsConfig() const;
void setNlsConfig(const std::string &nlsConfig);
bool getMiniPlaybackEnabled() const;
void setMiniPlaybackEnabled(bool miniPlaybackEnabled);
bool getNewBargeInEnable() const;
void setNewBargeInEnable(bool newBargeInEnable);
bool getMiniPlaybackEnable() const;
void setMiniPlaybackEnable(bool miniPlaybackEnable);
std::string getChatbotId() const;
void setChatbotId(const std::string &chatbotId);
std::string getInstanceId() const;
void setInstanceId(const std::string &instanceId);
std::string getScriptDescription() const;
void setScriptDescription(const std::string &scriptDescription);
bool getLongWaitEnable() const;
void setLongWaitEnable(bool longWaitEnable);
std::vector<std::string> getScriptContent() const;
void setScriptContent(const std::vector<std::string> &scriptContent);
@@ -66,10 +70,12 @@ private:
std::vector<std::string> scriptWaveform_;
std::string asrConfig_;
std::string nlsConfig_;
bool miniPlaybackEnabled_;
bool newBargeInEnable_;
bool miniPlaybackEnable_;
std::string chatbotId_;
std::string instanceId_;
std::string scriptDescription_;
bool longWaitEnable_;
std::vector<std::string> scriptContent_;
};
} // namespace Model

View File

@@ -2427,42 +2427,6 @@ OutboundBotClient::GetEmptyNumberNoMoreCallsInfoOutcomeCallable OutboundBotClien
return task->get_future();
}
OutboundBotClient::GetInstanceConfigOutcome OutboundBotClient::getInstanceConfig(const GetInstanceConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetInstanceConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetInstanceConfigOutcome(GetInstanceConfigResult(outcome.result()));
else
return GetInstanceConfigOutcome(outcome.error());
}
void OutboundBotClient::getInstanceConfigAsync(const GetInstanceConfigRequest& request, const GetInstanceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getInstanceConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
OutboundBotClient::GetInstanceConfigOutcomeCallable OutboundBotClient::getInstanceConfigCallable(const GetInstanceConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetInstanceConfigOutcome()>>(
[this, request]()
{
return this->getInstanceConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
OutboundBotClient::GetMaxAttemptsPerDayOutcome OutboundBotClient::getMaxAttemptsPerDay(const GetMaxAttemptsPerDayRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -123,6 +123,15 @@ void CreateScriptRequest::setScriptDescription(const std::string &scriptDescript
setParameter(std::string("ScriptDescription"), scriptDescription);
}
bool CreateScriptRequest::getLongWaitEnable() const {
return longWaitEnable_;
}
void CreateScriptRequest::setLongWaitEnable(bool longWaitEnable) {
longWaitEnable_ = longWaitEnable;
setParameter(std::string("LongWaitEnable"), longWaitEnable ? "true" : "false");
}
std::vector<std::string> CreateScriptRequest::getScriptContent() const {
return scriptContent_;
}

View File

@@ -54,8 +54,8 @@ void DescribeScriptResult::parse(const std::string &payload)
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(!scriptNode["MiniPlaybackEnable"].isNull())
script_.miniPlaybackEnable = scriptNode["MiniPlaybackEnable"].asString() == "true";
if(!scriptNode["IsDrafted"].isNull())
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
if(!scriptNode["TtsConfig"].isNull())
@@ -68,6 +68,10 @@ void DescribeScriptResult::parse(const std::string &payload)
script_.scene = scriptNode["Scene"].asString();
if(!scriptNode["ScriptName"].isNull())
script_.scriptName = scriptNode["ScriptName"].asString();
if(!scriptNode["NewBargeInEnable"].isNull())
script_.newBargeInEnable = scriptNode["NewBargeInEnable"].asString() == "true";
if(!scriptNode["LongWaitEnable"].isNull())
script_.longWaitEnable = scriptNode["LongWaitEnable"].asString() == "true";
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())

View File

@@ -79,3 +79,12 @@ void DescribeTTSDemoRequest::setSpeechRate(int speechRate) {
setParameter(std::string("SpeechRate"), std::to_string(speechRate));
}
int DescribeTTSDemoRequest::getPitchRate() const {
return pitchRate_;
}
void DescribeTTSDemoRequest::setPitchRate(int pitchRate) {
pitchRate_ = pitchRate;
setParameter(std::string("PitchRate"), std::to_string(pitchRate));
}

View File

@@ -34,6 +34,15 @@ void DialogueRequest::setCallId(const std::string &callId) {
setParameter(std::string("CallId"), callId);
}
std::string DialogueRequest::getScriptId() const {
return scriptId_;
}
void DialogueRequest::setScriptId(const std::string &scriptId) {
scriptId_ = scriptId;
setParameter(std::string("ScriptId"), scriptId);
}
long DialogueRequest::getInstanceOwnerId() const {
return instanceOwnerId_;
}

View File

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

View File

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

View File

@@ -52,6 +52,8 @@ void ListAllTenantBindNumberBindingResult::parse(const std::string &payload)
listItemObject.trunkName = dataNodeListListItem["TrunkName"].asString();
if(!dataNodeListListItem["SerializedParams"].isNull())
listItemObject.serializedParams = dataNodeListListItem["SerializedParams"].asString();
if(!dataNodeListListItem["BillingType"].isNull())
listItemObject.billingType = dataNodeListListItem["BillingType"].asString();
auto allInstanceNameList = value["InstanceNameList"]["InstanceNameList"];
for (auto value : allInstanceNameList)
listItemObject.instanceNameList.push_back(value.asString());

View File

@@ -66,8 +66,8 @@ void ListScriptsResult::parse(const std::string &payload)
scriptObject.isDrafted = scriptsNodeListScript["IsDrafted"].asString() == "true";
if(!scriptsNodeListScript["DebugStatus"].isNull())
scriptObject.debugStatus = scriptsNodeListScript["DebugStatus"].asString();
if(!scriptsNodeListScript["MiniPlaybackEnabled"].isNull())
scriptObject.miniPlaybackEnabled = scriptsNodeListScript["MiniPlaybackEnabled"].asString() == "true";
if(!scriptsNodeListScript["MiniPlaybackEnable"].isNull())
scriptObject.miniPlaybackEnable = scriptsNodeListScript["MiniPlaybackEnable"].asString() == "true";
if(!scriptsNodeListScript["RejectReason"].isNull())
scriptObject.rejectReason = scriptsNodeListScript["RejectReason"].asString();
if(!scriptsNodeListScript["FailReason"].isNull())
@@ -78,6 +78,8 @@ void ListScriptsResult::parse(const std::string &payload)
scriptObject.scriptName = scriptsNodeListScript["ScriptName"].asString();
if(!scriptsNodeListScript["NewBargeInEnable"].isNull())
scriptObject.newBargeInEnable = scriptsNodeListScript["NewBargeInEnable"].asString() == "true";
if(!scriptsNodeListScript["LongWaitEnable"].isNull())
scriptObject.longWaitEnable = scriptsNodeListScript["LongWaitEnable"].asString() == "true";
scripts_.list.push_back(scriptObject);
}
if(!value["HttpStatusCode"].isNull())

View File

@@ -96,13 +96,22 @@ void ModifyScriptRequest::setNlsConfig(const std::string &nlsConfig) {
setParameter(std::string("NlsConfig"), nlsConfig);
}
bool ModifyScriptRequest::getMiniPlaybackEnabled() const {
return miniPlaybackEnabled_;
bool ModifyScriptRequest::getNewBargeInEnable() const {
return newBargeInEnable_;
}
void ModifyScriptRequest::setMiniPlaybackEnabled(bool miniPlaybackEnabled) {
miniPlaybackEnabled_ = miniPlaybackEnabled;
setParameter(std::string("MiniPlaybackEnabled"), miniPlaybackEnabled ? "true" : "false");
void ModifyScriptRequest::setNewBargeInEnable(bool newBargeInEnable) {
newBargeInEnable_ = newBargeInEnable;
setParameter(std::string("NewBargeInEnable"), newBargeInEnable ? "true" : "false");
}
bool ModifyScriptRequest::getMiniPlaybackEnable() const {
return miniPlaybackEnable_;
}
void ModifyScriptRequest::setMiniPlaybackEnable(bool miniPlaybackEnable) {
miniPlaybackEnable_ = miniPlaybackEnable;
setParameter(std::string("MiniPlaybackEnable"), miniPlaybackEnable ? "true" : "false");
}
std::string ModifyScriptRequest::getChatbotId() const {
@@ -132,6 +141,15 @@ void ModifyScriptRequest::setScriptDescription(const std::string &scriptDescript
setParameter(std::string("ScriptDescription"), scriptDescription);
}
bool ModifyScriptRequest::getLongWaitEnable() const {
return longWaitEnable_;
}
void ModifyScriptRequest::setLongWaitEnable(bool longWaitEnable) {
longWaitEnable_ = longWaitEnable;
setParameter(std::string("LongWaitEnable"), longWaitEnable ? "true" : "false");
}
std::vector<std::string> ModifyScriptRequest::getScriptContent() const {
return scriptContent_;
}