Supported new features for outbound.

This commit is contained in:
sdk-team
2021-08-19 06:58:06 +00:00
parent 9d7216efce
commit 4fc4cdd7b8
43 changed files with 1038 additions and 20 deletions

View File

@@ -120,10 +120,14 @@
#include "model/GetAsrServerInfoResult.h"
#include "model/GetBaseStrategyPeriodRequest.h"
#include "model/GetBaseStrategyPeriodResult.h"
#include "model/GetConcurrentConversationQuotaRequest.h"
#include "model/GetConcurrentConversationQuotaResult.h"
#include "model/GetContactBlockListRequest.h"
#include "model/GetContactBlockListResult.h"
#include "model/GetContactWhiteListRequest.h"
#include "model/GetContactWhiteListResult.h"
#include "model/GetCurrentConcurrencyRequest.h"
#include "model/GetCurrentConcurrencyResult.h"
#include "model/GetEffectiveDaysRequest.h"
#include "model/GetEffectiveDaysResult.h"
#include "model/GetEmptyNumberNoMoreCallsInfoRequest.h"
@@ -244,6 +248,8 @@
#include "model/TagResourcesResult.h"
#include "model/TaskPreparingRequest.h"
#include "model/TaskPreparingResult.h"
#include "model/TerminateCallRequest.h"
#include "model/TerminateCallResult.h"
#include "model/UntagResourcesRequest.h"
#include "model/UntagResourcesResult.h"
#include "model/WithdrawScriptReviewRequest.h"
@@ -404,12 +410,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetBaseStrategyPeriodResult> GetBaseStrategyPeriodOutcome;
typedef std::future<GetBaseStrategyPeriodOutcome> GetBaseStrategyPeriodOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::GetBaseStrategyPeriodRequest&, const GetBaseStrategyPeriodOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBaseStrategyPeriodAsyncHandler;
typedef Outcome<Error, Model::GetConcurrentConversationQuotaResult> GetConcurrentConversationQuotaOutcome;
typedef std::future<GetConcurrentConversationQuotaOutcome> GetConcurrentConversationQuotaOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::GetConcurrentConversationQuotaRequest&, const GetConcurrentConversationQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetConcurrentConversationQuotaAsyncHandler;
typedef Outcome<Error, Model::GetContactBlockListResult> GetContactBlockListOutcome;
typedef std::future<GetContactBlockListOutcome> GetContactBlockListOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::GetContactBlockListRequest&, const GetContactBlockListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetContactBlockListAsyncHandler;
typedef Outcome<Error, Model::GetContactWhiteListResult> GetContactWhiteListOutcome;
typedef std::future<GetContactWhiteListOutcome> GetContactWhiteListOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::GetContactWhiteListRequest&, const GetContactWhiteListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetContactWhiteListAsyncHandler;
typedef Outcome<Error, Model::GetCurrentConcurrencyResult> GetCurrentConcurrencyOutcome;
typedef std::future<GetCurrentConcurrencyOutcome> GetCurrentConcurrencyOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::GetCurrentConcurrencyRequest&, const GetCurrentConcurrencyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCurrentConcurrencyAsyncHandler;
typedef Outcome<Error, Model::GetEffectiveDaysResult> GetEffectiveDaysOutcome;
typedef std::future<GetEffectiveDaysOutcome> GetEffectiveDaysOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::GetEffectiveDaysRequest&, const GetEffectiveDaysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEffectiveDaysAsyncHandler;
@@ -590,6 +602,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::TaskPreparingResult> TaskPreparingOutcome;
typedef std::future<TaskPreparingOutcome> TaskPreparingOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::TaskPreparingRequest&, const TaskPreparingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TaskPreparingAsyncHandler;
typedef Outcome<Error, Model::TerminateCallResult> TerminateCallOutcome;
typedef std::future<TerminateCallOutcome> TerminateCallOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::TerminateCallRequest&, const TerminateCallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TerminateCallAsyncHandler;
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
typedef std::function<void(const OutboundBotClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
@@ -748,12 +763,18 @@ namespace AlibabaCloud
GetBaseStrategyPeriodOutcome getBaseStrategyPeriod(const Model::GetBaseStrategyPeriodRequest &request)const;
void getBaseStrategyPeriodAsync(const Model::GetBaseStrategyPeriodRequest& request, const GetBaseStrategyPeriodAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetBaseStrategyPeriodOutcomeCallable getBaseStrategyPeriodCallable(const Model::GetBaseStrategyPeriodRequest& request) const;
GetConcurrentConversationQuotaOutcome getConcurrentConversationQuota(const Model::GetConcurrentConversationQuotaRequest &request)const;
void getConcurrentConversationQuotaAsync(const Model::GetConcurrentConversationQuotaRequest& request, const GetConcurrentConversationQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetConcurrentConversationQuotaOutcomeCallable getConcurrentConversationQuotaCallable(const Model::GetConcurrentConversationQuotaRequest& request) const;
GetContactBlockListOutcome getContactBlockList(const Model::GetContactBlockListRequest &request)const;
void getContactBlockListAsync(const Model::GetContactBlockListRequest& request, const GetContactBlockListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetContactBlockListOutcomeCallable getContactBlockListCallable(const Model::GetContactBlockListRequest& request) const;
GetContactWhiteListOutcome getContactWhiteList(const Model::GetContactWhiteListRequest &request)const;
void getContactWhiteListAsync(const Model::GetContactWhiteListRequest& request, const GetContactWhiteListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetContactWhiteListOutcomeCallable getContactWhiteListCallable(const Model::GetContactWhiteListRequest& request) const;
GetCurrentConcurrencyOutcome getCurrentConcurrency(const Model::GetCurrentConcurrencyRequest &request)const;
void getCurrentConcurrencyAsync(const Model::GetCurrentConcurrencyRequest& request, const GetCurrentConcurrencyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetCurrentConcurrencyOutcomeCallable getCurrentConcurrencyCallable(const Model::GetCurrentConcurrencyRequest& request) const;
GetEffectiveDaysOutcome getEffectiveDays(const Model::GetEffectiveDaysRequest &request)const;
void getEffectiveDaysAsync(const Model::GetEffectiveDaysRequest& request, const GetEffectiveDaysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetEffectiveDaysOutcomeCallable getEffectiveDaysCallable(const Model::GetEffectiveDaysRequest& request) const;
@@ -934,6 +955,9 @@ namespace AlibabaCloud
TaskPreparingOutcome taskPreparing(const Model::TaskPreparingRequest &request)const;
void taskPreparingAsync(const Model::TaskPreparingRequest& request, const TaskPreparingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TaskPreparingOutcomeCallable taskPreparingCallable(const Model::TaskPreparingRequest& request) const;
TerminateCallOutcome terminateCall(const Model::TerminateCallRequest &request)const;
void terminateCallAsync(const Model::TerminateCallRequest& request, const TerminateCallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
TerminateCallOutcomeCallable terminateCallCallable(const Model::TerminateCallRequest& request) const;
UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
void setResourceGroupId(const std::string& resourceGroupId);
std::string getEndpoint()const;
void setEndpoint(const std::string& endpoint);
std::vector<std::string> getCallingNumber()const;
void setCallingNumber(const std::vector<std::string>& callingNumber);
std::string getInstanceName()const;
void setInstanceName(const std::string& instanceName);
std::string getCallCenterInstanceId()const;
@@ -59,6 +61,7 @@ namespace AlibabaCloud
std::string secretKey_;
std::string resourceGroupId_;
std::string endpoint_;
std::vector<std::string> callingNumber_;
std::string instanceName_;
std::string callCenterInstanceId_;
std::string accessKey_;

View File

@@ -47,10 +47,14 @@ namespace AlibabaCloud
void setChatbotId(const std::string& chatbotId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::vector<std::string> getScriptWaveform()const;
void setScriptWaveform(const std::vector<std::string>& scriptWaveform);
std::string getAsrConfig()const;
void setAsrConfig(const std::string& asrConfig);
std::string getScriptDescription()const;
void setScriptDescription(const std::string& scriptDescription);
std::vector<std::string> getScriptContent()const;
void setScriptContent(const std::vector<std::string>& scriptContent);
private:
std::string ttsConfig_;
@@ -59,8 +63,10 @@ namespace AlibabaCloud
std::string scene_;
std::string chatbotId_;
std::string instanceId_;
std::vector<std::string> scriptWaveform_;
std::string asrConfig_;
std::string scriptDescription_;
std::vector<std::string> scriptContent_;
};
}

View File

@@ -97,6 +97,7 @@ namespace AlibabaCloud
int duration;
std::string brief;
std::string callingNumber;
std::string endReason;
Contact3 contact3;
std::string jobId;
};

View File

@@ -36,6 +36,7 @@ namespace AlibabaCloud
{
std::string status;
std::string chatbotId;
bool miniPlaybackConfigEnabled;
std::string scriptDescription;
std::string scriptId;
std::string debugStatus;

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTAREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTAREQUEST_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 GetConcurrentConversationQuotaRequest : public RpcServiceRequest
{
public:
GetConcurrentConversationQuotaRequest();
~GetConcurrentConversationQuotaRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTAREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* 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_GETCONCURRENTCONVERSATIONQUOTARESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTARESULT_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 GetConcurrentConversationQuotaResult : public ServiceResult
{
public:
GetConcurrentConversationQuotaResult();
explicit GetConcurrentConversationQuotaResult(const std::string &payload);
~GetConcurrentConversationQuotaResult();
int getRemainingConcurrent()const;
std::string getMessage()const;
int getMaxConcurrent()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
int remainingConcurrent_;
std::string message_;
int maxConcurrent_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTARESULT_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_GETCURRENTCONCURRENCYREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYREQUEST_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 GetCurrentConcurrencyRequest : public RpcServiceRequest
{
public:
GetCurrentConcurrencyRequest();
~GetCurrentConcurrencyRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYREQUEST_H_

View File

@@ -0,0 +1,63 @@
/*
* 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_GETCURRENTCONCURRENCYRESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYRESULT_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 GetCurrentConcurrencyResult : public ServiceResult
{
public:
GetCurrentConcurrencyResult();
explicit GetCurrentConcurrencyResult(const std::string &payload);
~GetCurrentConcurrencyResult();
std::string getMessage()const;
int getMaxConcurrentConversation()const;
std::string getInstanceId()const;
int getCurrentConcurrency()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int maxConcurrentConversation_;
std::string instanceId_;
int currentConcurrency_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYRESULT_H_

View File

@@ -69,6 +69,7 @@ namespace AlibabaCloud
std::string jobGroupDescription;
std::string jobGroupId;
std::string scriptName;
int totalCallNum;
long creationTime;
Strategy strategy;
ExportProgress exportProgress;

View File

@@ -71,6 +71,7 @@ namespace AlibabaCloud
std::string jobGroupDescription;
std::string jobGroupId;
std::string scriptName;
int totalCallNum;
long creationTime;
Strategy strategy;
ExportProgress exportProgress;

View File

@@ -37,6 +37,7 @@ namespace AlibabaCloud
std::string ownerId;
std::string instanceId;
int maxConcurrency;
std::string baseStrategy;
std::string business;
};

View File

@@ -36,18 +36,19 @@ namespace AlibabaCloud
{
struct Script
{
std::string industry;
std::string status;
bool isDrafted;
std::string scriptName;
std::string scriptDescription;
long updateTime;
std::string rejectReason;
std::string scriptId;
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;
};
int totalCount;
int pageSize;

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setSecretKey(const std::string& secretKey);
std::string getEndpoint()const;
void setEndpoint(const std::string& endpoint);
std::vector<std::string> getCallingNumber()const;
void setCallingNumber(const std::vector<std::string>& callingNumber);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getInstanceName()const;
@@ -58,6 +60,7 @@ namespace AlibabaCloud
int maxConcurrentConversation_;
std::string secretKey_;
std::string endpoint_;
std::vector<std::string> callingNumber_;
std::string instanceId_;
std::string instanceName_;
std::string callCenterInstanceId_;

View File

@@ -45,14 +45,20 @@ namespace AlibabaCloud
void setScene(const std::string& scene);
std::string getScriptId()const;
void setScriptId(const std::string& scriptId);
std::vector<std::string> getScriptWaveform()const;
void setScriptWaveform(const std::vector<std::string>& scriptWaveform);
std::string getAsrConfig()const;
void setAsrConfig(const std::string& asrConfig);
bool getMiniPlaybackEnabled()const;
void setMiniPlaybackEnabled(bool miniPlaybackEnabled);
std::string getChatbotId()const;
void setChatbotId(const std::string& chatbotId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getAsrConfig()const;
void setAsrConfig(const std::string& asrConfig);
std::string getScriptDescription()const;
void setScriptDescription(const std::string& scriptDescription);
std::vector<std::string> getScriptContent()const;
void setScriptContent(const std::vector<std::string>& scriptContent);
private:
std::string ttsConfig_;
@@ -60,10 +66,13 @@ namespace AlibabaCloud
std::string scriptName_;
std::string scene_;
std::string scriptId_;
std::vector<std::string> scriptWaveform_;
std::string asrConfig_;
bool miniPlaybackEnabled_;
std::string chatbotId_;
std::string instanceId_;
std::string asrConfig_;
std::string scriptDescription_;
std::vector<std::string> scriptContent_;
};
}

View File

@@ -56,10 +56,16 @@ namespace AlibabaCloud
std::string value;
std::string key;
};
struct TagHit
{
std::string tagName;
std::string tagGroup;
};
bool hasAnswered;
std::string status;
bool hasHangUpByRejection;
std::string taskEndReason;
std::vector<TagHit> tagHits;
std::string callDurationDisplay;
std::string statusName;
long callTime;

View File

@@ -39,6 +39,8 @@ namespace AlibabaCloud
void setJobJson(const std::string& jobJson);
std::vector<std::string> getCallingNumber()const;
void setCallingNumber(const std::vector<std::string>& callingNumber);
std::string getScriptId()const;
void setScriptId(const std::string& scriptId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getJobGroupId()const;
@@ -51,6 +53,7 @@ namespace AlibabaCloud
private:
std::string jobJson_;
std::vector<std::string> callingNumber_;
std::string scriptId_;
std::string instanceId_;
std::string jobGroupId_;
bool selfHostedCallCenter_;

View File

@@ -42,6 +42,7 @@ namespace AlibabaCloud
StartJobResult();
explicit StartJobResult(const std::string &payload);
~StartJobResult();
std::vector<KeyValuePair> getCallIds()const;
std::vector<KeyValuePair> getTaskIds()const;
std::string getMessage()const;
int getHttpStatusCode()const;
@@ -51,6 +52,7 @@ namespace AlibabaCloud
protected:
void parse(const std::string &payload);
private:
std::vector<KeyValuePair> callIds_;
std::vector<KeyValuePair> taskIds_;
std::string message_;
int httpStatusCode_;

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_TERMINATECALLREQUEST_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLREQUEST_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 TerminateCallRequest : public RpcServiceRequest
{
public:
TerminateCallRequest();
~TerminateCallRequest();
std::string getCallId()const;
void setCallId(const std::string& callId);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
private:
std::string callId_;
std::string instanceId_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLREQUEST_H_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLRESULT_H_
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLRESULT_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 TerminateCallResult : public ServiceResult
{
public:
TerminateCallResult();
explicit TerminateCallResult(const std::string &payload);
~TerminateCallResult();
std::string getMessage()const;
int getHttpStatusCode()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLRESULT_H_