Supported new features etc.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2021-11-25 Version: 1.36.949
|
||||
- Supported new features etc.
|
||||
|
||||
2021-11-25 Version: 1.36.948
|
||||
- Supported new features for outbound.
|
||||
|
||||
|
||||
@@ -29,6 +29,8 @@ set(voicenavigator_public_header_model
|
||||
include/alibabacloud/voicenavigator/model/BeginDialogueResult.h
|
||||
include/alibabacloud/voicenavigator/model/CollectedNumberRequest.h
|
||||
include/alibabacloud/voicenavigator/model/CollectedNumberResult.h
|
||||
include/alibabacloud/voicenavigator/model/CreateDownloadUrlRequest.h
|
||||
include/alibabacloud/voicenavigator/model/CreateDownloadUrlResult.h
|
||||
include/alibabacloud/voicenavigator/model/CreateInstanceRequest.h
|
||||
include/alibabacloud/voicenavigator/model/CreateInstanceResult.h
|
||||
include/alibabacloud/voicenavigator/model/DebugBeginDialogueRequest.h
|
||||
@@ -39,6 +41,8 @@ set(voicenavigator_public_header_model
|
||||
include/alibabacloud/voicenavigator/model/DebugDialogueResult.h
|
||||
include/alibabacloud/voicenavigator/model/DeleteInstanceRequest.h
|
||||
include/alibabacloud/voicenavigator/model/DeleteInstanceResult.h
|
||||
include/alibabacloud/voicenavigator/model/DescribeAsrVadConfigRequest.h
|
||||
include/alibabacloud/voicenavigator/model/DescribeAsrVadConfigResult.h
|
||||
include/alibabacloud/voicenavigator/model/DescribeConversationRequest.h
|
||||
include/alibabacloud/voicenavigator/model/DescribeConversationResult.h
|
||||
include/alibabacloud/voicenavigator/model/DescribeConversationContextRequest.h
|
||||
@@ -55,6 +59,8 @@ set(voicenavigator_public_header_model
|
||||
include/alibabacloud/voicenavigator/model/DescribeStatisticalDataResult.h
|
||||
include/alibabacloud/voicenavigator/model/DescribeTTSConfigRequest.h
|
||||
include/alibabacloud/voicenavigator/model/DescribeTTSConfigResult.h
|
||||
include/alibabacloud/voicenavigator/model/DescribeVoiceConfigRequest.h
|
||||
include/alibabacloud/voicenavigator/model/DescribeVoiceConfigResult.h
|
||||
include/alibabacloud/voicenavigator/model/DialogueRequest.h
|
||||
include/alibabacloud/voicenavigator/model/DialogueResult.h
|
||||
include/alibabacloud/voicenavigator/model/DisableInstanceRequest.h
|
||||
@@ -73,8 +79,12 @@ set(voicenavigator_public_header_model
|
||||
include/alibabacloud/voicenavigator/model/ListConversationDetailsResult.h
|
||||
include/alibabacloud/voicenavigator/model/ListConversationsRequest.h
|
||||
include/alibabacloud/voicenavigator/model/ListConversationsResult.h
|
||||
include/alibabacloud/voicenavigator/model/ListDownloadTasksRequest.h
|
||||
include/alibabacloud/voicenavigator/model/ListDownloadTasksResult.h
|
||||
include/alibabacloud/voicenavigator/model/ListInstancesRequest.h
|
||||
include/alibabacloud/voicenavigator/model/ListInstancesResult.h
|
||||
include/alibabacloud/voicenavigator/model/ModifyAsrVadConfigRequest.h
|
||||
include/alibabacloud/voicenavigator/model/ModifyAsrVadConfigResult.h
|
||||
include/alibabacloud/voicenavigator/model/ModifyGreetingConfigRequest.h
|
||||
include/alibabacloud/voicenavigator/model/ModifyGreetingConfigResult.h
|
||||
include/alibabacloud/voicenavigator/model/ModifyInstanceRequest.h
|
||||
@@ -102,6 +112,8 @@ set(voicenavigator_src
|
||||
src/model/BeginDialogueResult.cc
|
||||
src/model/CollectedNumberRequest.cc
|
||||
src/model/CollectedNumberResult.cc
|
||||
src/model/CreateDownloadUrlRequest.cc
|
||||
src/model/CreateDownloadUrlResult.cc
|
||||
src/model/CreateInstanceRequest.cc
|
||||
src/model/CreateInstanceResult.cc
|
||||
src/model/DebugBeginDialogueRequest.cc
|
||||
@@ -112,6 +124,8 @@ set(voicenavigator_src
|
||||
src/model/DebugDialogueResult.cc
|
||||
src/model/DeleteInstanceRequest.cc
|
||||
src/model/DeleteInstanceResult.cc
|
||||
src/model/DescribeAsrVadConfigRequest.cc
|
||||
src/model/DescribeAsrVadConfigResult.cc
|
||||
src/model/DescribeConversationRequest.cc
|
||||
src/model/DescribeConversationResult.cc
|
||||
src/model/DescribeConversationContextRequest.cc
|
||||
@@ -128,6 +142,8 @@ set(voicenavigator_src
|
||||
src/model/DescribeStatisticalDataResult.cc
|
||||
src/model/DescribeTTSConfigRequest.cc
|
||||
src/model/DescribeTTSConfigResult.cc
|
||||
src/model/DescribeVoiceConfigRequest.cc
|
||||
src/model/DescribeVoiceConfigResult.cc
|
||||
src/model/DialogueRequest.cc
|
||||
src/model/DialogueResult.cc
|
||||
src/model/DisableInstanceRequest.cc
|
||||
@@ -146,8 +162,12 @@ set(voicenavigator_src
|
||||
src/model/ListConversationDetailsResult.cc
|
||||
src/model/ListConversationsRequest.cc
|
||||
src/model/ListConversationsResult.cc
|
||||
src/model/ListDownloadTasksRequest.cc
|
||||
src/model/ListDownloadTasksResult.cc
|
||||
src/model/ListInstancesRequest.cc
|
||||
src/model/ListInstancesResult.cc
|
||||
src/model/ModifyAsrVadConfigRequest.cc
|
||||
src/model/ModifyAsrVadConfigResult.cc
|
||||
src/model/ModifyGreetingConfigRequest.cc
|
||||
src/model/ModifyGreetingConfigResult.cc
|
||||
src/model/ModifyInstanceRequest.cc
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
#include "model/BeginDialogueResult.h"
|
||||
#include "model/CollectedNumberRequest.h"
|
||||
#include "model/CollectedNumberResult.h"
|
||||
#include "model/CreateDownloadUrlRequest.h"
|
||||
#include "model/CreateDownloadUrlResult.h"
|
||||
#include "model/CreateInstanceRequest.h"
|
||||
#include "model/CreateInstanceResult.h"
|
||||
#include "model/DebugBeginDialogueRequest.h"
|
||||
@@ -40,6 +42,8 @@
|
||||
#include "model/DebugDialogueResult.h"
|
||||
#include "model/DeleteInstanceRequest.h"
|
||||
#include "model/DeleteInstanceResult.h"
|
||||
#include "model/DescribeAsrVadConfigRequest.h"
|
||||
#include "model/DescribeAsrVadConfigResult.h"
|
||||
#include "model/DescribeConversationRequest.h"
|
||||
#include "model/DescribeConversationResult.h"
|
||||
#include "model/DescribeConversationContextRequest.h"
|
||||
@@ -56,6 +60,8 @@
|
||||
#include "model/DescribeStatisticalDataResult.h"
|
||||
#include "model/DescribeTTSConfigRequest.h"
|
||||
#include "model/DescribeTTSConfigResult.h"
|
||||
#include "model/DescribeVoiceConfigRequest.h"
|
||||
#include "model/DescribeVoiceConfigResult.h"
|
||||
#include "model/DialogueRequest.h"
|
||||
#include "model/DialogueResult.h"
|
||||
#include "model/DisableInstanceRequest.h"
|
||||
@@ -74,8 +80,12 @@
|
||||
#include "model/ListConversationDetailsResult.h"
|
||||
#include "model/ListConversationsRequest.h"
|
||||
#include "model/ListConversationsResult.h"
|
||||
#include "model/ListDownloadTasksRequest.h"
|
||||
#include "model/ListDownloadTasksResult.h"
|
||||
#include "model/ListInstancesRequest.h"
|
||||
#include "model/ListInstancesResult.h"
|
||||
#include "model/ModifyAsrVadConfigRequest.h"
|
||||
#include "model/ModifyAsrVadConfigResult.h"
|
||||
#include "model/ModifyGreetingConfigRequest.h"
|
||||
#include "model/ModifyGreetingConfigResult.h"
|
||||
#include "model/ModifyInstanceRequest.h"
|
||||
@@ -113,6 +123,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CollectedNumberResult> CollectedNumberOutcome;
|
||||
typedef std::future<CollectedNumberOutcome> CollectedNumberOutcomeCallable;
|
||||
typedef std::function<void(const VoiceNavigatorClient*, const Model::CollectedNumberRequest&, const CollectedNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CollectedNumberAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDownloadUrlResult> CreateDownloadUrlOutcome;
|
||||
typedef std::future<CreateDownloadUrlOutcome> CreateDownloadUrlOutcomeCallable;
|
||||
typedef std::function<void(const VoiceNavigatorClient*, const Model::CreateDownloadUrlRequest&, const CreateDownloadUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDownloadUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateInstanceResult> CreateInstanceOutcome;
|
||||
typedef std::future<CreateInstanceOutcome> CreateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const VoiceNavigatorClient*, const Model::CreateInstanceRequest&, const CreateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceAsyncHandler;
|
||||
@@ -128,6 +141,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteInstanceResult> DeleteInstanceOutcome;
|
||||
typedef std::future<DeleteInstanceOutcome> DeleteInstanceOutcomeCallable;
|
||||
typedef std::function<void(const VoiceNavigatorClient*, const Model::DeleteInstanceRequest&, const DeleteInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAsrVadConfigResult> DescribeAsrVadConfigOutcome;
|
||||
typedef std::future<DescribeAsrVadConfigOutcome> DescribeAsrVadConfigOutcomeCallable;
|
||||
typedef std::function<void(const VoiceNavigatorClient*, const Model::DescribeAsrVadConfigRequest&, const DescribeAsrVadConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAsrVadConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeConversationResult> DescribeConversationOutcome;
|
||||
typedef std::future<DescribeConversationOutcome> DescribeConversationOutcomeCallable;
|
||||
typedef std::function<void(const VoiceNavigatorClient*, const Model::DescribeConversationRequest&, const DescribeConversationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeConversationAsyncHandler;
|
||||
@@ -152,6 +168,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeTTSConfigResult> DescribeTTSConfigOutcome;
|
||||
typedef std::future<DescribeTTSConfigOutcome> DescribeTTSConfigOutcomeCallable;
|
||||
typedef std::function<void(const VoiceNavigatorClient*, const Model::DescribeTTSConfigRequest&, const DescribeTTSConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTTSConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVoiceConfigResult> DescribeVoiceConfigOutcome;
|
||||
typedef std::future<DescribeVoiceConfigOutcome> DescribeVoiceConfigOutcomeCallable;
|
||||
typedef std::function<void(const VoiceNavigatorClient*, const Model::DescribeVoiceConfigRequest&, const DescribeVoiceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVoiceConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DialogueResult> DialogueOutcome;
|
||||
typedef std::future<DialogueOutcome> DialogueOutcomeCallable;
|
||||
typedef std::function<void(const VoiceNavigatorClient*, const Model::DialogueRequest&, const DialogueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DialogueAsyncHandler;
|
||||
@@ -179,9 +198,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListConversationsResult> ListConversationsOutcome;
|
||||
typedef std::future<ListConversationsOutcome> ListConversationsOutcomeCallable;
|
||||
typedef std::function<void(const VoiceNavigatorClient*, const Model::ListConversationsRequest&, const ListConversationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListConversationsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDownloadTasksResult> ListDownloadTasksOutcome;
|
||||
typedef std::future<ListDownloadTasksOutcome> ListDownloadTasksOutcomeCallable;
|
||||
typedef std::function<void(const VoiceNavigatorClient*, const Model::ListDownloadTasksRequest&, const ListDownloadTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDownloadTasksAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListInstancesResult> ListInstancesOutcome;
|
||||
typedef std::future<ListInstancesOutcome> ListInstancesOutcomeCallable;
|
||||
typedef std::function<void(const VoiceNavigatorClient*, const Model::ListInstancesRequest&, const ListInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyAsrVadConfigResult> ModifyAsrVadConfigOutcome;
|
||||
typedef std::future<ModifyAsrVadConfigOutcome> ModifyAsrVadConfigOutcomeCallable;
|
||||
typedef std::function<void(const VoiceNavigatorClient*, const Model::ModifyAsrVadConfigRequest&, const ModifyAsrVadConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAsrVadConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyGreetingConfigResult> ModifyGreetingConfigOutcome;
|
||||
typedef std::future<ModifyGreetingConfigOutcome> ModifyGreetingConfigOutcomeCallable;
|
||||
typedef std::function<void(const VoiceNavigatorClient*, const Model::ModifyGreetingConfigRequest&, const ModifyGreetingConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyGreetingConfigAsyncHandler;
|
||||
@@ -223,6 +248,9 @@ namespace AlibabaCloud
|
||||
CollectedNumberOutcome collectedNumber(const Model::CollectedNumberRequest &request)const;
|
||||
void collectedNumberAsync(const Model::CollectedNumberRequest& request, const CollectedNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CollectedNumberOutcomeCallable collectedNumberCallable(const Model::CollectedNumberRequest& request) const;
|
||||
CreateDownloadUrlOutcome createDownloadUrl(const Model::CreateDownloadUrlRequest &request)const;
|
||||
void createDownloadUrlAsync(const Model::CreateDownloadUrlRequest& request, const CreateDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDownloadUrlOutcomeCallable createDownloadUrlCallable(const Model::CreateDownloadUrlRequest& request) const;
|
||||
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;
|
||||
@@ -238,6 +266,9 @@ namespace AlibabaCloud
|
||||
DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const;
|
||||
void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const;
|
||||
DescribeAsrVadConfigOutcome describeAsrVadConfig(const Model::DescribeAsrVadConfigRequest &request)const;
|
||||
void describeAsrVadConfigAsync(const Model::DescribeAsrVadConfigRequest& request, const DescribeAsrVadConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAsrVadConfigOutcomeCallable describeAsrVadConfigCallable(const Model::DescribeAsrVadConfigRequest& request) const;
|
||||
DescribeConversationOutcome describeConversation(const Model::DescribeConversationRequest &request)const;
|
||||
void describeConversationAsync(const Model::DescribeConversationRequest& request, const DescribeConversationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeConversationOutcomeCallable describeConversationCallable(const Model::DescribeConversationRequest& request) const;
|
||||
@@ -262,6 +293,9 @@ namespace AlibabaCloud
|
||||
DescribeTTSConfigOutcome describeTTSConfig(const Model::DescribeTTSConfigRequest &request)const;
|
||||
void describeTTSConfigAsync(const Model::DescribeTTSConfigRequest& request, const DescribeTTSConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTTSConfigOutcomeCallable describeTTSConfigCallable(const Model::DescribeTTSConfigRequest& request) const;
|
||||
DescribeVoiceConfigOutcome describeVoiceConfig(const Model::DescribeVoiceConfigRequest &request)const;
|
||||
void describeVoiceConfigAsync(const Model::DescribeVoiceConfigRequest& request, const DescribeVoiceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVoiceConfigOutcomeCallable describeVoiceConfigCallable(const Model::DescribeVoiceConfigRequest& 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;
|
||||
@@ -289,9 +323,15 @@ namespace AlibabaCloud
|
||||
ListConversationsOutcome listConversations(const Model::ListConversationsRequest &request)const;
|
||||
void listConversationsAsync(const Model::ListConversationsRequest& request, const ListConversationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListConversationsOutcomeCallable listConversationsCallable(const Model::ListConversationsRequest& request) const;
|
||||
ListDownloadTasksOutcome listDownloadTasks(const Model::ListDownloadTasksRequest &request)const;
|
||||
void listDownloadTasksAsync(const Model::ListDownloadTasksRequest& request, const ListDownloadTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDownloadTasksOutcomeCallable listDownloadTasksCallable(const Model::ListDownloadTasksRequest& request) const;
|
||||
ListInstancesOutcome listInstances(const Model::ListInstancesRequest &request)const;
|
||||
void listInstancesAsync(const Model::ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListInstancesOutcomeCallable listInstancesCallable(const Model::ListInstancesRequest& request) const;
|
||||
ModifyAsrVadConfigOutcome modifyAsrVadConfig(const Model::ModifyAsrVadConfigRequest &request)const;
|
||||
void modifyAsrVadConfigAsync(const Model::ModifyAsrVadConfigRequest& request, const ModifyAsrVadConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyAsrVadConfigOutcomeCallable modifyAsrVadConfigCallable(const Model::ModifyAsrVadConfigRequest& request) const;
|
||||
ModifyGreetingConfigOutcome modifyGreetingConfig(const Model::ModifyGreetingConfigRequest &request)const;
|
||||
void modifyGreetingConfigAsync(const Model::ModifyGreetingConfigRequest& request, const ModifyGreetingConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyGreetingConfigOutcomeCallable modifyGreetingConfigCallable(const Model::ModifyGreetingConfigRequest& request) const;
|
||||
|
||||
@@ -45,6 +45,8 @@ namespace AlibabaCloud
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getCalledNumber()const;
|
||||
void setCalledNumber(const std::string& calledNumber);
|
||||
long getInstanceOwnerId()const;
|
||||
void setInstanceOwnerId(long instanceOwnerId);
|
||||
|
||||
private:
|
||||
std::string conversationId_;
|
||||
@@ -52,6 +54,7 @@ namespace AlibabaCloud
|
||||
std::string callingNumber_;
|
||||
std::string instanceId_;
|
||||
std::string calledNumber_;
|
||||
long instanceOwnerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
BeginDialogueResult();
|
||||
explicit BeginDialogueResult(const std::string &payload);
|
||||
~BeginDialogueResult();
|
||||
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_;
|
||||
|
||||
|
||||
@@ -41,11 +41,14 @@ namespace AlibabaCloud
|
||||
void setNumber(const std::string& number);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
long getInstanceOwnerId()const;
|
||||
void setInstanceOwnerId(long instanceOwnerId);
|
||||
|
||||
private:
|
||||
std::string conversationId_;
|
||||
std::string number_;
|
||||
std::string instanceId_;
|
||||
long instanceOwnerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
CollectedNumberResult();
|
||||
explicit CollectedNumberResult(const std::string &payload);
|
||||
~CollectedNumberResult();
|
||||
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_;
|
||||
|
||||
|
||||
@@ -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_VOICENAVIGATOR_MODEL_CREATEDOWNLOADURLREQUEST_H_
|
||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_CREATEDOWNLOADURLREQUEST_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 CreateDownloadUrlRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDownloadUrlRequest();
|
||||
~CreateDownloadUrlRequest();
|
||||
|
||||
std::string getDownloadTaskId()const;
|
||||
void setDownloadTaskId(const std::string& downloadTaskId);
|
||||
std::string getFileId()const;
|
||||
void setFileId(const std::string& fileId);
|
||||
|
||||
private:
|
||||
std::string downloadTaskId_;
|
||||
std::string fileId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_CREATEDOWNLOADURLREQUEST_H_
|
||||
@@ -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_VOICENAVIGATOR_MODEL_CREATEDOWNLOADURLRESULT_H_
|
||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_CREATEDOWNLOADURLRESULT_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 CreateDownloadUrlResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDownloadUrlResult();
|
||||
explicit CreateDownloadUrlResult(const std::string &payload);
|
||||
~CreateDownloadUrlResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getFileHttpUrl()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string fileHttpUrl_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_CREATEDOWNLOADURLRESULT_H_
|
||||
@@ -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_VOICENAVIGATOR_MODEL_DESCRIBEASRVADCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEASRVADCONFIGREQUEST_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 DescribeAsrVadConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAsrVadConfigRequest();
|
||||
~DescribeAsrVadConfigRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEASRVADCONFIGREQUEST_H_
|
||||
@@ -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_VOICENAVIGATOR_MODEL_DESCRIBEASRVADCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEASRVADCONFIGRESULT_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 DescribeAsrVadConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeAsrVadConfigResult();
|
||||
explicit DescribeAsrVadConfigResult(const std::string &payload);
|
||||
~DescribeAsrVadConfigResult();
|
||||
std::string getSpeechNoiseThreshold()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string speechNoiseThreshold_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEASRVADCONFIGRESULT_H_
|
||||
@@ -37,9 +37,12 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
long getInstanceOwnerId()const;
|
||||
void setInstanceOwnerId(long instanceOwnerId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
long instanceOwnerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_VOICENAVIGATOR_MODEL_DESCRIBEVOICECONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEVOICECONFIGREQUEST_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 DescribeVoiceConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeVoiceConfigRequest();
|
||||
~DescribeVoiceConfigRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
long getInstanceOwnerId()const;
|
||||
void setInstanceOwnerId(long instanceOwnerId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
long instanceOwnerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEVOICECONFIGREQUEST_H_
|
||||
@@ -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_VOICENAVIGATOR_MODEL_DESCRIBEVOICECONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEVOICECONFIGRESULT_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 DescribeVoiceConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Ip
|
||||
{
|
||||
std::string ip;
|
||||
};
|
||||
|
||||
|
||||
DescribeVoiceConfigResult();
|
||||
explicit DescribeVoiceConfigResult(const std::string &payload);
|
||||
~DescribeVoiceConfigResult();
|
||||
std::string getAsrVocabularyId()const;
|
||||
std::string getAsrCustomizationId()const;
|
||||
int getVolume()const;
|
||||
std::vector<Ip> getApesIpList()const;
|
||||
std::string getAsrAcousticModelId()const;
|
||||
std::string getVoice()const;
|
||||
std::string getAsrClassVocabularyId()const;
|
||||
int getSpeechRate()const;
|
||||
std::string getSpeechNoiseThreshold()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string asrVocabularyId_;
|
||||
std::string asrCustomizationId_;
|
||||
int volume_;
|
||||
std::vector<Ip> apesIpList_;
|
||||
std::string asrAcousticModelId_;
|
||||
std::string voice_;
|
||||
std::string asrClassVocabularyId_;
|
||||
int speechRate_;
|
||||
std::string speechNoiseThreshold_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEVOICECONFIGRESULT_H_
|
||||
@@ -45,6 +45,8 @@ namespace AlibabaCloud
|
||||
void setCalledNumber(const std::string& calledNumber);
|
||||
std::string getAdditionalContext()const;
|
||||
void setAdditionalContext(const std::string& additionalContext);
|
||||
long getInstanceOwnerId()const;
|
||||
void setInstanceOwnerId(long instanceOwnerId);
|
||||
std::string getUtterance()const;
|
||||
void setUtterance(const std::string& utterance);
|
||||
|
||||
@@ -54,6 +56,7 @@ namespace AlibabaCloud
|
||||
std::string instanceId_;
|
||||
std::string calledNumber_;
|
||||
std::string additionalContext_;
|
||||
long instanceOwnerId_;
|
||||
std::string utterance_;
|
||||
|
||||
};
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace AlibabaCloud
|
||||
DialogueResult();
|
||||
explicit DialogueResult(const std::string &payload);
|
||||
~DialogueResult();
|
||||
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_;
|
||||
|
||||
|
||||
@@ -39,10 +39,13 @@ namespace AlibabaCloud
|
||||
void setConversationId(const std::string& conversationId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
long getInstanceOwnerId()const;
|
||||
void setInstanceOwnerId(long instanceOwnerId);
|
||||
|
||||
private:
|
||||
std::string conversationId_;
|
||||
std::string instanceId_;
|
||||
long instanceOwnerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,16 +35,31 @@ namespace AlibabaCloud
|
||||
ListConversationsRequest();
|
||||
~ListConversationsRequest();
|
||||
|
||||
long getBeginTimeLeftRange()const;
|
||||
void setBeginTimeLeftRange(long beginTimeLeftRange);
|
||||
std::string getQuery()const;
|
||||
void setQuery(const std::string& query);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
long getResult()const;
|
||||
void setResult(long result);
|
||||
std::string getCallingNumber()const;
|
||||
void setCallingNumber(const std::string& callingNumber);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
long getBeginTimeRightRange()const;
|
||||
void setBeginTimeRightRange(long beginTimeRightRange);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
long beginTimeLeftRange_;
|
||||
std::string query_;
|
||||
int pageNumber_;
|
||||
long result_;
|
||||
std::string callingNumber_;
|
||||
std::string instanceId_;
|
||||
long beginTimeRightRange_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
|
||||
@@ -34,14 +34,14 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Conversation
|
||||
{
|
||||
int effectiveAnswerCount;
|
||||
std::string skillGroup;
|
||||
std::string conversationId;
|
||||
bool transferredToAgent;
|
||||
int endReason;
|
||||
long endTime;
|
||||
long beginTime;
|
||||
std::string skillGroupId;
|
||||
int rounds;
|
||||
bool hasToAgent;
|
||||
long startTime;
|
||||
std::string callingNumber;
|
||||
int userUtteranceCount;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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_VOICENAVIGATOR_MODEL_LISTDOWNLOADTASKSREQUEST_H_
|
||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTDOWNLOADTASKSREQUEST_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 ListDownloadTasksRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListDownloadTasksRequest();
|
||||
~ListDownloadTasksRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTDOWNLOADTASKSREQUEST_H_
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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_LISTDOWNLOADTASKSRESULT_H_
|
||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTDOWNLOADTASKSRESULT_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 ListDownloadTasksResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DownloadTasks
|
||||
{
|
||||
struct DownloadTask
|
||||
{
|
||||
struct DownloadTaskFile0
|
||||
{
|
||||
std::string status;
|
||||
int progress;
|
||||
std::string title;
|
||||
std::string fileId;
|
||||
};
|
||||
std::string status;
|
||||
std::string taskId;
|
||||
std::vector<DownloadTask::DownloadTaskFile0> downloadTaskFiles;
|
||||
std::string title;
|
||||
long expireTime;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<DownloadTask> list;
|
||||
};
|
||||
|
||||
|
||||
ListDownloadTasksResult();
|
||||
explicit ListDownloadTasksResult(const std::string &payload);
|
||||
~ListDownloadTasksResult();
|
||||
DownloadTasks getDownloadTasks()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DownloadTasks downloadTasks_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTDOWNLOADTASKSRESULT_H_
|
||||
@@ -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_VOICENAVIGATOR_MODEL_MODIFYASRVADCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRVADCONFIGREQUEST_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 ModifyAsrVadConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyAsrVadConfigRequest();
|
||||
~ModifyAsrVadConfigRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getSpeechNoiseThreshold()const;
|
||||
void setSpeechNoiseThreshold(const std::string& speechNoiseThreshold);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string speechNoiseThreshold_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRVADCONFIGREQUEST_H_
|
||||
@@ -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_MODIFYASRVADCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRVADCONFIGRESULT_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 ModifyAsrVadConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyAsrVadConfigResult();
|
||||
explicit ModifyAsrVadConfigResult(const std::string &payload);
|
||||
~ModifyAsrVadConfigResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRVADCONFIGRESULT_H_
|
||||
@@ -49,6 +49,8 @@ namespace AlibabaCloud
|
||||
void setFileName(const std::string& fileName);
|
||||
std::string getFilePath()const;
|
||||
void setFilePath(const std::string& filePath);
|
||||
long getInstanceOwnerId()const;
|
||||
void setInstanceOwnerId(long instanceOwnerId);
|
||||
|
||||
private:
|
||||
std::string conversationId_;
|
||||
@@ -58,6 +60,7 @@ namespace AlibabaCloud
|
||||
std::string instanceId_;
|
||||
std::string fileName_;
|
||||
std::string filePath_;
|
||||
long instanceOwnerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -41,11 +41,14 @@ namespace AlibabaCloud
|
||||
void setInitialContext(const std::string& initialContext);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
long getInstanceOwnerId()const;
|
||||
void setInstanceOwnerId(long instanceOwnerId);
|
||||
|
||||
private:
|
||||
std::string conversationId_;
|
||||
std::string initialContext_;
|
||||
std::string instanceId_;
|
||||
long instanceOwnerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -195,6 +195,42 @@ VoiceNavigatorClient::CollectedNumberOutcomeCallable VoiceNavigatorClient::colle
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::CreateDownloadUrlOutcome VoiceNavigatorClient::createDownloadUrl(const CreateDownloadUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDownloadUrlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDownloadUrlOutcome(CreateDownloadUrlResult(outcome.result()));
|
||||
else
|
||||
return CreateDownloadUrlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VoiceNavigatorClient::createDownloadUrlAsync(const CreateDownloadUrlRequest& request, const CreateDownloadUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDownloadUrl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::CreateDownloadUrlOutcomeCallable VoiceNavigatorClient::createDownloadUrlCallable(const CreateDownloadUrlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDownloadUrlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDownloadUrl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::CreateInstanceOutcome VoiceNavigatorClient::createInstance(const CreateInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,6 +411,42 @@ VoiceNavigatorClient::DeleteInstanceOutcomeCallable VoiceNavigatorClient::delete
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::DescribeAsrVadConfigOutcome VoiceNavigatorClient::describeAsrVadConfig(const DescribeAsrVadConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAsrVadConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAsrVadConfigOutcome(DescribeAsrVadConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeAsrVadConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VoiceNavigatorClient::describeAsrVadConfigAsync(const DescribeAsrVadConfigRequest& request, const DescribeAsrVadConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAsrVadConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::DescribeAsrVadConfigOutcomeCallable VoiceNavigatorClient::describeAsrVadConfigCallable(const DescribeAsrVadConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAsrVadConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAsrVadConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::DescribeConversationOutcome VoiceNavigatorClient::describeConversation(const DescribeConversationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -663,6 +735,42 @@ VoiceNavigatorClient::DescribeTTSConfigOutcomeCallable VoiceNavigatorClient::des
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::DescribeVoiceConfigOutcome VoiceNavigatorClient::describeVoiceConfig(const DescribeVoiceConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVoiceConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVoiceConfigOutcome(DescribeVoiceConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeVoiceConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VoiceNavigatorClient::describeVoiceConfigAsync(const DescribeVoiceConfigRequest& request, const DescribeVoiceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVoiceConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::DescribeVoiceConfigOutcomeCallable VoiceNavigatorClient::describeVoiceConfigCallable(const DescribeVoiceConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVoiceConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVoiceConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::DialogueOutcome VoiceNavigatorClient::dialogue(const DialogueRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -987,6 +1095,42 @@ VoiceNavigatorClient::ListConversationsOutcomeCallable VoiceNavigatorClient::lis
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::ListDownloadTasksOutcome VoiceNavigatorClient::listDownloadTasks(const ListDownloadTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDownloadTasksOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDownloadTasksOutcome(ListDownloadTasksResult(outcome.result()));
|
||||
else
|
||||
return ListDownloadTasksOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VoiceNavigatorClient::listDownloadTasksAsync(const ListDownloadTasksRequest& request, const ListDownloadTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDownloadTasks(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::ListDownloadTasksOutcomeCallable VoiceNavigatorClient::listDownloadTasksCallable(const ListDownloadTasksRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDownloadTasksOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDownloadTasks(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::ListInstancesOutcome VoiceNavigatorClient::listInstances(const ListInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,6 +1167,42 @@ VoiceNavigatorClient::ListInstancesOutcomeCallable VoiceNavigatorClient::listIns
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::ModifyAsrVadConfigOutcome VoiceNavigatorClient::modifyAsrVadConfig(const ModifyAsrVadConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyAsrVadConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyAsrVadConfigOutcome(ModifyAsrVadConfigResult(outcome.result()));
|
||||
else
|
||||
return ModifyAsrVadConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void VoiceNavigatorClient::modifyAsrVadConfigAsync(const ModifyAsrVadConfigRequest& request, const ModifyAsrVadConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyAsrVadConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::ModifyAsrVadConfigOutcomeCallable VoiceNavigatorClient::modifyAsrVadConfigCallable(const ModifyAsrVadConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyAsrVadConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyAsrVadConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
VoiceNavigatorClient::ModifyGreetingConfigOutcome VoiceNavigatorClient::modifyGreetingConfig(const ModifyGreetingConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -82,3 +82,14 @@ void BeginDialogueRequest::setCalledNumber(const std::string& calledNumber)
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
long BeginDialogueRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
}
|
||||
|
||||
void BeginDialogueRequest::setInstanceOwnerId(long instanceOwnerId)
|
||||
{
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setParameter("InstanceOwnerId", std::to_string(instanceOwnerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,27 +39,27 @@ void BeginDialogueResult::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["Interruptible"].isNull())
|
||||
interruptible_ = value["Interruptible"].asString() == "true";
|
||||
if(!value["ActionParams"].isNull())
|
||||
actionParams_ = value["ActionParams"].asString();
|
||||
if(!value["TextResponse"].isNull())
|
||||
textResponse_ = value["TextResponse"].asString();
|
||||
|
||||
}
|
||||
|
||||
bool BeginDialogueResult::getInterruptible()const
|
||||
{
|
||||
return interruptible_;
|
||||
}
|
||||
|
||||
std::string BeginDialogueResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
bool BeginDialogueResult::getInterruptible()const
|
||||
{
|
||||
return interruptible_;
|
||||
}
|
||||
|
||||
std::string BeginDialogueResult::getActionParams()const
|
||||
{
|
||||
return actionParams_;
|
||||
|
||||
@@ -60,3 +60,14 @@ void CollectedNumberRequest::setInstanceId(const std::string& instanceId)
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
long CollectedNumberRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
}
|
||||
|
||||
void CollectedNumberRequest::setInstanceOwnerId(long instanceOwnerId)
|
||||
{
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setParameter("InstanceOwnerId", std::to_string(instanceOwnerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,27 +39,27 @@ void CollectedNumberResult::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["Interruptible"].isNull())
|
||||
interruptible_ = value["Interruptible"].asString() == "true";
|
||||
if(!value["ActionParams"].isNull())
|
||||
actionParams_ = value["ActionParams"].asString();
|
||||
if(!value["TextResponse"].isNull())
|
||||
textResponse_ = value["TextResponse"].asString();
|
||||
|
||||
}
|
||||
|
||||
bool CollectedNumberResult::getInterruptible()const
|
||||
{
|
||||
return interruptible_;
|
||||
}
|
||||
|
||||
std::string CollectedNumberResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
bool CollectedNumberResult::getInterruptible()const
|
||||
{
|
||||
return interruptible_;
|
||||
}
|
||||
|
||||
std::string CollectedNumberResult::getActionParams()const
|
||||
{
|
||||
return actionParams_;
|
||||
|
||||
51
voicenavigator/src/model/CreateDownloadUrlRequest.cc
Normal file
51
voicenavigator/src/model/CreateDownloadUrlRequest.cc
Normal 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/voicenavigator/model/CreateDownloadUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::VoiceNavigator::Model::CreateDownloadUrlRequest;
|
||||
|
||||
CreateDownloadUrlRequest::CreateDownloadUrlRequest() :
|
||||
RpcServiceRequest("voicenavigator", "2018-06-12", "CreateDownloadUrl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
CreateDownloadUrlRequest::~CreateDownloadUrlRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDownloadUrlRequest::getDownloadTaskId()const
|
||||
{
|
||||
return downloadTaskId_;
|
||||
}
|
||||
|
||||
void CreateDownloadUrlRequest::setDownloadTaskId(const std::string& downloadTaskId)
|
||||
{
|
||||
downloadTaskId_ = downloadTaskId;
|
||||
setParameter("DownloadTaskId", downloadTaskId);
|
||||
}
|
||||
|
||||
std::string CreateDownloadUrlRequest::getFileId()const
|
||||
{
|
||||
return fileId_;
|
||||
}
|
||||
|
||||
void CreateDownloadUrlRequest::setFileId(const std::string& fileId)
|
||||
{
|
||||
fileId_ = fileId;
|
||||
setParameter("FileId", fileId);
|
||||
}
|
||||
|
||||
79
voicenavigator/src/model/CreateDownloadUrlResult.cc
Normal file
79
voicenavigator/src/model/CreateDownloadUrlResult.cc
Normal 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/voicenavigator/model/CreateDownloadUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::VoiceNavigator;
|
||||
using namespace AlibabaCloud::VoiceNavigator::Model;
|
||||
|
||||
CreateDownloadUrlResult::CreateDownloadUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDownloadUrlResult::CreateDownloadUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDownloadUrlResult::~CreateDownloadUrlResult()
|
||||
{}
|
||||
|
||||
void CreateDownloadUrlResult::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["FileHttpUrl"].isNull())
|
||||
fileHttpUrl_ = value["FileHttpUrl"].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();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDownloadUrlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateDownloadUrlResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateDownloadUrlResult::getFileHttpUrl()const
|
||||
{
|
||||
return fileHttpUrl_;
|
||||
}
|
||||
|
||||
std::string CreateDownloadUrlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateDownloadUrlResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
voicenavigator/src/model/DescribeAsrVadConfigRequest.cc
Normal file
40
voicenavigator/src/model/DescribeAsrVadConfigRequest.cc
Normal 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/voicenavigator/model/DescribeAsrVadConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::VoiceNavigator::Model::DescribeAsrVadConfigRequest;
|
||||
|
||||
DescribeAsrVadConfigRequest::DescribeAsrVadConfigRequest() :
|
||||
RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeAsrVadConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeAsrVadConfigRequest::~DescribeAsrVadConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAsrVadConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeAsrVadConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
51
voicenavigator/src/model/DescribeAsrVadConfigResult.cc
Normal file
51
voicenavigator/src/model/DescribeAsrVadConfigResult.cc
Normal 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/voicenavigator/model/DescribeAsrVadConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::VoiceNavigator;
|
||||
using namespace AlibabaCloud::VoiceNavigator::Model;
|
||||
|
||||
DescribeAsrVadConfigResult::DescribeAsrVadConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAsrVadConfigResult::DescribeAsrVadConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAsrVadConfigResult::~DescribeAsrVadConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeAsrVadConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SpeechNoiseThreshold"].isNull())
|
||||
speechNoiseThreshold_ = value["SpeechNoiseThreshold"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeAsrVadConfigResult::getSpeechNoiseThreshold()const
|
||||
{
|
||||
return speechNoiseThreshold_;
|
||||
}
|
||||
|
||||
@@ -38,3 +38,14 @@ void DescribeTTSConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
long DescribeTTSConfigRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeTTSConfigRequest::setInstanceOwnerId(long instanceOwnerId)
|
||||
{
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setParameter("InstanceOwnerId", std::to_string(instanceOwnerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void DescribeTTSConfigResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Volume"].isNull())
|
||||
volume_ = std::stoi(value["Volume"].asString());
|
||||
if(!value["Voice"].isNull())
|
||||
voice_ = value["Voice"].asString();
|
||||
if(!value["SpeechRate"].isNull())
|
||||
speechRate_ = std::stoi(value["SpeechRate"].asString());
|
||||
if(!value["Volume"].isNull())
|
||||
volume_ = std::stoi(value["Volume"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
51
voicenavigator/src/model/DescribeVoiceConfigRequest.cc
Normal file
51
voicenavigator/src/model/DescribeVoiceConfigRequest.cc
Normal 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/voicenavigator/model/DescribeVoiceConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::VoiceNavigator::Model::DescribeVoiceConfigRequest;
|
||||
|
||||
DescribeVoiceConfigRequest::DescribeVoiceConfigRequest() :
|
||||
RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeVoiceConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeVoiceConfigRequest::~DescribeVoiceConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeVoiceConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeVoiceConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
long DescribeVoiceConfigRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeVoiceConfigRequest::setInstanceOwnerId(long instanceOwnerId)
|
||||
{
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setParameter("InstanceOwnerId", std::to_string(instanceOwnerId));
|
||||
}
|
||||
|
||||
113
voicenavigator/src/model/DescribeVoiceConfigResult.cc
Normal file
113
voicenavigator/src/model/DescribeVoiceConfigResult.cc
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* 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/DescribeVoiceConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::VoiceNavigator;
|
||||
using namespace AlibabaCloud::VoiceNavigator::Model;
|
||||
|
||||
DescribeVoiceConfigResult::DescribeVoiceConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVoiceConfigResult::DescribeVoiceConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVoiceConfigResult::~DescribeVoiceConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeVoiceConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allApesIpListNode = value["ApesIpList"]["Ip"];
|
||||
for (auto valueApesIpListIp : allApesIpListNode)
|
||||
{
|
||||
Ip apesIpListObject;
|
||||
if(!valueApesIpListIp["Ip"].isNull())
|
||||
apesIpListObject.ip = valueApesIpListIp["Ip"].asString();
|
||||
apesIpList_.push_back(apesIpListObject);
|
||||
}
|
||||
if(!value["SpeechNoiseThreshold"].isNull())
|
||||
speechNoiseThreshold_ = value["SpeechNoiseThreshold"].asString();
|
||||
if(!value["AsrCustomizationId"].isNull())
|
||||
asrCustomizationId_ = value["AsrCustomizationId"].asString();
|
||||
if(!value["Voice"].isNull())
|
||||
voice_ = value["Voice"].asString();
|
||||
if(!value["AsrClassVocabularyId"].isNull())
|
||||
asrClassVocabularyId_ = value["AsrClassVocabularyId"].asString();
|
||||
if(!value["AsrVocabularyId"].isNull())
|
||||
asrVocabularyId_ = value["AsrVocabularyId"].asString();
|
||||
if(!value["AsrAcousticModelId"].isNull())
|
||||
asrAcousticModelId_ = value["AsrAcousticModelId"].asString();
|
||||
if(!value["Volume"].isNull())
|
||||
volume_ = std::stoi(value["Volume"].asString());
|
||||
if(!value["SpeechRate"].isNull())
|
||||
speechRate_ = std::stoi(value["SpeechRate"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeVoiceConfigResult::getAsrVocabularyId()const
|
||||
{
|
||||
return asrVocabularyId_;
|
||||
}
|
||||
|
||||
std::string DescribeVoiceConfigResult::getAsrCustomizationId()const
|
||||
{
|
||||
return asrCustomizationId_;
|
||||
}
|
||||
|
||||
int DescribeVoiceConfigResult::getVolume()const
|
||||
{
|
||||
return volume_;
|
||||
}
|
||||
|
||||
std::vector<DescribeVoiceConfigResult::Ip> DescribeVoiceConfigResult::getApesIpList()const
|
||||
{
|
||||
return apesIpList_;
|
||||
}
|
||||
|
||||
std::string DescribeVoiceConfigResult::getAsrAcousticModelId()const
|
||||
{
|
||||
return asrAcousticModelId_;
|
||||
}
|
||||
|
||||
std::string DescribeVoiceConfigResult::getVoice()const
|
||||
{
|
||||
return voice_;
|
||||
}
|
||||
|
||||
std::string DescribeVoiceConfigResult::getAsrClassVocabularyId()const
|
||||
{
|
||||
return asrClassVocabularyId_;
|
||||
}
|
||||
|
||||
int DescribeVoiceConfigResult::getSpeechRate()const
|
||||
{
|
||||
return speechRate_;
|
||||
}
|
||||
|
||||
std::string DescribeVoiceConfigResult::getSpeechNoiseThreshold()const
|
||||
{
|
||||
return speechNoiseThreshold_;
|
||||
}
|
||||
|
||||
@@ -82,6 +82,17 @@ void DialogueRequest::setAdditionalContext(const std::string& additionalContext)
|
||||
setParameter("AdditionalContext", additionalContext);
|
||||
}
|
||||
|
||||
long DialogueRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setInstanceOwnerId(long instanceOwnerId)
|
||||
{
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setParameter("InstanceOwnerId", std::to_string(instanceOwnerId));
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getUtterance()const
|
||||
{
|
||||
return utterance_;
|
||||
|
||||
@@ -39,27 +39,27 @@ void DialogueResult::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["Interruptible"].isNull())
|
||||
interruptible_ = value["Interruptible"].asString() == "true";
|
||||
if(!value["ActionParams"].isNull())
|
||||
actionParams_ = value["ActionParams"].asString();
|
||||
if(!value["TextResponse"].isNull())
|
||||
textResponse_ = value["TextResponse"].asString();
|
||||
|
||||
}
|
||||
|
||||
bool DialogueResult::getInterruptible()const
|
||||
{
|
||||
return interruptible_;
|
||||
}
|
||||
|
||||
std::string DialogueResult::getAction()const
|
||||
{
|
||||
return action_;
|
||||
}
|
||||
|
||||
bool DialogueResult::getInterruptible()const
|
||||
{
|
||||
return interruptible_;
|
||||
}
|
||||
|
||||
std::string DialogueResult::getActionParams()const
|
||||
{
|
||||
return actionParams_;
|
||||
|
||||
@@ -49,3 +49,14 @@ void EndDialogueRequest::setInstanceId(const std::string& instanceId)
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
long EndDialogueRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
}
|
||||
|
||||
void EndDialogueRequest::setInstanceOwnerId(long instanceOwnerId)
|
||||
{
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setParameter("InstanceOwnerId", std::to_string(instanceOwnerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,28 @@ ListConversationsRequest::ListConversationsRequest() :
|
||||
ListConversationsRequest::~ListConversationsRequest()
|
||||
{}
|
||||
|
||||
long ListConversationsRequest::getBeginTimeLeftRange()const
|
||||
{
|
||||
return beginTimeLeftRange_;
|
||||
}
|
||||
|
||||
void ListConversationsRequest::setBeginTimeLeftRange(long beginTimeLeftRange)
|
||||
{
|
||||
beginTimeLeftRange_ = beginTimeLeftRange;
|
||||
setParameter("BeginTimeLeftRange", std::to_string(beginTimeLeftRange));
|
||||
}
|
||||
|
||||
std::string ListConversationsRequest::getQuery()const
|
||||
{
|
||||
return query_;
|
||||
}
|
||||
|
||||
void ListConversationsRequest::setQuery(const std::string& query)
|
||||
{
|
||||
query_ = query;
|
||||
setParameter("Query", query);
|
||||
}
|
||||
|
||||
int ListConversationsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -38,6 +60,28 @@ void ListConversationsRequest::setPageNumber(int pageNumber)
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
long ListConversationsRequest::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
void ListConversationsRequest::setResult(long result)
|
||||
{
|
||||
result_ = result;
|
||||
setParameter("Result", std::to_string(result));
|
||||
}
|
||||
|
||||
std::string ListConversationsRequest::getCallingNumber()const
|
||||
{
|
||||
return callingNumber_;
|
||||
}
|
||||
|
||||
void ListConversationsRequest::setCallingNumber(const std::string& callingNumber)
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
setParameter("CallingNumber", callingNumber);
|
||||
}
|
||||
|
||||
std::string ListConversationsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
@@ -49,6 +93,17 @@ void ListConversationsRequest::setInstanceId(const std::string& instanceId)
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
long ListConversationsRequest::getBeginTimeRightRange()const
|
||||
{
|
||||
return beginTimeRightRange_;
|
||||
}
|
||||
|
||||
void ListConversationsRequest::setBeginTimeRightRange(long beginTimeRightRange)
|
||||
{
|
||||
beginTimeRightRange_ = beginTimeRightRange;
|
||||
setParameter("BeginTimeRightRange", std::to_string(beginTimeRightRange));
|
||||
}
|
||||
|
||||
int ListConversationsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
|
||||
@@ -43,30 +43,30 @@ void ListConversationsResult::parse(const std::string &payload)
|
||||
for (auto valueConversationsConversation : allConversationsNode)
|
||||
{
|
||||
Conversation conversationsObject;
|
||||
if(!valueConversationsConversation["CallingNumber"].isNull())
|
||||
conversationsObject.callingNumber = valueConversationsConversation["CallingNumber"].asString();
|
||||
if(!valueConversationsConversation["BeginTime"].isNull())
|
||||
conversationsObject.beginTime = std::stol(valueConversationsConversation["BeginTime"].asString());
|
||||
if(!valueConversationsConversation["EndTime"].isNull())
|
||||
conversationsObject.endTime = std::stol(valueConversationsConversation["EndTime"].asString());
|
||||
if(!valueConversationsConversation["TransferredToAgent"].isNull())
|
||||
conversationsObject.transferredToAgent = valueConversationsConversation["TransferredToAgent"].asString() == "true";
|
||||
if(!valueConversationsConversation["SkillGroupId"].isNull())
|
||||
conversationsObject.skillGroupId = valueConversationsConversation["SkillGroupId"].asString();
|
||||
if(!valueConversationsConversation["UserUtteranceCount"].isNull())
|
||||
conversationsObject.userUtteranceCount = std::stoi(valueConversationsConversation["UserUtteranceCount"].asString());
|
||||
if(!valueConversationsConversation["EffectiveAnswerCount"].isNull())
|
||||
conversationsObject.effectiveAnswerCount = std::stoi(valueConversationsConversation["EffectiveAnswerCount"].asString());
|
||||
if(!valueConversationsConversation["HasToAgent"].isNull())
|
||||
conversationsObject.hasToAgent = valueConversationsConversation["HasToAgent"].asString() == "true";
|
||||
if(!valueConversationsConversation["StartTime"].isNull())
|
||||
conversationsObject.startTime = std::stol(valueConversationsConversation["StartTime"].asString());
|
||||
if(!valueConversationsConversation["SkillGroup"].isNull())
|
||||
conversationsObject.skillGroup = valueConversationsConversation["SkillGroup"].asString();
|
||||
if(!valueConversationsConversation["ConversationId"].isNull())
|
||||
conversationsObject.conversationId = valueConversationsConversation["ConversationId"].asString();
|
||||
if(!valueConversationsConversation["CallingNumber"].isNull())
|
||||
conversationsObject.callingNumber = valueConversationsConversation["CallingNumber"].asString();
|
||||
if(!valueConversationsConversation["EndReason"].isNull())
|
||||
conversationsObject.endReason = std::stoi(valueConversationsConversation["EndReason"].asString());
|
||||
if(!valueConversationsConversation["Rounds"].isNull())
|
||||
conversationsObject.rounds = std::stoi(valueConversationsConversation["Rounds"].asString());
|
||||
conversations_.push_back(conversationsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
51
voicenavigator/src/model/ListDownloadTasksRequest.cc
Normal file
51
voicenavigator/src/model/ListDownloadTasksRequest.cc
Normal 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/voicenavigator/model/ListDownloadTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::VoiceNavigator::Model::ListDownloadTasksRequest;
|
||||
|
||||
ListDownloadTasksRequest::ListDownloadTasksRequest() :
|
||||
RpcServiceRequest("voicenavigator", "2018-06-12", "ListDownloadTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListDownloadTasksRequest::~ListDownloadTasksRequest()
|
||||
{}
|
||||
|
||||
int ListDownloadTasksRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListDownloadTasksRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int ListDownloadTasksRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDownloadTasksRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
112
voicenavigator/src/model/ListDownloadTasksResult.cc
Normal file
112
voicenavigator/src/model/ListDownloadTasksResult.cc
Normal file
@@ -0,0 +1,112 @@
|
||||
/*
|
||||
* 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/ListDownloadTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::VoiceNavigator;
|
||||
using namespace AlibabaCloud::VoiceNavigator::Model;
|
||||
|
||||
ListDownloadTasksResult::ListDownloadTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDownloadTasksResult::ListDownloadTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDownloadTasksResult::~ListDownloadTasksResult()
|
||||
{}
|
||||
|
||||
void ListDownloadTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto downloadTasksNode = value["DownloadTasks"];
|
||||
if(!downloadTasksNode["PageNumber"].isNull())
|
||||
downloadTasks_.pageNumber = std::stoi(downloadTasksNode["PageNumber"].asString());
|
||||
if(!downloadTasksNode["PageSize"].isNull())
|
||||
downloadTasks_.pageSize = std::stoi(downloadTasksNode["PageSize"].asString());
|
||||
if(!downloadTasksNode["TotalCount"].isNull())
|
||||
downloadTasks_.totalCount = std::stoi(downloadTasksNode["TotalCount"].asString());
|
||||
auto allListNode = downloadTasksNode["List"]["DownloadTask"];
|
||||
for (auto downloadTasksNodeListDownloadTask : allListNode)
|
||||
{
|
||||
DownloadTasks::DownloadTask downloadTaskObject;
|
||||
if(!downloadTasksNodeListDownloadTask["Status"].isNull())
|
||||
downloadTaskObject.status = downloadTasksNodeListDownloadTask["Status"].asString();
|
||||
if(!downloadTasksNodeListDownloadTask["Title"].isNull())
|
||||
downloadTaskObject.title = downloadTasksNodeListDownloadTask["Title"].asString();
|
||||
if(!downloadTasksNodeListDownloadTask["ExpireTime"].isNull())
|
||||
downloadTaskObject.expireTime = std::stol(downloadTasksNodeListDownloadTask["ExpireTime"].asString());
|
||||
if(!downloadTasksNodeListDownloadTask["TaskId"].isNull())
|
||||
downloadTaskObject.taskId = downloadTasksNodeListDownloadTask["TaskId"].asString();
|
||||
auto allDownloadTaskFilesNode = downloadTasksNodeListDownloadTask["DownloadTaskFiles"]["DownloadTaskFile0"];
|
||||
for (auto downloadTasksNodeListDownloadTaskDownloadTaskFilesDownloadTaskFile0 : allDownloadTaskFilesNode)
|
||||
{
|
||||
DownloadTasks::DownloadTask::DownloadTaskFile0 downloadTaskFilesObject;
|
||||
if(!downloadTasksNodeListDownloadTaskDownloadTaskFilesDownloadTaskFile0["Status"].isNull())
|
||||
downloadTaskFilesObject.status = downloadTasksNodeListDownloadTaskDownloadTaskFilesDownloadTaskFile0["Status"].asString();
|
||||
if(!downloadTasksNodeListDownloadTaskDownloadTaskFilesDownloadTaskFile0["Title"].isNull())
|
||||
downloadTaskFilesObject.title = downloadTasksNodeListDownloadTaskDownloadTaskFilesDownloadTaskFile0["Title"].asString();
|
||||
if(!downloadTasksNodeListDownloadTaskDownloadTaskFilesDownloadTaskFile0["Progress"].isNull())
|
||||
downloadTaskFilesObject.progress = std::stoi(downloadTasksNodeListDownloadTaskDownloadTaskFilesDownloadTaskFile0["Progress"].asString());
|
||||
if(!downloadTasksNodeListDownloadTaskDownloadTaskFilesDownloadTaskFile0["FileId"].isNull())
|
||||
downloadTaskFilesObject.fileId = downloadTasksNodeListDownloadTaskDownloadTaskFilesDownloadTaskFile0["FileId"].asString();
|
||||
downloadTaskObject.downloadTaskFiles.push_back(downloadTaskFilesObject);
|
||||
}
|
||||
downloadTasks_.list.push_back(downloadTaskObject);
|
||||
}
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
ListDownloadTasksResult::DownloadTasks ListDownloadTasksResult::getDownloadTasks()const
|
||||
{
|
||||
return downloadTasks_;
|
||||
}
|
||||
|
||||
std::string ListDownloadTasksResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListDownloadTasksResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ListDownloadTasksResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListDownloadTasksResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
voicenavigator/src/model/ModifyAsrVadConfigRequest.cc
Normal file
51
voicenavigator/src/model/ModifyAsrVadConfigRequest.cc
Normal 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/voicenavigator/model/ModifyAsrVadConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::VoiceNavigator::Model::ModifyAsrVadConfigRequest;
|
||||
|
||||
ModifyAsrVadConfigRequest::ModifyAsrVadConfigRequest() :
|
||||
RpcServiceRequest("voicenavigator", "2018-06-12", "ModifyAsrVadConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ModifyAsrVadConfigRequest::~ModifyAsrVadConfigRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyAsrVadConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ModifyAsrVadConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ModifyAsrVadConfigRequest::getSpeechNoiseThreshold()const
|
||||
{
|
||||
return speechNoiseThreshold_;
|
||||
}
|
||||
|
||||
void ModifyAsrVadConfigRequest::setSpeechNoiseThreshold(const std::string& speechNoiseThreshold)
|
||||
{
|
||||
speechNoiseThreshold_ = speechNoiseThreshold;
|
||||
setParameter("SpeechNoiseThreshold", speechNoiseThreshold);
|
||||
}
|
||||
|
||||
44
voicenavigator/src/model/ModifyAsrVadConfigResult.cc
Normal file
44
voicenavigator/src/model/ModifyAsrVadConfigResult.cc
Normal 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/ModifyAsrVadConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::VoiceNavigator;
|
||||
using namespace AlibabaCloud::VoiceNavigator::Model;
|
||||
|
||||
ModifyAsrVadConfigResult::ModifyAsrVadConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyAsrVadConfigResult::ModifyAsrVadConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyAsrVadConfigResult::~ModifyAsrVadConfigResult()
|
||||
{}
|
||||
|
||||
void ModifyAsrVadConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -104,3 +104,14 @@ void SaveRecordingRequest::setFilePath(const std::string& filePath)
|
||||
setParameter("FilePath", filePath);
|
||||
}
|
||||
|
||||
long SaveRecordingRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
}
|
||||
|
||||
void SaveRecordingRequest::setInstanceOwnerId(long instanceOwnerId)
|
||||
{
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setParameter("InstanceOwnerId", std::to_string(instanceOwnerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -60,3 +60,14 @@ void SilenceTimeoutRequest::setInstanceId(const std::string& instanceId)
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
long SilenceTimeoutRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
}
|
||||
|
||||
void SilenceTimeoutRequest::setInstanceOwnerId(long instanceOwnerId)
|
||||
{
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setParameter("InstanceOwnerId", std::to_string(instanceOwnerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -41,10 +41,10 @@ void SilenceTimeoutResult::parse(const std::string &payload)
|
||||
setRequestId(value["RequestId"].asString());
|
||||
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["ActionParams"].isNull())
|
||||
actionParams_ = value["ActionParams"].asString();
|
||||
if(!value["TextResponse"].isNull())
|
||||
textResponse_ = value["TextResponse"].asString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user