Compare commits
3 Commits
idrsservic
...
VoiceNavig
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
969a4a2631 | ||
|
|
931a98684d | ||
|
|
357519c7f6 |
@@ -1,3 +1,12 @@
|
||||
2020-12-02 Version: patch
|
||||
- Update version.
|
||||
|
||||
2020-12-02 Version: patch
|
||||
- Update version.
|
||||
|
||||
2020-12-02 Version: patch
|
||||
- Support TemplateContent.
|
||||
|
||||
2020-12-02 Version: patch
|
||||
- Supported OpenAPI for SDK.
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ set(oos_public_header_model
|
||||
include/alibabacloud/oos/model/GetSecretParametersResult.h
|
||||
include/alibabacloud/oos/model/GetSecretParametersByPathRequest.h
|
||||
include/alibabacloud/oos/model/GetSecretParametersByPathResult.h
|
||||
include/alibabacloud/oos/model/GetServiceSettingsRequest.h
|
||||
include/alibabacloud/oos/model/GetServiceSettingsResult.h
|
||||
include/alibabacloud/oos/model/GetTemplateRequest.h
|
||||
include/alibabacloud/oos/model/GetTemplateResult.h
|
||||
include/alibabacloud/oos/model/ListActionsRequest.h
|
||||
@@ -97,6 +99,8 @@ set(oos_public_header_model
|
||||
include/alibabacloud/oos/model/NotifyExecutionResult.h
|
||||
include/alibabacloud/oos/model/SearchInventoryRequest.h
|
||||
include/alibabacloud/oos/model/SearchInventoryResult.h
|
||||
include/alibabacloud/oos/model/SetServiceSettingsRequest.h
|
||||
include/alibabacloud/oos/model/SetServiceSettingsResult.h
|
||||
include/alibabacloud/oos/model/StartExecutionRequest.h
|
||||
include/alibabacloud/oos/model/StartExecutionResult.h
|
||||
include/alibabacloud/oos/model/TagResourcesRequest.h
|
||||
@@ -158,6 +162,8 @@ set(oos_src
|
||||
src/model/GetSecretParametersResult.cc
|
||||
src/model/GetSecretParametersByPathRequest.cc
|
||||
src/model/GetSecretParametersByPathResult.cc
|
||||
src/model/GetServiceSettingsRequest.cc
|
||||
src/model/GetServiceSettingsResult.cc
|
||||
src/model/GetTemplateRequest.cc
|
||||
src/model/GetTemplateResult.cc
|
||||
src/model/ListActionsRequest.cc
|
||||
@@ -196,6 +202,8 @@ set(oos_src
|
||||
src/model/NotifyExecutionResult.cc
|
||||
src/model/SearchInventoryRequest.cc
|
||||
src/model/SearchInventoryResult.cc
|
||||
src/model/SetServiceSettingsRequest.cc
|
||||
src/model/SetServiceSettingsResult.cc
|
||||
src/model/StartExecutionRequest.cc
|
||||
src/model/StartExecutionResult.cc
|
||||
src/model/TagResourcesRequest.cc
|
||||
|
||||
@@ -60,6 +60,8 @@
|
||||
#include "model/GetSecretParametersResult.h"
|
||||
#include "model/GetSecretParametersByPathRequest.h"
|
||||
#include "model/GetSecretParametersByPathResult.h"
|
||||
#include "model/GetServiceSettingsRequest.h"
|
||||
#include "model/GetServiceSettingsResult.h"
|
||||
#include "model/GetTemplateRequest.h"
|
||||
#include "model/GetTemplateResult.h"
|
||||
#include "model/ListActionsRequest.h"
|
||||
@@ -98,6 +100,8 @@
|
||||
#include "model/NotifyExecutionResult.h"
|
||||
#include "model/SearchInventoryRequest.h"
|
||||
#include "model/SearchInventoryResult.h"
|
||||
#include "model/SetServiceSettingsRequest.h"
|
||||
#include "model/SetServiceSettingsResult.h"
|
||||
#include "model/StartExecutionRequest.h"
|
||||
#include "model/StartExecutionResult.h"
|
||||
#include "model/TagResourcesRequest.h"
|
||||
@@ -184,6 +188,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetSecretParametersByPathResult> GetSecretParametersByPathOutcome;
|
||||
typedef std::future<GetSecretParametersByPathOutcome> GetSecretParametersByPathOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::GetSecretParametersByPathRequest&, const GetSecretParametersByPathOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSecretParametersByPathAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetServiceSettingsResult> GetServiceSettingsOutcome;
|
||||
typedef std::future<GetServiceSettingsOutcome> GetServiceSettingsOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::GetServiceSettingsRequest&, const GetServiceSettingsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetServiceSettingsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTemplateResult> GetTemplateOutcome;
|
||||
typedef std::future<GetTemplateOutcome> GetTemplateOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::GetTemplateRequest&, const GetTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTemplateAsyncHandler;
|
||||
@@ -241,6 +248,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SearchInventoryResult> SearchInventoryOutcome;
|
||||
typedef std::future<SearchInventoryOutcome> SearchInventoryOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::SearchInventoryRequest&, const SearchInventoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchInventoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetServiceSettingsResult> SetServiceSettingsOutcome;
|
||||
typedef std::future<SetServiceSettingsOutcome> SetServiceSettingsOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::SetServiceSettingsRequest&, const SetServiceSettingsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetServiceSettingsAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartExecutionResult> StartExecutionOutcome;
|
||||
typedef std::future<StartExecutionOutcome> StartExecutionOutcomeCallable;
|
||||
typedef std::function<void(const OosClient*, const Model::StartExecutionRequest&, const StartExecutionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartExecutionAsyncHandler;
|
||||
@@ -333,6 +343,9 @@ namespace AlibabaCloud
|
||||
GetSecretParametersByPathOutcome getSecretParametersByPath(const Model::GetSecretParametersByPathRequest &request)const;
|
||||
void getSecretParametersByPathAsync(const Model::GetSecretParametersByPathRequest& request, const GetSecretParametersByPathAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSecretParametersByPathOutcomeCallable getSecretParametersByPathCallable(const Model::GetSecretParametersByPathRequest& request) const;
|
||||
GetServiceSettingsOutcome getServiceSettings(const Model::GetServiceSettingsRequest &request)const;
|
||||
void getServiceSettingsAsync(const Model::GetServiceSettingsRequest& request, const GetServiceSettingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetServiceSettingsOutcomeCallable getServiceSettingsCallable(const Model::GetServiceSettingsRequest& request) const;
|
||||
GetTemplateOutcome getTemplate(const Model::GetTemplateRequest &request)const;
|
||||
void getTemplateAsync(const Model::GetTemplateRequest& request, const GetTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTemplateOutcomeCallable getTemplateCallable(const Model::GetTemplateRequest& request) const;
|
||||
@@ -390,6 +403,9 @@ namespace AlibabaCloud
|
||||
SearchInventoryOutcome searchInventory(const Model::SearchInventoryRequest &request)const;
|
||||
void searchInventoryAsync(const Model::SearchInventoryRequest& request, const SearchInventoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchInventoryOutcomeCallable searchInventoryCallable(const Model::SearchInventoryRequest& request) const;
|
||||
SetServiceSettingsOutcome setServiceSettings(const Model::SetServiceSettingsRequest &request)const;
|
||||
void setServiceSettingsAsync(const Model::SetServiceSettingsRequest& request, const SetServiceSettingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetServiceSettingsOutcomeCallable setServiceSettingsCallable(const Model::SetServiceSettingsRequest& request) const;
|
||||
StartExecutionOutcome startExecution(const Model::StartExecutionRequest &request)const;
|
||||
void startExecutionAsync(const Model::StartExecutionRequest& request, const StartExecutionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartExecutionOutcomeCallable startExecutionCallable(const Model::StartExecutionRequest& request) const;
|
||||
|
||||
@@ -14,35 +14,32 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_PUBLISHINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_PUBLISHINSTANCEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_GETSERVICESETTINGSREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_GETSERVICESETTINGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/voicenavigator/VoiceNavigatorExport.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace VoiceNavigator
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VOICENAVIGATOR_EXPORT PublishInstanceRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_OOS_EXPORT GetServiceSettingsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PublishInstanceRequest();
|
||||
~PublishInstanceRequest();
|
||||
GetServiceSettingsRequest();
|
||||
~GetServiceSettingsRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_PUBLISHINSTANCEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_GETSERVICESETTINGSREQUEST_H_
|
||||
@@ -14,36 +14,46 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_BATCHMOVENAVIGATIONSCRIPTSRESULT_H_
|
||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_BATCHMOVENAVIGATIONSCRIPTSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_GETSERVICESETTINGSRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_GETSERVICESETTINGSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/voicenavigator/VoiceNavigatorExport.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace VoiceNavigator
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VOICENAVIGATOR_EXPORT BatchMoveNavigationScriptsResult : public ServiceResult
|
||||
class ALIBABACLOUD_OOS_EXPORT GetServiceSettingsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ServiceSetting
|
||||
{
|
||||
bool deliverySlsEnabled;
|
||||
std::string deliveryOssKeyPrefix;
|
||||
bool deliveryOssEnabled;
|
||||
std::string deliveryOssBucketName;
|
||||
std::string deliverySlsProjectName;
|
||||
};
|
||||
|
||||
|
||||
BatchMoveNavigationScriptsResult();
|
||||
explicit BatchMoveNavigationScriptsResult(const std::string &payload);
|
||||
~BatchMoveNavigationScriptsResult();
|
||||
GetServiceSettingsResult();
|
||||
explicit GetServiceSettingsResult(const std::string &payload);
|
||||
~GetServiceSettingsResult();
|
||||
std::vector<ServiceSetting> getServiceSettings()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<ServiceSetting> serviceSettings_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_BATCHMOVENAVIGATIONSCRIPTSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_GETSERVICESETTINGSRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_OOS_MODEL_SETSERVICESETTINGSREQUEST_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_SETSERVICESETTINGSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OOS_EXPORT SetServiceSettingsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SetServiceSettingsRequest();
|
||||
~SetServiceSettingsRequest();
|
||||
|
||||
bool getDeliverySlsEnabled()const;
|
||||
void setDeliverySlsEnabled(bool deliverySlsEnabled);
|
||||
std::string getDeliveryOssKeyPrefix()const;
|
||||
void setDeliveryOssKeyPrefix(const std::string& deliveryOssKeyPrefix);
|
||||
bool getDeliveryOssEnabled()const;
|
||||
void setDeliveryOssEnabled(bool deliveryOssEnabled);
|
||||
std::string getDeliverySlsProjectName()const;
|
||||
void setDeliverySlsProjectName(const std::string& deliverySlsProjectName);
|
||||
std::string getDeliveryOssBucketName()const;
|
||||
void setDeliveryOssBucketName(const std::string& deliveryOssBucketName);
|
||||
|
||||
private:
|
||||
bool deliverySlsEnabled_;
|
||||
std::string deliveryOssKeyPrefix_;
|
||||
bool deliveryOssEnabled_;
|
||||
std::string deliverySlsProjectName_;
|
||||
std::string deliveryOssBucketName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_SETSERVICESETTINGSREQUEST_H_
|
||||
@@ -14,44 +14,46 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_AUTHORIZEDRESULT_H_
|
||||
#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_AUTHORIZEDRESULT_H_
|
||||
#ifndef ALIBABACLOUD_OOS_MODEL_SETSERVICESETTINGSRESULT_H_
|
||||
#define ALIBABACLOUD_OOS_MODEL_SETSERVICESETTINGSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/voicenavigator/VoiceNavigatorExport.h>
|
||||
#include <alibabacloud/oos/OosExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace VoiceNavigator
|
||||
namespace Oos
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VOICENAVIGATOR_EXPORT AuthorizedResult : public ServiceResult
|
||||
class ALIBABACLOUD_OOS_EXPORT SetServiceSettingsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ServiceSetting
|
||||
{
|
||||
bool deliverySlsEnabled;
|
||||
std::string deliveryOssKeyPrefix;
|
||||
bool deliveryOssEnabled;
|
||||
std::string deliveryOssBucketName;
|
||||
std::string deliverySlsProjectName;
|
||||
};
|
||||
|
||||
|
||||
AuthorizedResult();
|
||||
explicit AuthorizedResult(const std::string &payload);
|
||||
~AuthorizedResult();
|
||||
bool getInterruptible()const;
|
||||
std::string getAction()const;
|
||||
std::string getActionParams()const;
|
||||
std::string getTextResponse()const;
|
||||
SetServiceSettingsResult();
|
||||
explicit SetServiceSettingsResult(const std::string &payload);
|
||||
~SetServiceSettingsResult();
|
||||
std::vector<ServiceSetting> getServiceSettings()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool interruptible_;
|
||||
std::string action_;
|
||||
std::string actionParams_;
|
||||
std::string textResponse_;
|
||||
std::vector<ServiceSetting> serviceSettings_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_AUTHORIZEDRESULT_H_
|
||||
#endif // !ALIBABACLOUD_OOS_MODEL_SETSERVICESETTINGSRESULT_H_
|
||||
@@ -53,6 +53,8 @@ namespace AlibabaCloud
|
||||
void setSafetyCheck(const std::string& safetyCheck);
|
||||
std::map<std::string, std::string> getTags()const;
|
||||
void setTags(const std::map<std::string, std::string>& tags);
|
||||
std::string getTemplateContent()const;
|
||||
void setTemplateContent(const std::string& templateContent);
|
||||
std::string getParentExecutionId()const;
|
||||
void setParentExecutionId(const std::string& parentExecutionId);
|
||||
std::string getParameters()const;
|
||||
@@ -68,6 +70,7 @@ namespace AlibabaCloud
|
||||
std::string loopMode_;
|
||||
std::string safetyCheck_;
|
||||
std::map<std::string, std::string> tags_;
|
||||
std::string templateContent_;
|
||||
std::string parentExecutionId_;
|
||||
std::string parameters_;
|
||||
|
||||
|
||||
@@ -735,6 +735,42 @@ OosClient::GetSecretParametersByPathOutcomeCallable OosClient::getSecretParamete
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::GetServiceSettingsOutcome OosClient::getServiceSettings(const GetServiceSettingsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetServiceSettingsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetServiceSettingsOutcome(GetServiceSettingsResult(outcome.result()));
|
||||
else
|
||||
return GetServiceSettingsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::getServiceSettingsAsync(const GetServiceSettingsRequest& request, const GetServiceSettingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getServiceSettings(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::GetServiceSettingsOutcomeCallable OosClient::getServiceSettingsCallable(const GetServiceSettingsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetServiceSettingsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getServiceSettings(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::GetTemplateOutcome OosClient::getTemplate(const GetTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1419,6 +1455,42 @@ OosClient::SearchInventoryOutcomeCallable OosClient::searchInventoryCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::SetServiceSettingsOutcome OosClient::setServiceSettings(const SetServiceSettingsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetServiceSettingsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetServiceSettingsOutcome(SetServiceSettingsResult(outcome.result()));
|
||||
else
|
||||
return SetServiceSettingsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OosClient::setServiceSettingsAsync(const SetServiceSettingsRequest& request, const SetServiceSettingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setServiceSettings(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OosClient::SetServiceSettingsOutcomeCallable OosClient::setServiceSettingsCallable(const SetServiceSettingsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetServiceSettingsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setServiceSettings(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OosClient::StartExecutionOutcome OosClient::startExecution(const StartExecutionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -47,14 +47,14 @@ void GetInventorySchemaResult::parse(const std::string &payload)
|
||||
schemasObject.typeName = valueSchemasSchema["TypeName"].asString();
|
||||
if(!valueSchemasSchema["Version"].isNull())
|
||||
schemasObject.version = valueSchemasSchema["Version"].asString();
|
||||
auto allAttributesNode = allSchemasNode["Attributes"]["Attribute"];
|
||||
for (auto allSchemasNodeAttributesAttribute : allAttributesNode)
|
||||
auto allAttributesNode = valueSchemasSchema["Attributes"]["Attribute"];
|
||||
for (auto valueSchemasSchemaAttributesAttribute : allAttributesNode)
|
||||
{
|
||||
Schema::Attribute attributesObject;
|
||||
if(!allSchemasNodeAttributesAttribute["Name"].isNull())
|
||||
attributesObject.name = allSchemasNodeAttributesAttribute["Name"].asString();
|
||||
if(!allSchemasNodeAttributesAttribute["DataType"].isNull())
|
||||
attributesObject.dataType = allSchemasNodeAttributesAttribute["DataType"].asString();
|
||||
if(!valueSchemasSchemaAttributesAttribute["Name"].isNull())
|
||||
attributesObject.name = valueSchemasSchemaAttributesAttribute["Name"].asString();
|
||||
if(!valueSchemasSchemaAttributesAttribute["DataType"].isNull())
|
||||
attributesObject.dataType = valueSchemasSchemaAttributesAttribute["DataType"].asString();
|
||||
schemasObject.attributes.push_back(attributesObject);
|
||||
}
|
||||
schemas_.push_back(schemasObject);
|
||||
|
||||
@@ -14,27 +14,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/voicenavigator/model/PublishInstanceRequest.h>
|
||||
#include <alibabacloud/oos/model/GetServiceSettingsRequest.h>
|
||||
|
||||
using AlibabaCloud::VoiceNavigator::Model::PublishInstanceRequest;
|
||||
using AlibabaCloud::Oos::Model::GetServiceSettingsRequest;
|
||||
|
||||
PublishInstanceRequest::PublishInstanceRequest() :
|
||||
RpcServiceRequest("voicenavigator", "2018-06-12", "PublishInstance")
|
||||
GetServiceSettingsRequest::GetServiceSettingsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetServiceSettings")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PublishInstanceRequest::~PublishInstanceRequest()
|
||||
GetServiceSettingsRequest::~GetServiceSettingsRequest()
|
||||
{}
|
||||
|
||||
std::string PublishInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void PublishInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
65
oos/src/model/GetServiceSettingsResult.cc
Normal file
65
oos/src/model/GetServiceSettingsResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/oos/model/GetServiceSettingsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
GetServiceSettingsResult::GetServiceSettingsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceSettingsResult::GetServiceSettingsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceSettingsResult::~GetServiceSettingsResult()
|
||||
{}
|
||||
|
||||
void GetServiceSettingsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allServiceSettingsNode = value["ServiceSettings"]["ServiceSetting"];
|
||||
for (auto valueServiceSettingsServiceSetting : allServiceSettingsNode)
|
||||
{
|
||||
ServiceSetting serviceSettingsObject;
|
||||
if(!valueServiceSettingsServiceSetting["DeliveryOssEnabled"].isNull())
|
||||
serviceSettingsObject.deliveryOssEnabled = valueServiceSettingsServiceSetting["DeliveryOssEnabled"].asString() == "true";
|
||||
if(!valueServiceSettingsServiceSetting["DeliveryOssBucketName"].isNull())
|
||||
serviceSettingsObject.deliveryOssBucketName = valueServiceSettingsServiceSetting["DeliveryOssBucketName"].asString();
|
||||
if(!valueServiceSettingsServiceSetting["DeliveryOssKeyPrefix"].isNull())
|
||||
serviceSettingsObject.deliveryOssKeyPrefix = valueServiceSettingsServiceSetting["DeliveryOssKeyPrefix"].asString();
|
||||
if(!valueServiceSettingsServiceSetting["DeliverySlsEnabled"].isNull())
|
||||
serviceSettingsObject.deliverySlsEnabled = valueServiceSettingsServiceSetting["DeliverySlsEnabled"].asString() == "true";
|
||||
if(!valueServiceSettingsServiceSetting["DeliverySlsProjectName"].isNull())
|
||||
serviceSettingsObject.deliverySlsProjectName = valueServiceSettingsServiceSetting["DeliverySlsProjectName"].asString();
|
||||
serviceSettings_.push_back(serviceSettingsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetServiceSettingsResult::ServiceSetting> GetServiceSettingsResult::getServiceSettings()const
|
||||
{
|
||||
return serviceSettings_;
|
||||
}
|
||||
|
||||
@@ -101,16 +101,16 @@ void ListExecutionsResult::parse(const std::string &payload)
|
||||
executionsObject.lastSuccessfulTriggerTime = valueExecutionsExecution["LastSuccessfulTriggerTime"].asString();
|
||||
if(!valueExecutionsExecution["ResourceStatus"].isNull())
|
||||
executionsObject.resourceStatus = valueExecutionsExecution["ResourceStatus"].asString();
|
||||
auto allCurrentTasksNode = allExecutionsNode["CurrentTasks"]["CurrentTask"];
|
||||
for (auto allExecutionsNodeCurrentTasksCurrentTask : allCurrentTasksNode)
|
||||
auto allCurrentTasksNode = valueExecutionsExecution["CurrentTasks"]["CurrentTask"];
|
||||
for (auto valueExecutionsExecutionCurrentTasksCurrentTask : allCurrentTasksNode)
|
||||
{
|
||||
Execution::CurrentTask currentTasksObject;
|
||||
if(!allExecutionsNodeCurrentTasksCurrentTask["TaskExecutionId"].isNull())
|
||||
currentTasksObject.taskExecutionId = allExecutionsNodeCurrentTasksCurrentTask["TaskExecutionId"].asString();
|
||||
if(!allExecutionsNodeCurrentTasksCurrentTask["TaskName"].isNull())
|
||||
currentTasksObject.taskName = allExecutionsNodeCurrentTasksCurrentTask["TaskName"].asString();
|
||||
if(!allExecutionsNodeCurrentTasksCurrentTask["TaskAction"].isNull())
|
||||
currentTasksObject.taskAction = allExecutionsNodeCurrentTasksCurrentTask["TaskAction"].asString();
|
||||
if(!valueExecutionsExecutionCurrentTasksCurrentTask["TaskExecutionId"].isNull())
|
||||
currentTasksObject.taskExecutionId = valueExecutionsExecutionCurrentTasksCurrentTask["TaskExecutionId"].asString();
|
||||
if(!valueExecutionsExecutionCurrentTasksCurrentTask["TaskName"].isNull())
|
||||
currentTasksObject.taskName = valueExecutionsExecutionCurrentTasksCurrentTask["TaskName"].asString();
|
||||
if(!valueExecutionsExecutionCurrentTasksCurrentTask["TaskAction"].isNull())
|
||||
currentTasksObject.taskAction = valueExecutionsExecutionCurrentTasksCurrentTask["TaskAction"].asString();
|
||||
executionsObject.currentTasks.push_back(currentTasksObject);
|
||||
}
|
||||
executions_.push_back(executionsObject);
|
||||
|
||||
84
oos/src/model/SetServiceSettingsRequest.cc
Normal file
84
oos/src/model/SetServiceSettingsRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/oos/model/SetServiceSettingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::SetServiceSettingsRequest;
|
||||
|
||||
SetServiceSettingsRequest::SetServiceSettingsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "SetServiceSettings")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetServiceSettingsRequest::~SetServiceSettingsRequest()
|
||||
{}
|
||||
|
||||
bool SetServiceSettingsRequest::getDeliverySlsEnabled()const
|
||||
{
|
||||
return deliverySlsEnabled_;
|
||||
}
|
||||
|
||||
void SetServiceSettingsRequest::setDeliverySlsEnabled(bool deliverySlsEnabled)
|
||||
{
|
||||
deliverySlsEnabled_ = deliverySlsEnabled;
|
||||
setParameter("DeliverySlsEnabled", deliverySlsEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SetServiceSettingsRequest::getDeliveryOssKeyPrefix()const
|
||||
{
|
||||
return deliveryOssKeyPrefix_;
|
||||
}
|
||||
|
||||
void SetServiceSettingsRequest::setDeliveryOssKeyPrefix(const std::string& deliveryOssKeyPrefix)
|
||||
{
|
||||
deliveryOssKeyPrefix_ = deliveryOssKeyPrefix;
|
||||
setParameter("DeliveryOssKeyPrefix", deliveryOssKeyPrefix);
|
||||
}
|
||||
|
||||
bool SetServiceSettingsRequest::getDeliveryOssEnabled()const
|
||||
{
|
||||
return deliveryOssEnabled_;
|
||||
}
|
||||
|
||||
void SetServiceSettingsRequest::setDeliveryOssEnabled(bool deliveryOssEnabled)
|
||||
{
|
||||
deliveryOssEnabled_ = deliveryOssEnabled;
|
||||
setParameter("DeliveryOssEnabled", deliveryOssEnabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SetServiceSettingsRequest::getDeliverySlsProjectName()const
|
||||
{
|
||||
return deliverySlsProjectName_;
|
||||
}
|
||||
|
||||
void SetServiceSettingsRequest::setDeliverySlsProjectName(const std::string& deliverySlsProjectName)
|
||||
{
|
||||
deliverySlsProjectName_ = deliverySlsProjectName;
|
||||
setParameter("DeliverySlsProjectName", deliverySlsProjectName);
|
||||
}
|
||||
|
||||
std::string SetServiceSettingsRequest::getDeliveryOssBucketName()const
|
||||
{
|
||||
return deliveryOssBucketName_;
|
||||
}
|
||||
|
||||
void SetServiceSettingsRequest::setDeliveryOssBucketName(const std::string& deliveryOssBucketName)
|
||||
{
|
||||
deliveryOssBucketName_ = deliveryOssBucketName;
|
||||
setParameter("DeliveryOssBucketName", deliveryOssBucketName);
|
||||
}
|
||||
|
||||
65
oos/src/model/SetServiceSettingsResult.cc
Normal file
65
oos/src/model/SetServiceSettingsResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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/oos/model/SetServiceSettingsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
SetServiceSettingsResult::SetServiceSettingsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetServiceSettingsResult::SetServiceSettingsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetServiceSettingsResult::~SetServiceSettingsResult()
|
||||
{}
|
||||
|
||||
void SetServiceSettingsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allServiceSettingsNode = value["ServiceSettings"]["ServiceSetting"];
|
||||
for (auto valueServiceSettingsServiceSetting : allServiceSettingsNode)
|
||||
{
|
||||
ServiceSetting serviceSettingsObject;
|
||||
if(!valueServiceSettingsServiceSetting["DeliveryOssEnabled"].isNull())
|
||||
serviceSettingsObject.deliveryOssEnabled = valueServiceSettingsServiceSetting["DeliveryOssEnabled"].asString() == "true";
|
||||
if(!valueServiceSettingsServiceSetting["DeliveryOssBucketName"].isNull())
|
||||
serviceSettingsObject.deliveryOssBucketName = valueServiceSettingsServiceSetting["DeliveryOssBucketName"].asString();
|
||||
if(!valueServiceSettingsServiceSetting["DeliveryOssKeyPrefix"].isNull())
|
||||
serviceSettingsObject.deliveryOssKeyPrefix = valueServiceSettingsServiceSetting["DeliveryOssKeyPrefix"].asString();
|
||||
if(!valueServiceSettingsServiceSetting["DeliverySlsEnabled"].isNull())
|
||||
serviceSettingsObject.deliverySlsEnabled = valueServiceSettingsServiceSetting["DeliverySlsEnabled"].asString() == "true";
|
||||
if(!valueServiceSettingsServiceSetting["DeliverySlsProjectName"].isNull())
|
||||
serviceSettingsObject.deliverySlsProjectName = valueServiceSettingsServiceSetting["DeliverySlsProjectName"].asString();
|
||||
serviceSettings_.push_back(serviceSettingsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<SetServiceSettingsResult::ServiceSetting> SetServiceSettingsResult::getServiceSettings()const
|
||||
{
|
||||
return serviceSettings_;
|
||||
}
|
||||
|
||||
@@ -126,6 +126,17 @@ void StartExecutionRequest::setTags(const std::map<std::string, std::string>& ta
|
||||
setJsonParameters("Tags", tags);
|
||||
}
|
||||
|
||||
std::string StartExecutionRequest::getTemplateContent()const
|
||||
{
|
||||
return templateContent_;
|
||||
}
|
||||
|
||||
void StartExecutionRequest::setTemplateContent(const std::string& templateContent)
|
||||
{
|
||||
templateContent_ = templateContent;
|
||||
setParameter("TemplateContent", templateContent);
|
||||
}
|
||||
|
||||
std::string StartExecutionRequest::getParentExecutionId()const
|
||||
{
|
||||
return parentExecutionId_;
|
||||
|
||||
@@ -77,38 +77,20 @@ set(outboundbot_public_header_model
|
||||
include/alibabacloud/outboundbot/model/DescribeScriptVoiceConfigResult.h
|
||||
include/alibabacloud/outboundbot/model/DescribeTTSConfigRequest.h
|
||||
include/alibabacloud/outboundbot/model/DescribeTTSConfigResult.h
|
||||
include/alibabacloud/outboundbot/model/DescribeTTSDemoRequest.h
|
||||
include/alibabacloud/outboundbot/model/DescribeTTSDemoResult.h
|
||||
include/alibabacloud/outboundbot/model/DescribeTagHitsSummaryRequest.h
|
||||
include/alibabacloud/outboundbot/model/DescribeTagHitsSummaryResult.h
|
||||
include/alibabacloud/outboundbot/model/DialogueRequest.h
|
||||
include/alibabacloud/outboundbot/model/DialogueResult.h
|
||||
include/alibabacloud/outboundbot/model/DownloadBasicStatisticsReportRequest.h
|
||||
include/alibabacloud/outboundbot/model/DownloadBasicStatisticsReportResult.h
|
||||
include/alibabacloud/outboundbot/model/DownloadConversationDetailsRequest.h
|
||||
include/alibabacloud/outboundbot/model/DownloadConversationDetailsResult.h
|
||||
include/alibabacloud/outboundbot/model/DownloadRecordingRequest.h
|
||||
include/alibabacloud/outboundbot/model/DownloadRecordingResult.h
|
||||
include/alibabacloud/outboundbot/model/DownloadUnreachableContactsRequest.h
|
||||
include/alibabacloud/outboundbot/model/DownloadUnreachableContactsResult.h
|
||||
include/alibabacloud/outboundbot/model/DuplicateScriptRequest.h
|
||||
include/alibabacloud/outboundbot/model/DuplicateScriptResult.h
|
||||
include/alibabacloud/outboundbot/model/ExportScriptRequest.h
|
||||
include/alibabacloud/outboundbot/model/ExportScriptResult.h
|
||||
include/alibabacloud/outboundbot/model/GenerateBasicStatisticsReportRequest.h
|
||||
include/alibabacloud/outboundbot/model/GenerateBasicStatisticsReportResult.h
|
||||
include/alibabacloud/outboundbot/model/GenerateOverallStatisticsReportRequest.h
|
||||
include/alibabacloud/outboundbot/model/GenerateOverallStatisticsReportResult.h
|
||||
include/alibabacloud/outboundbot/model/GetJobByPhoneNumberRequest.h
|
||||
include/alibabacloud/outboundbot/model/GetJobByPhoneNumberResult.h
|
||||
include/alibabacloud/outboundbot/model/GetJobStatusByCallIdRequest.h
|
||||
include/alibabacloud/outboundbot/model/GetJobStatusByCallIdResult.h
|
||||
include/alibabacloud/outboundbot/model/GetTagHitsSummaryRequest.h
|
||||
include/alibabacloud/outboundbot/model/GetTagHitsSummaryResult.h
|
||||
include/alibabacloud/outboundbot/model/ImportScriptRequest.h
|
||||
include/alibabacloud/outboundbot/model/ImportScriptResult.h
|
||||
include/alibabacloud/outboundbot/model/ListBasicStatisticsReportSubItemsRequest.h
|
||||
include/alibabacloud/outboundbot/model/ListBasicStatisticsReportSubItemsResult.h
|
||||
include/alibabacloud/outboundbot/model/ListConversationsWithUnrecognizedIntentsRequest.h
|
||||
include/alibabacloud/outboundbot/model/ListConversationsWithUnrecognizedIntentsResult.h
|
||||
include/alibabacloud/outboundbot/model/ListDialogueFlowsRequest.h
|
||||
include/alibabacloud/outboundbot/model/ListDialogueFlowsResult.h
|
||||
include/alibabacloud/outboundbot/model/ListGlobalQuestionsRequest.h
|
||||
@@ -119,16 +101,12 @@ set(outboundbot_public_header_model
|
||||
include/alibabacloud/outboundbot/model/ListIntentsResult.h
|
||||
include/alibabacloud/outboundbot/model/ListJobGroupsRequest.h
|
||||
include/alibabacloud/outboundbot/model/ListJobGroupsResult.h
|
||||
include/alibabacloud/outboundbot/model/ListJobGroupsWithScenarioRequest.h
|
||||
include/alibabacloud/outboundbot/model/ListJobGroupsWithScenarioResult.h
|
||||
include/alibabacloud/outboundbot/model/ListJobsRequest.h
|
||||
include/alibabacloud/outboundbot/model/ListJobsResult.h
|
||||
include/alibabacloud/outboundbot/model/ListJobsByGroupRequest.h
|
||||
include/alibabacloud/outboundbot/model/ListJobsByGroupResult.h
|
||||
include/alibabacloud/outboundbot/model/ListMediaRequest.h
|
||||
include/alibabacloud/outboundbot/model/ListMediaResult.h
|
||||
include/alibabacloud/outboundbot/model/ListMediasRequest.h
|
||||
include/alibabacloud/outboundbot/model/ListMediasResult.h
|
||||
include/alibabacloud/outboundbot/model/ListOutboundCallNumbersRequest.h
|
||||
include/alibabacloud/outboundbot/model/ListOutboundCallNumbersResult.h
|
||||
include/alibabacloud/outboundbot/model/ListScriptPublishHistoriesRequest.h
|
||||
@@ -139,10 +117,6 @@ set(outboundbot_public_header_model
|
||||
include/alibabacloud/outboundbot/model/ListScriptsResult.h
|
||||
include/alibabacloud/outboundbot/model/ListTagsRequest.h
|
||||
include/alibabacloud/outboundbot/model/ListTagsResult.h
|
||||
include/alibabacloud/outboundbot/model/ListUnreachableContactsRequest.h
|
||||
include/alibabacloud/outboundbot/model/ListUnreachableContactsResult.h
|
||||
include/alibabacloud/outboundbot/model/ListUnrecognizedIntentsRequest.h
|
||||
include/alibabacloud/outboundbot/model/ListUnrecognizedIntentsResult.h
|
||||
include/alibabacloud/outboundbot/model/ModifyBatchJobsRequest.h
|
||||
include/alibabacloud/outboundbot/model/ModifyBatchJobsResult.h
|
||||
include/alibabacloud/outboundbot/model/ModifyDialogueFlowRequest.h
|
||||
@@ -191,8 +165,6 @@ set(outboundbot_public_header_model
|
||||
include/alibabacloud/outboundbot/model/SubmitScriptReviewResult.h
|
||||
include/alibabacloud/outboundbot/model/SuspendJobsRequest.h
|
||||
include/alibabacloud/outboundbot/model/SuspendJobsResult.h
|
||||
include/alibabacloud/outboundbot/model/WithdrawScriptRequest.h
|
||||
include/alibabacloud/outboundbot/model/WithdrawScriptResult.h
|
||||
include/alibabacloud/outboundbot/model/WithdrawScriptReviewRequest.h
|
||||
include/alibabacloud/outboundbot/model/WithdrawScriptReviewResult.h )
|
||||
|
||||
@@ -254,38 +226,20 @@ set(outboundbot_src
|
||||
src/model/DescribeScriptVoiceConfigResult.cc
|
||||
src/model/DescribeTTSConfigRequest.cc
|
||||
src/model/DescribeTTSConfigResult.cc
|
||||
src/model/DescribeTTSDemoRequest.cc
|
||||
src/model/DescribeTTSDemoResult.cc
|
||||
src/model/DescribeTagHitsSummaryRequest.cc
|
||||
src/model/DescribeTagHitsSummaryResult.cc
|
||||
src/model/DialogueRequest.cc
|
||||
src/model/DialogueResult.cc
|
||||
src/model/DownloadBasicStatisticsReportRequest.cc
|
||||
src/model/DownloadBasicStatisticsReportResult.cc
|
||||
src/model/DownloadConversationDetailsRequest.cc
|
||||
src/model/DownloadConversationDetailsResult.cc
|
||||
src/model/DownloadRecordingRequest.cc
|
||||
src/model/DownloadRecordingResult.cc
|
||||
src/model/DownloadUnreachableContactsRequest.cc
|
||||
src/model/DownloadUnreachableContactsResult.cc
|
||||
src/model/DuplicateScriptRequest.cc
|
||||
src/model/DuplicateScriptResult.cc
|
||||
src/model/ExportScriptRequest.cc
|
||||
src/model/ExportScriptResult.cc
|
||||
src/model/GenerateBasicStatisticsReportRequest.cc
|
||||
src/model/GenerateBasicStatisticsReportResult.cc
|
||||
src/model/GenerateOverallStatisticsReportRequest.cc
|
||||
src/model/GenerateOverallStatisticsReportResult.cc
|
||||
src/model/GetJobByPhoneNumberRequest.cc
|
||||
src/model/GetJobByPhoneNumberResult.cc
|
||||
src/model/GetJobStatusByCallIdRequest.cc
|
||||
src/model/GetJobStatusByCallIdResult.cc
|
||||
src/model/GetTagHitsSummaryRequest.cc
|
||||
src/model/GetTagHitsSummaryResult.cc
|
||||
src/model/ImportScriptRequest.cc
|
||||
src/model/ImportScriptResult.cc
|
||||
src/model/ListBasicStatisticsReportSubItemsRequest.cc
|
||||
src/model/ListBasicStatisticsReportSubItemsResult.cc
|
||||
src/model/ListConversationsWithUnrecognizedIntentsRequest.cc
|
||||
src/model/ListConversationsWithUnrecognizedIntentsResult.cc
|
||||
src/model/ListDialogueFlowsRequest.cc
|
||||
src/model/ListDialogueFlowsResult.cc
|
||||
src/model/ListGlobalQuestionsRequest.cc
|
||||
@@ -296,16 +250,12 @@ set(outboundbot_src
|
||||
src/model/ListIntentsResult.cc
|
||||
src/model/ListJobGroupsRequest.cc
|
||||
src/model/ListJobGroupsResult.cc
|
||||
src/model/ListJobGroupsWithScenarioRequest.cc
|
||||
src/model/ListJobGroupsWithScenarioResult.cc
|
||||
src/model/ListJobsRequest.cc
|
||||
src/model/ListJobsResult.cc
|
||||
src/model/ListJobsByGroupRequest.cc
|
||||
src/model/ListJobsByGroupResult.cc
|
||||
src/model/ListMediaRequest.cc
|
||||
src/model/ListMediaResult.cc
|
||||
src/model/ListMediasRequest.cc
|
||||
src/model/ListMediasResult.cc
|
||||
src/model/ListOutboundCallNumbersRequest.cc
|
||||
src/model/ListOutboundCallNumbersResult.cc
|
||||
src/model/ListScriptPublishHistoriesRequest.cc
|
||||
@@ -316,10 +266,6 @@ set(outboundbot_src
|
||||
src/model/ListScriptsResult.cc
|
||||
src/model/ListTagsRequest.cc
|
||||
src/model/ListTagsResult.cc
|
||||
src/model/ListUnreachableContactsRequest.cc
|
||||
src/model/ListUnreachableContactsResult.cc
|
||||
src/model/ListUnrecognizedIntentsRequest.cc
|
||||
src/model/ListUnrecognizedIntentsResult.cc
|
||||
src/model/ModifyBatchJobsRequest.cc
|
||||
src/model/ModifyBatchJobsResult.cc
|
||||
src/model/ModifyDialogueFlowRequest.cc
|
||||
@@ -368,8 +314,6 @@ set(outboundbot_src
|
||||
src/model/SubmitScriptReviewResult.cc
|
||||
src/model/SuspendJobsRequest.cc
|
||||
src/model/SuspendJobsResult.cc
|
||||
src/model/WithdrawScriptRequest.cc
|
||||
src/model/WithdrawScriptResult.cc
|
||||
src/model/WithdrawScriptReviewRequest.cc
|
||||
src/model/WithdrawScriptReviewResult.cc )
|
||||
|
||||
|
||||
@@ -78,38 +78,20 @@
|
||||
#include "model/DescribeScriptVoiceConfigResult.h"
|
||||
#include "model/DescribeTTSConfigRequest.h"
|
||||
#include "model/DescribeTTSConfigResult.h"
|
||||
#include "model/DescribeTTSDemoRequest.h"
|
||||
#include "model/DescribeTTSDemoResult.h"
|
||||
#include "model/DescribeTagHitsSummaryRequest.h"
|
||||
#include "model/DescribeTagHitsSummaryResult.h"
|
||||
#include "model/DialogueRequest.h"
|
||||
#include "model/DialogueResult.h"
|
||||
#include "model/DownloadBasicStatisticsReportRequest.h"
|
||||
#include "model/DownloadBasicStatisticsReportResult.h"
|
||||
#include "model/DownloadConversationDetailsRequest.h"
|
||||
#include "model/DownloadConversationDetailsResult.h"
|
||||
#include "model/DownloadRecordingRequest.h"
|
||||
#include "model/DownloadRecordingResult.h"
|
||||
#include "model/DownloadUnreachableContactsRequest.h"
|
||||
#include "model/DownloadUnreachableContactsResult.h"
|
||||
#include "model/DuplicateScriptRequest.h"
|
||||
#include "model/DuplicateScriptResult.h"
|
||||
#include "model/ExportScriptRequest.h"
|
||||
#include "model/ExportScriptResult.h"
|
||||
#include "model/GenerateBasicStatisticsReportRequest.h"
|
||||
#include "model/GenerateBasicStatisticsReportResult.h"
|
||||
#include "model/GenerateOverallStatisticsReportRequest.h"
|
||||
#include "model/GenerateOverallStatisticsReportResult.h"
|
||||
#include "model/GetJobByPhoneNumberRequest.h"
|
||||
#include "model/GetJobByPhoneNumberResult.h"
|
||||
#include "model/GetJobStatusByCallIdRequest.h"
|
||||
#include "model/GetJobStatusByCallIdResult.h"
|
||||
#include "model/GetTagHitsSummaryRequest.h"
|
||||
#include "model/GetTagHitsSummaryResult.h"
|
||||
#include "model/ImportScriptRequest.h"
|
||||
#include "model/ImportScriptResult.h"
|
||||
#include "model/ListBasicStatisticsReportSubItemsRequest.h"
|
||||
#include "model/ListBasicStatisticsReportSubItemsResult.h"
|
||||
#include "model/ListConversationsWithUnrecognizedIntentsRequest.h"
|
||||
#include "model/ListConversationsWithUnrecognizedIntentsResult.h"
|
||||
#include "model/ListDialogueFlowsRequest.h"
|
||||
#include "model/ListDialogueFlowsResult.h"
|
||||
#include "model/ListGlobalQuestionsRequest.h"
|
||||
@@ -120,16 +102,12 @@
|
||||
#include "model/ListIntentsResult.h"
|
||||
#include "model/ListJobGroupsRequest.h"
|
||||
#include "model/ListJobGroupsResult.h"
|
||||
#include "model/ListJobGroupsWithScenarioRequest.h"
|
||||
#include "model/ListJobGroupsWithScenarioResult.h"
|
||||
#include "model/ListJobsRequest.h"
|
||||
#include "model/ListJobsResult.h"
|
||||
#include "model/ListJobsByGroupRequest.h"
|
||||
#include "model/ListJobsByGroupResult.h"
|
||||
#include "model/ListMediaRequest.h"
|
||||
#include "model/ListMediaResult.h"
|
||||
#include "model/ListMediasRequest.h"
|
||||
#include "model/ListMediasResult.h"
|
||||
#include "model/ListOutboundCallNumbersRequest.h"
|
||||
#include "model/ListOutboundCallNumbersResult.h"
|
||||
#include "model/ListScriptPublishHistoriesRequest.h"
|
||||
@@ -140,10 +118,6 @@
|
||||
#include "model/ListScriptsResult.h"
|
||||
#include "model/ListTagsRequest.h"
|
||||
#include "model/ListTagsResult.h"
|
||||
#include "model/ListUnreachableContactsRequest.h"
|
||||
#include "model/ListUnreachableContactsResult.h"
|
||||
#include "model/ListUnrecognizedIntentsRequest.h"
|
||||
#include "model/ListUnrecognizedIntentsResult.h"
|
||||
#include "model/ModifyBatchJobsRequest.h"
|
||||
#include "model/ModifyBatchJobsResult.h"
|
||||
#include "model/ModifyDialogueFlowRequest.h"
|
||||
@@ -192,8 +166,6 @@
|
||||
#include "model/SubmitScriptReviewResult.h"
|
||||
#include "model/SuspendJobsRequest.h"
|
||||
#include "model/SuspendJobsResult.h"
|
||||
#include "model/WithdrawScriptRequest.h"
|
||||
#include "model/WithdrawScriptResult.h"
|
||||
#include "model/WithdrawScriptReviewRequest.h"
|
||||
#include "model/WithdrawScriptReviewResult.h"
|
||||
|
||||
@@ -289,54 +261,27 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeTTSConfigResult> DescribeTTSConfigOutcome;
|
||||
typedef std::future<DescribeTTSConfigOutcome> DescribeTTSConfigOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DescribeTTSConfigRequest&, const DescribeTTSConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTTSConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTTSDemoResult> DescribeTTSDemoOutcome;
|
||||
typedef std::future<DescribeTTSDemoOutcome> DescribeTTSDemoOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DescribeTTSDemoRequest&, const DescribeTTSDemoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTTSDemoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTagHitsSummaryResult> DescribeTagHitsSummaryOutcome;
|
||||
typedef std::future<DescribeTagHitsSummaryOutcome> DescribeTagHitsSummaryOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DescribeTagHitsSummaryRequest&, const DescribeTagHitsSummaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTagHitsSummaryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DialogueResult> DialogueOutcome;
|
||||
typedef std::future<DialogueOutcome> DialogueOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DialogueRequest&, const DialogueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DialogueAsyncHandler;
|
||||
typedef Outcome<Error, Model::DownloadBasicStatisticsReportResult> DownloadBasicStatisticsReportOutcome;
|
||||
typedef std::future<DownloadBasicStatisticsReportOutcome> DownloadBasicStatisticsReportOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DownloadBasicStatisticsReportRequest&, const DownloadBasicStatisticsReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadBasicStatisticsReportAsyncHandler;
|
||||
typedef Outcome<Error, Model::DownloadConversationDetailsResult> DownloadConversationDetailsOutcome;
|
||||
typedef std::future<DownloadConversationDetailsOutcome> DownloadConversationDetailsOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DownloadConversationDetailsRequest&, const DownloadConversationDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadConversationDetailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DownloadRecordingResult> DownloadRecordingOutcome;
|
||||
typedef std::future<DownloadRecordingOutcome> DownloadRecordingOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DownloadRecordingRequest&, const DownloadRecordingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadRecordingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DownloadUnreachableContactsResult> DownloadUnreachableContactsOutcome;
|
||||
typedef std::future<DownloadUnreachableContactsOutcome> DownloadUnreachableContactsOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DownloadUnreachableContactsRequest&, const DownloadUnreachableContactsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadUnreachableContactsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DuplicateScriptResult> DuplicateScriptOutcome;
|
||||
typedef std::future<DuplicateScriptOutcome> DuplicateScriptOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::DuplicateScriptRequest&, const DuplicateScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DuplicateScriptAsyncHandler;
|
||||
typedef Outcome<Error, Model::ExportScriptResult> ExportScriptOutcome;
|
||||
typedef std::future<ExportScriptOutcome> ExportScriptOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ExportScriptRequest&, const ExportScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExportScriptAsyncHandler;
|
||||
typedef Outcome<Error, Model::GenerateBasicStatisticsReportResult> GenerateBasicStatisticsReportOutcome;
|
||||
typedef std::future<GenerateBasicStatisticsReportOutcome> GenerateBasicStatisticsReportOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::GenerateBasicStatisticsReportRequest&, const GenerateBasicStatisticsReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateBasicStatisticsReportAsyncHandler;
|
||||
typedef Outcome<Error, Model::GenerateOverallStatisticsReportResult> GenerateOverallStatisticsReportOutcome;
|
||||
typedef std::future<GenerateOverallStatisticsReportOutcome> GenerateOverallStatisticsReportOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::GenerateOverallStatisticsReportRequest&, const GenerateOverallStatisticsReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateOverallStatisticsReportAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetJobByPhoneNumberResult> GetJobByPhoneNumberOutcome;
|
||||
typedef std::future<GetJobByPhoneNumberOutcome> GetJobByPhoneNumberOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::GetJobByPhoneNumberRequest&, const GetJobByPhoneNumberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobByPhoneNumberAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetJobStatusByCallIdResult> GetJobStatusByCallIdOutcome;
|
||||
typedef std::future<GetJobStatusByCallIdOutcome> GetJobStatusByCallIdOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::GetJobStatusByCallIdRequest&, const GetJobStatusByCallIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetJobStatusByCallIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTagHitsSummaryResult> GetTagHitsSummaryOutcome;
|
||||
typedef std::future<GetTagHitsSummaryOutcome> GetTagHitsSummaryOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::GetTagHitsSummaryRequest&, const GetTagHitsSummaryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTagHitsSummaryAsyncHandler;
|
||||
typedef Outcome<Error, Model::ImportScriptResult> ImportScriptOutcome;
|
||||
typedef std::future<ImportScriptOutcome> ImportScriptOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ImportScriptRequest&, const ImportScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImportScriptAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListBasicStatisticsReportSubItemsResult> ListBasicStatisticsReportSubItemsOutcome;
|
||||
typedef std::future<ListBasicStatisticsReportSubItemsOutcome> ListBasicStatisticsReportSubItemsOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListBasicStatisticsReportSubItemsRequest&, const ListBasicStatisticsReportSubItemsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListBasicStatisticsReportSubItemsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListConversationsWithUnrecognizedIntentsResult> ListConversationsWithUnrecognizedIntentsOutcome;
|
||||
typedef std::future<ListConversationsWithUnrecognizedIntentsOutcome> ListConversationsWithUnrecognizedIntentsOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListConversationsWithUnrecognizedIntentsRequest&, const ListConversationsWithUnrecognizedIntentsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListConversationsWithUnrecognizedIntentsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDialogueFlowsResult> ListDialogueFlowsOutcome;
|
||||
typedef std::future<ListDialogueFlowsOutcome> ListDialogueFlowsOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListDialogueFlowsRequest&, const ListDialogueFlowsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDialogueFlowsAsyncHandler;
|
||||
@@ -352,9 +297,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListJobGroupsResult> ListJobGroupsOutcome;
|
||||
typedef std::future<ListJobGroupsOutcome> ListJobGroupsOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListJobGroupsRequest&, const ListJobGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListJobGroupsWithScenarioResult> ListJobGroupsWithScenarioOutcome;
|
||||
typedef std::future<ListJobGroupsWithScenarioOutcome> ListJobGroupsWithScenarioOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListJobGroupsWithScenarioRequest&, const ListJobGroupsWithScenarioOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobGroupsWithScenarioAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListJobsResult> ListJobsOutcome;
|
||||
typedef std::future<ListJobsOutcome> ListJobsOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListJobsRequest&, const ListJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobsAsyncHandler;
|
||||
@@ -364,9 +306,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListMediaResult> ListMediaOutcome;
|
||||
typedef std::future<ListMediaOutcome> ListMediaOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListMediaRequest&, const ListMediaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMediaAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListMediasResult> ListMediasOutcome;
|
||||
typedef std::future<ListMediasOutcome> ListMediasOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListMediasRequest&, const ListMediasOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMediasAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListOutboundCallNumbersResult> ListOutboundCallNumbersOutcome;
|
||||
typedef std::future<ListOutboundCallNumbersOutcome> ListOutboundCallNumbersOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListOutboundCallNumbersRequest&, const ListOutboundCallNumbersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListOutboundCallNumbersAsyncHandler;
|
||||
@@ -382,12 +321,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListTagsResult> ListTagsOutcome;
|
||||
typedef std::future<ListTagsOutcome> ListTagsOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListTagsRequest&, const ListTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUnreachableContactsResult> ListUnreachableContactsOutcome;
|
||||
typedef std::future<ListUnreachableContactsOutcome> ListUnreachableContactsOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListUnreachableContactsRequest&, const ListUnreachableContactsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUnreachableContactsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUnrecognizedIntentsResult> ListUnrecognizedIntentsOutcome;
|
||||
typedef std::future<ListUnrecognizedIntentsOutcome> ListUnrecognizedIntentsOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListUnrecognizedIntentsRequest&, const ListUnrecognizedIntentsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUnrecognizedIntentsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyBatchJobsResult> ModifyBatchJobsOutcome;
|
||||
typedef std::future<ModifyBatchJobsOutcome> ModifyBatchJobsOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ModifyBatchJobsRequest&, const ModifyBatchJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyBatchJobsAsyncHandler;
|
||||
@@ -460,9 +393,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SuspendJobsResult> SuspendJobsOutcome;
|
||||
typedef std::future<SuspendJobsOutcome> SuspendJobsOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::SuspendJobsRequest&, const SuspendJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SuspendJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::WithdrawScriptResult> WithdrawScriptOutcome;
|
||||
typedef std::future<WithdrawScriptOutcome> WithdrawScriptOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::WithdrawScriptRequest&, const WithdrawScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> WithdrawScriptAsyncHandler;
|
||||
typedef Outcome<Error, Model::WithdrawScriptReviewResult> WithdrawScriptReviewOutcome;
|
||||
typedef std::future<WithdrawScriptReviewOutcome> WithdrawScriptReviewOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::WithdrawScriptReviewRequest&, const WithdrawScriptReviewOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> WithdrawScriptReviewAsyncHandler;
|
||||
@@ -555,54 +485,27 @@ 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;
|
||||
DescribeTTSDemoOutcome describeTTSDemo(const Model::DescribeTTSDemoRequest &request)const;
|
||||
void describeTTSDemoAsync(const Model::DescribeTTSDemoRequest& request, const DescribeTTSDemoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTTSDemoOutcomeCallable describeTTSDemoCallable(const Model::DescribeTTSDemoRequest& request) const;
|
||||
DescribeTagHitsSummaryOutcome describeTagHitsSummary(const Model::DescribeTagHitsSummaryRequest &request)const;
|
||||
void describeTagHitsSummaryAsync(const Model::DescribeTagHitsSummaryRequest& request, const DescribeTagHitsSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTagHitsSummaryOutcomeCallable describeTagHitsSummaryCallable(const Model::DescribeTagHitsSummaryRequest& 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;
|
||||
DownloadBasicStatisticsReportOutcome downloadBasicStatisticsReport(const Model::DownloadBasicStatisticsReportRequest &request)const;
|
||||
void downloadBasicStatisticsReportAsync(const Model::DownloadBasicStatisticsReportRequest& request, const DownloadBasicStatisticsReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DownloadBasicStatisticsReportOutcomeCallable downloadBasicStatisticsReportCallable(const Model::DownloadBasicStatisticsReportRequest& request) const;
|
||||
DownloadConversationDetailsOutcome downloadConversationDetails(const Model::DownloadConversationDetailsRequest &request)const;
|
||||
void downloadConversationDetailsAsync(const Model::DownloadConversationDetailsRequest& request, const DownloadConversationDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DownloadConversationDetailsOutcomeCallable downloadConversationDetailsCallable(const Model::DownloadConversationDetailsRequest& request) const;
|
||||
DownloadRecordingOutcome downloadRecording(const Model::DownloadRecordingRequest &request)const;
|
||||
void downloadRecordingAsync(const Model::DownloadRecordingRequest& request, const DownloadRecordingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DownloadRecordingOutcomeCallable downloadRecordingCallable(const Model::DownloadRecordingRequest& request) const;
|
||||
DownloadUnreachableContactsOutcome downloadUnreachableContacts(const Model::DownloadUnreachableContactsRequest &request)const;
|
||||
void downloadUnreachableContactsAsync(const Model::DownloadUnreachableContactsRequest& request, const DownloadUnreachableContactsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DownloadUnreachableContactsOutcomeCallable downloadUnreachableContactsCallable(const Model::DownloadUnreachableContactsRequest& request) const;
|
||||
DuplicateScriptOutcome duplicateScript(const Model::DuplicateScriptRequest &request)const;
|
||||
void duplicateScriptAsync(const Model::DuplicateScriptRequest& request, const DuplicateScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DuplicateScriptOutcomeCallable duplicateScriptCallable(const Model::DuplicateScriptRequest& request) const;
|
||||
ExportScriptOutcome exportScript(const Model::ExportScriptRequest &request)const;
|
||||
void exportScriptAsync(const Model::ExportScriptRequest& request, const ExportScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ExportScriptOutcomeCallable exportScriptCallable(const Model::ExportScriptRequest& request) const;
|
||||
GenerateBasicStatisticsReportOutcome generateBasicStatisticsReport(const Model::GenerateBasicStatisticsReportRequest &request)const;
|
||||
void generateBasicStatisticsReportAsync(const Model::GenerateBasicStatisticsReportRequest& request, const GenerateBasicStatisticsReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenerateBasicStatisticsReportOutcomeCallable generateBasicStatisticsReportCallable(const Model::GenerateBasicStatisticsReportRequest& request) const;
|
||||
GenerateOverallStatisticsReportOutcome generateOverallStatisticsReport(const Model::GenerateOverallStatisticsReportRequest &request)const;
|
||||
void generateOverallStatisticsReportAsync(const Model::GenerateOverallStatisticsReportRequest& request, const GenerateOverallStatisticsReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenerateOverallStatisticsReportOutcomeCallable generateOverallStatisticsReportCallable(const Model::GenerateOverallStatisticsReportRequest& request) const;
|
||||
GetJobByPhoneNumberOutcome getJobByPhoneNumber(const Model::GetJobByPhoneNumberRequest &request)const;
|
||||
void getJobByPhoneNumberAsync(const Model::GetJobByPhoneNumberRequest& request, const GetJobByPhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJobByPhoneNumberOutcomeCallable getJobByPhoneNumberCallable(const Model::GetJobByPhoneNumberRequest& request) const;
|
||||
GetJobStatusByCallIdOutcome getJobStatusByCallId(const Model::GetJobStatusByCallIdRequest &request)const;
|
||||
void getJobStatusByCallIdAsync(const Model::GetJobStatusByCallIdRequest& request, const GetJobStatusByCallIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetJobStatusByCallIdOutcomeCallable getJobStatusByCallIdCallable(const Model::GetJobStatusByCallIdRequest& request) const;
|
||||
GetTagHitsSummaryOutcome getTagHitsSummary(const Model::GetTagHitsSummaryRequest &request)const;
|
||||
void getTagHitsSummaryAsync(const Model::GetTagHitsSummaryRequest& request, const GetTagHitsSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTagHitsSummaryOutcomeCallable getTagHitsSummaryCallable(const Model::GetTagHitsSummaryRequest& request) const;
|
||||
ImportScriptOutcome importScript(const Model::ImportScriptRequest &request)const;
|
||||
void importScriptAsync(const Model::ImportScriptRequest& request, const ImportScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ImportScriptOutcomeCallable importScriptCallable(const Model::ImportScriptRequest& request) const;
|
||||
ListBasicStatisticsReportSubItemsOutcome listBasicStatisticsReportSubItems(const Model::ListBasicStatisticsReportSubItemsRequest &request)const;
|
||||
void listBasicStatisticsReportSubItemsAsync(const Model::ListBasicStatisticsReportSubItemsRequest& request, const ListBasicStatisticsReportSubItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListBasicStatisticsReportSubItemsOutcomeCallable listBasicStatisticsReportSubItemsCallable(const Model::ListBasicStatisticsReportSubItemsRequest& request) const;
|
||||
ListConversationsWithUnrecognizedIntentsOutcome listConversationsWithUnrecognizedIntents(const Model::ListConversationsWithUnrecognizedIntentsRequest &request)const;
|
||||
void listConversationsWithUnrecognizedIntentsAsync(const Model::ListConversationsWithUnrecognizedIntentsRequest& request, const ListConversationsWithUnrecognizedIntentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListConversationsWithUnrecognizedIntentsOutcomeCallable listConversationsWithUnrecognizedIntentsCallable(const Model::ListConversationsWithUnrecognizedIntentsRequest& request) const;
|
||||
ListDialogueFlowsOutcome listDialogueFlows(const Model::ListDialogueFlowsRequest &request)const;
|
||||
void listDialogueFlowsAsync(const Model::ListDialogueFlowsRequest& request, const ListDialogueFlowsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDialogueFlowsOutcomeCallable listDialogueFlowsCallable(const Model::ListDialogueFlowsRequest& request) const;
|
||||
@@ -618,9 +521,6 @@ namespace AlibabaCloud
|
||||
ListJobGroupsOutcome listJobGroups(const Model::ListJobGroupsRequest &request)const;
|
||||
void listJobGroupsAsync(const Model::ListJobGroupsRequest& request, const ListJobGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListJobGroupsOutcomeCallable listJobGroupsCallable(const Model::ListJobGroupsRequest& request) const;
|
||||
ListJobGroupsWithScenarioOutcome listJobGroupsWithScenario(const Model::ListJobGroupsWithScenarioRequest &request)const;
|
||||
void listJobGroupsWithScenarioAsync(const Model::ListJobGroupsWithScenarioRequest& request, const ListJobGroupsWithScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListJobGroupsWithScenarioOutcomeCallable listJobGroupsWithScenarioCallable(const Model::ListJobGroupsWithScenarioRequest& request) const;
|
||||
ListJobsOutcome listJobs(const Model::ListJobsRequest &request)const;
|
||||
void listJobsAsync(const Model::ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListJobsOutcomeCallable listJobsCallable(const Model::ListJobsRequest& request) const;
|
||||
@@ -630,9 +530,6 @@ namespace AlibabaCloud
|
||||
ListMediaOutcome listMedia(const Model::ListMediaRequest &request)const;
|
||||
void listMediaAsync(const Model::ListMediaRequest& request, const ListMediaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListMediaOutcomeCallable listMediaCallable(const Model::ListMediaRequest& request) const;
|
||||
ListMediasOutcome listMedias(const Model::ListMediasRequest &request)const;
|
||||
void listMediasAsync(const Model::ListMediasRequest& request, const ListMediasAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListMediasOutcomeCallable listMediasCallable(const Model::ListMediasRequest& request) const;
|
||||
ListOutboundCallNumbersOutcome listOutboundCallNumbers(const Model::ListOutboundCallNumbersRequest &request)const;
|
||||
void listOutboundCallNumbersAsync(const Model::ListOutboundCallNumbersRequest& request, const ListOutboundCallNumbersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListOutboundCallNumbersOutcomeCallable listOutboundCallNumbersCallable(const Model::ListOutboundCallNumbersRequest& request) const;
|
||||
@@ -648,12 +545,6 @@ namespace AlibabaCloud
|
||||
ListTagsOutcome listTags(const Model::ListTagsRequest &request)const;
|
||||
void listTagsAsync(const Model::ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListTagsOutcomeCallable listTagsCallable(const Model::ListTagsRequest& request) const;
|
||||
ListUnreachableContactsOutcome listUnreachableContacts(const Model::ListUnreachableContactsRequest &request)const;
|
||||
void listUnreachableContactsAsync(const Model::ListUnreachableContactsRequest& request, const ListUnreachableContactsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUnreachableContactsOutcomeCallable listUnreachableContactsCallable(const Model::ListUnreachableContactsRequest& request) const;
|
||||
ListUnrecognizedIntentsOutcome listUnrecognizedIntents(const Model::ListUnrecognizedIntentsRequest &request)const;
|
||||
void listUnrecognizedIntentsAsync(const Model::ListUnrecognizedIntentsRequest& request, const ListUnrecognizedIntentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUnrecognizedIntentsOutcomeCallable listUnrecognizedIntentsCallable(const Model::ListUnrecognizedIntentsRequest& request) const;
|
||||
ModifyBatchJobsOutcome modifyBatchJobs(const Model::ModifyBatchJobsRequest &request)const;
|
||||
void modifyBatchJobsAsync(const Model::ModifyBatchJobsRequest& request, const ModifyBatchJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyBatchJobsOutcomeCallable modifyBatchJobsCallable(const Model::ModifyBatchJobsRequest& request) const;
|
||||
@@ -726,9 +617,6 @@ namespace AlibabaCloud
|
||||
SuspendJobsOutcome suspendJobs(const Model::SuspendJobsRequest &request)const;
|
||||
void suspendJobsAsync(const Model::SuspendJobsRequest& request, const SuspendJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SuspendJobsOutcomeCallable suspendJobsCallable(const Model::SuspendJobsRequest& request) const;
|
||||
WithdrawScriptOutcome withdrawScript(const Model::WithdrawScriptRequest &request)const;
|
||||
void withdrawScriptAsync(const Model::WithdrawScriptRequest& request, const WithdrawScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
WithdrawScriptOutcomeCallable withdrawScriptCallable(const Model::WithdrawScriptRequest& request) const;
|
||||
WithdrawScriptReviewOutcome withdrawScriptReview(const Model::WithdrawScriptReviewRequest &request)const;
|
||||
void withdrawScriptReviewAsync(const Model::WithdrawScriptReviewRequest& request, const WithdrawScriptReviewAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
WithdrawScriptReviewOutcomeCallable withdrawScriptReviewCallable(const Model::WithdrawScriptReviewRequest& request) const;
|
||||
|
||||
@@ -37,18 +37,30 @@ namespace AlibabaCloud
|
||||
|
||||
int getMaxConcurrentConversation()const;
|
||||
void setMaxConcurrentConversation(int maxConcurrentConversation);
|
||||
std::string getSecretKey()const;
|
||||
void setSecretKey(const std::string& secretKey);
|
||||
std::string getEndpoint()const;
|
||||
void setEndpoint(const std::string& endpoint);
|
||||
std::string getInstanceName()const;
|
||||
void setInstanceName(const std::string& instanceName);
|
||||
std::string getCallCenterInstanceId()const;
|
||||
void setCallCenterInstanceId(const std::string& callCenterInstanceId);
|
||||
std::string getAccessKey()const;
|
||||
void setAccessKey(const std::string& accessKey);
|
||||
std::string getInstanceDescription()const;
|
||||
void setInstanceDescription(const std::string& instanceDescription);
|
||||
std::string getNluServiceType()const;
|
||||
void setNluServiceType(const std::string& nluServiceType);
|
||||
|
||||
private:
|
||||
int maxConcurrentConversation_;
|
||||
std::string secretKey_;
|
||||
std::string endpoint_;
|
||||
std::string instanceName_;
|
||||
std::string callCenterInstanceId_;
|
||||
std::string accessKey_;
|
||||
std::string instanceDescription_;
|
||||
std::string nluServiceType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -34,12 +34,20 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Instance
|
||||
{
|
||||
struct NluProfile
|
||||
{
|
||||
std::string secretKey;
|
||||
std::string endpoint;
|
||||
std::string accessKey;
|
||||
};
|
||||
std::string instanceName;
|
||||
std::string owner;
|
||||
int maxConcurrentConversation;
|
||||
std::string instanceId;
|
||||
long creationTime;
|
||||
std::string instanceDescription;
|
||||
std::string nluServiceType;
|
||||
NluProfile nluProfile;
|
||||
std::string callCenterInstanceId;
|
||||
};
|
||||
|
||||
|
||||
@@ -35,22 +35,31 @@ namespace AlibabaCloud
|
||||
CreateScriptRequest();
|
||||
~CreateScriptRequest();
|
||||
|
||||
std::string getTtsConfig()const;
|
||||
void setTtsConfig(const std::string& ttsConfig);
|
||||
std::string getIndustry()const;
|
||||
void setIndustry(const std::string& industry);
|
||||
std::string getScriptName()const;
|
||||
void setScriptName(const std::string& scriptName);
|
||||
std::string getScene()const;
|
||||
void setScene(const std::string& scene);
|
||||
std::string getChatbotId()const;
|
||||
void setChatbotId(const std::string& chatbotId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getAsrConfig()const;
|
||||
void setAsrConfig(const std::string& asrConfig);
|
||||
std::string getScriptDescription()const;
|
||||
void setScriptDescription(const std::string& scriptDescription);
|
||||
|
||||
private:
|
||||
std::string ttsConfig_;
|
||||
std::string industry_;
|
||||
std::string scriptName_;
|
||||
std::string scene_;
|
||||
std::string chatbotId_;
|
||||
std::string instanceId_;
|
||||
std::string asrConfig_;
|
||||
std::string scriptDescription_;
|
||||
|
||||
};
|
||||
|
||||
@@ -51,6 +51,7 @@ namespace AlibabaCloud
|
||||
explicit CreateScriptResult(const std::string &payload);
|
||||
~CreateScriptResult();
|
||||
Script getScript()const;
|
||||
std::string getChatbotId()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
@@ -60,6 +61,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Script script_;
|
||||
std::string chatbotId_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
|
||||
@@ -34,12 +34,20 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Instance
|
||||
{
|
||||
struct NluProfile
|
||||
{
|
||||
std::string secretKey;
|
||||
std::string endpoint;
|
||||
std::string accessKey;
|
||||
};
|
||||
std::string instanceName;
|
||||
std::string owner;
|
||||
int maxConcurrentConversation;
|
||||
std::string instanceId;
|
||||
long creationTime;
|
||||
std::string instanceDescription;
|
||||
std::string nluServiceType;
|
||||
NluProfile nluProfile;
|
||||
std::string callCenterInstanceId;
|
||||
};
|
||||
|
||||
|
||||
@@ -50,18 +50,24 @@ namespace AlibabaCloud
|
||||
DescribeScriptResult();
|
||||
explicit DescribeScriptResult(const std::string &payload);
|
||||
~DescribeScriptResult();
|
||||
std::string getAsrConfig()const;
|
||||
Script getScript()const;
|
||||
std::string getChatbotId()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getTtsConfig()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string asrConfig_;
|
||||
Script script_;
|
||||
std::string chatbotId_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string ttsConfig_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSDEMOREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSDEMOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,24 +28,36 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT WithdrawScriptRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeTTSDemoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
WithdrawScriptRequest();
|
||||
~WithdrawScriptRequest();
|
||||
DescribeTTSDemoRequest();
|
||||
~DescribeTTSDemoRequest();
|
||||
|
||||
std::string getVoice()const;
|
||||
void setVoice(const std::string& voice);
|
||||
int getVolume()const;
|
||||
void setVolume(int volume);
|
||||
std::string getScriptId()const;
|
||||
void setScriptId(const std::string& scriptId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getText()const;
|
||||
void setText(const std::string& text);
|
||||
int getSpeechRate()const;
|
||||
void setSpeechRate(int speechRate);
|
||||
|
||||
private:
|
||||
std::string voice_;
|
||||
int volume_;
|
||||
std::string scriptId_;
|
||||
std::string instanceId_;
|
||||
std::string text_;
|
||||
int speechRate_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSDEMOREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADUNREACHABLECONTACTSRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADUNREACHABLECONTACTSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSDEMORESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSDEMORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,30 +29,26 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DownloadUnreachableContactsResult : public ServiceResult
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeTTSDemoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DownloadParams
|
||||
{
|
||||
std::string signatureUrl;
|
||||
};
|
||||
|
||||
|
||||
DownloadUnreachableContactsResult();
|
||||
explicit DownloadUnreachableContactsResult(const std::string &payload);
|
||||
~DownloadUnreachableContactsResult();
|
||||
DownloadParams getDownloadParams()const;
|
||||
DescribeTTSDemoResult();
|
||||
explicit DescribeTTSDemoResult(const std::string &payload);
|
||||
~DescribeTTSDemoResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getAuditionUrl()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DownloadParams downloadParams_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string auditionUrl_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
@@ -60,4 +56,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADUNREACHABLECONTACTSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSDEMORESULT_H_
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADBASICSTATISTICSREPORTREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADBASICSTATISTICSREPORTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DownloadBasicStatisticsReportRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DownloadBasicStatisticsReportRequest();
|
||||
~DownloadBasicStatisticsReportRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADBASICSTATISTICSREPORTREQUEST_H_
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADBASICSTATISTICSREPORTRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADBASICSTATISTICSREPORTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DownloadBasicStatisticsReportResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DownloadParams
|
||||
{
|
||||
std::string signatureUrl;
|
||||
};
|
||||
|
||||
|
||||
DownloadBasicStatisticsReportResult();
|
||||
explicit DownloadBasicStatisticsReportResult(const std::string &payload);
|
||||
~DownloadBasicStatisticsReportResult();
|
||||
DownloadParams getDownloadParams()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DownloadParams downloadParams_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADBASICSTATISTICSREPORTRESULT_H_
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADCONVERSATIONDETAILSREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADCONVERSATIONDETAILSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DownloadConversationDetailsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DownloadConversationDetailsRequest();
|
||||
~DownloadConversationDetailsRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADCONVERSATIONDETAILSREQUEST_H_
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADCONVERSATIONDETAILSRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADCONVERSATIONDETAILSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DownloadConversationDetailsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DownloadParams
|
||||
{
|
||||
std::string signatureUrl;
|
||||
};
|
||||
|
||||
|
||||
DownloadConversationDetailsResult();
|
||||
explicit DownloadConversationDetailsResult(const std::string &payload);
|
||||
~DownloadConversationDetailsResult();
|
||||
DownloadParams getDownloadParams()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DownloadParams downloadParams_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADCONVERSATIONDETAILSRESULT_H_
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADUNREACHABLECONTACTSREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADUNREACHABLECONTACTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DownloadUnreachableContactsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DownloadUnreachableContactsRequest();
|
||||
~DownloadUnreachableContactsRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADUNREACHABLECONTACTSREQUEST_H_
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEBASICSTATISTICSREPORTREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEBASICSTATISTICSREPORTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GenerateBasicStatisticsReportRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GenerateBasicStatisticsReportRequest();
|
||||
~GenerateBasicStatisticsReportRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEBASICSTATISTICSREPORTREQUEST_H_
|
||||
@@ -1,83 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEBASICSTATISTICSREPORTRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEBASICSTATISTICSREPORTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GenerateBasicStatisticsReportResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct BasicStatisticsReport
|
||||
{
|
||||
struct BasicStatisticsReportItem
|
||||
{
|
||||
struct BasicStatisticsReportSubItem
|
||||
{
|
||||
struct KeyValuePair
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::vector<BasicStatisticsReportSubItem::KeyValuePair> details;
|
||||
int percentage;
|
||||
std::string basicStatisticsReportSubItemName;
|
||||
std::string value;
|
||||
int count;
|
||||
};
|
||||
std::vector<BasicStatisticsReportItem::BasicStatisticsReportSubItem> subItems;
|
||||
int totalCount;
|
||||
std::string graphType;
|
||||
std::string title;
|
||||
};
|
||||
std::vector<BasicStatisticsReportItem> items;
|
||||
};
|
||||
|
||||
|
||||
GenerateBasicStatisticsReportResult();
|
||||
explicit GenerateBasicStatisticsReportResult(const std::string &payload);
|
||||
~GenerateBasicStatisticsReportResult();
|
||||
BasicStatisticsReport getBasicStatisticsReport()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
BasicStatisticsReport basicStatisticsReport_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEBASICSTATISTICSREPORTRESULT_H_
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEOVERALLSTATISTICSREPORTREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEOVERALLSTATISTICSREPORTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GenerateOverallStatisticsReportRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GenerateOverallStatisticsReportRequest();
|
||||
~GenerateOverallStatisticsReportRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEOVERALLSTATISTICSREPORTREQUEST_H_
|
||||
@@ -1,70 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEOVERALLSTATISTICSREPORTRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEOVERALLSTATISTICSREPORTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GenerateOverallStatisticsReportResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct OverallStatisticsReport
|
||||
{
|
||||
struct KeyValuePair
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::vector<KeyValuePair> summaries;
|
||||
std::vector<KeyValuePair> indicators;
|
||||
std::vector<KeyValuePair> briefs;
|
||||
};
|
||||
|
||||
|
||||
GenerateOverallStatisticsReportResult();
|
||||
explicit GenerateOverallStatisticsReportResult(const std::string &payload);
|
||||
~GenerateOverallStatisticsReportResult();
|
||||
OverallStatisticsReport getOverallStatisticsReport()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
OverallStatisticsReport overallStatisticsReport_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEOVERALLSTATISTICSREPORTRESULT_H_
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBBYPHONENUMBERREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBBYPHONENUMBERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetJobByPhoneNumberRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetJobByPhoneNumberRequest();
|
||||
~GetJobByPhoneNumberRequest();
|
||||
|
||||
std::string getPhoneNumber()const;
|
||||
void setPhoneNumber(const std::string& phoneNumber);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
|
||||
private:
|
||||
std::string phoneNumber_;
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBBYPHONENUMBERREQUEST_H_
|
||||
@@ -1,139 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBBYPHONENUMBERRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBBYPHONENUMBERRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetJobByPhoneNumberResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Job
|
||||
{
|
||||
struct Contact
|
||||
{
|
||||
std::string role;
|
||||
std::string honorific;
|
||||
std::string referenceId;
|
||||
std::string state;
|
||||
std::string phoneNumber;
|
||||
std::string contactId;
|
||||
std::string contactName;
|
||||
std::string jobId;
|
||||
};
|
||||
struct KeyValuePair
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct Task
|
||||
{
|
||||
struct Contact2
|
||||
{
|
||||
std::string role;
|
||||
std::string honorific;
|
||||
std::string referenceId;
|
||||
std::string state;
|
||||
std::string phoneNumber;
|
||||
std::string contactId;
|
||||
std::string contactName;
|
||||
std::string jobId;
|
||||
};
|
||||
struct ConversationDetail
|
||||
{
|
||||
struct SummaryItem
|
||||
{
|
||||
std::string category;
|
||||
std::string content;
|
||||
std::string summaryName;
|
||||
};
|
||||
std::string script;
|
||||
std::vector<ConversationDetail::SummaryItem> summary1;
|
||||
long timestamp;
|
||||
std::string speaker;
|
||||
};
|
||||
std::string status;
|
||||
std::string chatbotId;
|
||||
long planedTime;
|
||||
std::string calledNumber;
|
||||
std::string taskId;
|
||||
std::string scenarioId;
|
||||
long actualTime;
|
||||
std::string callId;
|
||||
std::vector<Task::ConversationDetail> conversation;
|
||||
int duration;
|
||||
std::string brief;
|
||||
std::string callingNumber;
|
||||
Contact2 contact2;
|
||||
std::string jobId;
|
||||
};
|
||||
struct SummaryItem3
|
||||
{
|
||||
std::string category;
|
||||
std::string content;
|
||||
std::string summaryName;
|
||||
};
|
||||
std::string status;
|
||||
std::vector<Job::Task> tasks;
|
||||
std::string scenarioId;
|
||||
int priority;
|
||||
std::string strategyId;
|
||||
std::vector<Job::KeyValuePair> extras;
|
||||
std::string groupId;
|
||||
std::vector<Job::Contact> contacts;
|
||||
std::string referenceId;
|
||||
int systemPriority;
|
||||
std::string failureReason;
|
||||
std::vector<Job::SummaryItem3> summary;
|
||||
std::string jobId;
|
||||
std::vector<std::string> callingNumbers;
|
||||
};
|
||||
|
||||
|
||||
GetJobByPhoneNumberResult();
|
||||
explicit GetJobByPhoneNumberResult(const std::string &payload);
|
||||
~GetJobByPhoneNumberResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<Job> getJobs()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<Job> jobs_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBBYPHONENUMBERRESULT_H_
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBSTATUSBYCALLIDREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBSTATUSBYCALLIDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetJobStatusByCallIdRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetJobStatusByCallIdRequest();
|
||||
~GetJobStatusByCallIdRequest();
|
||||
|
||||
std::string getCallId()const;
|
||||
void setCallId(const std::string& callId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string callId_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBSTATUSBYCALLIDREQUEST_H_
|
||||
@@ -1,143 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBSTATUSBYCALLIDRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBSTATUSBYCALLIDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetJobStatusByCallIdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Job
|
||||
{
|
||||
struct Contact
|
||||
{
|
||||
std::string role;
|
||||
std::string honorific;
|
||||
std::string referenceId;
|
||||
std::string state;
|
||||
std::string phoneNumber;
|
||||
std::string contactId;
|
||||
std::string contactName;
|
||||
std::string jobId;
|
||||
};
|
||||
struct KeyValuePair
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct Task
|
||||
{
|
||||
struct Contact2
|
||||
{
|
||||
std::string role;
|
||||
std::string honorific;
|
||||
std::string referenceId;
|
||||
std::string state;
|
||||
std::string phoneNumber;
|
||||
std::string contactId;
|
||||
std::string contactName;
|
||||
std::string jobId;
|
||||
};
|
||||
struct ConversationDetail
|
||||
{
|
||||
struct SummaryItem
|
||||
{
|
||||
std::string category;
|
||||
std::string content;
|
||||
std::string summaryId;
|
||||
std::string summaryName;
|
||||
};
|
||||
std::string conversationId;
|
||||
std::string script;
|
||||
std::vector<ConversationDetail::SummaryItem> summary1;
|
||||
std::string taskId;
|
||||
long timestamp;
|
||||
std::string speaker;
|
||||
};
|
||||
std::string status;
|
||||
std::string chatbotId;
|
||||
long planedTime;
|
||||
std::string calledNumber;
|
||||
std::string taskId;
|
||||
std::string scenarioId;
|
||||
long endTime;
|
||||
long actualTime;
|
||||
std::string callId;
|
||||
std::vector<Task::ConversationDetail> conversation;
|
||||
int duration;
|
||||
std::string brief;
|
||||
std::string callingNumber;
|
||||
Contact2 contact2;
|
||||
std::string jobId;
|
||||
};
|
||||
struct SummaryItem3
|
||||
{
|
||||
std::string category;
|
||||
std::string content;
|
||||
std::string summaryId;
|
||||
std::string summaryName;
|
||||
};
|
||||
std::string status;
|
||||
std::vector<Task> tasks;
|
||||
std::string scenarioId;
|
||||
int priority;
|
||||
std::string strategyId;
|
||||
std::vector<KeyValuePair> extras;
|
||||
std::string jobGroupId;
|
||||
std::vector<Contact> contacts;
|
||||
std::string referenceId;
|
||||
std::string failureReason;
|
||||
std::vector<SummaryItem3> summary;
|
||||
std::string jobId;
|
||||
std::vector<std::string> callingNumbers;
|
||||
};
|
||||
|
||||
|
||||
GetJobStatusByCallIdResult();
|
||||
explicit GetJobStatusByCallIdResult(const std::string &payload);
|
||||
~GetJobStatusByCallIdResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
Job getJob()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
Job job_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETJOBSTATUSBYCALLIDRESULT_H_
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTAGHITSSUMMARYREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTAGHITSSUMMARYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetTagHitsSummaryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTagHitsSummaryRequest();
|
||||
~GetTagHitsSummaryRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTAGHITSSUMMARYREQUEST_H_
|
||||
@@ -1,74 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTAGHITSSUMMARYRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTAGHITSSUMMARYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetTagHitsSummaryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TagHits
|
||||
{
|
||||
std::string tagName;
|
||||
int hitCount;
|
||||
std::string tagGroup;
|
||||
};
|
||||
struct TagGroup
|
||||
{
|
||||
int tagGroupIndex;
|
||||
std::string tagGroup;
|
||||
std::string scriptId;
|
||||
std::string id;
|
||||
};
|
||||
|
||||
|
||||
GetTagHitsSummaryResult();
|
||||
explicit GetTagHitsSummaryResult(const std::string &payload);
|
||||
~GetTagHitsSummaryResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<TagGroup> getTagGroups()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::vector<TagHits> getTagHitsList()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<TagGroup> tagGroups_;
|
||||
int httpStatusCode_;
|
||||
std::vector<TagHits> tagHitsList_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTAGHITSSUMMARYRESULT_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListBasicStatisticsReportSubItemsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListBasicStatisticsReportSubItemsRequest();
|
||||
~ListBasicStatisticsReportSubItemsRequest();
|
||||
|
||||
std::string getTitle()const;
|
||||
void setTitle(const std::string& title);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string title_;
|
||||
int pageNumber_;
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSREQUEST_H_
|
||||
@@ -1,79 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListBasicStatisticsReportSubItemsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct BasicStatisticsReportSubItems
|
||||
{
|
||||
struct BasicStatisticsReportSubItem
|
||||
{
|
||||
struct KeyValuePair
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
int percentage;
|
||||
std::string basicStatisticsReportSubItemName;
|
||||
std::string value;
|
||||
std::vector<BasicStatisticsReportSubItem::KeyValuePair> row;
|
||||
int count;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<BasicStatisticsReportSubItem> list;
|
||||
};
|
||||
|
||||
|
||||
ListBasicStatisticsReportSubItemsResult();
|
||||
explicit ListBasicStatisticsReportSubItemsResult(const std::string &payload);
|
||||
~ListBasicStatisticsReportSubItemsResult();
|
||||
std::string getMessage()const;
|
||||
BasicStatisticsReportSubItems getBasicStatisticsReportSubItems()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
BasicStatisticsReportSubItems basicStatisticsReportSubItems_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTBASICSTATISTICSREPORTSUBITEMSRESULT_H_
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCONVERSATIONSWITHUNRECOGNIZEDINTENTSREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCONVERSATIONSWITHUNRECOGNIZEDINTENTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListConversationsWithUnrecognizedIntentsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListConversationsWithUnrecognizedIntentsRequest();
|
||||
~ListConversationsWithUnrecognizedIntentsRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
std::string getNodeId()const;
|
||||
void setNodeId(const std::string& nodeId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
std::string nodeId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCONVERSATIONSWITHUNRECOGNIZEDINTENTSREQUEST_H_
|
||||
@@ -1,85 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCONVERSATIONSWITHUNRECOGNIZEDINTENTSRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCONVERSATIONSWITHUNRECOGNIZEDINTENTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListConversationsWithUnrecognizedIntentsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ConversationsWithUnrecognizedIntent
|
||||
{
|
||||
struct Contact
|
||||
{
|
||||
std::string role;
|
||||
std::string honorific;
|
||||
std::string referenceId;
|
||||
std::string state;
|
||||
std::string phoneNumber;
|
||||
std::string contactId;
|
||||
std::string contactName;
|
||||
std::string jobId;
|
||||
};
|
||||
struct ConversationDetail
|
||||
{
|
||||
std::string script;
|
||||
std::string nodeId;
|
||||
std::string id;
|
||||
long timestamp;
|
||||
std::string speaker;
|
||||
};
|
||||
std::string conversationsWithUnrecognizedIntentId;
|
||||
std::vector<ConversationsWithUnrecognizedIntent::ConversationDetail> conversation;
|
||||
std::string jobId;
|
||||
Contact contact;
|
||||
};
|
||||
|
||||
|
||||
ListConversationsWithUnrecognizedIntentsResult();
|
||||
explicit ListConversationsWithUnrecognizedIntentsResult(const std::string &payload);
|
||||
~ListConversationsWithUnrecognizedIntentsResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<ConversationsWithUnrecognizedIntent> getConversationsWithUnrecognizedIntents()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<ConversationsWithUnrecognizedIntent> conversationsWithUnrecognizedIntents_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCONVERSATIONSWITHUNRECOGNIZEDINTENTSRESULT_H_
|
||||
@@ -34,12 +34,20 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Instance
|
||||
{
|
||||
struct NluProfile
|
||||
{
|
||||
std::string secretKey;
|
||||
std::string endpoint;
|
||||
std::string accessKey;
|
||||
};
|
||||
std::string instanceName;
|
||||
std::string owner;
|
||||
int maxConcurrentConversation;
|
||||
std::string instanceId;
|
||||
long creationTime;
|
||||
std::string instanceDescription;
|
||||
std::string nluServiceType;
|
||||
NluProfile nluProfile;
|
||||
bool isTemplateContainer;
|
||||
std::string callCenterInstanceId;
|
||||
};
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSWITHSCENARIOREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSWITHSCENARIOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListJobGroupsWithScenarioRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListJobGroupsWithScenarioRequest();
|
||||
~ListJobGroupsWithScenarioRequest();
|
||||
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
long endTime_;
|
||||
long startTime_;
|
||||
int pageNumber_;
|
||||
std::string instanceId_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSWITHSCENARIOREQUEST_H_
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSWITHSCENARIORESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSWITHSCENARIORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListJobGroupsWithScenarioResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct JobGroups
|
||||
{
|
||||
struct JobGroup
|
||||
{
|
||||
struct Strategy
|
||||
{
|
||||
struct TimeFrame
|
||||
{
|
||||
std::string endTime;
|
||||
std::string beginTime;
|
||||
};
|
||||
std::vector<TimeFrame> workingTime;
|
||||
bool isTemplate;
|
||||
std::string description;
|
||||
std::string repeatBy;
|
||||
int minAttemptInterval;
|
||||
long endTime;
|
||||
std::string strategyId;
|
||||
long startTime;
|
||||
std::string followUpStrategy;
|
||||
std::string type;
|
||||
std::string strategyName;
|
||||
std::string customized;
|
||||
int maxAttemptsPerDay;
|
||||
std::string routingStrategy;
|
||||
std::vector<std::string> repeatDays;
|
||||
};
|
||||
struct Progress
|
||||
{
|
||||
struct KeyValuePair
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string status;
|
||||
std::vector<KeyValuePair> categories;
|
||||
long startTime;
|
||||
int duration;
|
||||
int totalCompleted;
|
||||
int totalNotAnswered;
|
||||
int totalJobs;
|
||||
};
|
||||
Progress progress;
|
||||
std::string jobGroupId;
|
||||
std::string scenarioId;
|
||||
std::string jobGroupName;
|
||||
long creationTime;
|
||||
Strategy strategy;
|
||||
std::string jobFilePath;
|
||||
std::string scenarioName;
|
||||
std::string jobGroupDescription;
|
||||
std::vector<std::string> callingNumbers;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<JobGroup> list;
|
||||
};
|
||||
|
||||
|
||||
ListJobGroupsWithScenarioResult();
|
||||
explicit ListJobGroupsWithScenarioResult(const std::string &payload);
|
||||
~ListJobGroupsWithScenarioResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
JobGroups getJobGroups()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
JobGroups jobGroups_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSWITHSCENARIORESULT_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIASREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIASREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListMediasRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListMediasRequest();
|
||||
~ListMediasRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getNamePrefix()const;
|
||||
void setNamePrefix(const std::string& namePrefix);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
std::string instanceId_;
|
||||
int pageSize_;
|
||||
std::string namePrefix_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIASREQUEST_H_
|
||||
@@ -1,70 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIASRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIASRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListMediasResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Media
|
||||
{
|
||||
std::string mediaId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListMediasResult();
|
||||
explicit ListMediasResult(const std::string &payload);
|
||||
~ListMediasResult();
|
||||
std::vector<Media> getMediaList()const;
|
||||
int getTotalCount()const;
|
||||
std::string getMessage()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Media> mediaList_;
|
||||
int totalCount_;
|
||||
std::string message_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIASRESULT_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNREACHABLECONTACTSREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNREACHABLECONTACTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListUnreachableContactsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListUnreachableContactsRequest();
|
||||
~ListUnreachableContactsRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNREACHABLECONTACTSREQUEST_H_
|
||||
@@ -1,80 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNREACHABLECONTACTSRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNREACHABLECONTACTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListUnreachableContactsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct UnreachableContacts
|
||||
{
|
||||
struct UnreachableContact
|
||||
{
|
||||
struct Contact
|
||||
{
|
||||
std::string role;
|
||||
std::string referenceId;
|
||||
std::string state;
|
||||
std::string phoneNumber;
|
||||
std::string contactId;
|
||||
std::string contactName;
|
||||
};
|
||||
std::vector<UnreachableContact::Contact> contacts;
|
||||
int totalAttempts;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<UnreachableContact> list;
|
||||
};
|
||||
|
||||
|
||||
ListUnreachableContactsResult();
|
||||
explicit ListUnreachableContactsResult(const std::string &payload);
|
||||
~ListUnreachableContactsResult();
|
||||
UnreachableContacts getUnreachableContacts()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
UnreachableContacts unreachableContacts_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNREACHABLECONTACTSRESULT_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNRECOGNIZEDINTENTSREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNRECOGNIZEDINTENTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListUnrecognizedIntentsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListUnrecognizedIntentsRequest();
|
||||
~ListUnrecognizedIntentsRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getJobGroupId()const;
|
||||
void setJobGroupId(const std::string& jobGroupId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
std::string instanceId_;
|
||||
std::string jobGroupId_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNRECOGNIZEDINTENTSREQUEST_H_
|
||||
@@ -1,74 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNRECOGNIZEDINTENTSRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNRECOGNIZEDINTENTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListUnrecognizedIntentsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct UnrecognizedIntents
|
||||
{
|
||||
struct UnrecognizedIntent
|
||||
{
|
||||
int unrecognizedPercentage;
|
||||
int totalCount;
|
||||
std::string nodeId;
|
||||
std::string question;
|
||||
int unrecognizedCount;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<UnrecognizedIntent> list;
|
||||
};
|
||||
|
||||
|
||||
ListUnrecognizedIntentsResult();
|
||||
explicit ListUnrecognizedIntentsResult(const std::string &payload);
|
||||
~ListUnrecognizedIntentsResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
UnrecognizedIntents getUnrecognizedIntents()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
UnrecognizedIntents unrecognizedIntents_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTUNRECOGNIZEDINTENTSRESULT_H_
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
ModifyDialogueFlowRequest();
|
||||
~ModifyDialogueFlowRequest();
|
||||
|
||||
bool getIsDrafted()const;
|
||||
void setIsDrafted(bool isDrafted);
|
||||
std::string getScriptId()const;
|
||||
void setScriptId(const std::string& scriptId);
|
||||
std::string getInstanceId()const;
|
||||
@@ -45,6 +47,7 @@ namespace AlibabaCloud
|
||||
void setDialogueFlowId(const std::string& dialogueFlowId);
|
||||
|
||||
private:
|
||||
bool isDrafted_;
|
||||
std::string scriptId_;
|
||||
std::string instanceId_;
|
||||
std::string dialogueFlowDefinition_;
|
||||
|
||||
@@ -37,21 +37,33 @@ namespace AlibabaCloud
|
||||
|
||||
int getMaxConcurrentConversation()const;
|
||||
void setMaxConcurrentConversation(int maxConcurrentConversation);
|
||||
std::string getSecretKey()const;
|
||||
void setSecretKey(const std::string& secretKey);
|
||||
std::string getEndpoint()const;
|
||||
void setEndpoint(const std::string& endpoint);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getInstanceName()const;
|
||||
void setInstanceName(const std::string& instanceName);
|
||||
std::string getCallCenterInstanceId()const;
|
||||
void setCallCenterInstanceId(const std::string& callCenterInstanceId);
|
||||
std::string getAccessKey()const;
|
||||
void setAccessKey(const std::string& accessKey);
|
||||
std::string getInstanceDescription()const;
|
||||
void setInstanceDescription(const std::string& instanceDescription);
|
||||
std::string getNluServiceType()const;
|
||||
void setNluServiceType(const std::string& nluServiceType);
|
||||
|
||||
private:
|
||||
int maxConcurrentConversation_;
|
||||
std::string secretKey_;
|
||||
std::string endpoint_;
|
||||
std::string instanceId_;
|
||||
std::string instanceName_;
|
||||
std::string callCenterInstanceId_;
|
||||
std::string accessKey_;
|
||||
std::string instanceDescription_;
|
||||
std::string nluServiceType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -34,12 +34,20 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Instance
|
||||
{
|
||||
struct NluProfile
|
||||
{
|
||||
std::string secretKey;
|
||||
std::string endpoint;
|
||||
std::string accessKey;
|
||||
};
|
||||
std::string instanceName;
|
||||
std::string owner;
|
||||
int maxConcurrentConversation;
|
||||
std::string instanceId;
|
||||
long creationTime;
|
||||
std::string instanceDescription;
|
||||
std::string nluServiceType;
|
||||
NluProfile nluProfile;
|
||||
std::string callCenterInstanceId;
|
||||
};
|
||||
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
ModifyScriptRequest();
|
||||
~ModifyScriptRequest();
|
||||
|
||||
std::string getTtsConfig()const;
|
||||
void setTtsConfig(const std::string& ttsConfig);
|
||||
std::string getIndustry()const;
|
||||
void setIndustry(const std::string& industry);
|
||||
std::string getScriptName()const;
|
||||
@@ -43,17 +45,24 @@ namespace AlibabaCloud
|
||||
void setScene(const std::string& scene);
|
||||
std::string getScriptId()const;
|
||||
void setScriptId(const std::string& scriptId);
|
||||
std::string getChatbotId()const;
|
||||
void setChatbotId(const std::string& chatbotId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getAsrConfig()const;
|
||||
void setAsrConfig(const std::string& asrConfig);
|
||||
std::string getScriptDescription()const;
|
||||
void setScriptDescription(const std::string& scriptDescription);
|
||||
|
||||
private:
|
||||
std::string ttsConfig_;
|
||||
std::string industry_;
|
||||
std::string scriptName_;
|
||||
std::string scene_;
|
||||
std::string scriptId_;
|
||||
std::string chatbotId_;
|
||||
std::string instanceId_;
|
||||
std::string asrConfig_;
|
||||
std::string scriptDescription_;
|
||||
|
||||
};
|
||||
|
||||
@@ -51,6 +51,7 @@ namespace AlibabaCloud
|
||||
explicit ModifyScriptResult(const std::string &payload);
|
||||
~ModifyScriptResult();
|
||||
Script getScript()const;
|
||||
std::string getChatbotId()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
@@ -60,6 +61,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Script script_;
|
||||
std::string chatbotId_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/outboundbot/OutboundBotExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace OutboundBot
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT WithdrawScriptResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Script
|
||||
{
|
||||
std::string industry;
|
||||
std::string status;
|
||||
bool isDrafted;
|
||||
std::string scriptName;
|
||||
std::string scriptDescription;
|
||||
long updateTime;
|
||||
std::string scriptId;
|
||||
std::string debugStatus;
|
||||
std::string scene;
|
||||
bool isDebugDrafted;
|
||||
};
|
||||
|
||||
|
||||
WithdrawScriptResult();
|
||||
explicit WithdrawScriptResult(const std::string &payload);
|
||||
~WithdrawScriptResult();
|
||||
Script getScript()const;
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Script script_;
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTRESULT_H_
|
||||
@@ -1059,6 +1059,42 @@ OutboundBotClient::DescribeTTSConfigOutcomeCallable OutboundBotClient::describeT
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::DescribeTTSDemoOutcome OutboundBotClient::describeTTSDemo(const DescribeTTSDemoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeTTSDemoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeTTSDemoOutcome(DescribeTTSDemoResult(outcome.result()));
|
||||
else
|
||||
return DescribeTTSDemoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::describeTTSDemoAsync(const DescribeTTSDemoRequest& request, const DescribeTTSDemoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeTTSDemo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::DescribeTTSDemoOutcomeCallable OutboundBotClient::describeTTSDemoCallable(const DescribeTTSDemoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeTTSDemoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeTTSDemo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::DescribeTagHitsSummaryOutcome OutboundBotClient::describeTagHitsSummary(const DescribeTagHitsSummaryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,78 +1167,6 @@ OutboundBotClient::DialogueOutcomeCallable OutboundBotClient::dialogueCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::DownloadBasicStatisticsReportOutcome OutboundBotClient::downloadBasicStatisticsReport(const DownloadBasicStatisticsReportRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DownloadBasicStatisticsReportOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DownloadBasicStatisticsReportOutcome(DownloadBasicStatisticsReportResult(outcome.result()));
|
||||
else
|
||||
return DownloadBasicStatisticsReportOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::downloadBasicStatisticsReportAsync(const DownloadBasicStatisticsReportRequest& request, const DownloadBasicStatisticsReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, downloadBasicStatisticsReport(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::DownloadBasicStatisticsReportOutcomeCallable OutboundBotClient::downloadBasicStatisticsReportCallable(const DownloadBasicStatisticsReportRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DownloadBasicStatisticsReportOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->downloadBasicStatisticsReport(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::DownloadConversationDetailsOutcome OutboundBotClient::downloadConversationDetails(const DownloadConversationDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DownloadConversationDetailsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DownloadConversationDetailsOutcome(DownloadConversationDetailsResult(outcome.result()));
|
||||
else
|
||||
return DownloadConversationDetailsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::downloadConversationDetailsAsync(const DownloadConversationDetailsRequest& request, const DownloadConversationDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, downloadConversationDetails(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::DownloadConversationDetailsOutcomeCallable OutboundBotClient::downloadConversationDetailsCallable(const DownloadConversationDetailsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DownloadConversationDetailsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->downloadConversationDetails(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::DownloadRecordingOutcome OutboundBotClient::downloadRecording(const DownloadRecordingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1239,42 +1203,6 @@ OutboundBotClient::DownloadRecordingOutcomeCallable OutboundBotClient::downloadR
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::DownloadUnreachableContactsOutcome OutboundBotClient::downloadUnreachableContacts(const DownloadUnreachableContactsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DownloadUnreachableContactsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DownloadUnreachableContactsOutcome(DownloadUnreachableContactsResult(outcome.result()));
|
||||
else
|
||||
return DownloadUnreachableContactsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::downloadUnreachableContactsAsync(const DownloadUnreachableContactsRequest& request, const DownloadUnreachableContactsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, downloadUnreachableContacts(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::DownloadUnreachableContactsOutcomeCallable OutboundBotClient::downloadUnreachableContactsCallable(const DownloadUnreachableContactsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DownloadUnreachableContactsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->downloadUnreachableContacts(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::DuplicateScriptOutcome OutboundBotClient::duplicateScript(const DuplicateScriptRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1347,186 +1275,6 @@ OutboundBotClient::ExportScriptOutcomeCallable OutboundBotClient::exportScriptCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::GenerateBasicStatisticsReportOutcome OutboundBotClient::generateBasicStatisticsReport(const GenerateBasicStatisticsReportRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GenerateBasicStatisticsReportOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GenerateBasicStatisticsReportOutcome(GenerateBasicStatisticsReportResult(outcome.result()));
|
||||
else
|
||||
return GenerateBasicStatisticsReportOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::generateBasicStatisticsReportAsync(const GenerateBasicStatisticsReportRequest& request, const GenerateBasicStatisticsReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, generateBasicStatisticsReport(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::GenerateBasicStatisticsReportOutcomeCallable OutboundBotClient::generateBasicStatisticsReportCallable(const GenerateBasicStatisticsReportRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GenerateBasicStatisticsReportOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->generateBasicStatisticsReport(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::GenerateOverallStatisticsReportOutcome OutboundBotClient::generateOverallStatisticsReport(const GenerateOverallStatisticsReportRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GenerateOverallStatisticsReportOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GenerateOverallStatisticsReportOutcome(GenerateOverallStatisticsReportResult(outcome.result()));
|
||||
else
|
||||
return GenerateOverallStatisticsReportOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::generateOverallStatisticsReportAsync(const GenerateOverallStatisticsReportRequest& request, const GenerateOverallStatisticsReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, generateOverallStatisticsReport(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::GenerateOverallStatisticsReportOutcomeCallable OutboundBotClient::generateOverallStatisticsReportCallable(const GenerateOverallStatisticsReportRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GenerateOverallStatisticsReportOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->generateOverallStatisticsReport(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::GetJobByPhoneNumberOutcome OutboundBotClient::getJobByPhoneNumber(const GetJobByPhoneNumberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetJobByPhoneNumberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetJobByPhoneNumberOutcome(GetJobByPhoneNumberResult(outcome.result()));
|
||||
else
|
||||
return GetJobByPhoneNumberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::getJobByPhoneNumberAsync(const GetJobByPhoneNumberRequest& request, const GetJobByPhoneNumberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getJobByPhoneNumber(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::GetJobByPhoneNumberOutcomeCallable OutboundBotClient::getJobByPhoneNumberCallable(const GetJobByPhoneNumberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetJobByPhoneNumberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getJobByPhoneNumber(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::GetJobStatusByCallIdOutcome OutboundBotClient::getJobStatusByCallId(const GetJobStatusByCallIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetJobStatusByCallIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetJobStatusByCallIdOutcome(GetJobStatusByCallIdResult(outcome.result()));
|
||||
else
|
||||
return GetJobStatusByCallIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::getJobStatusByCallIdAsync(const GetJobStatusByCallIdRequest& request, const GetJobStatusByCallIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getJobStatusByCallId(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::GetJobStatusByCallIdOutcomeCallable OutboundBotClient::getJobStatusByCallIdCallable(const GetJobStatusByCallIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetJobStatusByCallIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getJobStatusByCallId(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::GetTagHitsSummaryOutcome OutboundBotClient::getTagHitsSummary(const GetTagHitsSummaryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTagHitsSummaryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTagHitsSummaryOutcome(GetTagHitsSummaryResult(outcome.result()));
|
||||
else
|
||||
return GetTagHitsSummaryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::getTagHitsSummaryAsync(const GetTagHitsSummaryRequest& request, const GetTagHitsSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTagHitsSummary(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::GetTagHitsSummaryOutcomeCallable OutboundBotClient::getTagHitsSummaryCallable(const GetTagHitsSummaryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTagHitsSummaryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTagHitsSummary(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::ImportScriptOutcome OutboundBotClient::importScript(const ImportScriptRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1563,78 +1311,6 @@ OutboundBotClient::ImportScriptOutcomeCallable OutboundBotClient::importScriptCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::ListBasicStatisticsReportSubItemsOutcome OutboundBotClient::listBasicStatisticsReportSubItems(const ListBasicStatisticsReportSubItemsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListBasicStatisticsReportSubItemsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListBasicStatisticsReportSubItemsOutcome(ListBasicStatisticsReportSubItemsResult(outcome.result()));
|
||||
else
|
||||
return ListBasicStatisticsReportSubItemsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::listBasicStatisticsReportSubItemsAsync(const ListBasicStatisticsReportSubItemsRequest& request, const ListBasicStatisticsReportSubItemsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listBasicStatisticsReportSubItems(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::ListBasicStatisticsReportSubItemsOutcomeCallable OutboundBotClient::listBasicStatisticsReportSubItemsCallable(const ListBasicStatisticsReportSubItemsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListBasicStatisticsReportSubItemsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listBasicStatisticsReportSubItems(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::ListConversationsWithUnrecognizedIntentsOutcome OutboundBotClient::listConversationsWithUnrecognizedIntents(const ListConversationsWithUnrecognizedIntentsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListConversationsWithUnrecognizedIntentsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListConversationsWithUnrecognizedIntentsOutcome(ListConversationsWithUnrecognizedIntentsResult(outcome.result()));
|
||||
else
|
||||
return ListConversationsWithUnrecognizedIntentsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::listConversationsWithUnrecognizedIntentsAsync(const ListConversationsWithUnrecognizedIntentsRequest& request, const ListConversationsWithUnrecognizedIntentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listConversationsWithUnrecognizedIntents(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::ListConversationsWithUnrecognizedIntentsOutcomeCallable OutboundBotClient::listConversationsWithUnrecognizedIntentsCallable(const ListConversationsWithUnrecognizedIntentsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListConversationsWithUnrecognizedIntentsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listConversationsWithUnrecognizedIntents(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::ListDialogueFlowsOutcome OutboundBotClient::listDialogueFlows(const ListDialogueFlowsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1815,42 +1491,6 @@ OutboundBotClient::ListJobGroupsOutcomeCallable OutboundBotClient::listJobGroups
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::ListJobGroupsWithScenarioOutcome OutboundBotClient::listJobGroupsWithScenario(const ListJobGroupsWithScenarioRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListJobGroupsWithScenarioOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListJobGroupsWithScenarioOutcome(ListJobGroupsWithScenarioResult(outcome.result()));
|
||||
else
|
||||
return ListJobGroupsWithScenarioOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::listJobGroupsWithScenarioAsync(const ListJobGroupsWithScenarioRequest& request, const ListJobGroupsWithScenarioAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listJobGroupsWithScenario(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::ListJobGroupsWithScenarioOutcomeCallable OutboundBotClient::listJobGroupsWithScenarioCallable(const ListJobGroupsWithScenarioRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListJobGroupsWithScenarioOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listJobGroupsWithScenario(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::ListJobsOutcome OutboundBotClient::listJobs(const ListJobsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1959,42 +1599,6 @@ OutboundBotClient::ListMediaOutcomeCallable OutboundBotClient::listMediaCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::ListMediasOutcome OutboundBotClient::listMedias(const ListMediasRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMediasOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListMediasOutcome(ListMediasResult(outcome.result()));
|
||||
else
|
||||
return ListMediasOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::listMediasAsync(const ListMediasRequest& request, const ListMediasAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listMedias(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::ListMediasOutcomeCallable OutboundBotClient::listMediasCallable(const ListMediasRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListMediasOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listMedias(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::ListOutboundCallNumbersOutcome OutboundBotClient::listOutboundCallNumbers(const ListOutboundCallNumbersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2175,78 +1779,6 @@ OutboundBotClient::ListTagsOutcomeCallable OutboundBotClient::listTagsCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::ListUnreachableContactsOutcome OutboundBotClient::listUnreachableContacts(const ListUnreachableContactsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListUnreachableContactsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListUnreachableContactsOutcome(ListUnreachableContactsResult(outcome.result()));
|
||||
else
|
||||
return ListUnreachableContactsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::listUnreachableContactsAsync(const ListUnreachableContactsRequest& request, const ListUnreachableContactsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listUnreachableContacts(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::ListUnreachableContactsOutcomeCallable OutboundBotClient::listUnreachableContactsCallable(const ListUnreachableContactsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListUnreachableContactsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listUnreachableContacts(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::ListUnrecognizedIntentsOutcome OutboundBotClient::listUnrecognizedIntents(const ListUnrecognizedIntentsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListUnrecognizedIntentsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListUnrecognizedIntentsOutcome(ListUnrecognizedIntentsResult(outcome.result()));
|
||||
else
|
||||
return ListUnrecognizedIntentsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::listUnrecognizedIntentsAsync(const ListUnrecognizedIntentsRequest& request, const ListUnrecognizedIntentsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listUnrecognizedIntents(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::ListUnrecognizedIntentsOutcomeCallable OutboundBotClient::listUnrecognizedIntentsCallable(const ListUnrecognizedIntentsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListUnrecognizedIntentsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listUnrecognizedIntents(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::ModifyBatchJobsOutcome OutboundBotClient::modifyBatchJobs(const ModifyBatchJobsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3111,42 +2643,6 @@ OutboundBotClient::SuspendJobsOutcomeCallable OutboundBotClient::suspendJobsCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::WithdrawScriptOutcome OutboundBotClient::withdrawScript(const WithdrawScriptRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return WithdrawScriptOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return WithdrawScriptOutcome(WithdrawScriptResult(outcome.result()));
|
||||
else
|
||||
return WithdrawScriptOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::withdrawScriptAsync(const WithdrawScriptRequest& request, const WithdrawScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, withdrawScript(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::WithdrawScriptOutcomeCallable OutboundBotClient::withdrawScriptCallable(const WithdrawScriptRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<WithdrawScriptOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->withdrawScript(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::WithdrawScriptReviewOutcome OutboundBotClient::withdrawScriptReview(const WithdrawScriptReviewRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -38,6 +38,28 @@ void CreateInstanceRequest::setMaxConcurrentConversation(int maxConcurrentConver
|
||||
setParameter("MaxConcurrentConversation", std::to_string(maxConcurrentConversation));
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getSecretKey()const
|
||||
{
|
||||
return secretKey_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setSecretKey(const std::string& secretKey)
|
||||
{
|
||||
secretKey_ = secretKey;
|
||||
setParameter("SecretKey", secretKey);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getEndpoint()const
|
||||
{
|
||||
return endpoint_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setEndpoint(const std::string& endpoint)
|
||||
{
|
||||
endpoint_ = endpoint;
|
||||
setParameter("Endpoint", endpoint);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getInstanceName()const
|
||||
{
|
||||
return instanceName_;
|
||||
@@ -60,6 +82,17 @@ void CreateInstanceRequest::setCallCenterInstanceId(const std::string& callCente
|
||||
setParameter("CallCenterInstanceId", callCenterInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getAccessKey()const
|
||||
{
|
||||
return accessKey_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setAccessKey(const std::string& accessKey)
|
||||
{
|
||||
accessKey_ = accessKey;
|
||||
setParameter("AccessKey", accessKey);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getInstanceDescription()const
|
||||
{
|
||||
return instanceDescription_;
|
||||
@@ -71,3 +104,14 @@ void CreateInstanceRequest::setInstanceDescription(const std::string& instanceDe
|
||||
setParameter("InstanceDescription", instanceDescription);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getNluServiceType()const
|
||||
{
|
||||
return nluServiceType_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setNluServiceType(const std::string& nluServiceType)
|
||||
{
|
||||
nluServiceType_ = nluServiceType;
|
||||
setParameter("NluServiceType", nluServiceType);
|
||||
}
|
||||
|
||||
|
||||
@@ -54,6 +54,15 @@ void CreateInstanceResult::parse(const std::string &payload)
|
||||
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
|
||||
if(!instanceNode["Owner"].isNull())
|
||||
instance_.owner = instanceNode["Owner"].asString();
|
||||
if(!instanceNode["NluServiceType"].isNull())
|
||||
instance_.nluServiceType = instanceNode["NluServiceType"].asString();
|
||||
auto nluProfileNode = instanceNode["NluProfile"];
|
||||
if(!nluProfileNode["Endpoint"].isNull())
|
||||
instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString();
|
||||
if(!nluProfileNode["AccessKey"].isNull())
|
||||
instance_.nluProfile.accessKey = nluProfileNode["AccessKey"].asString();
|
||||
if(!nluProfileNode["SecretKey"].isNull())
|
||||
instance_.nluProfile.secretKey = nluProfileNode["SecretKey"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
|
||||
@@ -27,6 +27,17 @@ CreateScriptRequest::CreateScriptRequest() :
|
||||
CreateScriptRequest::~CreateScriptRequest()
|
||||
{}
|
||||
|
||||
std::string CreateScriptRequest::getTtsConfig()const
|
||||
{
|
||||
return ttsConfig_;
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setTtsConfig(const std::string& ttsConfig)
|
||||
{
|
||||
ttsConfig_ = ttsConfig;
|
||||
setParameter("TtsConfig", ttsConfig);
|
||||
}
|
||||
|
||||
std::string CreateScriptRequest::getIndustry()const
|
||||
{
|
||||
return industry_;
|
||||
@@ -60,6 +71,17 @@ void CreateScriptRequest::setScene(const std::string& scene)
|
||||
setParameter("Scene", scene);
|
||||
}
|
||||
|
||||
std::string CreateScriptRequest::getChatbotId()const
|
||||
{
|
||||
return chatbotId_;
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setChatbotId(const std::string& chatbotId)
|
||||
{
|
||||
chatbotId_ = chatbotId;
|
||||
setParameter("ChatbotId", chatbotId);
|
||||
}
|
||||
|
||||
std::string CreateScriptRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
@@ -71,6 +93,17 @@ void CreateScriptRequest::setInstanceId(const std::string& instanceId)
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateScriptRequest::getAsrConfig()const
|
||||
{
|
||||
return asrConfig_;
|
||||
}
|
||||
|
||||
void CreateScriptRequest::setAsrConfig(const std::string& asrConfig)
|
||||
{
|
||||
asrConfig_ = asrConfig;
|
||||
setParameter("AsrConfig", asrConfig);
|
||||
}
|
||||
|
||||
std::string CreateScriptRequest::getScriptDescription()const
|
||||
{
|
||||
return scriptDescription_;
|
||||
|
||||
@@ -68,6 +68,8 @@ void CreateScriptResult::parse(const std::string &payload)
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ChatbotId"].isNull())
|
||||
chatbotId_ = value["ChatbotId"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -76,6 +78,11 @@ CreateScriptResult::Script CreateScriptResult::getScript()const
|
||||
return script_;
|
||||
}
|
||||
|
||||
std::string CreateScriptResult::getChatbotId()const
|
||||
{
|
||||
return chatbotId_;
|
||||
}
|
||||
|
||||
std::string CreateScriptResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
@@ -54,6 +54,15 @@ void DescribeInstanceResult::parse(const std::string &payload)
|
||||
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
|
||||
if(!instanceNode["Owner"].isNull())
|
||||
instance_.owner = instanceNode["Owner"].asString();
|
||||
if(!instanceNode["NluServiceType"].isNull())
|
||||
instance_.nluServiceType = instanceNode["NluServiceType"].asString();
|
||||
auto nluProfileNode = instanceNode["NluProfile"];
|
||||
if(!nluProfileNode["Endpoint"].isNull())
|
||||
instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString();
|
||||
if(!nluProfileNode["AccessKey"].isNull())
|
||||
instance_.nluProfile.accessKey = nluProfileNode["AccessKey"].asString();
|
||||
if(!nluProfileNode["SecretKey"].isNull())
|
||||
instance_.nluProfile.secretKey = nluProfileNode["SecretKey"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
|
||||
@@ -130,26 +130,26 @@ void DescribeJobResult::parse(const std::string &payload)
|
||||
taskObject.status = jobNodeTasksTask["Status"].asString();
|
||||
if(!jobNodeTasksTask["TaskId"].isNull())
|
||||
taskObject.taskId = jobNodeTasksTask["TaskId"].asString();
|
||||
auto allConversationNode = allTasksNode["Conversation"]["ConversationDetail"];
|
||||
for (auto allTasksNodeConversationConversationDetail : allConversationNode)
|
||||
auto allConversationNode = jobNodeTasksTask["Conversation"]["ConversationDetail"];
|
||||
for (auto jobNodeTasksTaskConversationConversationDetail : allConversationNode)
|
||||
{
|
||||
Job::Task::ConversationDetail conversationObject;
|
||||
if(!allTasksNodeConversationConversationDetail["Script"].isNull())
|
||||
conversationObject.script = allTasksNodeConversationConversationDetail["Script"].asString();
|
||||
if(!allTasksNodeConversationConversationDetail["Speaker"].isNull())
|
||||
conversationObject.speaker = allTasksNodeConversationConversationDetail["Speaker"].asString();
|
||||
if(!allTasksNodeConversationConversationDetail["Timestamp"].isNull())
|
||||
conversationObject.timestamp = std::stol(allTasksNodeConversationConversationDetail["Timestamp"].asString());
|
||||
auto allSummary1Node = allConversationNode["Summary"]["SummaryItem"];
|
||||
for (auto allConversationNodeSummarySummaryItem : allSummary1Node)
|
||||
if(!jobNodeTasksTaskConversationConversationDetail["Script"].isNull())
|
||||
conversationObject.script = jobNodeTasksTaskConversationConversationDetail["Script"].asString();
|
||||
if(!jobNodeTasksTaskConversationConversationDetail["Speaker"].isNull())
|
||||
conversationObject.speaker = jobNodeTasksTaskConversationConversationDetail["Speaker"].asString();
|
||||
if(!jobNodeTasksTaskConversationConversationDetail["Timestamp"].isNull())
|
||||
conversationObject.timestamp = std::stol(jobNodeTasksTaskConversationConversationDetail["Timestamp"].asString());
|
||||
auto allSummary1Node = jobNodeTasksTaskConversationConversationDetail["Summary"]["SummaryItem"];
|
||||
for (auto jobNodeTasksTaskConversationConversationDetailSummarySummaryItem : allSummary1Node)
|
||||
{
|
||||
Job::Task::ConversationDetail::SummaryItem2 summary1Object;
|
||||
if(!allConversationNodeSummarySummaryItem["Category"].isNull())
|
||||
summary1Object.category = allConversationNodeSummarySummaryItem["Category"].asString();
|
||||
if(!allConversationNodeSummarySummaryItem["Content"].isNull())
|
||||
summary1Object.content = allConversationNodeSummarySummaryItem["Content"].asString();
|
||||
if(!allConversationNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summary1Object.summaryName = allConversationNodeSummarySummaryItem["SummaryName"].asString();
|
||||
if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Category"].isNull())
|
||||
summary1Object.category = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Category"].asString();
|
||||
if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Content"].isNull())
|
||||
summary1Object.content = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["Content"].asString();
|
||||
if(!jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].isNull())
|
||||
summary1Object.summaryName = jobNodeTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].asString();
|
||||
conversationObject.summary1.push_back(summary1Object);
|
||||
}
|
||||
taskObject.conversation.push_back(conversationObject);
|
||||
|
||||
@@ -68,14 +68,30 @@ void DescribeScriptResult::parse(const std::string &payload)
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ChatbotId"].isNull())
|
||||
chatbotId_ = value["ChatbotId"].asString();
|
||||
if(!value["AsrConfig"].isNull())
|
||||
asrConfig_ = value["AsrConfig"].asString();
|
||||
if(!value["TtsConfig"].isNull())
|
||||
ttsConfig_ = value["TtsConfig"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeScriptResult::getAsrConfig()const
|
||||
{
|
||||
return asrConfig_;
|
||||
}
|
||||
|
||||
DescribeScriptResult::Script DescribeScriptResult::getScript()const
|
||||
{
|
||||
return script_;
|
||||
}
|
||||
|
||||
std::string DescribeScriptResult::getChatbotId()const
|
||||
{
|
||||
return chatbotId_;
|
||||
}
|
||||
|
||||
std::string DescribeScriptResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
@@ -86,6 +102,11 @@ int DescribeScriptResult::getHttpStatusCode()const
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DescribeScriptResult::getTtsConfig()const
|
||||
{
|
||||
return ttsConfig_;
|
||||
}
|
||||
|
||||
std::string DescribeScriptResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
|
||||
95
outboundbot/src/model/DescribeTTSDemoRequest.cc
Normal file
95
outboundbot/src/model/DescribeTTSDemoRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeTTSDemoRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeTTSDemoRequest;
|
||||
|
||||
DescribeTTSDemoRequest::DescribeTTSDemoRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTTSDemo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTTSDemoRequest::~DescribeTTSDemoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTTSDemoRequest::getVoice()const
|
||||
{
|
||||
return voice_;
|
||||
}
|
||||
|
||||
void DescribeTTSDemoRequest::setVoice(const std::string& voice)
|
||||
{
|
||||
voice_ = voice;
|
||||
setParameter("Voice", voice);
|
||||
}
|
||||
|
||||
int DescribeTTSDemoRequest::getVolume()const
|
||||
{
|
||||
return volume_;
|
||||
}
|
||||
|
||||
void DescribeTTSDemoRequest::setVolume(int volume)
|
||||
{
|
||||
volume_ = volume;
|
||||
setParameter("Volume", std::to_string(volume));
|
||||
}
|
||||
|
||||
std::string DescribeTTSDemoRequest::getScriptId()const
|
||||
{
|
||||
return scriptId_;
|
||||
}
|
||||
|
||||
void DescribeTTSDemoRequest::setScriptId(const std::string& scriptId)
|
||||
{
|
||||
scriptId_ = scriptId;
|
||||
setParameter("ScriptId", scriptId);
|
||||
}
|
||||
|
||||
std::string DescribeTTSDemoRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeTTSDemoRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeTTSDemoRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
}
|
||||
|
||||
void DescribeTTSDemoRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setParameter("Text", text);
|
||||
}
|
||||
|
||||
int DescribeTTSDemoRequest::getSpeechRate()const
|
||||
{
|
||||
return speechRate_;
|
||||
}
|
||||
|
||||
void DescribeTTSDemoRequest::setSpeechRate(int speechRate)
|
||||
{
|
||||
speechRate_ = speechRate;
|
||||
setParameter("SpeechRate", std::to_string(speechRate));
|
||||
}
|
||||
|
||||
@@ -14,34 +14,31 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DownloadConversationDetailsResult.h>
|
||||
#include <alibabacloud/outboundbot/model/DescribeTTSDemoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
DownloadConversationDetailsResult::DownloadConversationDetailsResult() :
|
||||
DescribeTTSDemoResult::DescribeTTSDemoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DownloadConversationDetailsResult::DownloadConversationDetailsResult(const std::string &payload) :
|
||||
DescribeTTSDemoResult::DescribeTTSDemoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DownloadConversationDetailsResult::~DownloadConversationDetailsResult()
|
||||
DescribeTTSDemoResult::~DescribeTTSDemoResult()
|
||||
{}
|
||||
|
||||
void DownloadConversationDetailsResult::parse(const std::string &payload)
|
||||
void DescribeTTSDemoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto downloadParamsNode = value["DownloadParams"];
|
||||
if(!downloadParamsNode["SignatureUrl"].isNull())
|
||||
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
@@ -50,30 +47,32 @@ void DownloadConversationDetailsResult::parse(const std::string &payload)
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["AuditionUrl"].isNull())
|
||||
auditionUrl_ = value["AuditionUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
DownloadConversationDetailsResult::DownloadParams DownloadConversationDetailsResult::getDownloadParams()const
|
||||
{
|
||||
return downloadParams_;
|
||||
}
|
||||
|
||||
std::string DownloadConversationDetailsResult::getMessage()const
|
||||
std::string DescribeTTSDemoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DownloadConversationDetailsResult::getHttpStatusCode()const
|
||||
int DescribeTTSDemoResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DownloadConversationDetailsResult::getCode()const
|
||||
std::string DescribeTTSDemoResult::getAuditionUrl()const
|
||||
{
|
||||
return auditionUrl_;
|
||||
}
|
||||
|
||||
std::string DescribeTTSDemoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DownloadConversationDetailsResult::getSuccess()const
|
||||
bool DescribeTTSDemoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DownloadBasicStatisticsReportRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DownloadBasicStatisticsReportRequest;
|
||||
|
||||
DownloadBasicStatisticsReportRequest::DownloadBasicStatisticsReportRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DownloadBasicStatisticsReport")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DownloadBasicStatisticsReportRequest::~DownloadBasicStatisticsReportRequest()
|
||||
{}
|
||||
|
||||
std::string DownloadBasicStatisticsReportRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DownloadBasicStatisticsReportRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DownloadBasicStatisticsReportRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void DownloadBasicStatisticsReportRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DownloadBasicStatisticsReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
DownloadBasicStatisticsReportResult::DownloadBasicStatisticsReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DownloadBasicStatisticsReportResult::DownloadBasicStatisticsReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DownloadBasicStatisticsReportResult::~DownloadBasicStatisticsReportResult()
|
||||
{}
|
||||
|
||||
void DownloadBasicStatisticsReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto downloadParamsNode = value["DownloadParams"];
|
||||
if(!downloadParamsNode["SignatureUrl"].isNull())
|
||||
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
DownloadBasicStatisticsReportResult::DownloadParams DownloadBasicStatisticsReportResult::getDownloadParams()const
|
||||
{
|
||||
return downloadParams_;
|
||||
}
|
||||
|
||||
std::string DownloadBasicStatisticsReportResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DownloadBasicStatisticsReportResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DownloadBasicStatisticsReportResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DownloadBasicStatisticsReportResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DownloadConversationDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DownloadConversationDetailsRequest;
|
||||
|
||||
DownloadConversationDetailsRequest::DownloadConversationDetailsRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DownloadConversationDetails")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DownloadConversationDetailsRequest::~DownloadConversationDetailsRequest()
|
||||
{}
|
||||
|
||||
std::string DownloadConversationDetailsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DownloadConversationDetailsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DownloadConversationDetailsRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void DownloadConversationDetailsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
@@ -40,18 +40,18 @@ void DownloadRecordingResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto downloadParamsNode = value["DownloadParams"];
|
||||
if(!downloadParamsNode["SignatureUrl"].isNull())
|
||||
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString();
|
||||
if(!downloadParamsNode["FileName"].isNull())
|
||||
downloadParams_.fileName = downloadParamsNode["FileName"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!downloadParamsNode["SignatureUrl"].isNull())
|
||||
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DownloadUnreachableContactsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DownloadUnreachableContactsRequest;
|
||||
|
||||
DownloadUnreachableContactsRequest::DownloadUnreachableContactsRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DownloadUnreachableContacts")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DownloadUnreachableContactsRequest::~DownloadUnreachableContactsRequest()
|
||||
{}
|
||||
|
||||
std::string DownloadUnreachableContactsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DownloadUnreachableContactsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DownloadUnreachableContactsRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void DownloadUnreachableContactsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DownloadUnreachableContactsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
DownloadUnreachableContactsResult::DownloadUnreachableContactsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DownloadUnreachableContactsResult::DownloadUnreachableContactsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DownloadUnreachableContactsResult::~DownloadUnreachableContactsResult()
|
||||
{}
|
||||
|
||||
void DownloadUnreachableContactsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto downloadParamsNode = value["DownloadParams"];
|
||||
if(!downloadParamsNode["SignatureUrl"].isNull())
|
||||
downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
DownloadUnreachableContactsResult::DownloadParams DownloadUnreachableContactsResult::getDownloadParams()const
|
||||
{
|
||||
return downloadParams_;
|
||||
}
|
||||
|
||||
std::string DownloadUnreachableContactsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DownloadUnreachableContactsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DownloadUnreachableContactsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DownloadUnreachableContactsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/GenerateBasicStatisticsReportRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::GenerateBasicStatisticsReportRequest;
|
||||
|
||||
GenerateBasicStatisticsReportRequest::GenerateBasicStatisticsReportRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "GenerateBasicStatisticsReport")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateBasicStatisticsReportRequest::~GenerateBasicStatisticsReportRequest()
|
||||
{}
|
||||
|
||||
std::string GenerateBasicStatisticsReportRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GenerateBasicStatisticsReportRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GenerateBasicStatisticsReportRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void GenerateBasicStatisticsReportRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
@@ -1,114 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/GenerateBasicStatisticsReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
GenerateBasicStatisticsReportResult::GenerateBasicStatisticsReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateBasicStatisticsReportResult::GenerateBasicStatisticsReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateBasicStatisticsReportResult::~GenerateBasicStatisticsReportResult()
|
||||
{}
|
||||
|
||||
void GenerateBasicStatisticsReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto basicStatisticsReportNode = value["BasicStatisticsReport"];
|
||||
auto allItemsNode = basicStatisticsReportNode["Items"]["BasicStatisticsReportItem"];
|
||||
for (auto basicStatisticsReportNodeItemsBasicStatisticsReportItem : allItemsNode)
|
||||
{
|
||||
BasicStatisticsReport::BasicStatisticsReportItem basicStatisticsReportItemObject;
|
||||
if(!basicStatisticsReportNodeItemsBasicStatisticsReportItem["Title"].isNull())
|
||||
basicStatisticsReportItemObject.title = basicStatisticsReportNodeItemsBasicStatisticsReportItem["Title"].asString();
|
||||
if(!basicStatisticsReportNodeItemsBasicStatisticsReportItem["TotalCount"].isNull())
|
||||
basicStatisticsReportItemObject.totalCount = std::stoi(basicStatisticsReportNodeItemsBasicStatisticsReportItem["TotalCount"].asString());
|
||||
if(!basicStatisticsReportNodeItemsBasicStatisticsReportItem["GraphType"].isNull())
|
||||
basicStatisticsReportItemObject.graphType = basicStatisticsReportNodeItemsBasicStatisticsReportItem["GraphType"].asString();
|
||||
auto allSubItemsNode = allItemsNode["SubItems"]["BasicStatisticsReportSubItem"];
|
||||
for (auto allItemsNodeSubItemsBasicStatisticsReportSubItem : allSubItemsNode)
|
||||
{
|
||||
BasicStatisticsReport::BasicStatisticsReportItem::BasicStatisticsReportSubItem subItemsObject;
|
||||
if(!allItemsNodeSubItemsBasicStatisticsReportSubItem["BasicStatisticsReportSubItemName"].isNull())
|
||||
subItemsObject.basicStatisticsReportSubItemName = allItemsNodeSubItemsBasicStatisticsReportSubItem["BasicStatisticsReportSubItemName"].asString();
|
||||
if(!allItemsNodeSubItemsBasicStatisticsReportSubItem["Value"].isNull())
|
||||
subItemsObject.value = allItemsNodeSubItemsBasicStatisticsReportSubItem["Value"].asString();
|
||||
if(!allItemsNodeSubItemsBasicStatisticsReportSubItem["Count"].isNull())
|
||||
subItemsObject.count = std::stoi(allItemsNodeSubItemsBasicStatisticsReportSubItem["Count"].asString());
|
||||
if(!allItemsNodeSubItemsBasicStatisticsReportSubItem["Percentage"].isNull())
|
||||
subItemsObject.percentage = std::stoi(allItemsNodeSubItemsBasicStatisticsReportSubItem["Percentage"].asString());
|
||||
auto allDetailsNode = allSubItemsNode["Details"]["KeyValuePair"];
|
||||
for (auto allSubItemsNodeDetailsKeyValuePair : allDetailsNode)
|
||||
{
|
||||
BasicStatisticsReport::BasicStatisticsReportItem::BasicStatisticsReportSubItem::KeyValuePair detailsObject;
|
||||
if(!allSubItemsNodeDetailsKeyValuePair["Key"].isNull())
|
||||
detailsObject.key = allSubItemsNodeDetailsKeyValuePair["Key"].asString();
|
||||
if(!allSubItemsNodeDetailsKeyValuePair["Value"].isNull())
|
||||
detailsObject.value = allSubItemsNodeDetailsKeyValuePair["Value"].asString();
|
||||
subItemsObject.details.push_back(detailsObject);
|
||||
}
|
||||
basicStatisticsReportItemObject.subItems.push_back(subItemsObject);
|
||||
}
|
||||
basicStatisticsReport_.items.push_back(basicStatisticsReportItemObject);
|
||||
}
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
GenerateBasicStatisticsReportResult::BasicStatisticsReport GenerateBasicStatisticsReportResult::getBasicStatisticsReport()const
|
||||
{
|
||||
return basicStatisticsReport_;
|
||||
}
|
||||
|
||||
std::string GenerateBasicStatisticsReportResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GenerateBasicStatisticsReportResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string GenerateBasicStatisticsReportResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GenerateBasicStatisticsReportResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/GenerateOverallStatisticsReportRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::GenerateOverallStatisticsReportRequest;
|
||||
|
||||
GenerateOverallStatisticsReportRequest::GenerateOverallStatisticsReportRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "GenerateOverallStatisticsReport")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateOverallStatisticsReportRequest::~GenerateOverallStatisticsReportRequest()
|
||||
{}
|
||||
|
||||
std::string GenerateOverallStatisticsReportRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GenerateOverallStatisticsReportRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GenerateOverallStatisticsReportRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void GenerateOverallStatisticsReportRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/GenerateOverallStatisticsReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
GenerateOverallStatisticsReportResult::GenerateOverallStatisticsReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateOverallStatisticsReportResult::GenerateOverallStatisticsReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateOverallStatisticsReportResult::~GenerateOverallStatisticsReportResult()
|
||||
{}
|
||||
|
||||
void GenerateOverallStatisticsReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto overallStatisticsReportNode = value["OverallStatisticsReport"];
|
||||
auto allIndicatorsNode = overallStatisticsReportNode["Indicators"]["KeyValuePair"];
|
||||
for (auto overallStatisticsReportNodeIndicatorsKeyValuePair : allIndicatorsNode)
|
||||
{
|
||||
OverallStatisticsReport::KeyValuePair keyValuePairObject;
|
||||
if(!overallStatisticsReportNodeIndicatorsKeyValuePair["Key"].isNull())
|
||||
keyValuePairObject.key = overallStatisticsReportNodeIndicatorsKeyValuePair["Key"].asString();
|
||||
if(!overallStatisticsReportNodeIndicatorsKeyValuePair["Value"].isNull())
|
||||
keyValuePairObject.value = overallStatisticsReportNodeIndicatorsKeyValuePair["Value"].asString();
|
||||
overallStatisticsReport_.indicators.push_back(keyValuePairObject);
|
||||
}
|
||||
auto allBriefsNode = overallStatisticsReportNode["Briefs"]["KeyValuePair"];
|
||||
for (auto overallStatisticsReportNodeBriefsKeyValuePair : allBriefsNode)
|
||||
{
|
||||
OverallStatisticsReport::KeyValuePair keyValuePairObject;
|
||||
if(!overallStatisticsReportNodeBriefsKeyValuePair["Key"].isNull())
|
||||
keyValuePairObject.key = overallStatisticsReportNodeBriefsKeyValuePair["Key"].asString();
|
||||
if(!overallStatisticsReportNodeBriefsKeyValuePair["Value"].isNull())
|
||||
keyValuePairObject.value = overallStatisticsReportNodeBriefsKeyValuePair["Value"].asString();
|
||||
overallStatisticsReport_.briefs.push_back(keyValuePairObject);
|
||||
}
|
||||
auto allSummariesNode = overallStatisticsReportNode["Summaries"]["KeyValuePair"];
|
||||
for (auto overallStatisticsReportNodeSummariesKeyValuePair : allSummariesNode)
|
||||
{
|
||||
OverallStatisticsReport::KeyValuePair keyValuePairObject;
|
||||
if(!overallStatisticsReportNodeSummariesKeyValuePair["Key"].isNull())
|
||||
keyValuePairObject.key = overallStatisticsReportNodeSummariesKeyValuePair["Key"].asString();
|
||||
if(!overallStatisticsReportNodeSummariesKeyValuePair["Value"].isNull())
|
||||
keyValuePairObject.value = overallStatisticsReportNodeSummariesKeyValuePair["Value"].asString();
|
||||
overallStatisticsReport_.summaries.push_back(keyValuePairObject);
|
||||
}
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
GenerateOverallStatisticsReportResult::OverallStatisticsReport GenerateOverallStatisticsReportResult::getOverallStatisticsReport()const
|
||||
{
|
||||
return overallStatisticsReport_;
|
||||
}
|
||||
|
||||
std::string GenerateOverallStatisticsReportResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GenerateOverallStatisticsReportResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string GenerateOverallStatisticsReportResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GenerateOverallStatisticsReportResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/GetJobByPhoneNumberRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::GetJobByPhoneNumberRequest;
|
||||
|
||||
GetJobByPhoneNumberRequest::GetJobByPhoneNumberRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "GetJobByPhoneNumber")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetJobByPhoneNumberRequest::~GetJobByPhoneNumberRequest()
|
||||
{}
|
||||
|
||||
std::string GetJobByPhoneNumberRequest::getPhoneNumber()const
|
||||
{
|
||||
return phoneNumber_;
|
||||
}
|
||||
|
||||
void GetJobByPhoneNumberRequest::setPhoneNumber(const std::string& phoneNumber)
|
||||
{
|
||||
phoneNumber_ = phoneNumber;
|
||||
setParameter("PhoneNumber", phoneNumber);
|
||||
}
|
||||
|
||||
std::string GetJobByPhoneNumberRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetJobByPhoneNumberRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetJobByPhoneNumberRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void GetJobByPhoneNumberRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
@@ -1,219 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/GetJobByPhoneNumberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
GetJobByPhoneNumberResult::GetJobByPhoneNumberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetJobByPhoneNumberResult::GetJobByPhoneNumberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetJobByPhoneNumberResult::~GetJobByPhoneNumberResult()
|
||||
{}
|
||||
|
||||
void GetJobByPhoneNumberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allJobsNode = value["Jobs"]["Job"];
|
||||
for (auto valueJobsJob : allJobsNode)
|
||||
{
|
||||
Job jobsObject;
|
||||
if(!valueJobsJob["JobId"].isNull())
|
||||
jobsObject.jobId = valueJobsJob["JobId"].asString();
|
||||
if(!valueJobsJob["GroupId"].isNull())
|
||||
jobsObject.groupId = valueJobsJob["GroupId"].asString();
|
||||
if(!valueJobsJob["ScenarioId"].isNull())
|
||||
jobsObject.scenarioId = valueJobsJob["ScenarioId"].asString();
|
||||
if(!valueJobsJob["StrategyId"].isNull())
|
||||
jobsObject.strategyId = valueJobsJob["StrategyId"].asString();
|
||||
if(!valueJobsJob["Priority"].isNull())
|
||||
jobsObject.priority = std::stoi(valueJobsJob["Priority"].asString());
|
||||
if(!valueJobsJob["SystemPriority"].isNull())
|
||||
jobsObject.systemPriority = std::stoi(valueJobsJob["SystemPriority"].asString());
|
||||
if(!valueJobsJob["Status"].isNull())
|
||||
jobsObject.status = valueJobsJob["Status"].asString();
|
||||
if(!valueJobsJob["ReferenceId"].isNull())
|
||||
jobsObject.referenceId = valueJobsJob["ReferenceId"].asString();
|
||||
if(!valueJobsJob["FailureReason"].isNull())
|
||||
jobsObject.failureReason = valueJobsJob["FailureReason"].asString();
|
||||
auto allContactsNode = allJobsNode["Contacts"]["Contact"];
|
||||
for (auto allJobsNodeContactsContact : allContactsNode)
|
||||
{
|
||||
Job::Contact contactsObject;
|
||||
if(!allJobsNodeContactsContact["ContactId"].isNull())
|
||||
contactsObject.contactId = allJobsNodeContactsContact["ContactId"].asString();
|
||||
if(!allJobsNodeContactsContact["ContactName"].isNull())
|
||||
contactsObject.contactName = allJobsNodeContactsContact["ContactName"].asString();
|
||||
if(!allJobsNodeContactsContact["Honorific"].isNull())
|
||||
contactsObject.honorific = allJobsNodeContactsContact["Honorific"].asString();
|
||||
if(!allJobsNodeContactsContact["Role"].isNull())
|
||||
contactsObject.role = allJobsNodeContactsContact["Role"].asString();
|
||||
if(!allJobsNodeContactsContact["PhoneNumber"].isNull())
|
||||
contactsObject.phoneNumber = allJobsNodeContactsContact["PhoneNumber"].asString();
|
||||
if(!allJobsNodeContactsContact["State"].isNull())
|
||||
contactsObject.state = allJobsNodeContactsContact["State"].asString();
|
||||
if(!allJobsNodeContactsContact["ReferenceId"].isNull())
|
||||
contactsObject.referenceId = allJobsNodeContactsContact["ReferenceId"].asString();
|
||||
if(!allJobsNodeContactsContact["JobId"].isNull())
|
||||
contactsObject.jobId = allJobsNodeContactsContact["JobId"].asString();
|
||||
jobsObject.contacts.push_back(contactsObject);
|
||||
}
|
||||
auto allExtrasNode = allJobsNode["Extras"]["KeyValuePair"];
|
||||
for (auto allJobsNodeExtrasKeyValuePair : allExtrasNode)
|
||||
{
|
||||
Job::KeyValuePair extrasObject;
|
||||
if(!allJobsNodeExtrasKeyValuePair["Key"].isNull())
|
||||
extrasObject.key = allJobsNodeExtrasKeyValuePair["Key"].asString();
|
||||
if(!allJobsNodeExtrasKeyValuePair["Value"].isNull())
|
||||
extrasObject.value = allJobsNodeExtrasKeyValuePair["Value"].asString();
|
||||
jobsObject.extras.push_back(extrasObject);
|
||||
}
|
||||
auto allTasksNode = allJobsNode["Tasks"]["Task"];
|
||||
for (auto allJobsNodeTasksTask : allTasksNode)
|
||||
{
|
||||
Job::Task tasksObject;
|
||||
if(!allJobsNodeTasksTask["TaskId"].isNull())
|
||||
tasksObject.taskId = allJobsNodeTasksTask["TaskId"].asString();
|
||||
if(!allJobsNodeTasksTask["JobId"].isNull())
|
||||
tasksObject.jobId = allJobsNodeTasksTask["JobId"].asString();
|
||||
if(!allJobsNodeTasksTask["ScenarioId"].isNull())
|
||||
tasksObject.scenarioId = allJobsNodeTasksTask["ScenarioId"].asString();
|
||||
if(!allJobsNodeTasksTask["ChatbotId"].isNull())
|
||||
tasksObject.chatbotId = allJobsNodeTasksTask["ChatbotId"].asString();
|
||||
if(!allJobsNodeTasksTask["PlanedTime"].isNull())
|
||||
tasksObject.planedTime = std::stol(allJobsNodeTasksTask["PlanedTime"].asString());
|
||||
if(!allJobsNodeTasksTask["ActualTime"].isNull())
|
||||
tasksObject.actualTime = std::stol(allJobsNodeTasksTask["ActualTime"].asString());
|
||||
if(!allJobsNodeTasksTask["CallingNumber"].isNull())
|
||||
tasksObject.callingNumber = allJobsNodeTasksTask["CallingNumber"].asString();
|
||||
if(!allJobsNodeTasksTask["CalledNumber"].isNull())
|
||||
tasksObject.calledNumber = allJobsNodeTasksTask["CalledNumber"].asString();
|
||||
if(!allJobsNodeTasksTask["CallId"].isNull())
|
||||
tasksObject.callId = allJobsNodeTasksTask["CallId"].asString();
|
||||
if(!allJobsNodeTasksTask["Status"].isNull())
|
||||
tasksObject.status = allJobsNodeTasksTask["Status"].asString();
|
||||
if(!allJobsNodeTasksTask["Brief"].isNull())
|
||||
tasksObject.brief = allJobsNodeTasksTask["Brief"].asString();
|
||||
if(!allJobsNodeTasksTask["Duration"].isNull())
|
||||
tasksObject.duration = std::stoi(allJobsNodeTasksTask["Duration"].asString());
|
||||
auto allConversationNode = allTasksNode["Conversation"]["ConversationDetail"];
|
||||
for (auto allTasksNodeConversationConversationDetail : allConversationNode)
|
||||
{
|
||||
Job::Task::ConversationDetail conversationObject;
|
||||
if(!allTasksNodeConversationConversationDetail["Timestamp"].isNull())
|
||||
conversationObject.timestamp = std::stol(allTasksNodeConversationConversationDetail["Timestamp"].asString());
|
||||
if(!allTasksNodeConversationConversationDetail["Speaker"].isNull())
|
||||
conversationObject.speaker = allTasksNodeConversationConversationDetail["Speaker"].asString();
|
||||
if(!allTasksNodeConversationConversationDetail["Script"].isNull())
|
||||
conversationObject.script = allTasksNodeConversationConversationDetail["Script"].asString();
|
||||
auto allSummary1Node = allConversationNode["Summary"]["SummaryItem"];
|
||||
for (auto allConversationNodeSummarySummaryItem : allSummary1Node)
|
||||
{
|
||||
Job::Task::ConversationDetail::SummaryItem summary1Object;
|
||||
if(!allConversationNodeSummarySummaryItem["Category"].isNull())
|
||||
summary1Object.category = allConversationNodeSummarySummaryItem["Category"].asString();
|
||||
if(!allConversationNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summary1Object.summaryName = allConversationNodeSummarySummaryItem["SummaryName"].asString();
|
||||
if(!allConversationNodeSummarySummaryItem["Content"].isNull())
|
||||
summary1Object.content = allConversationNodeSummarySummaryItem["Content"].asString();
|
||||
conversationObject.summary1.push_back(summary1Object);
|
||||
}
|
||||
tasksObject.conversation.push_back(conversationObject);
|
||||
}
|
||||
auto contact2Node = value["Contact"];
|
||||
if(!contact2Node["ContactId"].isNull())
|
||||
tasksObject.contact2.contactId = contact2Node["ContactId"].asString();
|
||||
if(!contact2Node["ContactName"].isNull())
|
||||
tasksObject.contact2.contactName = contact2Node["ContactName"].asString();
|
||||
if(!contact2Node["Honorific"].isNull())
|
||||
tasksObject.contact2.honorific = contact2Node["Honorific"].asString();
|
||||
if(!contact2Node["Role"].isNull())
|
||||
tasksObject.contact2.role = contact2Node["Role"].asString();
|
||||
if(!contact2Node["PhoneNumber"].isNull())
|
||||
tasksObject.contact2.phoneNumber = contact2Node["PhoneNumber"].asString();
|
||||
if(!contact2Node["State"].isNull())
|
||||
tasksObject.contact2.state = contact2Node["State"].asString();
|
||||
if(!contact2Node["ReferenceId"].isNull())
|
||||
tasksObject.contact2.referenceId = contact2Node["ReferenceId"].asString();
|
||||
if(!contact2Node["JobId"].isNull())
|
||||
tasksObject.contact2.jobId = contact2Node["JobId"].asString();
|
||||
jobsObject.tasks.push_back(tasksObject);
|
||||
}
|
||||
auto allSummaryNode = allJobsNode["Summary"]["SummaryItem"];
|
||||
for (auto allJobsNodeSummarySummaryItem : allSummaryNode)
|
||||
{
|
||||
Job::SummaryItem3 summaryObject;
|
||||
if(!allJobsNodeSummarySummaryItem["Category"].isNull())
|
||||
summaryObject.category = allJobsNodeSummarySummaryItem["Category"].asString();
|
||||
if(!allJobsNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summaryObject.summaryName = allJobsNodeSummarySummaryItem["SummaryName"].asString();
|
||||
if(!allJobsNodeSummarySummaryItem["Content"].isNull())
|
||||
summaryObject.content = allJobsNodeSummarySummaryItem["Content"].asString();
|
||||
jobsObject.summary.push_back(summaryObject);
|
||||
}
|
||||
auto allCallingNumbers = value["CallingNumbers"]["String"];
|
||||
for (auto value : allCallingNumbers)
|
||||
jobsObject.callingNumbers.push_back(value.asString());
|
||||
jobs_.push_back(jobsObject);
|
||||
}
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string GetJobByPhoneNumberResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetJobByPhoneNumberResult::Job> GetJobByPhoneNumberResult::getJobs()const
|
||||
{
|
||||
return jobs_;
|
||||
}
|
||||
|
||||
int GetJobByPhoneNumberResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string GetJobByPhoneNumberResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetJobByPhoneNumberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/GetJobStatusByCallIdRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::GetJobStatusByCallIdRequest;
|
||||
|
||||
GetJobStatusByCallIdRequest::GetJobStatusByCallIdRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "GetJobStatusByCallId")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetJobStatusByCallIdRequest::~GetJobStatusByCallIdRequest()
|
||||
{}
|
||||
|
||||
std::string GetJobStatusByCallIdRequest::getCallId()const
|
||||
{
|
||||
return callId_;
|
||||
}
|
||||
|
||||
void GetJobStatusByCallIdRequest::setCallId(const std::string& callId)
|
||||
{
|
||||
callId_ = callId;
|
||||
setParameter("CallId", callId);
|
||||
}
|
||||
|
||||
std::string GetJobStatusByCallIdRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetJobStatusByCallIdRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
@@ -1,222 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/GetJobStatusByCallIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
GetJobStatusByCallIdResult::GetJobStatusByCallIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetJobStatusByCallIdResult::GetJobStatusByCallIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetJobStatusByCallIdResult::~GetJobStatusByCallIdResult()
|
||||
{}
|
||||
|
||||
void GetJobStatusByCallIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobNode = value["Job"];
|
||||
if(!jobNode["JobId"].isNull())
|
||||
job_.jobId = jobNode["JobId"].asString();
|
||||
if(!jobNode["JobGroupId"].isNull())
|
||||
job_.jobGroupId = jobNode["JobGroupId"].asString();
|
||||
if(!jobNode["ScenarioId"].isNull())
|
||||
job_.scenarioId = jobNode["ScenarioId"].asString();
|
||||
if(!jobNode["StrategyId"].isNull())
|
||||
job_.strategyId = jobNode["StrategyId"].asString();
|
||||
if(!jobNode["Priority"].isNull())
|
||||
job_.priority = std::stoi(jobNode["Priority"].asString());
|
||||
if(!jobNode["Status"].isNull())
|
||||
job_.status = jobNode["Status"].asString();
|
||||
if(!jobNode["ReferenceId"].isNull())
|
||||
job_.referenceId = jobNode["ReferenceId"].asString();
|
||||
if(!jobNode["FailureReason"].isNull())
|
||||
job_.failureReason = jobNode["FailureReason"].asString();
|
||||
auto allContactsNode = jobNode["Contacts"]["Contact"];
|
||||
for (auto jobNodeContactsContact : allContactsNode)
|
||||
{
|
||||
Job::Contact contactObject;
|
||||
if(!jobNodeContactsContact["ContactId"].isNull())
|
||||
contactObject.contactId = jobNodeContactsContact["ContactId"].asString();
|
||||
if(!jobNodeContactsContact["ContactName"].isNull())
|
||||
contactObject.contactName = jobNodeContactsContact["ContactName"].asString();
|
||||
if(!jobNodeContactsContact["Honorific"].isNull())
|
||||
contactObject.honorific = jobNodeContactsContact["Honorific"].asString();
|
||||
if(!jobNodeContactsContact["Role"].isNull())
|
||||
contactObject.role = jobNodeContactsContact["Role"].asString();
|
||||
if(!jobNodeContactsContact["PhoneNumber"].isNull())
|
||||
contactObject.phoneNumber = jobNodeContactsContact["PhoneNumber"].asString();
|
||||
if(!jobNodeContactsContact["State"].isNull())
|
||||
contactObject.state = jobNodeContactsContact["State"].asString();
|
||||
if(!jobNodeContactsContact["ReferenceId"].isNull())
|
||||
contactObject.referenceId = jobNodeContactsContact["ReferenceId"].asString();
|
||||
if(!jobNodeContactsContact["JobId"].isNull())
|
||||
contactObject.jobId = jobNodeContactsContact["JobId"].asString();
|
||||
job_.contacts.push_back(contactObject);
|
||||
}
|
||||
auto allExtrasNode = jobNode["Extras"]["KeyValuePair"];
|
||||
for (auto jobNodeExtrasKeyValuePair : allExtrasNode)
|
||||
{
|
||||
Job::KeyValuePair keyValuePairObject;
|
||||
if(!jobNodeExtrasKeyValuePair["Key"].isNull())
|
||||
keyValuePairObject.key = jobNodeExtrasKeyValuePair["Key"].asString();
|
||||
if(!jobNodeExtrasKeyValuePair["Value"].isNull())
|
||||
keyValuePairObject.value = jobNodeExtrasKeyValuePair["Value"].asString();
|
||||
job_.extras.push_back(keyValuePairObject);
|
||||
}
|
||||
auto allTasksNode = jobNode["Tasks"]["Task"];
|
||||
for (auto jobNodeTasksTask : allTasksNode)
|
||||
{
|
||||
Job::Task taskObject;
|
||||
if(!jobNodeTasksTask["TaskId"].isNull())
|
||||
taskObject.taskId = jobNodeTasksTask["TaskId"].asString();
|
||||
if(!jobNodeTasksTask["JobId"].isNull())
|
||||
taskObject.jobId = jobNodeTasksTask["JobId"].asString();
|
||||
if(!jobNodeTasksTask["ScenarioId"].isNull())
|
||||
taskObject.scenarioId = jobNodeTasksTask["ScenarioId"].asString();
|
||||
if(!jobNodeTasksTask["ChatbotId"].isNull())
|
||||
taskObject.chatbotId = jobNodeTasksTask["ChatbotId"].asString();
|
||||
if(!jobNodeTasksTask["PlanedTime"].isNull())
|
||||
taskObject.planedTime = std::stol(jobNodeTasksTask["PlanedTime"].asString());
|
||||
if(!jobNodeTasksTask["ActualTime"].isNull())
|
||||
taskObject.actualTime = std::stol(jobNodeTasksTask["ActualTime"].asString());
|
||||
if(!jobNodeTasksTask["EndTime"].isNull())
|
||||
taskObject.endTime = std::stol(jobNodeTasksTask["EndTime"].asString());
|
||||
if(!jobNodeTasksTask["CallingNumber"].isNull())
|
||||
taskObject.callingNumber = jobNodeTasksTask["CallingNumber"].asString();
|
||||
if(!jobNodeTasksTask["CalledNumber"].isNull())
|
||||
taskObject.calledNumber = jobNodeTasksTask["CalledNumber"].asString();
|
||||
if(!jobNodeTasksTask["CallId"].isNull())
|
||||
taskObject.callId = jobNodeTasksTask["CallId"].asString();
|
||||
if(!jobNodeTasksTask["Status"].isNull())
|
||||
taskObject.status = jobNodeTasksTask["Status"].asString();
|
||||
if(!jobNodeTasksTask["Brief"].isNull())
|
||||
taskObject.brief = jobNodeTasksTask["Brief"].asString();
|
||||
if(!jobNodeTasksTask["Duration"].isNull())
|
||||
taskObject.duration = std::stoi(jobNodeTasksTask["Duration"].asString());
|
||||
auto allConversationNode = allTasksNode["Conversation"]["ConversationDetail"];
|
||||
for (auto allTasksNodeConversationConversationDetail : allConversationNode)
|
||||
{
|
||||
Job::Task::ConversationDetail conversationObject;
|
||||
if(!allTasksNodeConversationConversationDetail["ConversationId"].isNull())
|
||||
conversationObject.conversationId = allTasksNodeConversationConversationDetail["ConversationId"].asString();
|
||||
if(!allTasksNodeConversationConversationDetail["TaskId"].isNull())
|
||||
conversationObject.taskId = allTasksNodeConversationConversationDetail["TaskId"].asString();
|
||||
if(!allTasksNodeConversationConversationDetail["Timestamp"].isNull())
|
||||
conversationObject.timestamp = std::stol(allTasksNodeConversationConversationDetail["Timestamp"].asString());
|
||||
if(!allTasksNodeConversationConversationDetail["Speaker"].isNull())
|
||||
conversationObject.speaker = allTasksNodeConversationConversationDetail["Speaker"].asString();
|
||||
if(!allTasksNodeConversationConversationDetail["Script"].isNull())
|
||||
conversationObject.script = allTasksNodeConversationConversationDetail["Script"].asString();
|
||||
auto allSummary1Node = allConversationNode["Summary"]["SummaryItem"];
|
||||
for (auto allConversationNodeSummarySummaryItem : allSummary1Node)
|
||||
{
|
||||
Job::Task::ConversationDetail::SummaryItem summary1Object;
|
||||
if(!allConversationNodeSummarySummaryItem["SummaryId"].isNull())
|
||||
summary1Object.summaryId = allConversationNodeSummarySummaryItem["SummaryId"].asString();
|
||||
if(!allConversationNodeSummarySummaryItem["Category"].isNull())
|
||||
summary1Object.category = allConversationNodeSummarySummaryItem["Category"].asString();
|
||||
if(!allConversationNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summary1Object.summaryName = allConversationNodeSummarySummaryItem["SummaryName"].asString();
|
||||
if(!allConversationNodeSummarySummaryItem["Content"].isNull())
|
||||
summary1Object.content = allConversationNodeSummarySummaryItem["Content"].asString();
|
||||
conversationObject.summary1.push_back(summary1Object);
|
||||
}
|
||||
taskObject.conversation.push_back(conversationObject);
|
||||
}
|
||||
auto contact2Node = value["Contact"];
|
||||
if(!contact2Node["ContactId"].isNull())
|
||||
taskObject.contact2.contactId = contact2Node["ContactId"].asString();
|
||||
if(!contact2Node["ContactName"].isNull())
|
||||
taskObject.contact2.contactName = contact2Node["ContactName"].asString();
|
||||
if(!contact2Node["Honorific"].isNull())
|
||||
taskObject.contact2.honorific = contact2Node["Honorific"].asString();
|
||||
if(!contact2Node["Role"].isNull())
|
||||
taskObject.contact2.role = contact2Node["Role"].asString();
|
||||
if(!contact2Node["PhoneNumber"].isNull())
|
||||
taskObject.contact2.phoneNumber = contact2Node["PhoneNumber"].asString();
|
||||
if(!contact2Node["State"].isNull())
|
||||
taskObject.contact2.state = contact2Node["State"].asString();
|
||||
if(!contact2Node["ReferenceId"].isNull())
|
||||
taskObject.contact2.referenceId = contact2Node["ReferenceId"].asString();
|
||||
if(!contact2Node["JobId"].isNull())
|
||||
taskObject.contact2.jobId = contact2Node["JobId"].asString();
|
||||
job_.tasks.push_back(taskObject);
|
||||
}
|
||||
auto allSummaryNode = jobNode["Summary"]["SummaryItem"];
|
||||
for (auto jobNodeSummarySummaryItem : allSummaryNode)
|
||||
{
|
||||
Job::SummaryItem3 summaryItem3Object;
|
||||
if(!jobNodeSummarySummaryItem["SummaryId"].isNull())
|
||||
summaryItem3Object.summaryId = jobNodeSummarySummaryItem["SummaryId"].asString();
|
||||
if(!jobNodeSummarySummaryItem["Category"].isNull())
|
||||
summaryItem3Object.category = jobNodeSummarySummaryItem["Category"].asString();
|
||||
if(!jobNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summaryItem3Object.summaryName = jobNodeSummarySummaryItem["SummaryName"].asString();
|
||||
if(!jobNodeSummarySummaryItem["Content"].isNull())
|
||||
summaryItem3Object.content = jobNodeSummarySummaryItem["Content"].asString();
|
||||
job_.summary.push_back(summaryItem3Object);
|
||||
}
|
||||
auto allCallingNumbers = jobNode["CallingNumbers"]["String"];
|
||||
for (auto value : allCallingNumbers)
|
||||
job_.callingNumbers.push_back(value.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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string GetJobStatusByCallIdResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetJobStatusByCallIdResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetJobStatusByCallIdResult::Job GetJobStatusByCallIdResult::getJob()const
|
||||
{
|
||||
return job_;
|
||||
}
|
||||
|
||||
std::string GetJobStatusByCallIdResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetJobStatusByCallIdResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/GetTagHitsSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::GetTagHitsSummaryRequest;
|
||||
|
||||
GetTagHitsSummaryRequest::GetTagHitsSummaryRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "GetTagHitsSummary")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTagHitsSummaryRequest::~GetTagHitsSummaryRequest()
|
||||
{}
|
||||
|
||||
std::string GetTagHitsSummaryRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetTagHitsSummaryRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string GetTagHitsSummaryRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void GetTagHitsSummaryRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/GetTagHitsSummaryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
GetTagHitsSummaryResult::GetTagHitsSummaryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTagHitsSummaryResult::GetTagHitsSummaryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTagHitsSummaryResult::~GetTagHitsSummaryResult()
|
||||
{}
|
||||
|
||||
void GetTagHitsSummaryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagHitsListNode = value["TagHitsList"]["TagHits"];
|
||||
for (auto valueTagHitsListTagHits : allTagHitsListNode)
|
||||
{
|
||||
TagHits tagHitsListObject;
|
||||
if(!valueTagHitsListTagHits["TagName"].isNull())
|
||||
tagHitsListObject.tagName = valueTagHitsListTagHits["TagName"].asString();
|
||||
if(!valueTagHitsListTagHits["HitCount"].isNull())
|
||||
tagHitsListObject.hitCount = std::stoi(valueTagHitsListTagHits["HitCount"].asString());
|
||||
if(!valueTagHitsListTagHits["TagGroup"].isNull())
|
||||
tagHitsListObject.tagGroup = valueTagHitsListTagHits["TagGroup"].asString();
|
||||
tagHitsList_.push_back(tagHitsListObject);
|
||||
}
|
||||
auto allTagGroupsNode = value["TagGroups"]["TagGroup"];
|
||||
for (auto valueTagGroupsTagGroup : allTagGroupsNode)
|
||||
{
|
||||
TagGroup tagGroupsObject;
|
||||
if(!valueTagGroupsTagGroup["Id"].isNull())
|
||||
tagGroupsObject.id = valueTagGroupsTagGroup["Id"].asString();
|
||||
if(!valueTagGroupsTagGroup["TagGroupIndex"].isNull())
|
||||
tagGroupsObject.tagGroupIndex = std::stoi(valueTagGroupsTagGroup["TagGroupIndex"].asString());
|
||||
if(!valueTagGroupsTagGroup["ScriptId"].isNull())
|
||||
tagGroupsObject.scriptId = valueTagGroupsTagGroup["ScriptId"].asString();
|
||||
if(!valueTagGroupsTagGroup["TagGroup"].isNull())
|
||||
tagGroupsObject.tagGroup = valueTagGroupsTagGroup["TagGroup"].asString();
|
||||
tagGroups_.push_back(tagGroupsObject);
|
||||
}
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string GetTagHitsSummaryResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<GetTagHitsSummaryResult::TagGroup> GetTagHitsSummaryResult::getTagGroups()const
|
||||
{
|
||||
return tagGroups_;
|
||||
}
|
||||
|
||||
int GetTagHitsSummaryResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<GetTagHitsSummaryResult::TagHits> GetTagHitsSummaryResult::getTagHitsList()const
|
||||
{
|
||||
return tagHitsList_;
|
||||
}
|
||||
|
||||
std::string GetTagHitsSummaryResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetTagHitsSummaryResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ListBasicStatisticsReportSubItemsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ListBasicStatisticsReportSubItemsRequest;
|
||||
|
||||
ListBasicStatisticsReportSubItemsRequest::ListBasicStatisticsReportSubItemsRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "ListBasicStatisticsReportSubItems")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListBasicStatisticsReportSubItemsRequest::~ListBasicStatisticsReportSubItemsRequest()
|
||||
{}
|
||||
|
||||
std::string ListBasicStatisticsReportSubItemsRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void ListBasicStatisticsReportSubItemsRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setParameter("Title", title);
|
||||
}
|
||||
|
||||
int ListBasicStatisticsReportSubItemsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListBasicStatisticsReportSubItemsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListBasicStatisticsReportSubItemsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListBasicStatisticsReportSubItemsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ListBasicStatisticsReportSubItemsRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void ListBasicStatisticsReportSubItemsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
int ListBasicStatisticsReportSubItemsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListBasicStatisticsReportSubItemsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ListBasicStatisticsReportSubItemsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
ListBasicStatisticsReportSubItemsResult::ListBasicStatisticsReportSubItemsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListBasicStatisticsReportSubItemsResult::ListBasicStatisticsReportSubItemsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListBasicStatisticsReportSubItemsResult::~ListBasicStatisticsReportSubItemsResult()
|
||||
{}
|
||||
|
||||
void ListBasicStatisticsReportSubItemsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto basicStatisticsReportSubItemsNode = value["BasicStatisticsReportSubItems"];
|
||||
if(!basicStatisticsReportSubItemsNode["TotalCount"].isNull())
|
||||
basicStatisticsReportSubItems_.totalCount = std::stoi(basicStatisticsReportSubItemsNode["TotalCount"].asString());
|
||||
if(!basicStatisticsReportSubItemsNode["PageNumber"].isNull())
|
||||
basicStatisticsReportSubItems_.pageNumber = std::stoi(basicStatisticsReportSubItemsNode["PageNumber"].asString());
|
||||
if(!basicStatisticsReportSubItemsNode["PageSize"].isNull())
|
||||
basicStatisticsReportSubItems_.pageSize = std::stoi(basicStatisticsReportSubItemsNode["PageSize"].asString());
|
||||
auto allListNode = basicStatisticsReportSubItemsNode["List"]["BasicStatisticsReportSubItem"];
|
||||
for (auto basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem : allListNode)
|
||||
{
|
||||
BasicStatisticsReportSubItems::BasicStatisticsReportSubItem basicStatisticsReportSubItemObject;
|
||||
if(!basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["BasicStatisticsReportSubItemName"].isNull())
|
||||
basicStatisticsReportSubItemObject.basicStatisticsReportSubItemName = basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["BasicStatisticsReportSubItemName"].asString();
|
||||
if(!basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["Value"].isNull())
|
||||
basicStatisticsReportSubItemObject.value = basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["Value"].asString();
|
||||
if(!basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["Count"].isNull())
|
||||
basicStatisticsReportSubItemObject.count = std::stoi(basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["Count"].asString());
|
||||
if(!basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["Percentage"].isNull())
|
||||
basicStatisticsReportSubItemObject.percentage = std::stoi(basicStatisticsReportSubItemsNodeListBasicStatisticsReportSubItem["Percentage"].asString());
|
||||
auto allRowNode = allListNode["Row"]["KeyValuePair"];
|
||||
for (auto allListNodeRowKeyValuePair : allRowNode)
|
||||
{
|
||||
BasicStatisticsReportSubItems::BasicStatisticsReportSubItem::KeyValuePair rowObject;
|
||||
if(!allListNodeRowKeyValuePair["Key"].isNull())
|
||||
rowObject.key = allListNodeRowKeyValuePair["Key"].asString();
|
||||
if(!allListNodeRowKeyValuePair["Value"].isNull())
|
||||
rowObject.value = allListNodeRowKeyValuePair["Value"].asString();
|
||||
basicStatisticsReportSubItemObject.row.push_back(rowObject);
|
||||
}
|
||||
basicStatisticsReportSubItems_.list.push_back(basicStatisticsReportSubItemObject);
|
||||
}
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string ListBasicStatisticsReportSubItemsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListBasicStatisticsReportSubItemsResult::BasicStatisticsReportSubItems ListBasicStatisticsReportSubItemsResult::getBasicStatisticsReportSubItems()const
|
||||
{
|
||||
return basicStatisticsReportSubItems_;
|
||||
}
|
||||
|
||||
int ListBasicStatisticsReportSubItemsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ListBasicStatisticsReportSubItemsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListBasicStatisticsReportSubItemsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ListConversationsWithUnrecognizedIntentsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ListConversationsWithUnrecognizedIntentsRequest;
|
||||
|
||||
ListConversationsWithUnrecognizedIntentsRequest::ListConversationsWithUnrecognizedIntentsRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "ListConversationsWithUnrecognizedIntents")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListConversationsWithUnrecognizedIntentsRequest::~ListConversationsWithUnrecognizedIntentsRequest()
|
||||
{}
|
||||
|
||||
std::string ListConversationsWithUnrecognizedIntentsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListConversationsWithUnrecognizedIntentsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ListConversationsWithUnrecognizedIntentsRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void ListConversationsWithUnrecognizedIntentsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
std::string ListConversationsWithUnrecognizedIntentsRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void ListConversationsWithUnrecognizedIntentsRequest::setNodeId(const std::string& nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setParameter("NodeId", nodeId);
|
||||
}
|
||||
|
||||
@@ -1,120 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ListConversationsWithUnrecognizedIntentsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
ListConversationsWithUnrecognizedIntentsResult::ListConversationsWithUnrecognizedIntentsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListConversationsWithUnrecognizedIntentsResult::ListConversationsWithUnrecognizedIntentsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListConversationsWithUnrecognizedIntentsResult::~ListConversationsWithUnrecognizedIntentsResult()
|
||||
{}
|
||||
|
||||
void ListConversationsWithUnrecognizedIntentsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allConversationsWithUnrecognizedIntentsNode = value["ConversationsWithUnrecognizedIntents"]["ConversationsWithUnrecognizedIntent"];
|
||||
for (auto valueConversationsWithUnrecognizedIntentsConversationsWithUnrecognizedIntent : allConversationsWithUnrecognizedIntentsNode)
|
||||
{
|
||||
ConversationsWithUnrecognizedIntent conversationsWithUnrecognizedIntentsObject;
|
||||
if(!valueConversationsWithUnrecognizedIntentsConversationsWithUnrecognizedIntent["ConversationsWithUnrecognizedIntentId"].isNull())
|
||||
conversationsWithUnrecognizedIntentsObject.conversationsWithUnrecognizedIntentId = valueConversationsWithUnrecognizedIntentsConversationsWithUnrecognizedIntent["ConversationsWithUnrecognizedIntentId"].asString();
|
||||
if(!valueConversationsWithUnrecognizedIntentsConversationsWithUnrecognizedIntent["JobId"].isNull())
|
||||
conversationsWithUnrecognizedIntentsObject.jobId = valueConversationsWithUnrecognizedIntentsConversationsWithUnrecognizedIntent["JobId"].asString();
|
||||
auto allConversationNode = allConversationsWithUnrecognizedIntentsNode["Conversation"]["ConversationDetail"];
|
||||
for (auto allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail : allConversationNode)
|
||||
{
|
||||
ConversationsWithUnrecognizedIntent::ConversationDetail conversationObject;
|
||||
if(!allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Id"].isNull())
|
||||
conversationObject.id = allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Id"].asString();
|
||||
if(!allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Timestamp"].isNull())
|
||||
conversationObject.timestamp = std::stol(allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Timestamp"].asString());
|
||||
if(!allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Speaker"].isNull())
|
||||
conversationObject.speaker = allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Speaker"].asString();
|
||||
if(!allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Script"].isNull())
|
||||
conversationObject.script = allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["Script"].asString();
|
||||
if(!allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["NodeId"].isNull())
|
||||
conversationObject.nodeId = allConversationsWithUnrecognizedIntentsNodeConversationConversationDetail["NodeId"].asString();
|
||||
conversationsWithUnrecognizedIntentsObject.conversation.push_back(conversationObject);
|
||||
}
|
||||
auto contactNode = value["Contact"];
|
||||
if(!contactNode["ContactId"].isNull())
|
||||
conversationsWithUnrecognizedIntentsObject.contact.contactId = contactNode["ContactId"].asString();
|
||||
if(!contactNode["ContactName"].isNull())
|
||||
conversationsWithUnrecognizedIntentsObject.contact.contactName = contactNode["ContactName"].asString();
|
||||
if(!contactNode["Honorific"].isNull())
|
||||
conversationsWithUnrecognizedIntentsObject.contact.honorific = contactNode["Honorific"].asString();
|
||||
if(!contactNode["Role"].isNull())
|
||||
conversationsWithUnrecognizedIntentsObject.contact.role = contactNode["Role"].asString();
|
||||
if(!contactNode["PhoneNumber"].isNull())
|
||||
conversationsWithUnrecognizedIntentsObject.contact.phoneNumber = contactNode["PhoneNumber"].asString();
|
||||
if(!contactNode["State"].isNull())
|
||||
conversationsWithUnrecognizedIntentsObject.contact.state = contactNode["State"].asString();
|
||||
if(!contactNode["ReferenceId"].isNull())
|
||||
conversationsWithUnrecognizedIntentsObject.contact.referenceId = contactNode["ReferenceId"].asString();
|
||||
if(!contactNode["JobId"].isNull())
|
||||
conversationsWithUnrecognizedIntentsObject.contact.jobId = contactNode["JobId"].asString();
|
||||
conversationsWithUnrecognizedIntents_.push_back(conversationsWithUnrecognizedIntentsObject);
|
||||
}
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string ListConversationsWithUnrecognizedIntentsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListConversationsWithUnrecognizedIntentsResult::ConversationsWithUnrecognizedIntent> ListConversationsWithUnrecognizedIntentsResult::getConversationsWithUnrecognizedIntents()const
|
||||
{
|
||||
return conversationsWithUnrecognizedIntents_;
|
||||
}
|
||||
|
||||
int ListConversationsWithUnrecognizedIntentsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ListConversationsWithUnrecognizedIntentsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListConversationsWithUnrecognizedIntentsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -59,6 +59,15 @@ void ListInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.maxConcurrentConversation = std::stoi(valueInstancesInstance["MaxConcurrentConversation"].asString());
|
||||
if(!valueInstancesInstance["Owner"].isNull())
|
||||
instancesObject.owner = valueInstancesInstance["Owner"].asString();
|
||||
if(!valueInstancesInstance["NluServiceType"].isNull())
|
||||
instancesObject.nluServiceType = valueInstancesInstance["NluServiceType"].asString();
|
||||
auto nluProfileNode = value["NluProfile"];
|
||||
if(!nluProfileNode["Endpoint"].isNull())
|
||||
instancesObject.nluProfile.endpoint = nluProfileNode["Endpoint"].asString();
|
||||
if(!nluProfileNode["AccessKey"].isNull())
|
||||
instancesObject.nluProfile.accessKey = nluProfileNode["AccessKey"].asString();
|
||||
if(!nluProfileNode["SecretKey"].isNull())
|
||||
instancesObject.nluProfile.secretKey = nluProfileNode["SecretKey"].asString();
|
||||
instances_.push_back(instancesObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ListJobGroupsWithScenarioRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ListJobGroupsWithScenarioRequest;
|
||||
|
||||
ListJobGroupsWithScenarioRequest::ListJobGroupsWithScenarioRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "ListJobGroupsWithScenario")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListJobGroupsWithScenarioRequest::~ListJobGroupsWithScenarioRequest()
|
||||
{}
|
||||
|
||||
long ListJobGroupsWithScenarioRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListJobGroupsWithScenarioRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
long ListJobGroupsWithScenarioRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListJobGroupsWithScenarioRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
int ListJobGroupsWithScenarioRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListJobGroupsWithScenarioRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListJobGroupsWithScenarioRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListJobGroupsWithScenarioRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int ListJobGroupsWithScenarioRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListJobGroupsWithScenarioRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
@@ -1,170 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ListJobGroupsWithScenarioResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
ListJobGroupsWithScenarioResult::ListJobGroupsWithScenarioResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListJobGroupsWithScenarioResult::ListJobGroupsWithScenarioResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListJobGroupsWithScenarioResult::~ListJobGroupsWithScenarioResult()
|
||||
{}
|
||||
|
||||
void ListJobGroupsWithScenarioResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobGroupsNode = value["JobGroups"];
|
||||
if(!jobGroupsNode["TotalCount"].isNull())
|
||||
jobGroups_.totalCount = std::stoi(jobGroupsNode["TotalCount"].asString());
|
||||
if(!jobGroupsNode["PageNumber"].isNull())
|
||||
jobGroups_.pageNumber = std::stoi(jobGroupsNode["PageNumber"].asString());
|
||||
if(!jobGroupsNode["PageSize"].isNull())
|
||||
jobGroups_.pageSize = std::stoi(jobGroupsNode["PageSize"].asString());
|
||||
auto allListNode = jobGroupsNode["List"]["JobGroup"];
|
||||
for (auto jobGroupsNodeListJobGroup : allListNode)
|
||||
{
|
||||
JobGroups::JobGroup jobGroupObject;
|
||||
if(!jobGroupsNodeListJobGroup["JobGroupId"].isNull())
|
||||
jobGroupObject.jobGroupId = jobGroupsNodeListJobGroup["JobGroupId"].asString();
|
||||
if(!jobGroupsNodeListJobGroup["JobGroupName"].isNull())
|
||||
jobGroupObject.jobGroupName = jobGroupsNodeListJobGroup["JobGroupName"].asString();
|
||||
if(!jobGroupsNodeListJobGroup["ScenarioName"].isNull())
|
||||
jobGroupObject.scenarioName = jobGroupsNodeListJobGroup["ScenarioName"].asString();
|
||||
if(!jobGroupsNodeListJobGroup["JobGroupDescription"].isNull())
|
||||
jobGroupObject.jobGroupDescription = jobGroupsNodeListJobGroup["JobGroupDescription"].asString();
|
||||
if(!jobGroupsNodeListJobGroup["ScenarioId"].isNull())
|
||||
jobGroupObject.scenarioId = jobGroupsNodeListJobGroup["ScenarioId"].asString();
|
||||
if(!jobGroupsNodeListJobGroup["JobFilePath"].isNull())
|
||||
jobGroupObject.jobFilePath = jobGroupsNodeListJobGroup["JobFilePath"].asString();
|
||||
if(!jobGroupsNodeListJobGroup["CreationTime"].isNull())
|
||||
jobGroupObject.creationTime = std::stol(jobGroupsNodeListJobGroup["CreationTime"].asString());
|
||||
auto strategyNode = value["Strategy"];
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroupObject.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroupObject.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["Description"].isNull())
|
||||
jobGroupObject.strategy.description = strategyNode["Description"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroupObject.strategy.type = strategyNode["Type"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroupObject.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
jobGroupObject.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
jobGroupObject.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
jobGroupObject.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
jobGroupObject.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["Customized"].isNull())
|
||||
jobGroupObject.strategy.customized = strategyNode["Customized"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroupObject.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
jobGroupObject.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
jobGroupObject.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
JobGroups::JobGroup::Strategy::TimeFrame timeFrameObject;
|
||||
if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull())
|
||||
timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString();
|
||||
if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull())
|
||||
timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["EndTime"].asString();
|
||||
jobGroupObject.strategy.workingTime.push_back(timeFrameObject);
|
||||
}
|
||||
auto allRepeatDays = strategyNode["RepeatDays"]["Integer"];
|
||||
for (auto value : allRepeatDays)
|
||||
jobGroupObject.strategy.repeatDays.push_back(value.asString());
|
||||
auto progressNode = value["Progress"];
|
||||
if(!progressNode["TotalJobs"].isNull())
|
||||
jobGroupObject.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString());
|
||||
if(!progressNode["Status"].isNull())
|
||||
jobGroupObject.progress.status = progressNode["Status"].asString();
|
||||
if(!progressNode["TotalNotAnswered"].isNull())
|
||||
jobGroupObject.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString());
|
||||
if(!progressNode["TotalCompleted"].isNull())
|
||||
jobGroupObject.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString());
|
||||
if(!progressNode["StartTime"].isNull())
|
||||
jobGroupObject.progress.startTime = std::stol(progressNode["StartTime"].asString());
|
||||
if(!progressNode["Duration"].isNull())
|
||||
jobGroupObject.progress.duration = std::stoi(progressNode["Duration"].asString());
|
||||
auto allCategoriesNode = progressNode["Categories"]["KeyValuePair"];
|
||||
for (auto progressNodeCategoriesKeyValuePair : allCategoriesNode)
|
||||
{
|
||||
JobGroups::JobGroup::Progress::KeyValuePair keyValuePairObject;
|
||||
if(!progressNodeCategoriesKeyValuePair["Key"].isNull())
|
||||
keyValuePairObject.key = progressNodeCategoriesKeyValuePair["Key"].asString();
|
||||
if(!progressNodeCategoriesKeyValuePair["Value"].isNull())
|
||||
keyValuePairObject.value = progressNodeCategoriesKeyValuePair["Value"].asString();
|
||||
jobGroupObject.progress.categories.push_back(keyValuePairObject);
|
||||
}
|
||||
auto allCallingNumbers = value["CallingNumbers"]["String"];
|
||||
for (auto value : allCallingNumbers)
|
||||
jobGroupObject.callingNumbers.push_back(value.asString());
|
||||
jobGroups_.list.push_back(jobGroupObject);
|
||||
}
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string ListJobGroupsWithScenarioResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListJobGroupsWithScenarioResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ListJobGroupsWithScenarioResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
ListJobGroupsWithScenarioResult::JobGroups ListJobGroupsWithScenarioResult::getJobGroups()const
|
||||
{
|
||||
return jobGroups_;
|
||||
}
|
||||
|
||||
bool ListJobGroupsWithScenarioResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -68,58 +68,58 @@ void ListJobsByGroupResult::parse(const std::string &payload)
|
||||
jobObject.strategyId = jobsNodeListJob["StrategyId"].asString();
|
||||
if(!jobsNodeListJob["SystemPriority"].isNull())
|
||||
jobObject.systemPriority = std::stoi(jobsNodeListJob["SystemPriority"].asString());
|
||||
auto allContactsNode = allListNode["Contacts"]["Contact"];
|
||||
for (auto allListNodeContactsContact : allContactsNode)
|
||||
auto allContactsNode = jobsNodeListJob["Contacts"]["Contact"];
|
||||
for (auto jobsNodeListJobContactsContact : allContactsNode)
|
||||
{
|
||||
Jobs::Job::Contact contactsObject;
|
||||
if(!allListNodeContactsContact["ContactId"].isNull())
|
||||
contactsObject.contactId = allListNodeContactsContact["ContactId"].asString();
|
||||
if(!allListNodeContactsContact["ContactName"].isNull())
|
||||
contactsObject.contactName = allListNodeContactsContact["ContactName"].asString();
|
||||
if(!allListNodeContactsContact["Honorific"].isNull())
|
||||
contactsObject.honorific = allListNodeContactsContact["Honorific"].asString();
|
||||
if(!allListNodeContactsContact["JobId"].isNull())
|
||||
contactsObject.jobId = allListNodeContactsContact["JobId"].asString();
|
||||
if(!allListNodeContactsContact["PhoneNumber"].isNull())
|
||||
contactsObject.phoneNumber = allListNodeContactsContact["PhoneNumber"].asString();
|
||||
if(!allListNodeContactsContact["ReferenceId"].isNull())
|
||||
contactsObject.referenceId = allListNodeContactsContact["ReferenceId"].asString();
|
||||
if(!allListNodeContactsContact["Role"].isNull())
|
||||
contactsObject.role = allListNodeContactsContact["Role"].asString();
|
||||
if(!allListNodeContactsContact["State"].isNull())
|
||||
contactsObject.state = allListNodeContactsContact["State"].asString();
|
||||
if(!jobsNodeListJobContactsContact["ContactId"].isNull())
|
||||
contactsObject.contactId = jobsNodeListJobContactsContact["ContactId"].asString();
|
||||
if(!jobsNodeListJobContactsContact["ContactName"].isNull())
|
||||
contactsObject.contactName = jobsNodeListJobContactsContact["ContactName"].asString();
|
||||
if(!jobsNodeListJobContactsContact["Honorific"].isNull())
|
||||
contactsObject.honorific = jobsNodeListJobContactsContact["Honorific"].asString();
|
||||
if(!jobsNodeListJobContactsContact["JobId"].isNull())
|
||||
contactsObject.jobId = jobsNodeListJobContactsContact["JobId"].asString();
|
||||
if(!jobsNodeListJobContactsContact["PhoneNumber"].isNull())
|
||||
contactsObject.phoneNumber = jobsNodeListJobContactsContact["PhoneNumber"].asString();
|
||||
if(!jobsNodeListJobContactsContact["ReferenceId"].isNull())
|
||||
contactsObject.referenceId = jobsNodeListJobContactsContact["ReferenceId"].asString();
|
||||
if(!jobsNodeListJobContactsContact["Role"].isNull())
|
||||
contactsObject.role = jobsNodeListJobContactsContact["Role"].asString();
|
||||
if(!jobsNodeListJobContactsContact["State"].isNull())
|
||||
contactsObject.state = jobsNodeListJobContactsContact["State"].asString();
|
||||
jobObject.contacts.push_back(contactsObject);
|
||||
}
|
||||
auto allExtrasNode = allListNode["Extras"]["KeyValuePair"];
|
||||
for (auto allListNodeExtrasKeyValuePair : allExtrasNode)
|
||||
auto allExtrasNode = jobsNodeListJob["Extras"]["KeyValuePair"];
|
||||
for (auto jobsNodeListJobExtrasKeyValuePair : allExtrasNode)
|
||||
{
|
||||
Jobs::Job::KeyValuePair extrasObject;
|
||||
if(!allListNodeExtrasKeyValuePair["Key"].isNull())
|
||||
extrasObject.key = allListNodeExtrasKeyValuePair["Key"].asString();
|
||||
if(!allListNodeExtrasKeyValuePair["Value"].isNull())
|
||||
extrasObject.value = allListNodeExtrasKeyValuePair["Value"].asString();
|
||||
if(!jobsNodeListJobExtrasKeyValuePair["Key"].isNull())
|
||||
extrasObject.key = jobsNodeListJobExtrasKeyValuePair["Key"].asString();
|
||||
if(!jobsNodeListJobExtrasKeyValuePair["Value"].isNull())
|
||||
extrasObject.value = jobsNodeListJobExtrasKeyValuePair["Value"].asString();
|
||||
jobObject.extras.push_back(extrasObject);
|
||||
}
|
||||
auto allSummaryNode = allListNode["Summary"]["SummaryItem"];
|
||||
for (auto allListNodeSummarySummaryItem : allSummaryNode)
|
||||
auto allSummaryNode = jobsNodeListJob["Summary"]["SummaryItem"];
|
||||
for (auto jobsNodeListJobSummarySummaryItem : allSummaryNode)
|
||||
{
|
||||
Jobs::Job::SummaryItem summaryObject;
|
||||
if(!allListNodeSummarySummaryItem["Category"].isNull())
|
||||
summaryObject.category = allListNodeSummarySummaryItem["Category"].asString();
|
||||
if(!allListNodeSummarySummaryItem["Content"].isNull())
|
||||
summaryObject.content = allListNodeSummarySummaryItem["Content"].asString();
|
||||
if(!allListNodeSummarySummaryItem["ConversationDetailId"].isNull())
|
||||
summaryObject.conversationDetailId = allListNodeSummarySummaryItem["ConversationDetailId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["JobGroupId"].isNull())
|
||||
summaryObject.jobGroupId = allListNodeSummarySummaryItem["JobGroupId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["JobId"].isNull())
|
||||
summaryObject.jobId = allListNodeSummarySummaryItem["JobId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["SummaryId"].isNull())
|
||||
summaryObject.summaryId = allListNodeSummarySummaryItem["SummaryId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summaryObject.summaryName = allListNodeSummarySummaryItem["SummaryName"].asString();
|
||||
if(!allListNodeSummarySummaryItem["TaskId"].isNull())
|
||||
summaryObject.taskId = allListNodeSummarySummaryItem["TaskId"].asString();
|
||||
if(!jobsNodeListJobSummarySummaryItem["Category"].isNull())
|
||||
summaryObject.category = jobsNodeListJobSummarySummaryItem["Category"].asString();
|
||||
if(!jobsNodeListJobSummarySummaryItem["Content"].isNull())
|
||||
summaryObject.content = jobsNodeListJobSummarySummaryItem["Content"].asString();
|
||||
if(!jobsNodeListJobSummarySummaryItem["ConversationDetailId"].isNull())
|
||||
summaryObject.conversationDetailId = jobsNodeListJobSummarySummaryItem["ConversationDetailId"].asString();
|
||||
if(!jobsNodeListJobSummarySummaryItem["JobGroupId"].isNull())
|
||||
summaryObject.jobGroupId = jobsNodeListJobSummarySummaryItem["JobGroupId"].asString();
|
||||
if(!jobsNodeListJobSummarySummaryItem["JobId"].isNull())
|
||||
summaryObject.jobId = jobsNodeListJobSummarySummaryItem["JobId"].asString();
|
||||
if(!jobsNodeListJobSummarySummaryItem["SummaryId"].isNull())
|
||||
summaryObject.summaryId = jobsNodeListJobSummarySummaryItem["SummaryId"].asString();
|
||||
if(!jobsNodeListJobSummarySummaryItem["SummaryName"].isNull())
|
||||
summaryObject.summaryName = jobsNodeListJobSummarySummaryItem["SummaryName"].asString();
|
||||
if(!jobsNodeListJobSummarySummaryItem["TaskId"].isNull())
|
||||
summaryObject.taskId = jobsNodeListJobSummarySummaryItem["TaskId"].asString();
|
||||
jobObject.summary.push_back(summaryObject);
|
||||
}
|
||||
auto allCallingNumbers = value["CallingNumbers"]["String"];
|
||||
|
||||
@@ -61,98 +61,98 @@ void ListJobsResult::parse(const std::string &payload)
|
||||
jobsObject.strategyId = valueJobsJob["StrategyId"].asString();
|
||||
if(!valueJobsJob["SystemPriority"].isNull())
|
||||
jobsObject.systemPriority = std::stoi(valueJobsJob["SystemPriority"].asString());
|
||||
auto allContactsNode = allJobsNode["Contacts"]["Contact"];
|
||||
for (auto allJobsNodeContactsContact : allContactsNode)
|
||||
auto allContactsNode = valueJobsJob["Contacts"]["Contact"];
|
||||
for (auto valueJobsJobContactsContact : allContactsNode)
|
||||
{
|
||||
Job::Contact contactsObject;
|
||||
if(!allJobsNodeContactsContact["ContactId"].isNull())
|
||||
contactsObject.contactId = allJobsNodeContactsContact["ContactId"].asString();
|
||||
if(!allJobsNodeContactsContact["ContactName"].isNull())
|
||||
contactsObject.contactName = allJobsNodeContactsContact["ContactName"].asString();
|
||||
if(!allJobsNodeContactsContact["Honorific"].isNull())
|
||||
contactsObject.honorific = allJobsNodeContactsContact["Honorific"].asString();
|
||||
if(!allJobsNodeContactsContact["JobId"].isNull())
|
||||
contactsObject.jobId = allJobsNodeContactsContact["JobId"].asString();
|
||||
if(!allJobsNodeContactsContact["PhoneNumber"].isNull())
|
||||
contactsObject.phoneNumber = allJobsNodeContactsContact["PhoneNumber"].asString();
|
||||
if(!allJobsNodeContactsContact["ReferenceId"].isNull())
|
||||
contactsObject.referenceId = allJobsNodeContactsContact["ReferenceId"].asString();
|
||||
if(!allJobsNodeContactsContact["Role"].isNull())
|
||||
contactsObject.role = allJobsNodeContactsContact["Role"].asString();
|
||||
if(!allJobsNodeContactsContact["State"].isNull())
|
||||
contactsObject.state = allJobsNodeContactsContact["State"].asString();
|
||||
if(!valueJobsJobContactsContact["ContactId"].isNull())
|
||||
contactsObject.contactId = valueJobsJobContactsContact["ContactId"].asString();
|
||||
if(!valueJobsJobContactsContact["ContactName"].isNull())
|
||||
contactsObject.contactName = valueJobsJobContactsContact["ContactName"].asString();
|
||||
if(!valueJobsJobContactsContact["Honorific"].isNull())
|
||||
contactsObject.honorific = valueJobsJobContactsContact["Honorific"].asString();
|
||||
if(!valueJobsJobContactsContact["JobId"].isNull())
|
||||
contactsObject.jobId = valueJobsJobContactsContact["JobId"].asString();
|
||||
if(!valueJobsJobContactsContact["PhoneNumber"].isNull())
|
||||
contactsObject.phoneNumber = valueJobsJobContactsContact["PhoneNumber"].asString();
|
||||
if(!valueJobsJobContactsContact["ReferenceId"].isNull())
|
||||
contactsObject.referenceId = valueJobsJobContactsContact["ReferenceId"].asString();
|
||||
if(!valueJobsJobContactsContact["Role"].isNull())
|
||||
contactsObject.role = valueJobsJobContactsContact["Role"].asString();
|
||||
if(!valueJobsJobContactsContact["State"].isNull())
|
||||
contactsObject.state = valueJobsJobContactsContact["State"].asString();
|
||||
jobsObject.contacts.push_back(contactsObject);
|
||||
}
|
||||
auto allExtrasNode = allJobsNode["Extras"]["KeyValuePair"];
|
||||
for (auto allJobsNodeExtrasKeyValuePair : allExtrasNode)
|
||||
auto allExtrasNode = valueJobsJob["Extras"]["KeyValuePair"];
|
||||
for (auto valueJobsJobExtrasKeyValuePair : allExtrasNode)
|
||||
{
|
||||
Job::KeyValuePair extrasObject;
|
||||
if(!allJobsNodeExtrasKeyValuePair["Key"].isNull())
|
||||
extrasObject.key = allJobsNodeExtrasKeyValuePair["Key"].asString();
|
||||
if(!allJobsNodeExtrasKeyValuePair["Value"].isNull())
|
||||
extrasObject.value = allJobsNodeExtrasKeyValuePair["Value"].asString();
|
||||
if(!valueJobsJobExtrasKeyValuePair["Key"].isNull())
|
||||
extrasObject.key = valueJobsJobExtrasKeyValuePair["Key"].asString();
|
||||
if(!valueJobsJobExtrasKeyValuePair["Value"].isNull())
|
||||
extrasObject.value = valueJobsJobExtrasKeyValuePair["Value"].asString();
|
||||
jobsObject.extras.push_back(extrasObject);
|
||||
}
|
||||
auto allSummaryNode = allJobsNode["Summary"]["SummaryItem"];
|
||||
for (auto allJobsNodeSummarySummaryItem : allSummaryNode)
|
||||
auto allSummaryNode = valueJobsJob["Summary"]["SummaryItem"];
|
||||
for (auto valueJobsJobSummarySummaryItem : allSummaryNode)
|
||||
{
|
||||
Job::SummaryItem summaryObject;
|
||||
if(!allJobsNodeSummarySummaryItem["Category"].isNull())
|
||||
summaryObject.category = allJobsNodeSummarySummaryItem["Category"].asString();
|
||||
if(!allJobsNodeSummarySummaryItem["Content"].isNull())
|
||||
summaryObject.content = allJobsNodeSummarySummaryItem["Content"].asString();
|
||||
if(!allJobsNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summaryObject.summaryName = allJobsNodeSummarySummaryItem["SummaryName"].asString();
|
||||
if(!valueJobsJobSummarySummaryItem["Category"].isNull())
|
||||
summaryObject.category = valueJobsJobSummarySummaryItem["Category"].asString();
|
||||
if(!valueJobsJobSummarySummaryItem["Content"].isNull())
|
||||
summaryObject.content = valueJobsJobSummarySummaryItem["Content"].asString();
|
||||
if(!valueJobsJobSummarySummaryItem["SummaryName"].isNull())
|
||||
summaryObject.summaryName = valueJobsJobSummarySummaryItem["SummaryName"].asString();
|
||||
jobsObject.summary.push_back(summaryObject);
|
||||
}
|
||||
auto allTasksNode = allJobsNode["Tasks"]["Task"];
|
||||
for (auto allJobsNodeTasksTask : allTasksNode)
|
||||
auto allTasksNode = valueJobsJob["Tasks"]["Task"];
|
||||
for (auto valueJobsJobTasksTask : allTasksNode)
|
||||
{
|
||||
Job::Task tasksObject;
|
||||
if(!allJobsNodeTasksTask["ActualTime"].isNull())
|
||||
tasksObject.actualTime = std::stol(allJobsNodeTasksTask["ActualTime"].asString());
|
||||
if(!allJobsNodeTasksTask["Brief"].isNull())
|
||||
tasksObject.brief = allJobsNodeTasksTask["Brief"].asString();
|
||||
if(!allJobsNodeTasksTask["CallId"].isNull())
|
||||
tasksObject.callId = allJobsNodeTasksTask["CallId"].asString();
|
||||
if(!allJobsNodeTasksTask["CalledNumber"].isNull())
|
||||
tasksObject.calledNumber = allJobsNodeTasksTask["CalledNumber"].asString();
|
||||
if(!allJobsNodeTasksTask["CallingNumber"].isNull())
|
||||
tasksObject.callingNumber = allJobsNodeTasksTask["CallingNumber"].asString();
|
||||
if(!allJobsNodeTasksTask["ChatbotId"].isNull())
|
||||
tasksObject.chatbotId = allJobsNodeTasksTask["ChatbotId"].asString();
|
||||
if(!allJobsNodeTasksTask["Duration"].isNull())
|
||||
tasksObject.duration = std::stoi(allJobsNodeTasksTask["Duration"].asString());
|
||||
if(!allJobsNodeTasksTask["JobId"].isNull())
|
||||
tasksObject.jobId = allJobsNodeTasksTask["JobId"].asString();
|
||||
if(!allJobsNodeTasksTask["PlanedTime"].isNull())
|
||||
tasksObject.planedTime = std::stol(allJobsNodeTasksTask["PlanedTime"].asString());
|
||||
if(!allJobsNodeTasksTask["ScenarioId"].isNull())
|
||||
tasksObject.scenarioId = allJobsNodeTasksTask["ScenarioId"].asString();
|
||||
if(!allJobsNodeTasksTask["Status"].isNull())
|
||||
tasksObject.status = allJobsNodeTasksTask["Status"].asString();
|
||||
if(!allJobsNodeTasksTask["TaskId"].isNull())
|
||||
tasksObject.taskId = allJobsNodeTasksTask["TaskId"].asString();
|
||||
auto allConversationNode = allTasksNode["Conversation"]["ConversationDetail"];
|
||||
for (auto allTasksNodeConversationConversationDetail : allConversationNode)
|
||||
if(!valueJobsJobTasksTask["ActualTime"].isNull())
|
||||
tasksObject.actualTime = std::stol(valueJobsJobTasksTask["ActualTime"].asString());
|
||||
if(!valueJobsJobTasksTask["Brief"].isNull())
|
||||
tasksObject.brief = valueJobsJobTasksTask["Brief"].asString();
|
||||
if(!valueJobsJobTasksTask["CallId"].isNull())
|
||||
tasksObject.callId = valueJobsJobTasksTask["CallId"].asString();
|
||||
if(!valueJobsJobTasksTask["CalledNumber"].isNull())
|
||||
tasksObject.calledNumber = valueJobsJobTasksTask["CalledNumber"].asString();
|
||||
if(!valueJobsJobTasksTask["CallingNumber"].isNull())
|
||||
tasksObject.callingNumber = valueJobsJobTasksTask["CallingNumber"].asString();
|
||||
if(!valueJobsJobTasksTask["ChatbotId"].isNull())
|
||||
tasksObject.chatbotId = valueJobsJobTasksTask["ChatbotId"].asString();
|
||||
if(!valueJobsJobTasksTask["Duration"].isNull())
|
||||
tasksObject.duration = std::stoi(valueJobsJobTasksTask["Duration"].asString());
|
||||
if(!valueJobsJobTasksTask["JobId"].isNull())
|
||||
tasksObject.jobId = valueJobsJobTasksTask["JobId"].asString();
|
||||
if(!valueJobsJobTasksTask["PlanedTime"].isNull())
|
||||
tasksObject.planedTime = std::stol(valueJobsJobTasksTask["PlanedTime"].asString());
|
||||
if(!valueJobsJobTasksTask["ScenarioId"].isNull())
|
||||
tasksObject.scenarioId = valueJobsJobTasksTask["ScenarioId"].asString();
|
||||
if(!valueJobsJobTasksTask["Status"].isNull())
|
||||
tasksObject.status = valueJobsJobTasksTask["Status"].asString();
|
||||
if(!valueJobsJobTasksTask["TaskId"].isNull())
|
||||
tasksObject.taskId = valueJobsJobTasksTask["TaskId"].asString();
|
||||
auto allConversationNode = valueJobsJobTasksTask["Conversation"]["ConversationDetail"];
|
||||
for (auto valueJobsJobTasksTaskConversationConversationDetail : allConversationNode)
|
||||
{
|
||||
Job::Task::ConversationDetail conversationObject;
|
||||
if(!allTasksNodeConversationConversationDetail["Script"].isNull())
|
||||
conversationObject.script = allTasksNodeConversationConversationDetail["Script"].asString();
|
||||
if(!allTasksNodeConversationConversationDetail["Speaker"].isNull())
|
||||
conversationObject.speaker = allTasksNodeConversationConversationDetail["Speaker"].asString();
|
||||
if(!allTasksNodeConversationConversationDetail["Timestamp"].isNull())
|
||||
conversationObject.timestamp = std::stol(allTasksNodeConversationConversationDetail["Timestamp"].asString());
|
||||
auto allSummary1Node = allConversationNode["Summary"]["SummaryItem"];
|
||||
for (auto allConversationNodeSummarySummaryItem : allSummary1Node)
|
||||
if(!valueJobsJobTasksTaskConversationConversationDetail["Script"].isNull())
|
||||
conversationObject.script = valueJobsJobTasksTaskConversationConversationDetail["Script"].asString();
|
||||
if(!valueJobsJobTasksTaskConversationConversationDetail["Speaker"].isNull())
|
||||
conversationObject.speaker = valueJobsJobTasksTaskConversationConversationDetail["Speaker"].asString();
|
||||
if(!valueJobsJobTasksTaskConversationConversationDetail["Timestamp"].isNull())
|
||||
conversationObject.timestamp = std::stol(valueJobsJobTasksTaskConversationConversationDetail["Timestamp"].asString());
|
||||
auto allSummary1Node = valueJobsJobTasksTaskConversationConversationDetail["Summary"]["SummaryItem"];
|
||||
for (auto valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem : allSummary1Node)
|
||||
{
|
||||
Job::Task::ConversationDetail::SummaryItem2 summary1Object;
|
||||
if(!allConversationNodeSummarySummaryItem["Category"].isNull())
|
||||
summary1Object.category = allConversationNodeSummarySummaryItem["Category"].asString();
|
||||
if(!allConversationNodeSummarySummaryItem["Content"].isNull())
|
||||
summary1Object.content = allConversationNodeSummarySummaryItem["Content"].asString();
|
||||
if(!allConversationNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summary1Object.summaryName = allConversationNodeSummarySummaryItem["SummaryName"].asString();
|
||||
if(!valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem["Category"].isNull())
|
||||
summary1Object.category = valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem["Category"].asString();
|
||||
if(!valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem["Content"].isNull())
|
||||
summary1Object.content = valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem["Content"].asString();
|
||||
if(!valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].isNull())
|
||||
summary1Object.summaryName = valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].asString();
|
||||
conversationObject.summary1.push_back(summary1Object);
|
||||
}
|
||||
tasksObject.conversation.push_back(conversationObject);
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ListMediasRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ListMediasRequest;
|
||||
|
||||
ListMediasRequest::ListMediasRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "ListMedias")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMediasRequest::~ListMediasRequest()
|
||||
{}
|
||||
|
||||
int ListMediasRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListMediasRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListMediasRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListMediasRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int ListMediasRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListMediasRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListMediasRequest::getNamePrefix()const
|
||||
{
|
||||
return namePrefix_;
|
||||
}
|
||||
|
||||
void ListMediasRequest::setNamePrefix(const std::string& namePrefix)
|
||||
{
|
||||
namePrefix_ = namePrefix;
|
||||
setParameter("NamePrefix", namePrefix);
|
||||
}
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ListMediasResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
ListMediasResult::ListMediasResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMediasResult::ListMediasResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMediasResult::~ListMediasResult()
|
||||
{}
|
||||
|
||||
void ListMediasResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMediaListNode = value["MediaList"]["Media"];
|
||||
for (auto valueMediaListMedia : allMediaListNode)
|
||||
{
|
||||
Media mediaListObject;
|
||||
if(!valueMediaListMedia["MediaId"].isNull())
|
||||
mediaListObject.mediaId = valueMediaListMedia["MediaId"].asString();
|
||||
if(!valueMediaListMedia["Name"].isNull())
|
||||
mediaListObject.name = valueMediaListMedia["Name"].asString();
|
||||
mediaList_.push_back(mediaListObject);
|
||||
}
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListMediasResult::Media> ListMediasResult::getMediaList()const
|
||||
{
|
||||
return mediaList_;
|
||||
}
|
||||
|
||||
int ListMediasResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListMediasResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListMediasResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListMediasResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int ListMediasResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ListMediasResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListMediasResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ListUnreachableContactsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ListUnreachableContactsRequest;
|
||||
|
||||
ListUnreachableContactsRequest::ListUnreachableContactsRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "ListUnreachableContacts")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListUnreachableContactsRequest::~ListUnreachableContactsRequest()
|
||||
{}
|
||||
|
||||
int ListUnreachableContactsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListUnreachableContactsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListUnreachableContactsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListUnreachableContactsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ListUnreachableContactsRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void ListUnreachableContactsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
int ListUnreachableContactsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListUnreachableContactsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
@@ -1,110 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ListUnreachableContactsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
ListUnreachableContactsResult::ListUnreachableContactsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListUnreachableContactsResult::ListUnreachableContactsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListUnreachableContactsResult::~ListUnreachableContactsResult()
|
||||
{}
|
||||
|
||||
void ListUnreachableContactsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto unreachableContactsNode = value["UnreachableContacts"];
|
||||
if(!unreachableContactsNode["TotalCount"].isNull())
|
||||
unreachableContacts_.totalCount = std::stoi(unreachableContactsNode["TotalCount"].asString());
|
||||
if(!unreachableContactsNode["PageNumber"].isNull())
|
||||
unreachableContacts_.pageNumber = std::stoi(unreachableContactsNode["PageNumber"].asString());
|
||||
if(!unreachableContactsNode["PageSize"].isNull())
|
||||
unreachableContacts_.pageSize = std::stoi(unreachableContactsNode["PageSize"].asString());
|
||||
auto allListNode = unreachableContactsNode["List"]["UnreachableContact"];
|
||||
for (auto unreachableContactsNodeListUnreachableContact : allListNode)
|
||||
{
|
||||
UnreachableContacts::UnreachableContact unreachableContactObject;
|
||||
if(!unreachableContactsNodeListUnreachableContact["TotalAttempts"].isNull())
|
||||
unreachableContactObject.totalAttempts = std::stoi(unreachableContactsNodeListUnreachableContact["TotalAttempts"].asString());
|
||||
auto allContactsNode = allListNode["Contacts"]["Contact"];
|
||||
for (auto allListNodeContactsContact : allContactsNode)
|
||||
{
|
||||
UnreachableContacts::UnreachableContact::Contact contactsObject;
|
||||
if(!allListNodeContactsContact["ContactId"].isNull())
|
||||
contactsObject.contactId = allListNodeContactsContact["ContactId"].asString();
|
||||
if(!allListNodeContactsContact["ContactName"].isNull())
|
||||
contactsObject.contactName = allListNodeContactsContact["ContactName"].asString();
|
||||
if(!allListNodeContactsContact["Role"].isNull())
|
||||
contactsObject.role = allListNodeContactsContact["Role"].asString();
|
||||
if(!allListNodeContactsContact["PhoneNumber"].isNull())
|
||||
contactsObject.phoneNumber = allListNodeContactsContact["PhoneNumber"].asString();
|
||||
if(!allListNodeContactsContact["State"].isNull())
|
||||
contactsObject.state = allListNodeContactsContact["State"].asString();
|
||||
if(!allListNodeContactsContact["ReferenceId"].isNull())
|
||||
contactsObject.referenceId = allListNodeContactsContact["ReferenceId"].asString();
|
||||
unreachableContactObject.contacts.push_back(contactsObject);
|
||||
}
|
||||
unreachableContacts_.list.push_back(unreachableContactObject);
|
||||
}
|
||||
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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
ListUnreachableContactsResult::UnreachableContacts ListUnreachableContactsResult::getUnreachableContacts()const
|
||||
{
|
||||
return unreachableContacts_;
|
||||
}
|
||||
|
||||
std::string ListUnreachableContactsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListUnreachableContactsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ListUnreachableContactsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListUnreachableContactsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/ListUnrecognizedIntentsRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ListUnrecognizedIntentsRequest;
|
||||
|
||||
ListUnrecognizedIntentsRequest::ListUnrecognizedIntentsRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "ListUnrecognizedIntents")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListUnrecognizedIntentsRequest::~ListUnrecognizedIntentsRequest()
|
||||
{}
|
||||
|
||||
int ListUnrecognizedIntentsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListUnrecognizedIntentsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListUnrecognizedIntentsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListUnrecognizedIntentsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ListUnrecognizedIntentsRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void ListUnrecognizedIntentsRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
int ListUnrecognizedIntentsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListUnrecognizedIntentsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user