Supported new features for outbound.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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_
|
||||
@@ -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_
|
||||
@@ -41,6 +41,7 @@ namespace AlibabaCloud
|
||||
std::vector<std::string> instanceNameList;
|
||||
std::string bindingId;
|
||||
std::string trunkName;
|
||||
std::string billingType;
|
||||
};
|
||||
std::vector<ListItem> list;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user