regenerate code

This commit is contained in:
wb-hx510875
2020-03-26 17:27:13 +08:00
committed by Axios
parent cba94f2119
commit f0c2600a26
6249 changed files with 188711 additions and 43443 deletions

View File

@@ -21,6 +21,8 @@ set(voicenavigator_public_header
include/alibabacloud/voicenavigator/VoiceNavigatorExport.h )
set(voicenavigator_public_header_model
include/alibabacloud/voicenavigator/model/AssociateChatbotInstanceRequest.h
include/alibabacloud/voicenavigator/model/AssociateChatbotInstanceResult.h
include/alibabacloud/voicenavigator/model/AuditTTSVoiceRequest.h
include/alibabacloud/voicenavigator/model/AuditTTSVoiceResult.h
include/alibabacloud/voicenavigator/model/AuthorizedRequest.h
@@ -93,6 +95,8 @@ set(voicenavigator_public_header_model
include/alibabacloud/voicenavigator/model/ExportStatisticalDataResult.h
include/alibabacloud/voicenavigator/model/ListCategoriesRequest.h
include/alibabacloud/voicenavigator/model/ListCategoriesResult.h
include/alibabacloud/voicenavigator/model/ListChatbotInstancesRequest.h
include/alibabacloud/voicenavigator/model/ListChatbotInstancesResult.h
include/alibabacloud/voicenavigator/model/ListConversationDetailsRequest.h
include/alibabacloud/voicenavigator/model/ListConversationDetailsResult.h
include/alibabacloud/voicenavigator/model/ListConversationsRequest.h
@@ -148,6 +152,8 @@ set(voicenavigator_public_header_model
set(voicenavigator_src
src/VoiceNavigatorClient.cc
src/model/AssociateChatbotInstanceRequest.cc
src/model/AssociateChatbotInstanceResult.cc
src/model/AuditTTSVoiceRequest.cc
src/model/AuditTTSVoiceResult.cc
src/model/AuthorizedRequest.cc
@@ -220,6 +226,8 @@ set(voicenavigator_src
src/model/ExportStatisticalDataResult.cc
src/model/ListCategoriesRequest.cc
src/model/ListCategoriesResult.cc
src/model/ListChatbotInstancesRequest.cc
src/model/ListChatbotInstancesResult.cc
src/model/ListConversationDetailsRequest.cc
src/model/ListConversationDetailsResult.cc
src/model/ListConversationsRequest.cc

View File

@@ -22,6 +22,8 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "VoiceNavigatorExport.h"
#include "model/AssociateChatbotInstanceRequest.h"
#include "model/AssociateChatbotInstanceResult.h"
#include "model/AuditTTSVoiceRequest.h"
#include "model/AuditTTSVoiceResult.h"
#include "model/AuthorizedRequest.h"
@@ -94,6 +96,8 @@
#include "model/ExportStatisticalDataResult.h"
#include "model/ListCategoriesRequest.h"
#include "model/ListCategoriesResult.h"
#include "model/ListChatbotInstancesRequest.h"
#include "model/ListChatbotInstancesResult.h"
#include "model/ListConversationDetailsRequest.h"
#include "model/ListConversationDetailsResult.h"
#include "model/ListConversationsRequest.h"
@@ -155,6 +159,9 @@ namespace AlibabaCloud
class ALIBABACLOUD_VOICENAVIGATOR_EXPORT VoiceNavigatorClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AssociateChatbotInstanceResult> AssociateChatbotInstanceOutcome;
typedef std::future<AssociateChatbotInstanceOutcome> AssociateChatbotInstanceOutcomeCallable;
typedef std::function<void(const VoiceNavigatorClient*, const Model::AssociateChatbotInstanceRequest&, const AssociateChatbotInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssociateChatbotInstanceAsyncHandler;
typedef Outcome<Error, Model::AuditTTSVoiceResult> AuditTTSVoiceOutcome;
typedef std::future<AuditTTSVoiceOutcome> AuditTTSVoiceOutcomeCallable;
typedef std::function<void(const VoiceNavigatorClient*, const Model::AuditTTSVoiceRequest&, const AuditTTSVoiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AuditTTSVoiceAsyncHandler;
@@ -263,6 +270,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListCategoriesResult> ListCategoriesOutcome;
typedef std::future<ListCategoriesOutcome> ListCategoriesOutcomeCallable;
typedef std::function<void(const VoiceNavigatorClient*, const Model::ListCategoriesRequest&, const ListCategoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCategoriesAsyncHandler;
typedef Outcome<Error, Model::ListChatbotInstancesResult> ListChatbotInstancesOutcome;
typedef std::future<ListChatbotInstancesOutcome> ListChatbotInstancesOutcomeCallable;
typedef std::function<void(const VoiceNavigatorClient*, const Model::ListChatbotInstancesRequest&, const ListChatbotInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListChatbotInstancesAsyncHandler;
typedef Outcome<Error, Model::ListConversationDetailsResult> ListConversationDetailsOutcome;
typedef std::future<ListConversationDetailsOutcome> ListConversationDetailsOutcomeCallable;
typedef std::function<void(const VoiceNavigatorClient*, const Model::ListConversationDetailsRequest&, const ListConversationDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListConversationDetailsAsyncHandler;
@@ -346,6 +356,9 @@ namespace AlibabaCloud
VoiceNavigatorClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
VoiceNavigatorClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~VoiceNavigatorClient();
AssociateChatbotInstanceOutcome associateChatbotInstance(const Model::AssociateChatbotInstanceRequest &request)const;
void associateChatbotInstanceAsync(const Model::AssociateChatbotInstanceRequest& request, const AssociateChatbotInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AssociateChatbotInstanceOutcomeCallable associateChatbotInstanceCallable(const Model::AssociateChatbotInstanceRequest& request) const;
AuditTTSVoiceOutcome auditTTSVoice(const Model::AuditTTSVoiceRequest &request)const;
void auditTTSVoiceAsync(const Model::AuditTTSVoiceRequest& request, const AuditTTSVoiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AuditTTSVoiceOutcomeCallable auditTTSVoiceCallable(const Model::AuditTTSVoiceRequest& request) const;
@@ -454,6 +467,9 @@ namespace AlibabaCloud
ListCategoriesOutcome listCategories(const Model::ListCategoriesRequest &request)const;
void listCategoriesAsync(const Model::ListCategoriesRequest& request, const ListCategoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListCategoriesOutcomeCallable listCategoriesCallable(const Model::ListCategoriesRequest& 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;
ListConversationDetailsOutcome listConversationDetails(const Model::ListConversationDetailsRequest &request)const;
void listConversationDetailsAsync(const Model::ListConversationDetailsRequest& request, const ListConversationDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListConversationDetailsOutcomeCallable listConversationDetailsCallable(const Model::ListConversationDetailsRequest& request) const;

View File

@@ -0,0 +1,54 @@
/*
* 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_VOICENAVIGATOR_MODEL_ASSOCIATECHATBOTINSTANCEREQUEST_H_
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_ASSOCIATECHATBOTINSTANCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/voicenavigator/VoiceNavigatorExport.h>
namespace AlibabaCloud
{
namespace VoiceNavigator
{
namespace Model
{
class ALIBABACLOUD_VOICENAVIGATOR_EXPORT AssociateChatbotInstanceRequest : public RpcServiceRequest
{
public:
AssociateChatbotInstanceRequest();
~AssociateChatbotInstanceRequest();
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getChatbotInstanceId()const;
void setChatbotInstanceId(const std::string& chatbotInstanceId);
std::string getChatbotName()const;
void setChatbotName(const std::string& chatbotName);
private:
std::string instanceId_;
std::string chatbotInstanceId_;
std::string chatbotName_;
};
}
}
}
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_ASSOCIATECHATBOTINSTANCEREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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_VOICENAVIGATOR_MODEL_ASSOCIATECHATBOTINSTANCERESULT_H_
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_ASSOCIATECHATBOTINSTANCERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/voicenavigator/VoiceNavigatorExport.h>
namespace AlibabaCloud
{
namespace VoiceNavigator
{
namespace Model
{
class ALIBABACLOUD_VOICENAVIGATOR_EXPORT AssociateChatbotInstanceResult : public ServiceResult
{
public:
AssociateChatbotInstanceResult();
explicit AssociateChatbotInstanceResult(const std::string &payload);
~AssociateChatbotInstanceResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_ASSOCIATECHATBOTINSTANCERESULT_H_

View File

@@ -45,6 +45,8 @@ namespace AlibabaCloud
void setName(const std::string& name);
std::string getNluServiceType()const;
void setNluServiceType(const std::string& nluServiceType);
std::string getChatbotName()const;
void setChatbotName(const std::string& chatbotName);
private:
std::string description_;
@@ -52,6 +54,7 @@ namespace AlibabaCloud
std::string chatbotInstanceId_;
std::string name_;
std::string nluServiceType_;
std::string chatbotName_;
};
}

View File

@@ -35,23 +35,23 @@ namespace AlibabaCloud
DebugBeginDialogueRequest();
~DebugBeginDialogueRequest();
std::string getConversationId()const;
void setConversationId(const std::string& conversationId);
std::string getInitialContext()const;
void setInitialContext(const std::string& initialContext);
std::string getCallingNumber()const;
void setCallingNumber(const std::string& callingNumber);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getCalledNumber()const;
void setCalledNumber(const std::string& calledNumber);
std::string getConversationId()const;
void setConversationId(const std::string& conversationId);
std::string getInitialContext()const;
void setInitialContext(const std::string& initialContext);
private:
std::string conversationId_;
std::string initialContext_;
std::string callingNumber_;
std::string instanceId_;
std::string calledNumber_;
std::string conversationId_;
std::string initialContext_;
};
}

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
DebugBeginDialogueResult();
explicit DebugBeginDialogueResult(const std::string &payload);
~DebugBeginDialogueResult();
bool getInterruptible()const;
std::string getAction()const;
bool getInterruptible()const;
std::string getActionParams()const;
std::string getTextResponse()const;
protected:
void parse(const std::string &payload);
private:
bool interruptible_;
std::string action_;
bool interruptible_;
std::string actionParams_;
std::string textResponse_;

View File

@@ -0,0 +1,54 @@
/*
* 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_VOICENAVIGATOR_MODEL_LISTCHATBOTINSTANCESREQUEST_H_
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCHATBOTINSTANCESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/voicenavigator/VoiceNavigatorExport.h>
namespace AlibabaCloud
{
namespace VoiceNavigator
{
namespace Model
{
class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ListChatbotInstancesRequest : public RpcServiceRequest
{
public:
ListChatbotInstancesRequest();
~ListChatbotInstancesRequest();
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
int getPageSize()const;
void setPageSize(int pageSize);
private:
int pageNumber_;
std::string instanceId_;
int pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCHATBOTINSTANCESREQUEST_H_

View File

@@ -0,0 +1,67 @@
/*
* 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_VOICENAVIGATOR_MODEL_LISTCHATBOTINSTANCESRESULT_H_
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCHATBOTINSTANCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/voicenavigator/VoiceNavigatorExport.h>
namespace AlibabaCloud
{
namespace VoiceNavigator
{
namespace Model
{
class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ListChatbotInstancesResult : public ServiceResult
{
public:
struct Bot
{
std::string languageCode;
std::string timeZone;
std::string instanceId;
std::string introduction;
std::string createTime;
std::string avatar;
std::string name;
};
ListChatbotInstancesResult();
explicit ListChatbotInstancesResult(const std::string &payload);
~ListChatbotInstancesResult();
long getTotalCount()const;
std::vector<Bot> getBots()const;
long getPageSize()const;
int getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
long totalCount_;
std::vector<Bot> bots_;
long pageSize_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCHATBOTINSTANCESRESULT_H_

View File

@@ -37,16 +37,16 @@ namespace AlibabaCloud
SilenceTimeoutResult();
explicit SilenceTimeoutResult(const std::string &payload);
~SilenceTimeoutResult();
bool getInterruptible()const;
std::string getAction()const;
bool getInterruptible()const;
std::string getActionParams()const;
std::string getTextResponse()const;
protected:
void parse(const std::string &payload);
private:
bool interruptible_;
std::string action_;
bool interruptible_;
std::string actionParams_;
std::string textResponse_;

View File

@@ -51,6 +51,42 @@ VoiceNavigatorClient::VoiceNavigatorClient(const std::string & accessKeyId, cons
VoiceNavigatorClient::~VoiceNavigatorClient()
{}
VoiceNavigatorClient::AssociateChatbotInstanceOutcome VoiceNavigatorClient::associateChatbotInstance(const AssociateChatbotInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AssociateChatbotInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AssociateChatbotInstanceOutcome(AssociateChatbotInstanceResult(outcome.result()));
else
return AssociateChatbotInstanceOutcome(outcome.error());
}
void VoiceNavigatorClient::associateChatbotInstanceAsync(const AssociateChatbotInstanceRequest& request, const AssociateChatbotInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, associateChatbotInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
VoiceNavigatorClient::AssociateChatbotInstanceOutcomeCallable VoiceNavigatorClient::associateChatbotInstanceCallable(const AssociateChatbotInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AssociateChatbotInstanceOutcome()>>(
[this, request]()
{
return this->associateChatbotInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VoiceNavigatorClient::AuditTTSVoiceOutcome VoiceNavigatorClient::auditTTSVoice(const AuditTTSVoiceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1347,6 +1383,42 @@ VoiceNavigatorClient::ListCategoriesOutcomeCallable VoiceNavigatorClient::listCa
return task->get_future();
}
VoiceNavigatorClient::ListChatbotInstancesOutcome VoiceNavigatorClient::listChatbotInstances(const ListChatbotInstancesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListChatbotInstancesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListChatbotInstancesOutcome(ListChatbotInstancesResult(outcome.result()));
else
return ListChatbotInstancesOutcome(outcome.error());
}
void VoiceNavigatorClient::listChatbotInstancesAsync(const ListChatbotInstancesRequest& request, const ListChatbotInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listChatbotInstances(request), context);
};
asyncExecute(new Runnable(fn));
}
VoiceNavigatorClient::ListChatbotInstancesOutcomeCallable VoiceNavigatorClient::listChatbotInstancesCallable(const ListChatbotInstancesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListChatbotInstancesOutcome()>>(
[this, request]()
{
return this->listChatbotInstances(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VoiceNavigatorClient::ListConversationDetailsOutcome VoiceNavigatorClient::listConversationDetails(const ListConversationDetailsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,62 @@
/*
* 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/voicenavigator/model/AssociateChatbotInstanceRequest.h>
using AlibabaCloud::VoiceNavigator::Model::AssociateChatbotInstanceRequest;
AssociateChatbotInstanceRequest::AssociateChatbotInstanceRequest() :
RpcServiceRequest("voicenavigator", "2018-06-12", "AssociateChatbotInstance")
{
setMethod(HttpRequest::Method::Post);
}
AssociateChatbotInstanceRequest::~AssociateChatbotInstanceRequest()
{}
std::string AssociateChatbotInstanceRequest::getInstanceId()const
{
return instanceId_;
}
void AssociateChatbotInstanceRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string AssociateChatbotInstanceRequest::getChatbotInstanceId()const
{
return chatbotInstanceId_;
}
void AssociateChatbotInstanceRequest::setChatbotInstanceId(const std::string& chatbotInstanceId)
{
chatbotInstanceId_ = chatbotInstanceId;
setParameter("ChatbotInstanceId", chatbotInstanceId);
}
std::string AssociateChatbotInstanceRequest::getChatbotName()const
{
return chatbotName_;
}
void AssociateChatbotInstanceRequest::setChatbotName(const std::string& chatbotName)
{
chatbotName_ = chatbotName;
setParameter("ChatbotName", chatbotName);
}

View File

@@ -0,0 +1,44 @@
/*
* 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/voicenavigator/model/AssociateChatbotInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::VoiceNavigator;
using namespace AlibabaCloud::VoiceNavigator::Model;
AssociateChatbotInstanceResult::AssociateChatbotInstanceResult() :
ServiceResult()
{}
AssociateChatbotInstanceResult::AssociateChatbotInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AssociateChatbotInstanceResult::~AssociateChatbotInstanceResult()
{}
void AssociateChatbotInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -82,3 +82,14 @@ void CreateInstanceRequest::setNluServiceType(const std::string& nluServiceType)
setParameter("NluServiceType", nluServiceType);
}
std::string CreateInstanceRequest::getChatbotName()const
{
return chatbotName_;
}
void CreateInstanceRequest::setChatbotName(const std::string& chatbotName)
{
chatbotName_ = chatbotName;
setParameter("ChatbotName", chatbotName);
}

View File

@@ -27,6 +27,28 @@ DebugBeginDialogueRequest::DebugBeginDialogueRequest() :
DebugBeginDialogueRequest::~DebugBeginDialogueRequest()
{}
std::string DebugBeginDialogueRequest::getConversationId()const
{
return conversationId_;
}
void DebugBeginDialogueRequest::setConversationId(const std::string& conversationId)
{
conversationId_ = conversationId;
setParameter("ConversationId", conversationId);
}
std::string DebugBeginDialogueRequest::getInitialContext()const
{
return initialContext_;
}
void DebugBeginDialogueRequest::setInitialContext(const std::string& initialContext)
{
initialContext_ = initialContext;
setParameter("InitialContext", initialContext);
}
std::string DebugBeginDialogueRequest::getCallingNumber()const
{
return callingNumber_;
@@ -60,25 +82,3 @@ void DebugBeginDialogueRequest::setCalledNumber(const std::string& calledNumber)
setParameter("CalledNumber", calledNumber);
}
std::string DebugBeginDialogueRequest::getConversationId()const
{
return conversationId_;
}
void DebugBeginDialogueRequest::setConversationId(const std::string& conversationId)
{
conversationId_ = conversationId;
setParameter("ConversationId", conversationId);
}
std::string DebugBeginDialogueRequest::getInitialContext()const
{
return initialContext_;
}
void DebugBeginDialogueRequest::setInitialContext(const std::string& initialContext)
{
initialContext_ = initialContext;
setParameter("InitialContext", initialContext);
}

View File

@@ -39,27 +39,27 @@ void DebugBeginDialogueResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TextResponse"].isNull())
textResponse_ = value["TextResponse"].asString();
if(!value["Interruptible"].isNull())
interruptible_ = value["Interruptible"].asString() == "true";
if(!value["Action"].isNull())
action_ = value["Action"].asString();
if(!value["ActionParams"].isNull())
actionParams_ = value["ActionParams"].asString();
if(!value["Interruptible"].isNull())
interruptible_ = value["Interruptible"].asString() == "true";
if(!value["TextResponse"].isNull())
textResponse_ = value["TextResponse"].asString();
}
bool DebugBeginDialogueResult::getInterruptible()const
{
return interruptible_;
}
std::string DebugBeginDialogueResult::getAction()const
{
return action_;
}
bool DebugBeginDialogueResult::getInterruptible()const
{
return interruptible_;
}
std::string DebugBeginDialogueResult::getActionParams()const
{
return actionParams_;

View File

@@ -0,0 +1,62 @@
/*
* 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/voicenavigator/model/ListChatbotInstancesRequest.h>
using AlibabaCloud::VoiceNavigator::Model::ListChatbotInstancesRequest;
ListChatbotInstancesRequest::ListChatbotInstancesRequest() :
RpcServiceRequest("voicenavigator", "2018-06-12", "ListChatbotInstances")
{
setMethod(HttpRequest::Method::Get);
}
ListChatbotInstancesRequest::~ListChatbotInstancesRequest()
{}
int ListChatbotInstancesRequest::getPageNumber()const
{
return pageNumber_;
}
void ListChatbotInstancesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListChatbotInstancesRequest::getInstanceId()const
{
return instanceId_;
}
void ListChatbotInstancesRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
int ListChatbotInstancesRequest::getPageSize()const
{
return pageSize_;
}
void ListChatbotInstancesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

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/voicenavigator/model/ListChatbotInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::VoiceNavigator;
using namespace AlibabaCloud::VoiceNavigator::Model;
ListChatbotInstancesResult::ListChatbotInstancesResult() :
ServiceResult()
{}
ListChatbotInstancesResult::ListChatbotInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListChatbotInstancesResult::~ListChatbotInstancesResult()
{}
void ListChatbotInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBotsNode = value["Bots"]["Bot"];
for (auto valueBotsBot : allBotsNode)
{
Bot botsObject;
if(!valueBotsBot["InstanceId"].isNull())
botsObject.instanceId = valueBotsBot["InstanceId"].asString();
if(!valueBotsBot["TimeZone"].isNull())
botsObject.timeZone = valueBotsBot["TimeZone"].asString();
if(!valueBotsBot["Avatar"].isNull())
botsObject.avatar = valueBotsBot["Avatar"].asString();
if(!valueBotsBot["LanguageCode"].isNull())
botsObject.languageCode = valueBotsBot["LanguageCode"].asString();
if(!valueBotsBot["Name"].isNull())
botsObject.name = valueBotsBot["Name"].asString();
if(!valueBotsBot["Introduction"].isNull())
botsObject.introduction = valueBotsBot["Introduction"].asString();
if(!valueBotsBot["CreateTime"].isNull())
botsObject.createTime = valueBotsBot["CreateTime"].asString();
bots_.push_back(botsObject);
}
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
long ListChatbotInstancesResult::getTotalCount()const
{
return totalCount_;
}
std::vector<ListChatbotInstancesResult::Bot> ListChatbotInstancesResult::getBots()const
{
return bots_;
}
long ListChatbotInstancesResult::getPageSize()const
{
return pageSize_;
}
int ListChatbotInstancesResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -39,27 +39,27 @@ void SilenceTimeoutResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TextResponse"].isNull())
textResponse_ = value["TextResponse"].asString();
if(!value["Interruptible"].isNull())
interruptible_ = value["Interruptible"].asString() == "true";
if(!value["Action"].isNull())
action_ = value["Action"].asString();
if(!value["ActionParams"].isNull())
actionParams_ = value["ActionParams"].asString();
if(!value["Interruptible"].isNull())
interruptible_ = value["Interruptible"].asString() == "true";
if(!value["TextResponse"].isNull())
textResponse_ = value["TextResponse"].asString();
}
bool SilenceTimeoutResult::getInterruptible()const
{
return interruptible_;
}
std::string SilenceTimeoutResult::getAction()const
{
return action_;
}
bool SilenceTimeoutResult::getInterruptible()const
{
return interruptible_;
}
std::string SilenceTimeoutResult::getActionParams()const
{
return actionParams_;