regenerate code
This commit is contained in:
@@ -77,6 +77,8 @@ 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/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
|
||||
@@ -123,6 +125,8 @@ set(outboundbot_public_header_model
|
||||
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
|
||||
@@ -188,7 +192,9 @@ set(outboundbot_public_header_model
|
||||
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/WithdrawScriptResult.h
|
||||
include/alibabacloud/outboundbot/model/WithdrawScriptReviewRequest.h
|
||||
include/alibabacloud/outboundbot/model/WithdrawScriptReviewResult.h )
|
||||
|
||||
set(outboundbot_src
|
||||
src/OutboundBotClient.cc
|
||||
@@ -248,6 +254,8 @@ set(outboundbot_src
|
||||
src/model/DescribeScriptVoiceConfigResult.cc
|
||||
src/model/DescribeTTSConfigRequest.cc
|
||||
src/model/DescribeTTSConfigResult.cc
|
||||
src/model/DescribeTagHitsSummaryRequest.cc
|
||||
src/model/DescribeTagHitsSummaryResult.cc
|
||||
src/model/DialogueRequest.cc
|
||||
src/model/DialogueResult.cc
|
||||
src/model/DownloadBasicStatisticsReportRequest.cc
|
||||
@@ -294,6 +302,8 @@ set(outboundbot_src
|
||||
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
|
||||
@@ -359,7 +369,9 @@ set(outboundbot_src
|
||||
src/model/SuspendJobsRequest.cc
|
||||
src/model/SuspendJobsResult.cc
|
||||
src/model/WithdrawScriptRequest.cc
|
||||
src/model/WithdrawScriptResult.cc )
|
||||
src/model/WithdrawScriptResult.cc
|
||||
src/model/WithdrawScriptReviewRequest.cc
|
||||
src/model/WithdrawScriptReviewResult.cc )
|
||||
|
||||
add_library(outboundbot ${LIB_TYPE}
|
||||
${outboundbot_public_header}
|
||||
|
||||
@@ -78,6 +78,8 @@
|
||||
#include "model/DescribeScriptVoiceConfigResult.h"
|
||||
#include "model/DescribeTTSConfigRequest.h"
|
||||
#include "model/DescribeTTSConfigResult.h"
|
||||
#include "model/DescribeTagHitsSummaryRequest.h"
|
||||
#include "model/DescribeTagHitsSummaryResult.h"
|
||||
#include "model/DialogueRequest.h"
|
||||
#include "model/DialogueResult.h"
|
||||
#include "model/DownloadBasicStatisticsReportRequest.h"
|
||||
@@ -124,6 +126,8 @@
|
||||
#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"
|
||||
@@ -190,6 +194,8 @@
|
||||
#include "model/SuspendJobsResult.h"
|
||||
#include "model/WithdrawScriptRequest.h"
|
||||
#include "model/WithdrawScriptResult.h"
|
||||
#include "model/WithdrawScriptReviewRequest.h"
|
||||
#include "model/WithdrawScriptReviewResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -283,6 +289,9 @@ 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::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;
|
||||
@@ -352,6 +361,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListJobsByGroupResult> ListJobsByGroupOutcome;
|
||||
typedef std::future<ListJobsByGroupOutcome> ListJobsByGroupOutcomeCallable;
|
||||
typedef std::function<void(const OutboundBotClient*, const Model::ListJobsByGroupRequest&, const ListJobsByGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListJobsByGroupAsyncHandler;
|
||||
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;
|
||||
@@ -451,6 +463,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
|
||||
OutboundBotClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
OutboundBotClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -540,6 +555,9 @@ namespace AlibabaCloud
|
||||
DescribeTTSConfigOutcome describeTTSConfig(const Model::DescribeTTSConfigRequest &request)const;
|
||||
void describeTTSConfigAsync(const Model::DescribeTTSConfigRequest& request, const DescribeTTSConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTTSConfigOutcomeCallable describeTTSConfigCallable(const Model::DescribeTTSConfigRequest& request) const;
|
||||
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;
|
||||
@@ -609,6 +627,9 @@ namespace AlibabaCloud
|
||||
ListJobsByGroupOutcome listJobsByGroup(const Model::ListJobsByGroupRequest &request)const;
|
||||
void listJobsByGroupAsync(const Model::ListJobsByGroupRequest& request, const ListJobsByGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListJobsByGroupOutcomeCallable listJobsByGroupCallable(const Model::ListJobsByGroupRequest& request) const;
|
||||
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;
|
||||
@@ -708,6 +729,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -43,16 +43,16 @@ namespace AlibabaCloud
|
||||
};
|
||||
std::vector<TimeFrame> workingTime;
|
||||
bool isTemplate;
|
||||
std::string repeatBy;
|
||||
int minAttemptInterval;
|
||||
std::string repeatBy;
|
||||
long endTime;
|
||||
std::string strategyId;
|
||||
long startTime;
|
||||
std::string strategyId;
|
||||
std::string followUpStrategy;
|
||||
std::string type;
|
||||
std::string strategyName;
|
||||
std::string strategyDescription;
|
||||
std::string customized;
|
||||
std::string strategyDescription;
|
||||
int maxAttemptsPerDay;
|
||||
std::string routingStrategy;
|
||||
std::vector<std::string> repeatDays;
|
||||
|
||||
@@ -43,16 +43,16 @@ namespace AlibabaCloud
|
||||
};
|
||||
std::vector<TimeFrame> workingTime;
|
||||
bool isTemplate;
|
||||
std::string repeatBy;
|
||||
int minAttemptInterval;
|
||||
std::string repeatBy;
|
||||
long endTime;
|
||||
std::string strategyId;
|
||||
long startTime;
|
||||
std::string strategyId;
|
||||
std::string followUpStrategy;
|
||||
std::string type;
|
||||
std::string strategyName;
|
||||
std::string strategyDescription;
|
||||
std::string customized;
|
||||
std::string strategyDescription;
|
||||
int maxAttemptsPerDay;
|
||||
std::string routingStrategy;
|
||||
std::vector<std::string> repeatDays;
|
||||
|
||||
@@ -41,8 +41,8 @@ namespace AlibabaCloud
|
||||
std::string scriptDescription;
|
||||
long updateTime;
|
||||
std::string scriptId;
|
||||
std::string scene;
|
||||
std::string debugStatus;
|
||||
std::string scene;
|
||||
bool isDebugDrafted;
|
||||
};
|
||||
|
||||
|
||||
@@ -37,8 +37,8 @@ namespace AlibabaCloud
|
||||
std::string keywords;
|
||||
std::string intentName;
|
||||
std::string intentDescription;
|
||||
std::string utterances;
|
||||
long createTime;
|
||||
std::string utterances;
|
||||
long updateTime;
|
||||
std::string scriptId;
|
||||
std::string intentId;
|
||||
|
||||
@@ -34,29 +34,6 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct JobGroup
|
||||
{
|
||||
struct Strategy
|
||||
{
|
||||
struct TimeFrame
|
||||
{
|
||||
std::string endTime;
|
||||
std::string beginTime;
|
||||
};
|
||||
std::vector<TimeFrame> workingTime;
|
||||
bool isTemplate;
|
||||
std::string repeatBy;
|
||||
int minAttemptInterval;
|
||||
long endTime;
|
||||
std::string strategyId;
|
||||
long startTime;
|
||||
std::string followUpStrategy;
|
||||
std::string type;
|
||||
std::string strategyName;
|
||||
std::string strategyDescription;
|
||||
std::string customized;
|
||||
int maxAttemptsPerDay;
|
||||
std::string routingStrategy;
|
||||
std::vector<std::string> repeatDays;
|
||||
};
|
||||
struct Progress
|
||||
{
|
||||
struct KeyValuePair
|
||||
@@ -75,8 +52,31 @@ namespace AlibabaCloud
|
||||
std::vector<KeyValuePair> briefs;
|
||||
int executing;
|
||||
int totalNotAnswered;
|
||||
int totalJobs;
|
||||
int paused;
|
||||
int totalJobs;
|
||||
};
|
||||
struct Strategy
|
||||
{
|
||||
struct TimeFrame
|
||||
{
|
||||
std::string endTime;
|
||||
std::string beginTime;
|
||||
};
|
||||
std::vector<TimeFrame> workingTime;
|
||||
bool isTemplate;
|
||||
int minAttemptInterval;
|
||||
std::string repeatBy;
|
||||
long endTime;
|
||||
long startTime;
|
||||
std::string strategyId;
|
||||
std::string followUpStrategy;
|
||||
std::string type;
|
||||
std::string strategyName;
|
||||
std::string customized;
|
||||
std::string strategyDescription;
|
||||
int maxAttemptsPerDay;
|
||||
std::string routingStrategy;
|
||||
std::vector<std::string> repeatDays;
|
||||
};
|
||||
Progress progress;
|
||||
std::string jobGroupId;
|
||||
@@ -85,8 +85,8 @@ namespace AlibabaCloud
|
||||
std::string scriptName;
|
||||
long creationTime;
|
||||
Strategy strategy;
|
||||
std::string scriptId;
|
||||
std::string jobFilePath;
|
||||
std::string scriptId;
|
||||
std::string jobGroupDescription;
|
||||
std::vector<std::string> callingNumbers;
|
||||
};
|
||||
|
||||
@@ -50,9 +50,15 @@ namespace AlibabaCloud
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct SummaryItem
|
||||
{
|
||||
std::string category;
|
||||
std::string content;
|
||||
std::string summaryName;
|
||||
};
|
||||
struct Task
|
||||
{
|
||||
struct Contact2
|
||||
struct Contact3
|
||||
{
|
||||
std::string role;
|
||||
std::string honorific;
|
||||
@@ -65,14 +71,14 @@ namespace AlibabaCloud
|
||||
};
|
||||
struct ConversationDetail
|
||||
{
|
||||
struct SummaryItem
|
||||
struct SummaryItem2
|
||||
{
|
||||
std::string category;
|
||||
std::string content;
|
||||
std::string summaryName;
|
||||
};
|
||||
std::string script;
|
||||
std::vector<ConversationDetail::SummaryItem> summary1;
|
||||
std::vector<ConversationDetail::SummaryItem2> summary1;
|
||||
long timestamp;
|
||||
std::string speaker;
|
||||
};
|
||||
@@ -80,23 +86,17 @@ namespace AlibabaCloud
|
||||
std::string chatbotId;
|
||||
long planedTime;
|
||||
std::string calledNumber;
|
||||
std::string taskId;
|
||||
std::string scenarioId;
|
||||
std::string taskId;
|
||||
long actualTime;
|
||||
std::string callId;
|
||||
std::vector<Task::ConversationDetail> conversation;
|
||||
int duration;
|
||||
std::string brief;
|
||||
std::string callingNumber;
|
||||
Contact2 contact2;
|
||||
Contact3 contact3;
|
||||
std::string jobId;
|
||||
};
|
||||
struct SummaryItem3
|
||||
{
|
||||
std::string category;
|
||||
std::string content;
|
||||
std::string summaryName;
|
||||
};
|
||||
std::string status;
|
||||
std::vector<Task> tasks;
|
||||
std::string scenarioId;
|
||||
@@ -106,9 +106,9 @@ namespace AlibabaCloud
|
||||
std::string jobGroupId;
|
||||
std::vector<Contact> contacts;
|
||||
std::string referenceId;
|
||||
int systemPriority;
|
||||
std::string failureReason;
|
||||
std::vector<SummaryItem3> summary;
|
||||
int systemPriority;
|
||||
std::vector<SummaryItem> summary;
|
||||
std::string jobId;
|
||||
std::vector<std::string> callingNumbers;
|
||||
};
|
||||
|
||||
@@ -41,8 +41,8 @@ namespace AlibabaCloud
|
||||
std::string scriptDescription;
|
||||
long updateTime;
|
||||
std::string scriptId;
|
||||
std::string scene;
|
||||
std::string debugStatus;
|
||||
std::string scene;
|
||||
bool isDebugDrafted;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETAGHITSSUMMARYREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETAGHITSSUMMARYREQUEST_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 DescribeTagHitsSummaryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeTagHitsSummaryRequest();
|
||||
~DescribeTagHitsSummaryRequest();
|
||||
|
||||
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_DESCRIBETAGHITSSUMMARYREQUEST_H_
|
||||
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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_DESCRIBETAGHITSSUMMARYRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETAGHITSSUMMARYRESULT_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 DescribeTagHitsSummaryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TagGroup
|
||||
{
|
||||
int tagGroupIndex;
|
||||
std::string tagGroup;
|
||||
std::string scriptId;
|
||||
std::string id;
|
||||
};
|
||||
struct TagHits
|
||||
{
|
||||
std::string tagName;
|
||||
int hitCount;
|
||||
std::string tagGroup;
|
||||
};
|
||||
|
||||
|
||||
DescribeTagHitsSummaryResult();
|
||||
explicit DescribeTagHitsSummaryResult(const std::string &payload);
|
||||
~DescribeTagHitsSummaryResult();
|
||||
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_DESCRIBETAGHITSSUMMARYRESULT_H_
|
||||
@@ -37,18 +37,10 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getCallId()const;
|
||||
void setCallId(const std::string& callId);
|
||||
std::string getActionParams()const;
|
||||
void setActionParams(const std::string& actionParams);
|
||||
std::string getCallingNumber()const;
|
||||
void setCallingNumber(const std::string& callingNumber);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
long getInstanceOwnerId()const;
|
||||
void setInstanceOwnerId(long instanceOwnerId);
|
||||
std::string getCalledNumber()const;
|
||||
void setCalledNumber(const std::string& calledNumber);
|
||||
std::string getActionKey()const;
|
||||
void setActionKey(const std::string& actionKey);
|
||||
std::string getCallType()const;
|
||||
void setCallType(const std::string& callType);
|
||||
std::string getScenarioId()const;
|
||||
@@ -57,19 +49,27 @@ namespace AlibabaCloud
|
||||
void setTaskId(const std::string& taskId);
|
||||
std::string getUtterance()const;
|
||||
void setUtterance(const std::string& utterance);
|
||||
std::string getActionParams()const;
|
||||
void setActionParams(const std::string& actionParams);
|
||||
std::string getCallingNumber()const;
|
||||
void setCallingNumber(const std::string& callingNumber);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getActionKey()const;
|
||||
void setActionKey(const std::string& actionKey);
|
||||
|
||||
private:
|
||||
std::string callId_;
|
||||
std::string actionParams_;
|
||||
std::string callingNumber_;
|
||||
std::string instanceId_;
|
||||
long instanceOwnerId_;
|
||||
std::string calledNumber_;
|
||||
std::string actionKey_;
|
||||
std::string callType_;
|
||||
std::string scenarioId_;
|
||||
std::string taskId_;
|
||||
std::string utterance_;
|
||||
std::string actionParams_;
|
||||
std::string callingNumber_;
|
||||
std::string instanceId_;
|
||||
std::string actionKey_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,8 +39,8 @@ namespace AlibabaCloud
|
||||
std::string keywords;
|
||||
std::string intentName;
|
||||
std::string intentDescription;
|
||||
std::string utterances;
|
||||
long createTime;
|
||||
std::string utterances;
|
||||
long updateTime;
|
||||
std::string scriptId;
|
||||
std::string intentId;
|
||||
|
||||
@@ -36,11 +36,6 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct JobGroup
|
||||
{
|
||||
struct Strategy
|
||||
{
|
||||
long endTime;
|
||||
long startTime;
|
||||
};
|
||||
struct Progress
|
||||
{
|
||||
std::string status;
|
||||
@@ -50,6 +45,11 @@ namespace AlibabaCloud
|
||||
int totalNotAnswered;
|
||||
int totalJobs;
|
||||
};
|
||||
struct Strategy
|
||||
{
|
||||
long endTime;
|
||||
long startTime;
|
||||
};
|
||||
Progress progress;
|
||||
std::string jobGroupId;
|
||||
std::string jobGroupName;
|
||||
|
||||
@@ -55,8 +55,8 @@ namespace AlibabaCloud
|
||||
struct SummaryItem
|
||||
{
|
||||
std::string jobGroupId;
|
||||
std::string taskId;
|
||||
std::string category;
|
||||
std::string taskId;
|
||||
std::string conversationDetailId;
|
||||
std::string content;
|
||||
std::string summaryId;
|
||||
@@ -71,8 +71,8 @@ namespace AlibabaCloud
|
||||
std::string jobGroupId;
|
||||
std::vector<Job::Contact> contacts;
|
||||
std::string referenceId;
|
||||
int systemPriority;
|
||||
std::string failureReason;
|
||||
int systemPriority;
|
||||
std::vector<Job::SummaryItem> summary;
|
||||
std::string jobId;
|
||||
std::vector<std::string> callingNumbers;
|
||||
|
||||
@@ -50,9 +50,15 @@ namespace AlibabaCloud
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct SummaryItem
|
||||
{
|
||||
std::string category;
|
||||
std::string content;
|
||||
std::string summaryName;
|
||||
};
|
||||
struct Task
|
||||
{
|
||||
struct Contact2
|
||||
struct Contact3
|
||||
{
|
||||
std::string role;
|
||||
std::string honorific;
|
||||
@@ -65,14 +71,14 @@ namespace AlibabaCloud
|
||||
};
|
||||
struct ConversationDetail
|
||||
{
|
||||
struct SummaryItem
|
||||
struct SummaryItem2
|
||||
{
|
||||
std::string category;
|
||||
std::string content;
|
||||
std::string summaryName;
|
||||
};
|
||||
std::string script;
|
||||
std::vector<ConversationDetail::SummaryItem> summary1;
|
||||
std::vector<ConversationDetail::SummaryItem2> summary1;
|
||||
long timestamp;
|
||||
std::string speaker;
|
||||
};
|
||||
@@ -80,23 +86,17 @@ namespace AlibabaCloud
|
||||
std::string chatbotId;
|
||||
long planedTime;
|
||||
std::string calledNumber;
|
||||
std::string taskId;
|
||||
std::string scenarioId;
|
||||
std::string taskId;
|
||||
long actualTime;
|
||||
std::string callId;
|
||||
std::vector<Task::ConversationDetail> conversation;
|
||||
int duration;
|
||||
std::string brief;
|
||||
std::string callingNumber;
|
||||
Contact2 contact2;
|
||||
Contact3 contact3;
|
||||
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;
|
||||
@@ -106,9 +106,9 @@ namespace AlibabaCloud
|
||||
std::string jobGroupId;
|
||||
std::vector<Job::Contact> contacts;
|
||||
std::string referenceId;
|
||||
int systemPriority;
|
||||
std::string failureReason;
|
||||
std::vector<Job::SummaryItem3> summary;
|
||||
int systemPriority;
|
||||
std::vector<Job::SummaryItem> summary;
|
||||
std::string jobId;
|
||||
std::vector<std::string> callingNumbers;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIAREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIAREQUEST_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 ListMediaRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListMediaRequest();
|
||||
~ListMediaRequest();
|
||||
|
||||
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_LISTMEDIAREQUEST_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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_LISTMEDIARESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIARESULT_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 ListMediaResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Media
|
||||
{
|
||||
std::string mediaId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListMediaResult();
|
||||
explicit ListMediaResult(const std::string &payload);
|
||||
~ListMediaResult();
|
||||
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_LISTMEDIARESULT_H_
|
||||
@@ -42,10 +42,11 @@ namespace AlibabaCloud
|
||||
std::string scriptName;
|
||||
std::string scriptDescription;
|
||||
long updateTime;
|
||||
std::string rejectReason;
|
||||
std::string scriptId;
|
||||
std::string failReason;
|
||||
std::string scene;
|
||||
std::string debugStatus;
|
||||
std::string scene;
|
||||
bool isDebugDrafted;
|
||||
};
|
||||
int totalCount;
|
||||
|
||||
@@ -32,6 +32,13 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListTagsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TagGroup
|
||||
{
|
||||
int tagGroupIndex;
|
||||
std::string tagGroup;
|
||||
std::string tagGroupId;
|
||||
std::string scriptId;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
int tagIndex;
|
||||
@@ -40,13 +47,6 @@ namespace AlibabaCloud
|
||||
std::string tagId;
|
||||
std::string scriptId;
|
||||
};
|
||||
struct TagGroup
|
||||
{
|
||||
int tagGroupIndex;
|
||||
std::string tagGroup;
|
||||
std::string tagGroupId;
|
||||
std::string scriptId;
|
||||
};
|
||||
|
||||
|
||||
ListTagsResult();
|
||||
|
||||
@@ -43,16 +43,16 @@ namespace AlibabaCloud
|
||||
};
|
||||
std::vector<TimeFrame> workingTime;
|
||||
bool isTemplate;
|
||||
std::string repeatBy;
|
||||
int minAttemptInterval;
|
||||
std::string repeatBy;
|
||||
long endTime;
|
||||
std::string strategyId;
|
||||
long startTime;
|
||||
std::string strategyId;
|
||||
std::string followUpStrategy;
|
||||
std::string type;
|
||||
std::string strategyName;
|
||||
std::string strategyDescription;
|
||||
std::string customized;
|
||||
std::string strategyDescription;
|
||||
int maxAttemptsPerDay;
|
||||
std::string routingStrategy;
|
||||
std::vector<std::string> repeatDays;
|
||||
|
||||
@@ -41,8 +41,8 @@ namespace AlibabaCloud
|
||||
int getHttpStatusCode()const;
|
||||
std::string getDialogueFlowId()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getDialogueFlowDefinition()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -51,8 +51,8 @@ namespace AlibabaCloud
|
||||
int httpStatusCode_;
|
||||
std::string dialogueFlowId_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
std::string dialogueFlowDefinition_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -43,16 +43,16 @@ namespace AlibabaCloud
|
||||
};
|
||||
std::vector<TimeFrame> workingTime;
|
||||
bool isTemplate;
|
||||
std::string repeatBy;
|
||||
int minAttemptInterval;
|
||||
std::string repeatBy;
|
||||
long endTime;
|
||||
std::string strategyId;
|
||||
long startTime;
|
||||
std::string strategyId;
|
||||
std::string followUpStrategy;
|
||||
std::string type;
|
||||
std::string strategyName;
|
||||
std::string strategyDescription;
|
||||
std::string customized;
|
||||
std::string strategyDescription;
|
||||
int maxAttemptsPerDay;
|
||||
std::string routingStrategy;
|
||||
std::vector<std::string> repeatDays;
|
||||
|
||||
@@ -41,8 +41,8 @@ namespace AlibabaCloud
|
||||
std::string scriptDescription;
|
||||
long updateTime;
|
||||
std::string scriptId;
|
||||
std::string scene;
|
||||
std::string debugStatus;
|
||||
std::string scene;
|
||||
bool isDebugDrafted;
|
||||
};
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string instanceId;
|
||||
std::string volume;
|
||||
std::string tTSConfigId;
|
||||
std::string scriptId;
|
||||
std::string tTSConfigId;
|
||||
std::string voice;
|
||||
std::string speechRate;
|
||||
};
|
||||
|
||||
@@ -32,6 +32,13 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyTagGroupsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TagGroup
|
||||
{
|
||||
int tagGroupIndex;
|
||||
std::string tagGroup;
|
||||
std::string tagGroupId;
|
||||
std::string scriptId;
|
||||
};
|
||||
struct Tag
|
||||
{
|
||||
int tagIndex;
|
||||
@@ -40,13 +47,6 @@ namespace AlibabaCloud
|
||||
std::string tagId;
|
||||
std::string scriptId;
|
||||
};
|
||||
struct TagGroup
|
||||
{
|
||||
int tagGroupIndex;
|
||||
std::string tagGroup;
|
||||
std::string tagGroupId;
|
||||
std::string scriptId;
|
||||
};
|
||||
|
||||
|
||||
ModifyTagGroupsResult();
|
||||
|
||||
@@ -41,11 +41,14 @@ namespace AlibabaCloud
|
||||
void setScriptId(const std::string& scriptId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
long getInstanceOwnerId()const;
|
||||
void setInstanceOwnerId(long instanceOwnerId);
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
std::string scriptId_;
|
||||
std::string instanceId_;
|
||||
long instanceOwnerId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -52,6 +52,17 @@ namespace AlibabaCloud
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
struct SummaryItem
|
||||
{
|
||||
std::string category;
|
||||
std::string taskId;
|
||||
std::string conversationDetailId;
|
||||
std::string content;
|
||||
std::string summaryId;
|
||||
std::string summaryName;
|
||||
std::string jobId;
|
||||
std::string groupId;
|
||||
};
|
||||
struct Task
|
||||
{
|
||||
struct Contact1
|
||||
@@ -69,8 +80,8 @@ namespace AlibabaCloud
|
||||
std::string chatbotId;
|
||||
long planedTime;
|
||||
std::string calledNumber;
|
||||
std::string taskId;
|
||||
std::string scenarioId;
|
||||
std::string taskId;
|
||||
long actualTime;
|
||||
std::string callId;
|
||||
int duration;
|
||||
@@ -79,17 +90,6 @@ namespace AlibabaCloud
|
||||
Contact1 contact1;
|
||||
std::string jobId;
|
||||
};
|
||||
struct SummaryItem
|
||||
{
|
||||
std::string taskId;
|
||||
std::string category;
|
||||
std::string conversationDetailId;
|
||||
std::string content;
|
||||
std::string summaryId;
|
||||
std::string summaryName;
|
||||
std::string jobId;
|
||||
std::string groupId;
|
||||
};
|
||||
std::string status;
|
||||
std::vector<Job::Task> tasks;
|
||||
std::string scenarioId;
|
||||
|
||||
@@ -35,20 +35,20 @@ namespace AlibabaCloud
|
||||
QueryScriptsByStatusRequest();
|
||||
~QueryScriptsByStatusRequest();
|
||||
|
||||
std::vector<std::string> getStatusList()const;
|
||||
void setStatusList(const std::vector<std::string>& statusList);
|
||||
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 getStatus()const;
|
||||
void setStatus(const std::string& status);
|
||||
|
||||
private:
|
||||
std::vector<std::string> statusList_;
|
||||
int pageNumber_;
|
||||
std::string instanceId_;
|
||||
int pageSize_;
|
||||
std::string status_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -36,17 +36,17 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct Script
|
||||
{
|
||||
std::string debugVersion;
|
||||
std::string industry;
|
||||
std::string status;
|
||||
std::string debugVersion;
|
||||
std::string appliedVersion;
|
||||
bool isDrafted;
|
||||
std::string scriptName;
|
||||
std::string scriptDescription;
|
||||
long updateTime;
|
||||
std::string scriptId;
|
||||
std::string scene;
|
||||
std::string debugStatus;
|
||||
std::string scene;
|
||||
bool isDebugDrafted;
|
||||
};
|
||||
int totalCount;
|
||||
|
||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
void setDispositionCode(const std::string& dispositionCode);
|
||||
std::string getCalledNumber()const;
|
||||
void setCalledNumber(const std::string& calledNumber);
|
||||
std::string getInstanceOwnerId()const;
|
||||
void setInstanceOwnerId(const std::string& instanceOwnerId);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
@@ -57,6 +59,7 @@ namespace AlibabaCloud
|
||||
std::string instanceId_;
|
||||
std::string dispositionCode_;
|
||||
std::string calledNumber_;
|
||||
std::string instanceOwnerId_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTREVIEWREQUEST_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTREVIEWREQUEST_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 WithdrawScriptReviewRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
WithdrawScriptReviewRequest();
|
||||
~WithdrawScriptReviewRequest();
|
||||
|
||||
std::string getScriptId()const;
|
||||
void setScriptId(const std::string& scriptId);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string scriptId_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTREVIEWREQUEST_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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_WITHDRAWSCRIPTREVIEWRESULT_H_
|
||||
#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTREVIEWRESULT_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 WithdrawScriptReviewResult : 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;
|
||||
};
|
||||
|
||||
|
||||
WithdrawScriptReviewResult();
|
||||
explicit WithdrawScriptReviewResult(const std::string &payload);
|
||||
~WithdrawScriptReviewResult();
|
||||
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_WITHDRAWSCRIPTREVIEWRESULT_H_
|
||||
@@ -1059,6 +1059,42 @@ OutboundBotClient::DescribeTTSConfigOutcomeCallable OutboundBotClient::describeT
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::DescribeTagHitsSummaryOutcome OutboundBotClient::describeTagHitsSummary(const DescribeTagHitsSummaryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeTagHitsSummaryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeTagHitsSummaryOutcome(DescribeTagHitsSummaryResult(outcome.result()));
|
||||
else
|
||||
return DescribeTagHitsSummaryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::describeTagHitsSummaryAsync(const DescribeTagHitsSummaryRequest& request, const DescribeTagHitsSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeTagHitsSummary(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::DescribeTagHitsSummaryOutcomeCallable OutboundBotClient::describeTagHitsSummaryCallable(const DescribeTagHitsSummaryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeTagHitsSummaryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeTagHitsSummary(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::DialogueOutcome OutboundBotClient::dialogue(const DialogueRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1887,6 +1923,42 @@ OutboundBotClient::ListJobsByGroupOutcomeCallable OutboundBotClient::listJobsByG
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::ListMediaOutcome OutboundBotClient::listMedia(const ListMediaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListMediaOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListMediaOutcome(ListMediaResult(outcome.result()));
|
||||
else
|
||||
return ListMediaOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::listMediaAsync(const ListMediaRequest& request, const ListMediaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listMedia(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::ListMediaOutcomeCallable OutboundBotClient::listMediaCallable(const ListMediaRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListMediaOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listMedia(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::ListMediasOutcome OutboundBotClient::listMedias(const ListMediasRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3075,3 +3147,39 @@ OutboundBotClient::WithdrawScriptOutcomeCallable OutboundBotClient::withdrawScri
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OutboundBotClient::WithdrawScriptReviewOutcome OutboundBotClient::withdrawScriptReview(const WithdrawScriptReviewRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return WithdrawScriptReviewOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return WithdrawScriptReviewOutcome(WithdrawScriptReviewResult(outcome.result()));
|
||||
else
|
||||
return WithdrawScriptReviewOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OutboundBotClient::withdrawScriptReviewAsync(const WithdrawScriptReviewRequest& request, const WithdrawScriptReviewAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, withdrawScriptReview(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OutboundBotClient::WithdrawScriptReviewOutcomeCallable OutboundBotClient::withdrawScriptReviewCallable(const WithdrawScriptReviewRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<WithdrawScriptReviewOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->withdrawScriptReview(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void AssignJobsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["JobGroupId"].isNull())
|
||||
jobGroupId_ = value["JobGroupId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CancelJobsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -42,43 +42,43 @@ void CreateBatchJobsResult::parse(const std::string &payload)
|
||||
auto batchJobNode = value["BatchJob"];
|
||||
if(!batchJobNode["BatchJobId"].isNull())
|
||||
batchJob_.batchJobId = batchJobNode["BatchJobId"].asString();
|
||||
if(!batchJobNode["JobGroupName"].isNull())
|
||||
batchJob_.jobGroupName = batchJobNode["JobGroupName"].asString();
|
||||
if(!batchJobNode["JobGroupDescription"].isNull())
|
||||
batchJob_.jobGroupDescription = batchJobNode["JobGroupDescription"].asString();
|
||||
if(!batchJobNode["ScenarioId"].isNull())
|
||||
batchJob_.scenarioId = batchJobNode["ScenarioId"].asString();
|
||||
if(!batchJobNode["JobFilePath"].isNull())
|
||||
batchJob_.jobFilePath = batchJobNode["JobFilePath"].asString();
|
||||
if(!batchJobNode["CreationTime"].isNull())
|
||||
batchJob_.creationTime = std::stol(batchJobNode["CreationTime"].asString());
|
||||
if(!batchJobNode["JobFilePath"].isNull())
|
||||
batchJob_.jobFilePath = batchJobNode["JobFilePath"].asString();
|
||||
if(!batchJobNode["JobGroupDescription"].isNull())
|
||||
batchJob_.jobGroupDescription = batchJobNode["JobGroupDescription"].asString();
|
||||
if(!batchJobNode["JobGroupName"].isNull())
|
||||
batchJob_.jobGroupName = batchJobNode["JobGroupName"].asString();
|
||||
if(!batchJobNode["ScenarioId"].isNull())
|
||||
batchJob_.scenarioId = batchJobNode["ScenarioId"].asString();
|
||||
auto strategyNode = batchJobNode["Strategy"];
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
batchJob_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
batchJob_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
batchJob_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
batchJob_.strategy.type = strategyNode["Type"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
batchJob_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
batchJob_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
batchJob_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
batchJob_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
batchJob_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["Customized"].isNull())
|
||||
batchJob_.strategy.customized = strategyNode["Customized"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
batchJob_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
batchJob_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
batchJob_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
batchJob_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
batchJob_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
batchJob_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
batchJob_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
batchJob_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
batchJob_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
batchJob_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
batchJob_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
batchJob_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
batchJob_.strategy.type = strategyNode["Type"].asString();
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
@@ -95,14 +95,14 @@ void CreateBatchJobsResult::parse(const std::string &payload)
|
||||
auto allCallingNumbers = batchJobNode["CallingNumbers"]["String"];
|
||||
for (auto value : allCallingNumbers)
|
||||
batchJob_.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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateDialogueFlowResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["DialogueFlowId"].isNull())
|
||||
dialogueFlowId_ = value["DialogueFlowId"].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";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateGlobalQuestionResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["GlobalQuestionId"].isNull())
|
||||
globalQuestionId_ = value["GlobalQuestionId"].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";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void CreateInstanceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto instanceNode = value["Instance"];
|
||||
if(!instanceNode["CallCenterInstanceId"].isNull())
|
||||
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString();
|
||||
if(!instanceNode["CreationTime"].isNull())
|
||||
instance_.creationTime = std::stol(instanceNode["CreationTime"].asString());
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
if(!instanceNode["InstanceId"].isNull())
|
||||
instance_.instanceId = instanceNode["InstanceId"].asString();
|
||||
if(!instanceNode["InstanceName"].isNull())
|
||||
instance_.instanceName = instanceNode["InstanceName"].asString();
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
if(!instanceNode["MaxConcurrentConversation"].isNull())
|
||||
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
|
||||
if(!instanceNode["Owner"].isNull())
|
||||
instance_.owner = instanceNode["Owner"].asString();
|
||||
if(!instanceNode["CreationTime"].isNull())
|
||||
instance_.creationTime = std::stol(instanceNode["CreationTime"].asString());
|
||||
if(!instanceNode["CallCenterInstanceId"].isNull())
|
||||
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateIntentResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["IntentId"].isNull())
|
||||
intentId_ = value["IntentId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,45 +40,45 @@ void CreateJobGroupResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobGroupNode = value["JobGroup"];
|
||||
if(!jobGroupNode["CreationTime"].isNull())
|
||||
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
|
||||
if(!jobGroupNode["JobFilePath"].isNull())
|
||||
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
|
||||
if(!jobGroupNode["JobGroupDescription"].isNull())
|
||||
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
|
||||
if(!jobGroupNode["JobGroupId"].isNull())
|
||||
jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString();
|
||||
if(!jobGroupNode["JobGroupName"].isNull())
|
||||
jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString();
|
||||
if(!jobGroupNode["JobGroupDescription"].isNull())
|
||||
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
|
||||
if(!jobGroupNode["ScenarioId"].isNull())
|
||||
jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString();
|
||||
if(!jobGroupNode["JobFilePath"].isNull())
|
||||
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
|
||||
if(!jobGroupNode["CreationTime"].isNull())
|
||||
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
|
||||
auto strategyNode = jobGroupNode["Strategy"];
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroup_.strategy.type = strategyNode["Type"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["Customized"].isNull())
|
||||
jobGroup_.strategy.customized = strategyNode["Customized"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroup_.strategy.type = strategyNode["Type"].asString();
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
@@ -95,14 +95,14 @@ void CreateJobGroupResult::parse(const std::string &payload)
|
||||
auto allCallingNumbers = jobGroupNode["CallingNumbers"]["String"];
|
||||
for (auto value : allCallingNumbers)
|
||||
jobGroup_.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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateOutboundCallNumberResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["OutboundCallNumberId"].isNull())
|
||||
outboundCallNumberId_ = value["OutboundCallNumberId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,34 +40,34 @@ void CreateScriptResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptNode = value["Script"];
|
||||
if(!scriptNode["DebugStatus"].isNull())
|
||||
script_.debugStatus = scriptNode["DebugStatus"].asString();
|
||||
if(!scriptNode["Industry"].isNull())
|
||||
script_.industry = scriptNode["Industry"].asString();
|
||||
if(!scriptNode["IsDebugDrafted"].isNull())
|
||||
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
|
||||
if(!scriptNode["IsDrafted"].isNull())
|
||||
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
|
||||
if(!scriptNode["Scene"].isNull())
|
||||
script_.scene = scriptNode["Scene"].asString();
|
||||
if(!scriptNode["ScriptDescription"].isNull())
|
||||
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
|
||||
if(!scriptNode["ScriptId"].isNull())
|
||||
script_.scriptId = scriptNode["ScriptId"].asString();
|
||||
if(!scriptNode["ScriptName"].isNull())
|
||||
script_.scriptName = scriptNode["ScriptName"].asString();
|
||||
if(!scriptNode["ScriptDescription"].isNull())
|
||||
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
|
||||
if(!scriptNode["Industry"].isNull())
|
||||
script_.industry = scriptNode["Industry"].asString();
|
||||
if(!scriptNode["Scene"].isNull())
|
||||
script_.scene = scriptNode["Scene"].asString();
|
||||
if(!scriptNode["Status"].isNull())
|
||||
script_.status = scriptNode["Status"].asString();
|
||||
if(!scriptNode["DebugStatus"].isNull())
|
||||
script_.debugStatus = scriptNode["DebugStatus"].asString();
|
||||
if(!scriptNode["UpdateTime"].isNull())
|
||||
script_.updateTime = std::stol(scriptNode["UpdateTime"].asString());
|
||||
if(!scriptNode["IsDrafted"].isNull())
|
||||
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
|
||||
if(!scriptNode["IsDebugDrafted"].isNull())
|
||||
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void CreateScriptWaveformResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ScriptWaveformId"].isNull())
|
||||
scriptWaveformId_ = value["ScriptWaveformId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateTagResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TagId"].isNull())
|
||||
tagId_ = value["TagId"].asString();
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteDialogueFlowResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteGlobalQuestionResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteInstanceResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteIntentResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteJobGroupResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteOutboundCallNumberResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteScriptResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteScriptWaveformResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,26 +40,26 @@ void DescribeGlobalQuestionResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto globalQuestionNode = value["GlobalQuestion"];
|
||||
if(!globalQuestionNode["Answers"].isNull())
|
||||
globalQuestion_.answers = globalQuestionNode["Answers"].asString();
|
||||
if(!globalQuestionNode["GlobalQuestionId"].isNull())
|
||||
globalQuestion_.globalQuestionId = globalQuestionNode["GlobalQuestionId"].asString();
|
||||
if(!globalQuestionNode["ScriptId"].isNull())
|
||||
globalQuestion_.scriptId = globalQuestionNode["ScriptId"].asString();
|
||||
if(!globalQuestionNode["GlobalQuestionName"].isNull())
|
||||
globalQuestion_.globalQuestionName = globalQuestionNode["GlobalQuestionName"].asString();
|
||||
if(!globalQuestionNode["GlobalQuestionType"].isNull())
|
||||
globalQuestion_.globalQuestionType = globalQuestionNode["GlobalQuestionType"].asString();
|
||||
if(!globalQuestionNode["Questions"].isNull())
|
||||
globalQuestion_.questions = globalQuestionNode["Questions"].asString();
|
||||
if(!globalQuestionNode["Answers"].isNull())
|
||||
globalQuestion_.answers = globalQuestionNode["Answers"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!globalQuestionNode["ScriptId"].isNull())
|
||||
globalQuestion_.scriptId = globalQuestionNode["ScriptId"].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";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void DescribeInstanceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto instanceNode = value["Instance"];
|
||||
if(!instanceNode["CallCenterInstanceId"].isNull())
|
||||
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString();
|
||||
if(!instanceNode["CreationTime"].isNull())
|
||||
instance_.creationTime = std::stol(instanceNode["CreationTime"].asString());
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
if(!instanceNode["InstanceId"].isNull())
|
||||
instance_.instanceId = instanceNode["InstanceId"].asString();
|
||||
if(!instanceNode["InstanceName"].isNull())
|
||||
instance_.instanceName = instanceNode["InstanceName"].asString();
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
if(!instanceNode["MaxConcurrentConversation"].isNull())
|
||||
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
|
||||
if(!instanceNode["Owner"].isNull())
|
||||
instance_.owner = instanceNode["Owner"].asString();
|
||||
if(!instanceNode["CreationTime"].isNull())
|
||||
instance_.creationTime = std::stol(instanceNode["CreationTime"].asString());
|
||||
if(!instanceNode["CallCenterInstanceId"].isNull())
|
||||
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,30 +40,30 @@ void DescribeIntentResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto intentNode = value["Intent"];
|
||||
if(!intentNode["IntentId"].isNull())
|
||||
intent_.intentId = intentNode["IntentId"].asString();
|
||||
if(!intentNode["ScriptId"].isNull())
|
||||
intent_.scriptId = intentNode["ScriptId"].asString();
|
||||
if(!intentNode["IntentName"].isNull())
|
||||
intent_.intentName = intentNode["IntentName"].asString();
|
||||
if(!intentNode["IntentDescription"].isNull())
|
||||
intent_.intentDescription = intentNode["IntentDescription"].asString();
|
||||
if(!intentNode["Utterances"].isNull())
|
||||
intent_.utterances = intentNode["Utterances"].asString();
|
||||
if(!intentNode["Keywords"].isNull())
|
||||
intent_.keywords = intentNode["Keywords"].asString();
|
||||
if(!intentNode["CreateTime"].isNull())
|
||||
intent_.createTime = std::stol(intentNode["CreateTime"].asString());
|
||||
if(!intentNode["IntentDescription"].isNull())
|
||||
intent_.intentDescription = intentNode["IntentDescription"].asString();
|
||||
if(!intentNode["IntentId"].isNull())
|
||||
intent_.intentId = intentNode["IntentId"].asString();
|
||||
if(!intentNode["IntentName"].isNull())
|
||||
intent_.intentName = intentNode["IntentName"].asString();
|
||||
if(!intentNode["Keywords"].isNull())
|
||||
intent_.keywords = intentNode["Keywords"].asString();
|
||||
if(!intentNode["ScriptId"].isNull())
|
||||
intent_.scriptId = intentNode["ScriptId"].asString();
|
||||
if(!intentNode["UpdateTime"].isNull())
|
||||
intent_.updateTime = std::stol(intentNode["UpdateTime"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!intentNode["Utterances"].isNull())
|
||||
intent_.utterances = intentNode["Utterances"].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";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,49 +40,92 @@ void DescribeJobGroupResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobGroupNode = value["JobGroup"];
|
||||
if(!jobGroupNode["CreationTime"].isNull())
|
||||
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
|
||||
if(!jobGroupNode["JobFilePath"].isNull())
|
||||
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
|
||||
if(!jobGroupNode["JobGroupDescription"].isNull())
|
||||
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
|
||||
if(!jobGroupNode["JobGroupId"].isNull())
|
||||
jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString();
|
||||
if(!jobGroupNode["JobGroupName"].isNull())
|
||||
jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString();
|
||||
if(!jobGroupNode["JobGroupDescription"].isNull())
|
||||
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
|
||||
if(!jobGroupNode["ScenarioId"].isNull())
|
||||
jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString();
|
||||
if(!jobGroupNode["ScriptId"].isNull())
|
||||
jobGroup_.scriptId = jobGroupNode["ScriptId"].asString();
|
||||
if(!jobGroupNode["ScriptName"].isNull())
|
||||
jobGroup_.scriptName = jobGroupNode["ScriptName"].asString();
|
||||
if(!jobGroupNode["JobFilePath"].isNull())
|
||||
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
|
||||
if(!jobGroupNode["CreationTime"].isNull())
|
||||
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
|
||||
auto progressNode = jobGroupNode["Progress"];
|
||||
if(!progressNode["Cancelled"].isNull())
|
||||
jobGroup_.progress.cancelled = std::stoi(progressNode["Cancelled"].asString());
|
||||
if(!progressNode["Duration"].isNull())
|
||||
jobGroup_.progress.duration = std::stoi(progressNode["Duration"].asString());
|
||||
if(!progressNode["Executing"].isNull())
|
||||
jobGroup_.progress.executing = std::stoi(progressNode["Executing"].asString());
|
||||
if(!progressNode["Failed"].isNull())
|
||||
jobGroup_.progress.failed = std::stoi(progressNode["Failed"].asString());
|
||||
if(!progressNode["Paused"].isNull())
|
||||
jobGroup_.progress.paused = std::stoi(progressNode["Paused"].asString());
|
||||
if(!progressNode["Scheduling"].isNull())
|
||||
jobGroup_.progress.scheduling = std::stoi(progressNode["Scheduling"].asString());
|
||||
if(!progressNode["StartTime"].isNull())
|
||||
jobGroup_.progress.startTime = std::stol(progressNode["StartTime"].asString());
|
||||
if(!progressNode["Status"].isNull())
|
||||
jobGroup_.progress.status = progressNode["Status"].asString();
|
||||
if(!progressNode["TotalCompleted"].isNull())
|
||||
jobGroup_.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString());
|
||||
if(!progressNode["TotalJobs"].isNull())
|
||||
jobGroup_.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString());
|
||||
if(!progressNode["TotalNotAnswered"].isNull())
|
||||
jobGroup_.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString());
|
||||
auto allBriefsNode = progressNode["Briefs"]["KeyValuePair"];
|
||||
for (auto progressNodeBriefsKeyValuePair : allBriefsNode)
|
||||
{
|
||||
JobGroup::Progress::KeyValuePair keyValuePairObject;
|
||||
if(!progressNodeBriefsKeyValuePair["Key"].isNull())
|
||||
keyValuePairObject.key = progressNodeBriefsKeyValuePair["Key"].asString();
|
||||
if(!progressNodeBriefsKeyValuePair["Value"].isNull())
|
||||
keyValuePairObject.value = progressNodeBriefsKeyValuePair["Value"].asString();
|
||||
jobGroup_.progress.briefs.push_back(keyValuePairObject);
|
||||
}
|
||||
auto allCategoriesNode = progressNode["Categories"]["KeyValuePair"];
|
||||
for (auto progressNodeCategoriesKeyValuePair : allCategoriesNode)
|
||||
{
|
||||
JobGroup::Progress::KeyValuePair keyValuePairObject;
|
||||
if(!progressNodeCategoriesKeyValuePair["Key"].isNull())
|
||||
keyValuePairObject.key = progressNodeCategoriesKeyValuePair["Key"].asString();
|
||||
if(!progressNodeCategoriesKeyValuePair["Value"].isNull())
|
||||
keyValuePairObject.value = progressNodeCategoriesKeyValuePair["Value"].asString();
|
||||
jobGroup_.progress.categories.push_back(keyValuePairObject);
|
||||
}
|
||||
auto strategyNode = jobGroupNode["Strategy"];
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroup_.strategy.type = strategyNode["Type"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["Customized"].isNull())
|
||||
jobGroup_.strategy.customized = strategyNode["Customized"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroup_.strategy.type = strategyNode["Type"].asString();
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
@@ -96,60 +139,17 @@ void DescribeJobGroupResult::parse(const std::string &payload)
|
||||
auto allRepeatDays = strategyNode["RepeatDays"]["Integer"];
|
||||
for (auto value : allRepeatDays)
|
||||
jobGroup_.strategy.repeatDays.push_back(value.asString());
|
||||
auto progressNode = jobGroupNode["Progress"];
|
||||
if(!progressNode["TotalJobs"].isNull())
|
||||
jobGroup_.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString());
|
||||
if(!progressNode["Status"].isNull())
|
||||
jobGroup_.progress.status = progressNode["Status"].asString();
|
||||
if(!progressNode["TotalNotAnswered"].isNull())
|
||||
jobGroup_.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString());
|
||||
if(!progressNode["TotalCompleted"].isNull())
|
||||
jobGroup_.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString());
|
||||
if(!progressNode["StartTime"].isNull())
|
||||
jobGroup_.progress.startTime = std::stol(progressNode["StartTime"].asString());
|
||||
if(!progressNode["Duration"].isNull())
|
||||
jobGroup_.progress.duration = std::stoi(progressNode["Duration"].asString());
|
||||
if(!progressNode["Scheduling"].isNull())
|
||||
jobGroup_.progress.scheduling = std::stoi(progressNode["Scheduling"].asString());
|
||||
if(!progressNode["Executing"].isNull())
|
||||
jobGroup_.progress.executing = std::stoi(progressNode["Executing"].asString());
|
||||
if(!progressNode["Paused"].isNull())
|
||||
jobGroup_.progress.paused = std::stoi(progressNode["Paused"].asString());
|
||||
if(!progressNode["Failed"].isNull())
|
||||
jobGroup_.progress.failed = std::stoi(progressNode["Failed"].asString());
|
||||
if(!progressNode["Cancelled"].isNull())
|
||||
jobGroup_.progress.cancelled = std::stoi(progressNode["Cancelled"].asString());
|
||||
auto allCategoriesNode = progressNode["Categories"]["KeyValuePair"];
|
||||
for (auto progressNodeCategoriesKeyValuePair : allCategoriesNode)
|
||||
{
|
||||
JobGroup::Progress::KeyValuePair keyValuePairObject;
|
||||
if(!progressNodeCategoriesKeyValuePair["Key"].isNull())
|
||||
keyValuePairObject.key = progressNodeCategoriesKeyValuePair["Key"].asString();
|
||||
if(!progressNodeCategoriesKeyValuePair["Value"].isNull())
|
||||
keyValuePairObject.value = progressNodeCategoriesKeyValuePair["Value"].asString();
|
||||
jobGroup_.progress.categories.push_back(keyValuePairObject);
|
||||
}
|
||||
auto allBriefsNode = progressNode["Briefs"]["KeyValuePair"];
|
||||
for (auto progressNodeBriefsKeyValuePair : allBriefsNode)
|
||||
{
|
||||
JobGroup::Progress::KeyValuePair keyValuePairObject;
|
||||
if(!progressNodeBriefsKeyValuePair["Key"].isNull())
|
||||
keyValuePairObject.key = progressNodeBriefsKeyValuePair["Key"].asString();
|
||||
if(!progressNodeBriefsKeyValuePair["Value"].isNull())
|
||||
keyValuePairObject.value = progressNodeBriefsKeyValuePair["Value"].asString();
|
||||
jobGroup_.progress.briefs.push_back(keyValuePairObject);
|
||||
}
|
||||
auto allCallingNumbers = jobGroupNode["CallingNumbers"]["String"];
|
||||
for (auto value : allCallingNumbers)
|
||||
jobGroup_.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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,24 +40,24 @@ void DescribeJobResult::parse(const std::string &payload)
|
||||
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["SystemPriority"].isNull())
|
||||
job_.systemPriority = std::stoi(jobNode["SystemPriority"].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();
|
||||
if(!jobNode["JobGroupId"].isNull())
|
||||
job_.jobGroupId = jobNode["JobGroupId"].asString();
|
||||
if(!jobNode["JobId"].isNull())
|
||||
job_.jobId = jobNode["JobId"].asString();
|
||||
if(!jobNode["Priority"].isNull())
|
||||
job_.priority = std::stoi(jobNode["Priority"].asString());
|
||||
if(!jobNode["ReferenceId"].isNull())
|
||||
job_.referenceId = jobNode["ReferenceId"].asString();
|
||||
if(!jobNode["ScenarioId"].isNull())
|
||||
job_.scenarioId = jobNode["ScenarioId"].asString();
|
||||
if(!jobNode["Status"].isNull())
|
||||
job_.status = jobNode["Status"].asString();
|
||||
if(!jobNode["StrategyId"].isNull())
|
||||
job_.strategyId = jobNode["StrategyId"].asString();
|
||||
if(!jobNode["SystemPriority"].isNull())
|
||||
job_.systemPriority = std::stoi(jobNode["SystemPriority"].asString());
|
||||
auto allContactsNode = jobNode["Contacts"]["Contact"];
|
||||
for (auto jobNodeContactsContact : allContactsNode)
|
||||
{
|
||||
@@ -68,16 +68,16 @@ void DescribeJobResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!jobNodeContactsContact["PhoneNumber"].isNull())
|
||||
contactObject.phoneNumber = jobNodeContactsContact["PhoneNumber"].asString();
|
||||
if(!jobNodeContactsContact["ReferenceId"].isNull())
|
||||
contactObject.referenceId = jobNodeContactsContact["ReferenceId"].asString();
|
||||
if(!jobNodeContactsContact["Role"].isNull())
|
||||
contactObject.role = jobNodeContactsContact["Role"].asString();
|
||||
if(!jobNodeContactsContact["State"].isNull())
|
||||
contactObject.state = jobNodeContactsContact["State"].asString();
|
||||
job_.contacts.push_back(contactObject);
|
||||
}
|
||||
auto allExtrasNode = jobNode["Extras"]["KeyValuePair"];
|
||||
@@ -90,100 +90,100 @@ void DescribeJobResult::parse(const std::string &payload)
|
||||
keyValuePairObject.value = jobNodeExtrasKeyValuePair["Value"].asString();
|
||||
job_.extras.push_back(keyValuePairObject);
|
||||
}
|
||||
auto allSummaryNode = jobNode["Summary"]["SummaryItem"];
|
||||
for (auto jobNodeSummarySummaryItem : allSummaryNode)
|
||||
{
|
||||
Job::SummaryItem summaryItemObject;
|
||||
if(!jobNodeSummarySummaryItem["Category"].isNull())
|
||||
summaryItemObject.category = jobNodeSummarySummaryItem["Category"].asString();
|
||||
if(!jobNodeSummarySummaryItem["Content"].isNull())
|
||||
summaryItemObject.content = jobNodeSummarySummaryItem["Content"].asString();
|
||||
if(!jobNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summaryItemObject.summaryName = jobNodeSummarySummaryItem["SummaryName"].asString();
|
||||
job_.summary.push_back(summaryItemObject);
|
||||
}
|
||||
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["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["CallId"].isNull())
|
||||
taskObject.callId = jobNodeTasksTask["CallId"].asString();
|
||||
if(!jobNodeTasksTask["CalledNumber"].isNull())
|
||||
taskObject.calledNumber = jobNodeTasksTask["CalledNumber"].asString();
|
||||
if(!jobNodeTasksTask["CallingNumber"].isNull())
|
||||
taskObject.callingNumber = jobNodeTasksTask["CallingNumber"].asString();
|
||||
if(!jobNodeTasksTask["ChatbotId"].isNull())
|
||||
taskObject.chatbotId = jobNodeTasksTask["ChatbotId"].asString();
|
||||
if(!jobNodeTasksTask["Duration"].isNull())
|
||||
taskObject.duration = std::stoi(jobNodeTasksTask["Duration"].asString());
|
||||
if(!jobNodeTasksTask["JobId"].isNull())
|
||||
taskObject.jobId = jobNodeTasksTask["JobId"].asString();
|
||||
if(!jobNodeTasksTask["PlanedTime"].isNull())
|
||||
taskObject.planedTime = std::stol(jobNodeTasksTask["PlanedTime"].asString());
|
||||
if(!jobNodeTasksTask["ScenarioId"].isNull())
|
||||
taskObject.scenarioId = jobNodeTasksTask["ScenarioId"].asString();
|
||||
if(!jobNodeTasksTask["Status"].isNull())
|
||||
taskObject.status = jobNodeTasksTask["Status"].asString();
|
||||
if(!jobNodeTasksTask["TaskId"].isNull())
|
||||
taskObject.taskId = jobNodeTasksTask["TaskId"].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();
|
||||
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)
|
||||
{
|
||||
Job::Task::ConversationDetail::SummaryItem summary1Object;
|
||||
Job::Task::ConversationDetail::SummaryItem2 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();
|
||||
if(!allConversationNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summary1Object.summaryName = allConversationNodeSummarySummaryItem["SummaryName"].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();
|
||||
auto contact3Node = value["Contact"];
|
||||
if(!contact3Node["ContactId"].isNull())
|
||||
taskObject.contact3.contactId = contact3Node["ContactId"].asString();
|
||||
if(!contact3Node["ContactName"].isNull())
|
||||
taskObject.contact3.contactName = contact3Node["ContactName"].asString();
|
||||
if(!contact3Node["Honorific"].isNull())
|
||||
taskObject.contact3.honorific = contact3Node["Honorific"].asString();
|
||||
if(!contact3Node["JobId"].isNull())
|
||||
taskObject.contact3.jobId = contact3Node["JobId"].asString();
|
||||
if(!contact3Node["PhoneNumber"].isNull())
|
||||
taskObject.contact3.phoneNumber = contact3Node["PhoneNumber"].asString();
|
||||
if(!contact3Node["ReferenceId"].isNull())
|
||||
taskObject.contact3.referenceId = contact3Node["ReferenceId"].asString();
|
||||
if(!contact3Node["Role"].isNull())
|
||||
taskObject.contact3.role = contact3Node["Role"].asString();
|
||||
if(!contact3Node["State"].isNull())
|
||||
taskObject.contact3.state = contact3Node["State"].asString();
|
||||
job_.tasks.push_back(taskObject);
|
||||
}
|
||||
auto allSummaryNode = jobNode["Summary"]["SummaryItem"];
|
||||
for (auto jobNodeSummarySummaryItem : allSummaryNode)
|
||||
{
|
||||
Job::SummaryItem3 summaryItem3Object;
|
||||
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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,34 +40,34 @@ void DescribeScriptResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptNode = value["Script"];
|
||||
if(!scriptNode["DebugStatus"].isNull())
|
||||
script_.debugStatus = scriptNode["DebugStatus"].asString();
|
||||
if(!scriptNode["Industry"].isNull())
|
||||
script_.industry = scriptNode["Industry"].asString();
|
||||
if(!scriptNode["IsDebugDrafted"].isNull())
|
||||
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
|
||||
if(!scriptNode["IsDrafted"].isNull())
|
||||
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
|
||||
if(!scriptNode["Scene"].isNull())
|
||||
script_.scene = scriptNode["Scene"].asString();
|
||||
if(!scriptNode["ScriptDescription"].isNull())
|
||||
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
|
||||
if(!scriptNode["ScriptId"].isNull())
|
||||
script_.scriptId = scriptNode["ScriptId"].asString();
|
||||
if(!scriptNode["ScriptName"].isNull())
|
||||
script_.scriptName = scriptNode["ScriptName"].asString();
|
||||
if(!scriptNode["ScriptDescription"].isNull())
|
||||
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
|
||||
if(!scriptNode["Industry"].isNull())
|
||||
script_.industry = scriptNode["Industry"].asString();
|
||||
if(!scriptNode["Scene"].isNull())
|
||||
script_.scene = scriptNode["Scene"].asString();
|
||||
if(!scriptNode["Status"].isNull())
|
||||
script_.status = scriptNode["Status"].asString();
|
||||
if(!scriptNode["DebugStatus"].isNull())
|
||||
script_.debugStatus = scriptNode["DebugStatus"].asString();
|
||||
if(!scriptNode["UpdateTime"].isNull())
|
||||
script_.updateTime = std::stol(scriptNode["UpdateTime"].asString());
|
||||
if(!scriptNode["IsDrafted"].isNull())
|
||||
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
|
||||
if(!scriptNode["IsDebugDrafted"].isNull())
|
||||
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void DescribeScriptVoiceConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptVoiceConfigNode = value["ScriptVoiceConfig"];
|
||||
if(!scriptVoiceConfigNode["ScriptVoiceConfigId"].isNull())
|
||||
scriptVoiceConfig_.scriptVoiceConfigId = scriptVoiceConfigNode["ScriptVoiceConfigId"].asString();
|
||||
if(!scriptVoiceConfigNode["InstanceId"].isNull())
|
||||
scriptVoiceConfig_.instanceId = scriptVoiceConfigNode["InstanceId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptId"].isNull())
|
||||
scriptVoiceConfig_.scriptId = scriptVoiceConfigNode["ScriptId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptContent"].isNull())
|
||||
scriptVoiceConfig_.scriptContent = scriptVoiceConfigNode["ScriptContent"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptId"].isNull())
|
||||
scriptVoiceConfig_.scriptId = scriptVoiceConfigNode["ScriptId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptVoiceConfigId"].isNull())
|
||||
scriptVoiceConfig_.scriptVoiceConfigId = scriptVoiceConfigNode["ScriptVoiceConfigId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptWaveformRelation"].isNull())
|
||||
scriptVoiceConfig_.scriptWaveformRelation = scriptVoiceConfigNode["ScriptWaveformRelation"].asString();
|
||||
if(!scriptVoiceConfigNode["Source"].isNull())
|
||||
scriptVoiceConfig_.source = scriptVoiceConfigNode["Source"].asString();
|
||||
if(!scriptVoiceConfigNode["Type"].isNull())
|
||||
scriptVoiceConfig_.type = scriptVoiceConfigNode["Type"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptWaveformRelation"].isNull())
|
||||
scriptVoiceConfig_.scriptWaveformRelation = scriptVoiceConfigNode["ScriptWaveformRelation"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -42,24 +42,24 @@ void DescribeTTSConfigResult::parse(const std::string &payload)
|
||||
auto tTSConfigNode = value["TTSConfig"];
|
||||
if(!tTSConfigNode["Id"].isNull())
|
||||
tTSConfig_.id = tTSConfigNode["Id"].asString();
|
||||
if(!tTSConfigNode["ScriptId"].isNull())
|
||||
tTSConfig_.scriptId = tTSConfigNode["ScriptId"].asString();
|
||||
if(!tTSConfigNode["InstanceId"].isNull())
|
||||
tTSConfig_.instanceId = tTSConfigNode["InstanceId"].asString();
|
||||
if(!tTSConfigNode["Voice"].isNull())
|
||||
tTSConfig_.voice = tTSConfigNode["Voice"].asString();
|
||||
if(!tTSConfigNode["ScriptId"].isNull())
|
||||
tTSConfig_.scriptId = tTSConfigNode["ScriptId"].asString();
|
||||
if(!tTSConfigNode["SpeechRate"].isNull())
|
||||
tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString();
|
||||
if(!tTSConfigNode["Voice"].isNull())
|
||||
tTSConfig_.voice = tTSConfigNode["Voice"].asString();
|
||||
if(!tTSConfigNode["Volume"].isNull())
|
||||
tTSConfig_.volume = tTSConfigNode["Volume"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
51
outboundbot/src/model/DescribeTagHitsSummaryRequest.cc
Normal file
51
outboundbot/src/model/DescribeTagHitsSummaryRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/outboundbot/model/DescribeTagHitsSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::DescribeTagHitsSummaryRequest;
|
||||
|
||||
DescribeTagHitsSummaryRequest::DescribeTagHitsSummaryRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTagHitsSummary")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeTagHitsSummaryRequest::~DescribeTagHitsSummaryRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTagHitsSummaryRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeTagHitsSummaryRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DescribeTagHitsSummaryRequest::getJobGroupId()const
|
||||
{
|
||||
return jobGroupId_;
|
||||
}
|
||||
|
||||
void DescribeTagHitsSummaryRequest::setJobGroupId(const std::string& jobGroupId)
|
||||
{
|
||||
jobGroupId_ = jobGroupId;
|
||||
setParameter("JobGroupId", jobGroupId);
|
||||
}
|
||||
|
||||
108
outboundbot/src/model/DescribeTagHitsSummaryResult.cc
Normal file
108
outboundbot/src/model/DescribeTagHitsSummaryResult.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/DescribeTagHitsSummaryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
DescribeTagHitsSummaryResult::DescribeTagHitsSummaryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTagHitsSummaryResult::DescribeTagHitsSummaryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTagHitsSummaryResult::~DescribeTagHitsSummaryResult()
|
||||
{}
|
||||
|
||||
void DescribeTagHitsSummaryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagGroupsNode = value["TagGroups"]["TagGroup"];
|
||||
for (auto valueTagGroupsTagGroup : allTagGroupsNode)
|
||||
{
|
||||
TagGroup tagGroupsObject;
|
||||
if(!valueTagGroupsTagGroup["Id"].isNull())
|
||||
tagGroupsObject.id = valueTagGroupsTagGroup["Id"].asString();
|
||||
if(!valueTagGroupsTagGroup["ScriptId"].isNull())
|
||||
tagGroupsObject.scriptId = valueTagGroupsTagGroup["ScriptId"].asString();
|
||||
if(!valueTagGroupsTagGroup["TagGroup"].isNull())
|
||||
tagGroupsObject.tagGroup = valueTagGroupsTagGroup["TagGroup"].asString();
|
||||
if(!valueTagGroupsTagGroup["TagGroupIndex"].isNull())
|
||||
tagGroupsObject.tagGroupIndex = std::stoi(valueTagGroupsTagGroup["TagGroupIndex"].asString());
|
||||
tagGroups_.push_back(tagGroupsObject);
|
||||
}
|
||||
auto allTagHitsListNode = value["TagHitsList"]["TagHits"];
|
||||
for (auto valueTagHitsListTagHits : allTagHitsListNode)
|
||||
{
|
||||
TagHits tagHitsListObject;
|
||||
if(!valueTagHitsListTagHits["HitCount"].isNull())
|
||||
tagHitsListObject.hitCount = std::stoi(valueTagHitsListTagHits["HitCount"].asString());
|
||||
if(!valueTagHitsListTagHits["TagGroup"].isNull())
|
||||
tagHitsListObject.tagGroup = valueTagHitsListTagHits["TagGroup"].asString();
|
||||
if(!valueTagHitsListTagHits["TagName"].isNull())
|
||||
tagHitsListObject.tagName = valueTagHitsListTagHits["TagName"].asString();
|
||||
tagHitsList_.push_back(tagHitsListObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].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";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeTagHitsSummaryResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<DescribeTagHitsSummaryResult::TagGroup> DescribeTagHitsSummaryResult::getTagGroups()const
|
||||
{
|
||||
return tagGroups_;
|
||||
}
|
||||
|
||||
int DescribeTagHitsSummaryResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<DescribeTagHitsSummaryResult::TagHits> DescribeTagHitsSummaryResult::getTagHitsList()const
|
||||
{
|
||||
return tagHitsList_;
|
||||
}
|
||||
|
||||
std::string DescribeTagHitsSummaryResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeTagHitsSummaryResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -38,39 +38,6 @@ void DialogueRequest::setCallId(const std::string& callId)
|
||||
setParameter("CallId", callId);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getActionParams()const
|
||||
{
|
||||
return actionParams_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setActionParams(const std::string& actionParams)
|
||||
{
|
||||
actionParams_ = actionParams;
|
||||
setParameter("ActionParams", actionParams);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getCallingNumber()const
|
||||
{
|
||||
return callingNumber_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setCallingNumber(const std::string& callingNumber)
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
setParameter("CallingNumber", callingNumber);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
long DialogueRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
@@ -93,17 +60,6 @@ void DialogueRequest::setCalledNumber(const std::string& calledNumber)
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getActionKey()const
|
||||
{
|
||||
return actionKey_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setActionKey(const std::string& actionKey)
|
||||
{
|
||||
actionKey_ = actionKey;
|
||||
setParameter("ActionKey", actionKey);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getCallType()const
|
||||
{
|
||||
return callType_;
|
||||
@@ -148,3 +104,47 @@ void DialogueRequest::setUtterance(const std::string& utterance)
|
||||
setParameter("Utterance", utterance);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getActionParams()const
|
||||
{
|
||||
return actionParams_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setActionParams(const std::string& actionParams)
|
||||
{
|
||||
actionParams_ = actionParams;
|
||||
setParameter("ActionParams", actionParams);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getCallingNumber()const
|
||||
{
|
||||
return callingNumber_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setCallingNumber(const std::string& callingNumber)
|
||||
{
|
||||
callingNumber_ = callingNumber;
|
||||
setParameter("CallingNumber", callingNumber);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DialogueRequest::getActionKey()const
|
||||
{
|
||||
return actionKey_;
|
||||
}
|
||||
|
||||
void DialogueRequest::setActionKey(const std::string& actionKey)
|
||||
{
|
||||
actionKey_ = actionKey;
|
||||
setParameter("ActionKey", actionKey);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,22 +40,22 @@ void DialogueResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto feedbackNode = value["Feedback"];
|
||||
if(!feedbackNode["Content"].isNull())
|
||||
feedback_.content = feedbackNode["Content"].asString();
|
||||
if(!feedbackNode["Action"].isNull())
|
||||
feedback_.action = feedbackNode["Action"].asString();
|
||||
if(!feedbackNode["ActionParams"].isNull())
|
||||
feedback_.actionParams = feedbackNode["ActionParams"].asString();
|
||||
if(!feedbackNode["Content"].isNull())
|
||||
feedback_.content = feedbackNode["Content"].asString();
|
||||
if(!feedbackNode["Interruptible"].isNull())
|
||||
feedback_.interruptible = feedbackNode["Interruptible"].asString() == "true";
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void DuplicateScriptResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ScriptId"].isNull())
|
||||
scriptId_ = value["ScriptId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -42,14 +42,14 @@ void ExportScriptResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void ImportScriptResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ScriptId"].isNull())
|
||||
scriptId_ = value["ScriptId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,28 +43,28 @@ void ListDialogueFlowsResult::parse(const std::string &payload)
|
||||
for (auto valueDialogueFlowsDialogueFlow : allDialogueFlowsNode)
|
||||
{
|
||||
DialogueFlow dialogueFlowsObject;
|
||||
if(!valueDialogueFlowsDialogueFlow["DialogueFlowDefinition"].isNull())
|
||||
dialogueFlowsObject.dialogueFlowDefinition = valueDialogueFlowsDialogueFlow["DialogueFlowDefinition"].asString();
|
||||
if(!valueDialogueFlowsDialogueFlow["DialogueFlowId"].isNull())
|
||||
dialogueFlowsObject.dialogueFlowId = valueDialogueFlowsDialogueFlow["DialogueFlowId"].asString();
|
||||
if(!valueDialogueFlowsDialogueFlow["DialogueFlowName"].isNull())
|
||||
dialogueFlowsObject.dialogueFlowName = valueDialogueFlowsDialogueFlow["DialogueFlowName"].asString();
|
||||
if(!valueDialogueFlowsDialogueFlow["DialogueFlowType"].isNull())
|
||||
dialogueFlowsObject.dialogueFlowType = valueDialogueFlowsDialogueFlow["DialogueFlowType"].asString();
|
||||
if(!valueDialogueFlowsDialogueFlow["ScriptId"].isNull())
|
||||
dialogueFlowsObject.scriptId = valueDialogueFlowsDialogueFlow["ScriptId"].asString();
|
||||
if(!valueDialogueFlowsDialogueFlow["ScriptVersion"].isNull())
|
||||
dialogueFlowsObject.scriptVersion = valueDialogueFlowsDialogueFlow["ScriptVersion"].asString();
|
||||
if(!valueDialogueFlowsDialogueFlow["DialogueFlowType"].isNull())
|
||||
dialogueFlowsObject.dialogueFlowType = valueDialogueFlowsDialogueFlow["DialogueFlowType"].asString();
|
||||
if(!valueDialogueFlowsDialogueFlow["DialogueFlowDefinition"].isNull())
|
||||
dialogueFlowsObject.dialogueFlowDefinition = valueDialogueFlowsDialogueFlow["DialogueFlowDefinition"].asString();
|
||||
dialogueFlows_.push_back(dialogueFlowsObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,38 +40,38 @@ void ListGlobalQuestionsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto globalQuestionsNode = value["GlobalQuestions"];
|
||||
if(!globalQuestionsNode["TotalCount"].isNull())
|
||||
globalQuestions_.totalCount = std::stoi(globalQuestionsNode["TotalCount"].asString());
|
||||
if(!globalQuestionsNode["PageNumber"].isNull())
|
||||
globalQuestions_.pageNumber = std::stoi(globalQuestionsNode["PageNumber"].asString());
|
||||
if(!globalQuestionsNode["PageSize"].isNull())
|
||||
globalQuestions_.pageSize = std::stoi(globalQuestionsNode["PageSize"].asString());
|
||||
if(!globalQuestionsNode["TotalCount"].isNull())
|
||||
globalQuestions_.totalCount = std::stoi(globalQuestionsNode["TotalCount"].asString());
|
||||
auto allListNode = globalQuestionsNode["List"]["GlobalQuestion"];
|
||||
for (auto globalQuestionsNodeListGlobalQuestion : allListNode)
|
||||
{
|
||||
GlobalQuestions::GlobalQuestion globalQuestionObject;
|
||||
if(!globalQuestionsNodeListGlobalQuestion["Answers"].isNull())
|
||||
globalQuestionObject.answers = globalQuestionsNodeListGlobalQuestion["Answers"].asString();
|
||||
if(!globalQuestionsNodeListGlobalQuestion["GlobalQuestionId"].isNull())
|
||||
globalQuestionObject.globalQuestionId = globalQuestionsNodeListGlobalQuestion["GlobalQuestionId"].asString();
|
||||
if(!globalQuestionsNodeListGlobalQuestion["ScriptId"].isNull())
|
||||
globalQuestionObject.scriptId = globalQuestionsNodeListGlobalQuestion["ScriptId"].asString();
|
||||
if(!globalQuestionsNodeListGlobalQuestion["GlobalQuestionName"].isNull())
|
||||
globalQuestionObject.globalQuestionName = globalQuestionsNodeListGlobalQuestion["GlobalQuestionName"].asString();
|
||||
if(!globalQuestionsNodeListGlobalQuestion["GlobalQuestionType"].isNull())
|
||||
globalQuestionObject.globalQuestionType = globalQuestionsNodeListGlobalQuestion["GlobalQuestionType"].asString();
|
||||
if(!globalQuestionsNodeListGlobalQuestion["Questions"].isNull())
|
||||
globalQuestionObject.questions = globalQuestionsNodeListGlobalQuestion["Questions"].asString();
|
||||
if(!globalQuestionsNodeListGlobalQuestion["Answers"].isNull())
|
||||
globalQuestionObject.answers = globalQuestionsNodeListGlobalQuestion["Answers"].asString();
|
||||
if(!globalQuestionsNodeListGlobalQuestion["ScriptId"].isNull())
|
||||
globalQuestionObject.scriptId = globalQuestionsNodeListGlobalQuestion["ScriptId"].asString();
|
||||
globalQuestions_.list.push_back(globalQuestionObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,32 +43,32 @@ void ListInstancesResult::parse(const std::string &payload)
|
||||
for (auto valueInstancesInstance : allInstancesNode)
|
||||
{
|
||||
Instance instancesObject;
|
||||
if(!valueInstancesInstance["CallCenterInstanceId"].isNull())
|
||||
instancesObject.callCenterInstanceId = valueInstancesInstance["CallCenterInstanceId"].asString();
|
||||
if(!valueInstancesInstance["CreationTime"].isNull())
|
||||
instancesObject.creationTime = std::stol(valueInstancesInstance["CreationTime"].asString());
|
||||
if(!valueInstancesInstance["InstanceDescription"].isNull())
|
||||
instancesObject.instanceDescription = valueInstancesInstance["InstanceDescription"].asString();
|
||||
if(!valueInstancesInstance["InstanceId"].isNull())
|
||||
instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString();
|
||||
if(!valueInstancesInstance["InstanceName"].isNull())
|
||||
instancesObject.instanceName = valueInstancesInstance["InstanceName"].asString();
|
||||
if(!valueInstancesInstance["InstanceDescription"].isNull())
|
||||
instancesObject.instanceDescription = valueInstancesInstance["InstanceDescription"].asString();
|
||||
if(!valueInstancesInstance["IsTemplateContainer"].isNull())
|
||||
instancesObject.isTemplateContainer = valueInstancesInstance["IsTemplateContainer"].asString() == "true";
|
||||
if(!valueInstancesInstance["MaxConcurrentConversation"].isNull())
|
||||
instancesObject.maxConcurrentConversation = std::stoi(valueInstancesInstance["MaxConcurrentConversation"].asString());
|
||||
if(!valueInstancesInstance["Owner"].isNull())
|
||||
instancesObject.owner = valueInstancesInstance["Owner"].asString();
|
||||
if(!valueInstancesInstance["CreationTime"].isNull())
|
||||
instancesObject.creationTime = std::stol(valueInstancesInstance["CreationTime"].asString());
|
||||
if(!valueInstancesInstance["CallCenterInstanceId"].isNull())
|
||||
instancesObject.callCenterInstanceId = valueInstancesInstance["CallCenterInstanceId"].asString();
|
||||
if(!valueInstancesInstance["IsTemplateContainer"].isNull())
|
||||
instancesObject.isTemplateContainer = valueInstancesInstance["IsTemplateContainer"].asString() == "true";
|
||||
instances_.push_back(instancesObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,42 +40,42 @@ void ListIntentsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto intentsNode = value["Intents"];
|
||||
if(!intentsNode["TotalCount"].isNull())
|
||||
intents_.totalCount = std::stoi(intentsNode["TotalCount"].asString());
|
||||
if(!intentsNode["PageNumber"].isNull())
|
||||
intents_.pageNumber = std::stoi(intentsNode["PageNumber"].asString());
|
||||
if(!intentsNode["PageSize"].isNull())
|
||||
intents_.pageSize = std::stoi(intentsNode["PageSize"].asString());
|
||||
if(!intentsNode["TotalCount"].isNull())
|
||||
intents_.totalCount = std::stoi(intentsNode["TotalCount"].asString());
|
||||
auto allListNode = intentsNode["List"]["Intent"];
|
||||
for (auto intentsNodeListIntent : allListNode)
|
||||
{
|
||||
Intents::Intent intentObject;
|
||||
if(!intentsNodeListIntent["IntentId"].isNull())
|
||||
intentObject.intentId = intentsNodeListIntent["IntentId"].asString();
|
||||
if(!intentsNodeListIntent["ScriptId"].isNull())
|
||||
intentObject.scriptId = intentsNodeListIntent["ScriptId"].asString();
|
||||
if(!intentsNodeListIntent["IntentName"].isNull())
|
||||
intentObject.intentName = intentsNodeListIntent["IntentName"].asString();
|
||||
if(!intentsNodeListIntent["IntentDescription"].isNull())
|
||||
intentObject.intentDescription = intentsNodeListIntent["IntentDescription"].asString();
|
||||
if(!intentsNodeListIntent["Utterances"].isNull())
|
||||
intentObject.utterances = intentsNodeListIntent["Utterances"].asString();
|
||||
if(!intentsNodeListIntent["Keywords"].isNull())
|
||||
intentObject.keywords = intentsNodeListIntent["Keywords"].asString();
|
||||
if(!intentsNodeListIntent["CreateTime"].isNull())
|
||||
intentObject.createTime = std::stol(intentsNodeListIntent["CreateTime"].asString());
|
||||
if(!intentsNodeListIntent["IntentDescription"].isNull())
|
||||
intentObject.intentDescription = intentsNodeListIntent["IntentDescription"].asString();
|
||||
if(!intentsNodeListIntent["IntentId"].isNull())
|
||||
intentObject.intentId = intentsNodeListIntent["IntentId"].asString();
|
||||
if(!intentsNodeListIntent["IntentName"].isNull())
|
||||
intentObject.intentName = intentsNodeListIntent["IntentName"].asString();
|
||||
if(!intentsNodeListIntent["Keywords"].isNull())
|
||||
intentObject.keywords = intentsNodeListIntent["Keywords"].asString();
|
||||
if(!intentsNodeListIntent["ScriptId"].isNull())
|
||||
intentObject.scriptId = intentsNodeListIntent["ScriptId"].asString();
|
||||
if(!intentsNodeListIntent["UpdateTime"].isNull())
|
||||
intentObject.updateTime = std::stol(intentsNodeListIntent["UpdateTime"].asString());
|
||||
if(!intentsNodeListIntent["Utterances"].isNull())
|
||||
intentObject.utterances = intentsNodeListIntent["Utterances"].asString();
|
||||
intents_.list.push_back(intentObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,56 +40,56 @@ void ListJobGroupsResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!jobGroupsNode["TotalCount"].isNull())
|
||||
jobGroups_.totalCount = std::stoi(jobGroupsNode["TotalCount"].asString());
|
||||
auto allListNode = jobGroupsNode["List"]["JobGroup"];
|
||||
for (auto jobGroupsNodeListJobGroup : allListNode)
|
||||
{
|
||||
JobGroups::JobGroup jobGroupObject;
|
||||
if(!jobGroupsNodeListJobGroup["CreationTime"].isNull())
|
||||
jobGroupObject.creationTime = std::stol(jobGroupsNodeListJobGroup["CreationTime"].asString());
|
||||
if(!jobGroupsNodeListJobGroup["JobGroupDescription"].isNull())
|
||||
jobGroupObject.jobGroupDescription = jobGroupsNodeListJobGroup["JobGroupDescription"].asString();
|
||||
if(!jobGroupsNodeListJobGroup["JobGroupId"].isNull())
|
||||
jobGroupObject.jobGroupId = jobGroupsNodeListJobGroup["JobGroupId"].asString();
|
||||
if(!jobGroupsNodeListJobGroup["JobGroupName"].isNull())
|
||||
jobGroupObject.jobGroupName = jobGroupsNodeListJobGroup["JobGroupName"].asString();
|
||||
if(!jobGroupsNodeListJobGroup["JobGroupDescription"].isNull())
|
||||
jobGroupObject.jobGroupDescription = jobGroupsNodeListJobGroup["JobGroupDescription"].asString();
|
||||
if(!jobGroupsNodeListJobGroup["ScriptId"].isNull())
|
||||
jobGroupObject.scriptId = jobGroupsNodeListJobGroup["ScriptId"].asString();
|
||||
if(!jobGroupsNodeListJobGroup["ScriptName"].isNull())
|
||||
jobGroupObject.scriptName = jobGroupsNodeListJobGroup["ScriptName"].asString();
|
||||
if(!jobGroupsNodeListJobGroup["CreationTime"].isNull())
|
||||
jobGroupObject.creationTime = std::stol(jobGroupsNodeListJobGroup["CreationTime"].asString());
|
||||
auto strategyNode = value["Strategy"];
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroupObject.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
jobGroupObject.strategy.endTime = std::stol(strategyNode["EndTime"].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());
|
||||
if(!progressNode["StartTime"].isNull())
|
||||
jobGroupObject.progress.startTime = std::stol(progressNode["StartTime"].asString());
|
||||
if(!progressNode["Status"].isNull())
|
||||
jobGroupObject.progress.status = progressNode["Status"].asString();
|
||||
if(!progressNode["TotalCompleted"].isNull())
|
||||
jobGroupObject.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString());
|
||||
if(!progressNode["TotalJobs"].isNull())
|
||||
jobGroupObject.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString());
|
||||
if(!progressNode["TotalNotAnswered"].isNull())
|
||||
jobGroupObject.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString());
|
||||
auto strategyNode = value["Strategy"];
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
jobGroupObject.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroupObject.strategy.startTime = std::stol(strategyNode["StartTime"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,34 +40,34 @@ void ListJobsByGroupResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobsNode = value["Jobs"];
|
||||
if(!jobsNode["TotalCount"].isNull())
|
||||
jobs_.totalCount = std::stoi(jobsNode["TotalCount"].asString());
|
||||
if(!jobsNode["PageNumber"].isNull())
|
||||
jobs_.pageNumber = std::stoi(jobsNode["PageNumber"].asString());
|
||||
if(!jobsNode["PageSize"].isNull())
|
||||
jobs_.pageSize = std::stoi(jobsNode["PageSize"].asString());
|
||||
if(!jobsNode["TotalCount"].isNull())
|
||||
jobs_.totalCount = std::stoi(jobsNode["TotalCount"].asString());
|
||||
auto allListNode = jobsNode["List"]["Job"];
|
||||
for (auto jobsNodeListJob : allListNode)
|
||||
{
|
||||
Jobs::Job jobObject;
|
||||
if(!jobsNodeListJob["JobId"].isNull())
|
||||
jobObject.jobId = jobsNodeListJob["JobId"].asString();
|
||||
if(!jobsNodeListJob["JobGroupId"].isNull())
|
||||
jobObject.jobGroupId = jobsNodeListJob["JobGroupId"].asString();
|
||||
if(!jobsNodeListJob["ScenarioId"].isNull())
|
||||
jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString();
|
||||
if(!jobsNodeListJob["StrategyId"].isNull())
|
||||
jobObject.strategyId = jobsNodeListJob["StrategyId"].asString();
|
||||
if(!jobsNodeListJob["Priority"].isNull())
|
||||
jobObject.priority = std::stoi(jobsNodeListJob["Priority"].asString());
|
||||
if(!jobsNodeListJob["SystemPriority"].isNull())
|
||||
jobObject.systemPriority = std::stoi(jobsNodeListJob["SystemPriority"].asString());
|
||||
if(!jobsNodeListJob["Status"].isNull())
|
||||
jobObject.status = jobsNodeListJob["Status"].asString();
|
||||
if(!jobsNodeListJob["ReferenceId"].isNull())
|
||||
jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString();
|
||||
if(!jobsNodeListJob["FailureReason"].isNull())
|
||||
jobObject.failureReason = jobsNodeListJob["FailureReason"].asString();
|
||||
if(!jobsNodeListJob["JobGroupId"].isNull())
|
||||
jobObject.jobGroupId = jobsNodeListJob["JobGroupId"].asString();
|
||||
if(!jobsNodeListJob["JobId"].isNull())
|
||||
jobObject.jobId = jobsNodeListJob["JobId"].asString();
|
||||
if(!jobsNodeListJob["Priority"].isNull())
|
||||
jobObject.priority = std::stoi(jobsNodeListJob["Priority"].asString());
|
||||
if(!jobsNodeListJob["ReferenceId"].isNull())
|
||||
jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString();
|
||||
if(!jobsNodeListJob["ScenarioId"].isNull())
|
||||
jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString();
|
||||
if(!jobsNodeListJob["Status"].isNull())
|
||||
jobObject.status = jobsNodeListJob["Status"].asString();
|
||||
if(!jobsNodeListJob["StrategyId"].isNull())
|
||||
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)
|
||||
{
|
||||
@@ -78,16 +78,16 @@ void ListJobsByGroupResult::parse(const std::string &payload)
|
||||
contactsObject.contactName = allListNodeContactsContact["ContactName"].asString();
|
||||
if(!allListNodeContactsContact["Honorific"].isNull())
|
||||
contactsObject.honorific = allListNodeContactsContact["Honorific"].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();
|
||||
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();
|
||||
jobObject.contacts.push_back(contactsObject);
|
||||
}
|
||||
auto allExtrasNode = allListNode["Extras"]["KeyValuePair"];
|
||||
@@ -104,22 +104,22 @@ void ListJobsByGroupResult::parse(const std::string &payload)
|
||||
for (auto allListNodeSummarySummaryItem : allSummaryNode)
|
||||
{
|
||||
Jobs::Job::SummaryItem summaryObject;
|
||||
if(!allListNodeSummarySummaryItem["SummaryId"].isNull())
|
||||
summaryObject.summaryId = allListNodeSummarySummaryItem["SummaryId"].asString();
|
||||
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["TaskId"].isNull())
|
||||
summaryObject.taskId = allListNodeSummarySummaryItem["TaskId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["ConversationDetailId"].isNull())
|
||||
summaryObject.conversationDetailId = allListNodeSummarySummaryItem["ConversationDetailId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["Category"].isNull())
|
||||
summaryObject.category = allListNodeSummarySummaryItem["Category"].asString();
|
||||
if(!allListNodeSummarySummaryItem["SummaryId"].isNull())
|
||||
summaryObject.summaryId = allListNodeSummarySummaryItem["SummaryId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summaryObject.summaryName = allListNodeSummarySummaryItem["SummaryName"].asString();
|
||||
if(!allListNodeSummarySummaryItem["Content"].isNull())
|
||||
summaryObject.content = allListNodeSummarySummaryItem["Content"].asString();
|
||||
if(!allListNodeSummarySummaryItem["TaskId"].isNull())
|
||||
summaryObject.taskId = allListNodeSummarySummaryItem["TaskId"].asString();
|
||||
jobObject.summary.push_back(summaryObject);
|
||||
}
|
||||
auto allCallingNumbers = value["CallingNumbers"]["String"];
|
||||
@@ -127,14 +127,14 @@ void ListJobsByGroupResult::parse(const std::string &payload)
|
||||
jobObject.callingNumbers.push_back(value.asString());
|
||||
jobs_.list.push_back(jobObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,24 +43,24 @@ void ListJobsResult::parse(const std::string &payload)
|
||||
for (auto valueJobsJob : allJobsNode)
|
||||
{
|
||||
Job jobsObject;
|
||||
if(!valueJobsJob["JobId"].isNull())
|
||||
jobsObject.jobId = valueJobsJob["JobId"].asString();
|
||||
if(!valueJobsJob["JobGroupId"].isNull())
|
||||
jobsObject.jobGroupId = valueJobsJob["JobGroupId"].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();
|
||||
if(!valueJobsJob["JobGroupId"].isNull())
|
||||
jobsObject.jobGroupId = valueJobsJob["JobGroupId"].asString();
|
||||
if(!valueJobsJob["JobId"].isNull())
|
||||
jobsObject.jobId = valueJobsJob["JobId"].asString();
|
||||
if(!valueJobsJob["Priority"].isNull())
|
||||
jobsObject.priority = std::stoi(valueJobsJob["Priority"].asString());
|
||||
if(!valueJobsJob["ReferenceId"].isNull())
|
||||
jobsObject.referenceId = valueJobsJob["ReferenceId"].asString();
|
||||
if(!valueJobsJob["ScenarioId"].isNull())
|
||||
jobsObject.scenarioId = valueJobsJob["ScenarioId"].asString();
|
||||
if(!valueJobsJob["Status"].isNull())
|
||||
jobsObject.status = valueJobsJob["Status"].asString();
|
||||
if(!valueJobsJob["StrategyId"].isNull())
|
||||
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)
|
||||
{
|
||||
@@ -71,16 +71,16 @@ void ListJobsResult::parse(const std::string &payload)
|
||||
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();
|
||||
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();
|
||||
jobsObject.contacts.push_back(contactsObject);
|
||||
}
|
||||
auto allExtrasNode = allJobsNode["Extras"]["KeyValuePair"];
|
||||
@@ -93,102 +93,102 @@ void ListJobsResult::parse(const std::string &payload)
|
||||
extrasObject.value = allJobsNodeExtrasKeyValuePair["Value"].asString();
|
||||
jobsObject.extras.push_back(extrasObject);
|
||||
}
|
||||
auto allSummaryNode = allJobsNode["Summary"]["SummaryItem"];
|
||||
for (auto allJobsNodeSummarySummaryItem : 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();
|
||||
jobsObject.summary.push_back(summaryObject);
|
||||
}
|
||||
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["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)
|
||||
{
|
||||
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();
|
||||
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)
|
||||
{
|
||||
Job::Task::ConversationDetail::SummaryItem summary1Object;
|
||||
Job::Task::ConversationDetail::SummaryItem2 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();
|
||||
if(!allConversationNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summary1Object.summaryName = allConversationNodeSummarySummaryItem["SummaryName"].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();
|
||||
auto contact3Node = value["Contact"];
|
||||
if(!contact3Node["ContactId"].isNull())
|
||||
tasksObject.contact3.contactId = contact3Node["ContactId"].asString();
|
||||
if(!contact3Node["ContactName"].isNull())
|
||||
tasksObject.contact3.contactName = contact3Node["ContactName"].asString();
|
||||
if(!contact3Node["Honorific"].isNull())
|
||||
tasksObject.contact3.honorific = contact3Node["Honorific"].asString();
|
||||
if(!contact3Node["JobId"].isNull())
|
||||
tasksObject.contact3.jobId = contact3Node["JobId"].asString();
|
||||
if(!contact3Node["PhoneNumber"].isNull())
|
||||
tasksObject.contact3.phoneNumber = contact3Node["PhoneNumber"].asString();
|
||||
if(!contact3Node["ReferenceId"].isNull())
|
||||
tasksObject.contact3.referenceId = contact3Node["ReferenceId"].asString();
|
||||
if(!contact3Node["Role"].isNull())
|
||||
tasksObject.contact3.role = contact3Node["Role"].asString();
|
||||
if(!contact3Node["State"].isNull())
|
||||
tasksObject.contact3.state = contact3Node["State"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
73
outboundbot/src/model/ListMediaRequest.cc
Normal file
73
outboundbot/src/model/ListMediaRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/ListMediaRequest.h>
|
||||
|
||||
using AlibabaCloud::OutboundBot::Model::ListMediaRequest;
|
||||
|
||||
ListMediaRequest::ListMediaRequest() :
|
||||
RpcServiceRequest("outboundbot", "2019-12-26", "ListMedia")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListMediaRequest::~ListMediaRequest()
|
||||
{}
|
||||
|
||||
int ListMediaRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListMediaRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListMediaRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListMediaRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
int ListMediaRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListMediaRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListMediaRequest::getNamePrefix()const
|
||||
{
|
||||
return namePrefix_;
|
||||
}
|
||||
|
||||
void ListMediaRequest::setNamePrefix(const std::string& namePrefix)
|
||||
{
|
||||
namePrefix_ = namePrefix;
|
||||
setParameter("NamePrefix", namePrefix);
|
||||
}
|
||||
|
||||
108
outboundbot/src/model/ListMediaResult.cc
Normal file
108
outboundbot/src/model/ListMediaResult.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/ListMediaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OutboundBot;
|
||||
using namespace AlibabaCloud::OutboundBot::Model;
|
||||
|
||||
ListMediaResult::ListMediaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListMediaResult::ListMediaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListMediaResult::~ListMediaResult()
|
||||
{}
|
||||
|
||||
void ListMediaResult::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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListMediaResult::Media> ListMediaResult::getMediaList()const
|
||||
{
|
||||
return mediaList_;
|
||||
}
|
||||
|
||||
int ListMediaResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListMediaResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListMediaResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListMediaResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int ListMediaResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ListMediaResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListMediaResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -40,34 +40,34 @@ void ListOutboundCallNumbersResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto outboundCallNumbersNode = value["OutboundCallNumbers"];
|
||||
if(!outboundCallNumbersNode["TotalCount"].isNull())
|
||||
outboundCallNumbers_.totalCount = std::stoi(outboundCallNumbersNode["TotalCount"].asString());
|
||||
if(!outboundCallNumbersNode["PageNumber"].isNull())
|
||||
outboundCallNumbers_.pageNumber = std::stoi(outboundCallNumbersNode["PageNumber"].asString());
|
||||
if(!outboundCallNumbersNode["PageSize"].isNull())
|
||||
outboundCallNumbers_.pageSize = std::stoi(outboundCallNumbersNode["PageSize"].asString());
|
||||
if(!outboundCallNumbersNode["TotalCount"].isNull())
|
||||
outboundCallNumbers_.totalCount = std::stoi(outboundCallNumbersNode["TotalCount"].asString());
|
||||
auto allListNode = outboundCallNumbersNode["List"]["OutboundCallNumber"];
|
||||
for (auto outboundCallNumbersNodeListOutboundCallNumber : allListNode)
|
||||
{
|
||||
OutboundCallNumbers::OutboundCallNumber outboundCallNumberObject;
|
||||
if(!outboundCallNumbersNodeListOutboundCallNumber["OutboundCallNumberId"].isNull())
|
||||
outboundCallNumberObject.outboundCallNumberId = outboundCallNumbersNodeListOutboundCallNumber["OutboundCallNumberId"].asString();
|
||||
if(!outboundCallNumbersNodeListOutboundCallNumber["Number"].isNull())
|
||||
outboundCallNumberObject.number = outboundCallNumbersNodeListOutboundCallNumber["Number"].asString();
|
||||
if(!outboundCallNumbersNodeListOutboundCallNumber["RateLimitPeriod"].isNull())
|
||||
outboundCallNumberObject.rateLimitPeriod = outboundCallNumbersNodeListOutboundCallNumber["RateLimitPeriod"].asString();
|
||||
if(!outboundCallNumbersNodeListOutboundCallNumber["OutboundCallNumberId"].isNull())
|
||||
outboundCallNumberObject.outboundCallNumberId = outboundCallNumbersNodeListOutboundCallNumber["OutboundCallNumberId"].asString();
|
||||
if(!outboundCallNumbersNodeListOutboundCallNumber["RateLimitCount"].isNull())
|
||||
outboundCallNumberObject.rateLimitCount = outboundCallNumbersNodeListOutboundCallNumber["RateLimitCount"].asString();
|
||||
if(!outboundCallNumbersNodeListOutboundCallNumber["RateLimitPeriod"].isNull())
|
||||
outboundCallNumberObject.rateLimitPeriod = outboundCallNumbersNodeListOutboundCallNumber["RateLimitPeriod"].asString();
|
||||
outboundCallNumbers_.list.push_back(outboundCallNumberObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,36 +40,36 @@ void ListScriptPublishHistoriesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptPublishHistoriesNode = value["ScriptPublishHistories"];
|
||||
if(!scriptPublishHistoriesNode["TotalCount"].isNull())
|
||||
scriptPublishHistories_.totalCount = std::stoi(scriptPublishHistoriesNode["TotalCount"].asString());
|
||||
if(!scriptPublishHistoriesNode["PageNumber"].isNull())
|
||||
scriptPublishHistories_.pageNumber = std::stoi(scriptPublishHistoriesNode["PageNumber"].asString());
|
||||
if(!scriptPublishHistoriesNode["PageSize"].isNull())
|
||||
scriptPublishHistories_.pageSize = std::stoi(scriptPublishHistoriesNode["PageSize"].asString());
|
||||
if(!scriptPublishHistoriesNode["TotalCount"].isNull())
|
||||
scriptPublishHistories_.totalCount = std::stoi(scriptPublishHistoriesNode["TotalCount"].asString());
|
||||
auto allListNode = scriptPublishHistoriesNode["List"]["PublishHistory"];
|
||||
for (auto scriptPublishHistoriesNodeListPublishHistory : allListNode)
|
||||
{
|
||||
ScriptPublishHistories::PublishHistory publishHistoryObject;
|
||||
if(!scriptPublishHistoriesNodeListPublishHistory["Description"].isNull())
|
||||
publishHistoryObject.description = scriptPublishHistoriesNodeListPublishHistory["Description"].asString();
|
||||
if(!scriptPublishHistoriesNodeListPublishHistory["InstanceId"].isNull())
|
||||
publishHistoryObject.instanceId = scriptPublishHistoriesNodeListPublishHistory["InstanceId"].asString();
|
||||
if(!scriptPublishHistoriesNodeListPublishHistory["PublishTime"].isNull())
|
||||
publishHistoryObject.publishTime = std::stol(scriptPublishHistoriesNodeListPublishHistory["PublishTime"].asString());
|
||||
if(!scriptPublishHistoriesNodeListPublishHistory["ScriptId"].isNull())
|
||||
publishHistoryObject.scriptId = scriptPublishHistoriesNodeListPublishHistory["ScriptId"].asString();
|
||||
if(!scriptPublishHistoriesNodeListPublishHistory["ScriptVersion"].isNull())
|
||||
publishHistoryObject.scriptVersion = scriptPublishHistoriesNodeListPublishHistory["ScriptVersion"].asString();
|
||||
if(!scriptPublishHistoriesNodeListPublishHistory["Description"].isNull())
|
||||
publishHistoryObject.description = scriptPublishHistoriesNodeListPublishHistory["Description"].asString();
|
||||
if(!scriptPublishHistoriesNodeListPublishHistory["PublishTime"].isNull())
|
||||
publishHistoryObject.publishTime = std::stol(scriptPublishHistoriesNodeListPublishHistory["PublishTime"].asString());
|
||||
scriptPublishHistories_.list.push_back(publishHistoryObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,40 +40,40 @@ void ListScriptVoiceConfigsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptVoiceConfigsNode = value["ScriptVoiceConfigs"];
|
||||
if(!scriptVoiceConfigsNode["TotalCount"].isNull())
|
||||
scriptVoiceConfigs_.totalCount = std::stoi(scriptVoiceConfigsNode["TotalCount"].asString());
|
||||
if(!scriptVoiceConfigsNode["PageNumber"].isNull())
|
||||
scriptVoiceConfigs_.pageNumber = std::stoi(scriptVoiceConfigsNode["PageNumber"].asString());
|
||||
if(!scriptVoiceConfigsNode["PageSize"].isNull())
|
||||
scriptVoiceConfigs_.pageSize = std::stoi(scriptVoiceConfigsNode["PageSize"].asString());
|
||||
if(!scriptVoiceConfigsNode["TotalCount"].isNull())
|
||||
scriptVoiceConfigs_.totalCount = std::stoi(scriptVoiceConfigsNode["TotalCount"].asString());
|
||||
auto allListNode = scriptVoiceConfigsNode["List"]["ScriptVoiceConfig"];
|
||||
for (auto scriptVoiceConfigsNodeListScriptVoiceConfig : allListNode)
|
||||
{
|
||||
ScriptVoiceConfigs::ScriptVoiceConfig scriptVoiceConfigObject;
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptVoiceConfigId"].isNull())
|
||||
scriptVoiceConfigObject.scriptVoiceConfigId = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptVoiceConfigId"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["InstanceId"].isNull())
|
||||
scriptVoiceConfigObject.instanceId = scriptVoiceConfigsNodeListScriptVoiceConfig["InstanceId"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptId"].isNull())
|
||||
scriptVoiceConfigObject.scriptId = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptId"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptContent"].isNull())
|
||||
scriptVoiceConfigObject.scriptContent = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptContent"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptId"].isNull())
|
||||
scriptVoiceConfigObject.scriptId = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptId"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptVoiceConfigId"].isNull())
|
||||
scriptVoiceConfigObject.scriptVoiceConfigId = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptVoiceConfigId"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptWaveformRelation"].isNull())
|
||||
scriptVoiceConfigObject.scriptWaveformRelation = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptWaveformRelation"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["Source"].isNull())
|
||||
scriptVoiceConfigObject.source = scriptVoiceConfigsNodeListScriptVoiceConfig["Source"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["Type"].isNull())
|
||||
scriptVoiceConfigObject.type = scriptVoiceConfigsNodeListScriptVoiceConfig["Type"].asString();
|
||||
if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptWaveformRelation"].isNull())
|
||||
scriptVoiceConfigObject.scriptWaveformRelation = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptWaveformRelation"].asString();
|
||||
scriptVoiceConfigs_.list.push_back(scriptVoiceConfigObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,48 +40,50 @@ void ListScriptsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptsNode = value["Scripts"];
|
||||
if(!scriptsNode["TotalCount"].isNull())
|
||||
scripts_.totalCount = std::stoi(scriptsNode["TotalCount"].asString());
|
||||
if(!scriptsNode["PageNumber"].isNull())
|
||||
scripts_.pageNumber = std::stoi(scriptsNode["PageNumber"].asString());
|
||||
if(!scriptsNode["PageSize"].isNull())
|
||||
scripts_.pageSize = std::stoi(scriptsNode["PageSize"].asString());
|
||||
if(!scriptsNode["TotalCount"].isNull())
|
||||
scripts_.totalCount = std::stoi(scriptsNode["TotalCount"].asString());
|
||||
auto allListNode = scriptsNode["List"]["Script"];
|
||||
for (auto scriptsNodeListScript : allListNode)
|
||||
{
|
||||
Scripts::Script scriptObject;
|
||||
if(!scriptsNodeListScript["DebugStatus"].isNull())
|
||||
scriptObject.debugStatus = scriptsNodeListScript["DebugStatus"].asString();
|
||||
if(!scriptsNodeListScript["FailReason"].isNull())
|
||||
scriptObject.failReason = scriptsNodeListScript["FailReason"].asString();
|
||||
if(!scriptsNodeListScript["Industry"].isNull())
|
||||
scriptObject.industry = scriptsNodeListScript["Industry"].asString();
|
||||
if(!scriptsNodeListScript["IsDebugDrafted"].isNull())
|
||||
scriptObject.isDebugDrafted = scriptsNodeListScript["IsDebugDrafted"].asString() == "true";
|
||||
if(!scriptsNodeListScript["IsDrafted"].isNull())
|
||||
scriptObject.isDrafted = scriptsNodeListScript["IsDrafted"].asString() == "true";
|
||||
if(!scriptsNodeListScript["Scene"].isNull())
|
||||
scriptObject.scene = scriptsNodeListScript["Scene"].asString();
|
||||
if(!scriptsNodeListScript["ScriptDescription"].isNull())
|
||||
scriptObject.scriptDescription = scriptsNodeListScript["ScriptDescription"].asString();
|
||||
if(!scriptsNodeListScript["ScriptId"].isNull())
|
||||
scriptObject.scriptId = scriptsNodeListScript["ScriptId"].asString();
|
||||
if(!scriptsNodeListScript["ScriptName"].isNull())
|
||||
scriptObject.scriptName = scriptsNodeListScript["ScriptName"].asString();
|
||||
if(!scriptsNodeListScript["ScriptDescription"].isNull())
|
||||
scriptObject.scriptDescription = scriptsNodeListScript["ScriptDescription"].asString();
|
||||
if(!scriptsNodeListScript["Industry"].isNull())
|
||||
scriptObject.industry = scriptsNodeListScript["Industry"].asString();
|
||||
if(!scriptsNodeListScript["Scene"].isNull())
|
||||
scriptObject.scene = scriptsNodeListScript["Scene"].asString();
|
||||
if(!scriptsNodeListScript["Status"].isNull())
|
||||
scriptObject.status = scriptsNodeListScript["Status"].asString();
|
||||
if(!scriptsNodeListScript["DebugStatus"].isNull())
|
||||
scriptObject.debugStatus = scriptsNodeListScript["DebugStatus"].asString();
|
||||
if(!scriptsNodeListScript["UpdateTime"].isNull())
|
||||
scriptObject.updateTime = std::stol(scriptsNodeListScript["UpdateTime"].asString());
|
||||
if(!scriptsNodeListScript["IsDrafted"].isNull())
|
||||
scriptObject.isDrafted = scriptsNodeListScript["IsDrafted"].asString() == "true";
|
||||
if(!scriptsNodeListScript["IsDebugDrafted"].isNull())
|
||||
scriptObject.isDebugDrafted = scriptsNodeListScript["IsDebugDrafted"].asString() == "true";
|
||||
if(!scriptsNodeListScript["FailReason"].isNull())
|
||||
scriptObject.failReason = scriptsNodeListScript["FailReason"].asString();
|
||||
if(!scriptsNodeListScript["RejectReason"].isNull())
|
||||
scriptObject.rejectReason = scriptsNodeListScript["RejectReason"].asString();
|
||||
scripts_.list.push_back(scriptObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,44 +39,44 @@ void ListTagsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["TagId"].isNull())
|
||||
tagsObject.tagId = valueTagsTag["TagId"].asString();
|
||||
if(!valueTagsTag["TagName"].isNull())
|
||||
tagsObject.tagName = valueTagsTag["TagName"].asString();
|
||||
if(!valueTagsTag["TagIndex"].isNull())
|
||||
tagsObject.tagIndex = std::stoi(valueTagsTag["TagIndex"].asString());
|
||||
if(!valueTagsTag["ScriptId"].isNull())
|
||||
tagsObject.scriptId = valueTagsTag["ScriptId"].asString();
|
||||
if(!valueTagsTag["TagGroup"].isNull())
|
||||
tagsObject.tagGroup = valueTagsTag["TagGroup"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
auto allTagGroupsNode = value["TagGroups"]["TagGroup"];
|
||||
for (auto valueTagGroupsTagGroup : allTagGroupsNode)
|
||||
{
|
||||
TagGroup tagGroupsObject;
|
||||
if(!valueTagGroupsTagGroup["TagGroupId"].isNull())
|
||||
tagGroupsObject.tagGroupId = valueTagGroupsTagGroup["TagGroupId"].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();
|
||||
if(!valueTagGroupsTagGroup["TagGroupId"].isNull())
|
||||
tagGroupsObject.tagGroupId = valueTagGroupsTagGroup["TagGroupId"].asString();
|
||||
if(!valueTagGroupsTagGroup["TagGroupIndex"].isNull())
|
||||
tagGroupsObject.tagGroupIndex = std::stoi(valueTagGroupsTagGroup["TagGroupIndex"].asString());
|
||||
tagGroups_.push_back(tagGroupsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["ScriptId"].isNull())
|
||||
tagsObject.scriptId = valueTagsTag["ScriptId"].asString();
|
||||
if(!valueTagsTag["TagGroup"].isNull())
|
||||
tagsObject.tagGroup = valueTagsTag["TagGroup"].asString();
|
||||
if(!valueTagsTag["TagId"].isNull())
|
||||
tagsObject.tagId = valueTagsTag["TagId"].asString();
|
||||
if(!valueTagsTag["TagIndex"].isNull())
|
||||
tagsObject.tagIndex = std::stoi(valueTagsTag["TagIndex"].asString());
|
||||
if(!valueTagsTag["TagName"].isNull())
|
||||
tagsObject.tagName = valueTagsTag["TagName"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,45 +40,45 @@ void ModifyBatchJobsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobGroupNode = value["JobGroup"];
|
||||
if(!jobGroupNode["CreationTime"].isNull())
|
||||
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
|
||||
if(!jobGroupNode["JobFilePath"].isNull())
|
||||
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
|
||||
if(!jobGroupNode["JobGroupDescription"].isNull())
|
||||
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
|
||||
if(!jobGroupNode["JobGroupId"].isNull())
|
||||
jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString();
|
||||
if(!jobGroupNode["JobGroupName"].isNull())
|
||||
jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString();
|
||||
if(!jobGroupNode["JobGroupDescription"].isNull())
|
||||
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
|
||||
if(!jobGroupNode["ScenarioId"].isNull())
|
||||
jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString();
|
||||
if(!jobGroupNode["JobFilePath"].isNull())
|
||||
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
|
||||
if(!jobGroupNode["CreationTime"].isNull())
|
||||
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
|
||||
auto strategyNode = jobGroupNode["Strategy"];
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroup_.strategy.type = strategyNode["Type"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["Customized"].isNull())
|
||||
jobGroup_.strategy.customized = strategyNode["Customized"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroup_.strategy.type = strategyNode["Type"].asString();
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
@@ -95,14 +95,14 @@ void ModifyBatchJobsResult::parse(const std::string &payload)
|
||||
auto allCallingNumbers = jobGroupNode["CallingNumbers"]["String"];
|
||||
for (auto value : allCallingNumbers)
|
||||
jobGroup_.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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,18 +39,18 @@ void ModifyDialogueFlowResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["DialogueFlowId"].isNull())
|
||||
dialogueFlowId_ = value["DialogueFlowId"].asString();
|
||||
if(!value["DialogueFlowDefinition"].isNull())
|
||||
dialogueFlowDefinition_ = value["DialogueFlowDefinition"].asString();
|
||||
if(!value["DialogueFlowId"].isNull())
|
||||
dialogueFlowId_ = value["DialogueFlowId"].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";
|
||||
|
||||
}
|
||||
|
||||
@@ -74,13 +74,13 @@ std::string ModifyDialogueFlowResult::getCode()const
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ModifyDialogueFlowResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string ModifyDialogueFlowResult::getDialogueFlowDefinition()const
|
||||
{
|
||||
return dialogueFlowDefinition_;
|
||||
}
|
||||
|
||||
bool ModifyDialogueFlowResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void ModifyGlobalQuestionResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["DialogueQuestionId"].isNull())
|
||||
dialogueQuestionId_ = value["DialogueQuestionId"].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";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void ModifyInstanceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto instanceNode = value["Instance"];
|
||||
if(!instanceNode["CallCenterInstanceId"].isNull())
|
||||
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString();
|
||||
if(!instanceNode["CreationTime"].isNull())
|
||||
instance_.creationTime = std::stol(instanceNode["CreationTime"].asString());
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
if(!instanceNode["InstanceId"].isNull())
|
||||
instance_.instanceId = instanceNode["InstanceId"].asString();
|
||||
if(!instanceNode["InstanceName"].isNull())
|
||||
instance_.instanceName = instanceNode["InstanceName"].asString();
|
||||
if(!instanceNode["InstanceDescription"].isNull())
|
||||
instance_.instanceDescription = instanceNode["InstanceDescription"].asString();
|
||||
if(!instanceNode["MaxConcurrentConversation"].isNull())
|
||||
instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString());
|
||||
if(!instanceNode["Owner"].isNull())
|
||||
instance_.owner = instanceNode["Owner"].asString();
|
||||
if(!instanceNode["CreationTime"].isNull())
|
||||
instance_.creationTime = std::stol(instanceNode["CreationTime"].asString());
|
||||
if(!instanceNode["CallCenterInstanceId"].isNull())
|
||||
instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void ModifyIntentResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["IntentId"].isNull())
|
||||
intentId_ = value["IntentId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,45 +40,45 @@ void ModifyJobGroupResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobGroupNode = value["JobGroup"];
|
||||
if(!jobGroupNode["CreationTime"].isNull())
|
||||
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
|
||||
if(!jobGroupNode["JobFilePath"].isNull())
|
||||
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
|
||||
if(!jobGroupNode["JobGroupDescription"].isNull())
|
||||
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
|
||||
if(!jobGroupNode["JobGroupId"].isNull())
|
||||
jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString();
|
||||
if(!jobGroupNode["JobGroupName"].isNull())
|
||||
jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString();
|
||||
if(!jobGroupNode["JobGroupDescription"].isNull())
|
||||
jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString();
|
||||
if(!jobGroupNode["ScenarioId"].isNull())
|
||||
jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString();
|
||||
if(!jobGroupNode["JobFilePath"].isNull())
|
||||
jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString();
|
||||
if(!jobGroupNode["CreationTime"].isNull())
|
||||
jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString());
|
||||
auto strategyNode = jobGroupNode["Strategy"];
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroup_.strategy.type = strategyNode["Type"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["Customized"].isNull())
|
||||
jobGroup_.strategy.customized = strategyNode["Customized"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["EndTime"].isNull())
|
||||
jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString());
|
||||
if(!strategyNode["FollowUpStrategy"].isNull())
|
||||
jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString();
|
||||
if(!strategyNode["IsTemplate"].isNull())
|
||||
jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true";
|
||||
if(!strategyNode["MaxAttemptsPerDay"].isNull())
|
||||
jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString());
|
||||
if(!strategyNode["MinAttemptInterval"].isNull())
|
||||
jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString());
|
||||
if(!strategyNode["RepeatBy"].isNull())
|
||||
jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString();
|
||||
if(!strategyNode["RoutingStrategy"].isNull())
|
||||
jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString();
|
||||
if(!strategyNode["StartTime"].isNull())
|
||||
jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString());
|
||||
if(!strategyNode["StrategyDescription"].isNull())
|
||||
jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString();
|
||||
if(!strategyNode["StrategyId"].isNull())
|
||||
jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString();
|
||||
if(!strategyNode["StrategyName"].isNull())
|
||||
jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString();
|
||||
if(!strategyNode["Type"].isNull())
|
||||
jobGroup_.strategy.type = strategyNode["Type"].asString();
|
||||
auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"];
|
||||
for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode)
|
||||
{
|
||||
@@ -95,14 +95,14 @@ void ModifyJobGroupResult::parse(const std::string &payload)
|
||||
auto allCallingNumbers = jobGroupNode["CallingNumbers"]["String"];
|
||||
for (auto value : allCallingNumbers)
|
||||
jobGroup_.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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,22 +40,22 @@ void ModifyOutboundCallNumberResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto outboundCallNumberNode = value["OutboundCallNumber"];
|
||||
if(!outboundCallNumberNode["OutboundCallNumberId"].isNull())
|
||||
outboundCallNumber_.outboundCallNumberId = outboundCallNumberNode["OutboundCallNumberId"].asString();
|
||||
if(!outboundCallNumberNode["Number"].isNull())
|
||||
outboundCallNumber_.number = outboundCallNumberNode["Number"].asString();
|
||||
if(!outboundCallNumberNode["RateLimitPeriod"].isNull())
|
||||
outboundCallNumber_.rateLimitPeriod = outboundCallNumberNode["RateLimitPeriod"].asString();
|
||||
if(!outboundCallNumberNode["OutboundCallNumberId"].isNull())
|
||||
outboundCallNumber_.outboundCallNumberId = outboundCallNumberNode["OutboundCallNumberId"].asString();
|
||||
if(!outboundCallNumberNode["RateLimitCount"].isNull())
|
||||
outboundCallNumber_.rateLimitCount = outboundCallNumberNode["RateLimitCount"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!outboundCallNumberNode["RateLimitPeriod"].isNull())
|
||||
outboundCallNumber_.rateLimitPeriod = outboundCallNumberNode["RateLimitPeriod"].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";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,34 +40,34 @@ void ModifyScriptResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptNode = value["Script"];
|
||||
if(!scriptNode["DebugStatus"].isNull())
|
||||
script_.debugStatus = scriptNode["DebugStatus"].asString();
|
||||
if(!scriptNode["Industry"].isNull())
|
||||
script_.industry = scriptNode["Industry"].asString();
|
||||
if(!scriptNode["IsDebugDrafted"].isNull())
|
||||
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
|
||||
if(!scriptNode["IsDrafted"].isNull())
|
||||
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
|
||||
if(!scriptNode["Scene"].isNull())
|
||||
script_.scene = scriptNode["Scene"].asString();
|
||||
if(!scriptNode["ScriptDescription"].isNull())
|
||||
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
|
||||
if(!scriptNode["ScriptId"].isNull())
|
||||
script_.scriptId = scriptNode["ScriptId"].asString();
|
||||
if(!scriptNode["ScriptName"].isNull())
|
||||
script_.scriptName = scriptNode["ScriptName"].asString();
|
||||
if(!scriptNode["ScriptDescription"].isNull())
|
||||
script_.scriptDescription = scriptNode["ScriptDescription"].asString();
|
||||
if(!scriptNode["Industry"].isNull())
|
||||
script_.industry = scriptNode["Industry"].asString();
|
||||
if(!scriptNode["Scene"].isNull())
|
||||
script_.scene = scriptNode["Scene"].asString();
|
||||
if(!scriptNode["Status"].isNull())
|
||||
script_.status = scriptNode["Status"].asString();
|
||||
if(!scriptNode["DebugStatus"].isNull())
|
||||
script_.debugStatus = scriptNode["DebugStatus"].asString();
|
||||
if(!scriptNode["UpdateTime"].isNull())
|
||||
script_.updateTime = std::stol(scriptNode["UpdateTime"].asString());
|
||||
if(!scriptNode["IsDrafted"].isNull())
|
||||
script_.isDrafted = scriptNode["IsDrafted"].asString() == "true";
|
||||
if(!scriptNode["IsDebugDrafted"].isNull())
|
||||
script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true";
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void ModifyScriptVoiceConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto scriptVoiceConfigNode = value["ScriptVoiceConfig"];
|
||||
if(!scriptVoiceConfigNode["ScriptVoiceConfigId"].isNull())
|
||||
scriptVoiceConfig_.scriptVoiceConfigId = scriptVoiceConfigNode["ScriptVoiceConfigId"].asString();
|
||||
if(!scriptVoiceConfigNode["InstanceId"].isNull())
|
||||
scriptVoiceConfig_.instanceId = scriptVoiceConfigNode["InstanceId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptId"].isNull())
|
||||
scriptVoiceConfig_.scriptId = scriptVoiceConfigNode["ScriptId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptContent"].isNull())
|
||||
scriptVoiceConfig_.scriptContent = scriptVoiceConfigNode["ScriptContent"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptId"].isNull())
|
||||
scriptVoiceConfig_.scriptId = scriptVoiceConfigNode["ScriptId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptVoiceConfigId"].isNull())
|
||||
scriptVoiceConfig_.scriptVoiceConfigId = scriptVoiceConfigNode["ScriptVoiceConfigId"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptWaveformRelation"].isNull())
|
||||
scriptVoiceConfig_.scriptWaveformRelation = scriptVoiceConfigNode["ScriptWaveformRelation"].asString();
|
||||
if(!scriptVoiceConfigNode["Source"].isNull())
|
||||
scriptVoiceConfig_.source = scriptVoiceConfigNode["Source"].asString();
|
||||
if(!scriptVoiceConfigNode["Type"].isNull())
|
||||
scriptVoiceConfig_.type = scriptVoiceConfigNode["Type"].asString();
|
||||
if(!scriptVoiceConfigNode["ScriptWaveformRelation"].isNull())
|
||||
scriptVoiceConfig_.scriptWaveformRelation = scriptVoiceConfigNode["ScriptWaveformRelation"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,26 +40,26 @@ void ModifyTTSConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto tTSConfigNode = value["TTSConfig"];
|
||||
if(!tTSConfigNode["TTSConfigId"].isNull())
|
||||
tTSConfig_.tTSConfigId = tTSConfigNode["TTSConfigId"].asString();
|
||||
if(!tTSConfigNode["ScriptId"].isNull())
|
||||
tTSConfig_.scriptId = tTSConfigNode["ScriptId"].asString();
|
||||
if(!tTSConfigNode["InstanceId"].isNull())
|
||||
tTSConfig_.instanceId = tTSConfigNode["InstanceId"].asString();
|
||||
if(!tTSConfigNode["Voice"].isNull())
|
||||
tTSConfig_.voice = tTSConfigNode["Voice"].asString();
|
||||
if(!tTSConfigNode["ScriptId"].isNull())
|
||||
tTSConfig_.scriptId = tTSConfigNode["ScriptId"].asString();
|
||||
if(!tTSConfigNode["SpeechRate"].isNull())
|
||||
tTSConfig_.speechRate = tTSConfigNode["SpeechRate"].asString();
|
||||
if(!tTSConfigNode["TTSConfigId"].isNull())
|
||||
tTSConfig_.tTSConfigId = tTSConfigNode["TTSConfigId"].asString();
|
||||
if(!tTSConfigNode["Voice"].isNull())
|
||||
tTSConfig_.voice = tTSConfigNode["Voice"].asString();
|
||||
if(!tTSConfigNode["Volume"].isNull())
|
||||
tTSConfig_.volume = tTSConfigNode["Volume"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,44 +39,44 @@ void ModifyTagGroupsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["TagId"].isNull())
|
||||
tagsObject.tagId = valueTagsTag["TagId"].asString();
|
||||
if(!valueTagsTag["TagName"].isNull())
|
||||
tagsObject.tagName = valueTagsTag["TagName"].asString();
|
||||
if(!valueTagsTag["TagIndex"].isNull())
|
||||
tagsObject.tagIndex = std::stoi(valueTagsTag["TagIndex"].asString());
|
||||
if(!valueTagsTag["ScriptId"].isNull())
|
||||
tagsObject.scriptId = valueTagsTag["ScriptId"].asString();
|
||||
if(!valueTagsTag["TagGroup"].isNull())
|
||||
tagsObject.tagGroup = valueTagsTag["TagGroup"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
auto allTagGroupsNode = value["TagGroups"]["TagGroup"];
|
||||
for (auto valueTagGroupsTagGroup : allTagGroupsNode)
|
||||
{
|
||||
TagGroup tagGroupsObject;
|
||||
if(!valueTagGroupsTagGroup["TagGroupId"].isNull())
|
||||
tagGroupsObject.tagGroupId = valueTagGroupsTagGroup["TagGroupId"].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();
|
||||
if(!valueTagGroupsTagGroup["TagGroupId"].isNull())
|
||||
tagGroupsObject.tagGroupId = valueTagGroupsTagGroup["TagGroupId"].asString();
|
||||
if(!valueTagGroupsTagGroup["TagGroupIndex"].isNull())
|
||||
tagGroupsObject.tagGroupIndex = std::stoi(valueTagGroupsTagGroup["TagGroupIndex"].asString());
|
||||
tagGroups_.push_back(tagGroupsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["ScriptId"].isNull())
|
||||
tagsObject.scriptId = valueTagsTag["ScriptId"].asString();
|
||||
if(!valueTagsTag["TagGroup"].isNull())
|
||||
tagsObject.tagGroup = valueTagsTag["TagGroup"].asString();
|
||||
if(!valueTagsTag["TagId"].isNull())
|
||||
tagsObject.tagId = valueTagsTag["TagId"].asString();
|
||||
if(!valueTagsTag["TagIndex"].isNull())
|
||||
tagsObject.tagIndex = std::stoi(valueTagsTag["TagIndex"].asString());
|
||||
if(!valueTagsTag["TagName"].isNull())
|
||||
tagsObject.tagName = valueTagsTag["TagName"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void PublishScriptForDebugResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -60,3 +60,14 @@ void PublishScriptRequest::setInstanceId(const std::string& instanceId)
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
long PublishScriptRequest::getInstanceOwnerId()const
|
||||
{
|
||||
return instanceOwnerId_;
|
||||
}
|
||||
|
||||
void PublishScriptRequest::setInstanceOwnerId(long instanceOwnerId)
|
||||
{
|
||||
instanceOwnerId_ = instanceOwnerId;
|
||||
setParameter("InstanceOwnerId", std::to_string(instanceOwnerId));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void PublishScriptResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].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());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,32 +40,32 @@ void QueryJobsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobsNode = value["Jobs"];
|
||||
if(!jobsNode["TotalCount"].isNull())
|
||||
jobs_.totalCount = std::stoi(jobsNode["TotalCount"].asString());
|
||||
if(!jobsNode["PageNumber"].isNull())
|
||||
jobs_.pageNumber = std::stoi(jobsNode["PageNumber"].asString());
|
||||
if(!jobsNode["PageSize"].isNull())
|
||||
jobs_.pageSize = std::stoi(jobsNode["PageSize"].asString());
|
||||
if(!jobsNode["TotalCount"].isNull())
|
||||
jobs_.totalCount = std::stoi(jobsNode["TotalCount"].asString());
|
||||
auto allListNode = jobsNode["List"]["Job"];
|
||||
for (auto jobsNodeListJob : allListNode)
|
||||
{
|
||||
Jobs::Job jobObject;
|
||||
if(!jobsNodeListJob["JobId"].isNull())
|
||||
jobObject.jobId = jobsNodeListJob["JobId"].asString();
|
||||
if(!jobsNodeListJob["JobGroupId"].isNull())
|
||||
jobObject.jobGroupId = jobsNodeListJob["JobGroupId"].asString();
|
||||
if(!jobsNodeListJob["ScenarioId"].isNull())
|
||||
jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString();
|
||||
if(!jobsNodeListJob["StrategyId"].isNull())
|
||||
jobObject.strategyId = jobsNodeListJob["StrategyId"].asString();
|
||||
if(!jobsNodeListJob["Priority"].isNull())
|
||||
jobObject.priority = std::stoi(jobsNodeListJob["Priority"].asString());
|
||||
if(!jobsNodeListJob["Status"].isNull())
|
||||
jobObject.status = jobsNodeListJob["Status"].asString();
|
||||
if(!jobsNodeListJob["ReferenceId"].isNull())
|
||||
jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString();
|
||||
if(!jobsNodeListJob["FailureReason"].isNull())
|
||||
jobObject.failureReason = jobsNodeListJob["FailureReason"].asString();
|
||||
if(!jobsNodeListJob["JobGroupId"].isNull())
|
||||
jobObject.jobGroupId = jobsNodeListJob["JobGroupId"].asString();
|
||||
if(!jobsNodeListJob["JobId"].isNull())
|
||||
jobObject.jobId = jobsNodeListJob["JobId"].asString();
|
||||
if(!jobsNodeListJob["Priority"].isNull())
|
||||
jobObject.priority = std::stoi(jobsNodeListJob["Priority"].asString());
|
||||
if(!jobsNodeListJob["ReferenceId"].isNull())
|
||||
jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString();
|
||||
if(!jobsNodeListJob["ScenarioId"].isNull())
|
||||
jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString();
|
||||
if(!jobsNodeListJob["Status"].isNull())
|
||||
jobObject.status = jobsNodeListJob["Status"].asString();
|
||||
if(!jobsNodeListJob["StrategyId"].isNull())
|
||||
jobObject.strategyId = jobsNodeListJob["StrategyId"].asString();
|
||||
auto allContactsNode = allListNode["Contacts"]["Contact"];
|
||||
for (auto allListNodeContactsContact : allContactsNode)
|
||||
{
|
||||
@@ -76,16 +76,16 @@ void QueryJobsResult::parse(const std::string &payload)
|
||||
contactsObject.contactName = allListNodeContactsContact["ContactName"].asString();
|
||||
if(!allListNodeContactsContact["Honorific"].isNull())
|
||||
contactsObject.honorific = allListNodeContactsContact["Honorific"].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();
|
||||
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();
|
||||
jobObject.contacts.push_back(contactsObject);
|
||||
}
|
||||
auto allExtrasNode = allListNode["Extras"]["KeyValuePair"];
|
||||
@@ -98,34 +98,56 @@ void QueryJobsResult::parse(const std::string &payload)
|
||||
extrasObject.value = allListNodeExtrasKeyValuePair["Value"].asString();
|
||||
jobObject.extras.push_back(extrasObject);
|
||||
}
|
||||
auto allSummaryNode = allListNode["Summary"]["SummaryItem"];
|
||||
for (auto allListNodeSummarySummaryItem : 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["GroupId"].isNull())
|
||||
summaryObject.groupId = allListNodeSummarySummaryItem["GroupId"].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();
|
||||
jobObject.summary.push_back(summaryObject);
|
||||
}
|
||||
auto allTasksNode = allListNode["Tasks"]["Task"];
|
||||
for (auto allListNodeTasksTask : allTasksNode)
|
||||
{
|
||||
Jobs::Job::Task tasksObject;
|
||||
if(!allListNodeTasksTask["TaskId"].isNull())
|
||||
tasksObject.taskId = allListNodeTasksTask["TaskId"].asString();
|
||||
if(!allListNodeTasksTask["JobId"].isNull())
|
||||
tasksObject.jobId = allListNodeTasksTask["JobId"].asString();
|
||||
if(!allListNodeTasksTask["ScenarioId"].isNull())
|
||||
tasksObject.scenarioId = allListNodeTasksTask["ScenarioId"].asString();
|
||||
if(!allListNodeTasksTask["ChatbotId"].isNull())
|
||||
tasksObject.chatbotId = allListNodeTasksTask["ChatbotId"].asString();
|
||||
if(!allListNodeTasksTask["PlanedTime"].isNull())
|
||||
tasksObject.planedTime = std::stol(allListNodeTasksTask["PlanedTime"].asString());
|
||||
if(!allListNodeTasksTask["ActualTime"].isNull())
|
||||
tasksObject.actualTime = std::stol(allListNodeTasksTask["ActualTime"].asString());
|
||||
if(!allListNodeTasksTask["CallingNumber"].isNull())
|
||||
tasksObject.callingNumber = allListNodeTasksTask["CallingNumber"].asString();
|
||||
if(!allListNodeTasksTask["CalledNumber"].isNull())
|
||||
tasksObject.calledNumber = allListNodeTasksTask["CalledNumber"].asString();
|
||||
if(!allListNodeTasksTask["CallId"].isNull())
|
||||
tasksObject.callId = allListNodeTasksTask["CallId"].asString();
|
||||
if(!allListNodeTasksTask["Status"].isNull())
|
||||
tasksObject.status = allListNodeTasksTask["Status"].asString();
|
||||
if(!allListNodeTasksTask["Brief"].isNull())
|
||||
tasksObject.brief = allListNodeTasksTask["Brief"].asString();
|
||||
if(!allListNodeTasksTask["CallId"].isNull())
|
||||
tasksObject.callId = allListNodeTasksTask["CallId"].asString();
|
||||
if(!allListNodeTasksTask["CalledNumber"].isNull())
|
||||
tasksObject.calledNumber = allListNodeTasksTask["CalledNumber"].asString();
|
||||
if(!allListNodeTasksTask["CallingNumber"].isNull())
|
||||
tasksObject.callingNumber = allListNodeTasksTask["CallingNumber"].asString();
|
||||
if(!allListNodeTasksTask["ChatbotId"].isNull())
|
||||
tasksObject.chatbotId = allListNodeTasksTask["ChatbotId"].asString();
|
||||
if(!allListNodeTasksTask["Duration"].isNull())
|
||||
tasksObject.duration = std::stoi(allListNodeTasksTask["Duration"].asString());
|
||||
if(!allListNodeTasksTask["JobId"].isNull())
|
||||
tasksObject.jobId = allListNodeTasksTask["JobId"].asString();
|
||||
if(!allListNodeTasksTask["PlanedTime"].isNull())
|
||||
tasksObject.planedTime = std::stol(allListNodeTasksTask["PlanedTime"].asString());
|
||||
if(!allListNodeTasksTask["ScenarioId"].isNull())
|
||||
tasksObject.scenarioId = allListNodeTasksTask["ScenarioId"].asString();
|
||||
if(!allListNodeTasksTask["Status"].isNull())
|
||||
tasksObject.status = allListNodeTasksTask["Status"].asString();
|
||||
if(!allListNodeTasksTask["TaskId"].isNull())
|
||||
tasksObject.taskId = allListNodeTasksTask["TaskId"].asString();
|
||||
auto contact1Node = value["Contact"];
|
||||
if(!contact1Node["ContactId"].isNull())
|
||||
tasksObject.contact1.contactId = contact1Node["ContactId"].asString();
|
||||
@@ -133,53 +155,31 @@ void QueryJobsResult::parse(const std::string &payload)
|
||||
tasksObject.contact1.contactName = contact1Node["ContactName"].asString();
|
||||
if(!contact1Node["Honorific"].isNull())
|
||||
tasksObject.contact1.honorific = contact1Node["Honorific"].asString();
|
||||
if(!contact1Node["Role"].isNull())
|
||||
tasksObject.contact1.role = contact1Node["Role"].asString();
|
||||
if(!contact1Node["PhoneNumber"].isNull())
|
||||
tasksObject.contact1.phoneNumber = contact1Node["PhoneNumber"].asString();
|
||||
if(!contact1Node["State"].isNull())
|
||||
tasksObject.contact1.state = contact1Node["State"].asString();
|
||||
if(!contact1Node["ReferenceId"].isNull())
|
||||
tasksObject.contact1.referenceId = contact1Node["ReferenceId"].asString();
|
||||
if(!contact1Node["JobId"].isNull())
|
||||
tasksObject.contact1.jobId = contact1Node["JobId"].asString();
|
||||
if(!contact1Node["PhoneNumber"].isNull())
|
||||
tasksObject.contact1.phoneNumber = contact1Node["PhoneNumber"].asString();
|
||||
if(!contact1Node["ReferenceId"].isNull())
|
||||
tasksObject.contact1.referenceId = contact1Node["ReferenceId"].asString();
|
||||
if(!contact1Node["Role"].isNull())
|
||||
tasksObject.contact1.role = contact1Node["Role"].asString();
|
||||
if(!contact1Node["State"].isNull())
|
||||
tasksObject.contact1.state = contact1Node["State"].asString();
|
||||
jobObject.tasks.push_back(tasksObject);
|
||||
}
|
||||
auto allSummaryNode = allListNode["Summary"]["SummaryItem"];
|
||||
for (auto allListNodeSummarySummaryItem : allSummaryNode)
|
||||
{
|
||||
Jobs::Job::SummaryItem summaryObject;
|
||||
if(!allListNodeSummarySummaryItem["SummaryId"].isNull())
|
||||
summaryObject.summaryId = allListNodeSummarySummaryItem["SummaryId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["GroupId"].isNull())
|
||||
summaryObject.groupId = allListNodeSummarySummaryItem["GroupId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["JobId"].isNull())
|
||||
summaryObject.jobId = allListNodeSummarySummaryItem["JobId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["TaskId"].isNull())
|
||||
summaryObject.taskId = allListNodeSummarySummaryItem["TaskId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["ConversationDetailId"].isNull())
|
||||
summaryObject.conversationDetailId = allListNodeSummarySummaryItem["ConversationDetailId"].asString();
|
||||
if(!allListNodeSummarySummaryItem["Category"].isNull())
|
||||
summaryObject.category = allListNodeSummarySummaryItem["Category"].asString();
|
||||
if(!allListNodeSummarySummaryItem["SummaryName"].isNull())
|
||||
summaryObject.summaryName = allListNodeSummarySummaryItem["SummaryName"].asString();
|
||||
if(!allListNodeSummarySummaryItem["Content"].isNull())
|
||||
summaryObject.content = allListNodeSummarySummaryItem["Content"].asString();
|
||||
jobObject.summary.push_back(summaryObject);
|
||||
}
|
||||
auto allCallingNumbers = value["CallingNumbers"]["String"];
|
||||
for (auto value : allCallingNumbers)
|
||||
jobObject.callingNumbers.push_back(value.asString());
|
||||
jobs_.list.push_back(jobObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,26 +43,26 @@ void QueryScriptWaveformsResult::parse(const std::string &payload)
|
||||
for (auto valueScriptWaveformsScriptWaveform : allScriptWaveformsNode)
|
||||
{
|
||||
ScriptWaveform scriptWaveformsObject;
|
||||
if(!valueScriptWaveformsScriptWaveform["ScriptWaveformId"].isNull())
|
||||
scriptWaveformsObject.scriptWaveformId = valueScriptWaveformsScriptWaveform["ScriptWaveformId"].asString();
|
||||
if(!valueScriptWaveformsScriptWaveform["ScriptId"].isNull())
|
||||
scriptWaveformsObject.scriptId = valueScriptWaveformsScriptWaveform["ScriptId"].asString();
|
||||
if(!valueScriptWaveformsScriptWaveform["ScriptContent"].isNull())
|
||||
scriptWaveformsObject.scriptContent = valueScriptWaveformsScriptWaveform["ScriptContent"].asString();
|
||||
if(!valueScriptWaveformsScriptWaveform["FileId"].isNull())
|
||||
scriptWaveformsObject.fileId = valueScriptWaveformsScriptWaveform["FileId"].asString();
|
||||
if(!valueScriptWaveformsScriptWaveform["FileName"].isNull())
|
||||
scriptWaveformsObject.fileName = valueScriptWaveformsScriptWaveform["FileName"].asString();
|
||||
if(!valueScriptWaveformsScriptWaveform["ScriptContent"].isNull())
|
||||
scriptWaveformsObject.scriptContent = valueScriptWaveformsScriptWaveform["ScriptContent"].asString();
|
||||
if(!valueScriptWaveformsScriptWaveform["ScriptId"].isNull())
|
||||
scriptWaveformsObject.scriptId = valueScriptWaveformsScriptWaveform["ScriptId"].asString();
|
||||
if(!valueScriptWaveformsScriptWaveform["ScriptWaveformId"].isNull())
|
||||
scriptWaveformsObject.scriptWaveformId = valueScriptWaveformsScriptWaveform["ScriptWaveformId"].asString();
|
||||
scriptWaveforms_.push_back(scriptWaveformsObject);
|
||||
}
|
||||
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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,19 @@ QueryScriptsByStatusRequest::QueryScriptsByStatusRequest() :
|
||||
QueryScriptsByStatusRequest::~QueryScriptsByStatusRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> QueryScriptsByStatusRequest::getStatusList()const
|
||||
{
|
||||
return statusList_;
|
||||
}
|
||||
|
||||
void QueryScriptsByStatusRequest::setStatusList(const std::vector<std::string>& statusList)
|
||||
{
|
||||
statusList_ = statusList;
|
||||
for(int dep1 = 0; dep1!= statusList.size(); dep1++) {
|
||||
setParameter("StatusList."+ std::to_string(dep1), statusList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
int QueryScriptsByStatusRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -60,14 +73,3 @@ void QueryScriptsByStatusRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryScriptsByStatusRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void QueryScriptsByStatusRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user