Generate SDK by new Generator
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -35,13 +35,9 @@ AddRtcAccountResult::~AddRtcAccountResult()
|
||||
|
||||
void AddRtcAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Module"].isNull())
|
||||
module_ = value["Module"].asString();
|
||||
|
||||
@@ -47,17 +47,6 @@ void BatchRobotSmartCallRequest::setEarlyMediaAsr(bool earlyMediaAsr)
|
||||
setCoreParameter("EarlyMediaAsr", earlyMediaAsr ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getTtsParamHead()const
|
||||
{
|
||||
return ttsParamHead_;
|
||||
@@ -91,28 +80,6 @@ void BatchRobotSmartCallRequest::setTtsParam(const std::string& ttsParam)
|
||||
setCoreParameter("TtsParam", ttsParam);
|
||||
}
|
||||
|
||||
long BatchRobotSmartCallRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getDialogId()const
|
||||
{
|
||||
return dialogId_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setDialogId(const std::string& dialogId)
|
||||
{
|
||||
dialogId_ = dialogId;
|
||||
setCoreParameter("DialogId", dialogId);
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -135,17 +102,6 @@ void BatchRobotSmartCallRequest::setCalledNumber(const std::string& calledNumber
|
||||
setCoreParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
long BatchRobotSmartCallRequest::getScheduleTime()const
|
||||
{
|
||||
return scheduleTime_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setScheduleTime(long scheduleTime)
|
||||
{
|
||||
scheduleTime_ = scheduleTime;
|
||||
setCoreParameter("ScheduleTime", std::to_string(scheduleTime));
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getCalledShowNumber()const
|
||||
{
|
||||
return calledShowNumber_;
|
||||
@@ -157,6 +113,61 @@ void BatchRobotSmartCallRequest::setCalledShowNumber(const std::string& calledSh
|
||||
setCoreParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
bool BatchRobotSmartCallRequest::getIsSelfLine()const
|
||||
{
|
||||
return isSelfLine_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setIsSelfLine(bool isSelfLine)
|
||||
{
|
||||
isSelfLine_ = isSelfLine;
|
||||
setCoreParameter("IsSelfLine", isSelfLine ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long BatchRobotSmartCallRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getDialogId()const
|
||||
{
|
||||
return dialogId_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setDialogId(const std::string& dialogId)
|
||||
{
|
||||
dialogId_ = dialogId;
|
||||
setCoreParameter("DialogId", dialogId);
|
||||
}
|
||||
|
||||
long BatchRobotSmartCallRequest::getScheduleTime()const
|
||||
{
|
||||
return scheduleTime_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setScheduleTime(long scheduleTime)
|
||||
{
|
||||
scheduleTime_ = scheduleTime;
|
||||
setCoreParameter("ScheduleTime", std::to_string(scheduleTime));
|
||||
}
|
||||
|
||||
std::string BatchRobotSmartCallRequest::getCorpName()const
|
||||
{
|
||||
return corpName_;
|
||||
@@ -179,14 +190,3 @@ void BatchRobotSmartCallRequest::setScheduleCall(bool scheduleCall)
|
||||
setCoreParameter("ScheduleCall", scheduleCall ? "true" : "false");
|
||||
}
|
||||
|
||||
bool BatchRobotSmartCallRequest::getIsSelfLine()const
|
||||
{
|
||||
return isSelfLine_;
|
||||
}
|
||||
|
||||
void BatchRobotSmartCallRequest::setIsSelfLine(bool isSelfLine)
|
||||
{
|
||||
isSelfLine_ = isSelfLine;
|
||||
setCoreParameter("IsSelfLine", isSelfLine ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ BatchRobotSmartCallResult::~BatchRobotSmartCallResult()
|
||||
|
||||
void BatchRobotSmartCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
@@ -35,13 +35,9 @@ CancelCallResult::~CancelCallResult()
|
||||
|
||||
void CancelCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString() == "true";
|
||||
|
||||
@@ -58,17 +58,6 @@ void CancelOrderRobotTaskRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long CancelOrderRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void CancelOrderRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string CancelOrderRobotTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -80,3 +69,14 @@ void CancelOrderRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long CancelOrderRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void CancelOrderRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ CancelOrderRobotTaskResult::~CancelOrderRobotTaskResult()
|
||||
|
||||
void CancelOrderRobotTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -58,17 +58,6 @@ void CancelRobotTaskRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long CancelRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void CancelRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string CancelRobotTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -80,3 +69,14 @@ void CancelRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long CancelRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void CancelRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ CancelRobotTaskResult::~CancelRobotTaskResult()
|
||||
|
||||
void CancelRobotTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -36,39 +36,6 @@ void ClickToDialRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
bool ClickToDialRequest::getRecordFlag()const
|
||||
{
|
||||
return recordFlag_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setRecordFlag(bool recordFlag)
|
||||
{
|
||||
recordFlag_ = recordFlag;
|
||||
setCoreParameter("RecordFlag", recordFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
long ClickToDialRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getCallerShowNumber()const
|
||||
{
|
||||
return callerShowNumber_;
|
||||
@@ -124,17 +91,6 @@ void ClickToDialRequest::setCalledShowNumber(const std::string& calledShowNumber
|
||||
setCoreParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
bool ClickToDialRequest::getAsrFlag()const
|
||||
{
|
||||
return asrFlag_;
|
||||
@@ -146,6 +102,50 @@ void ClickToDialRequest::setAsrFlag(bool asrFlag)
|
||||
setCoreParameter("AsrFlag", asrFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
bool ClickToDialRequest::getRecordFlag()const
|
||||
{
|
||||
return recordFlag_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setRecordFlag(bool recordFlag)
|
||||
{
|
||||
recordFlag_ = recordFlag;
|
||||
setCoreParameter("RecordFlag", recordFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
long ClickToDialRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getAsrModelId()const
|
||||
{
|
||||
return asrModelId_;
|
||||
|
||||
@@ -35,13 +35,9 @@ ClickToDialResult::~ClickToDialResult()
|
||||
|
||||
void ClickToDialResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
|
||||
@@ -47,17 +47,6 @@ void CreateRobotTaskRequest::setRecallStateCodes(const std::string& recallStateC
|
||||
setCoreParameter("RecallStateCodes", recallStateCodes);
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskRequest::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
@@ -69,6 +58,50 @@ void CreateRobotTaskRequest::setTaskName(const std::string& taskName)
|
||||
setCoreParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int CreateRobotTaskRequest::getRecallTimes()const
|
||||
{
|
||||
return recallTimes_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setRecallTimes(int recallTimes)
|
||||
{
|
||||
recallTimes_ = recallTimes;
|
||||
setCoreParameter("RecallTimes", std::to_string(recallTimes));
|
||||
}
|
||||
|
||||
bool CreateRobotTaskRequest::getIsSelfLine()const
|
||||
{
|
||||
return isSelfLine_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setIsSelfLine(bool isSelfLine)
|
||||
{
|
||||
isSelfLine_ = isSelfLine;
|
||||
setCoreParameter("IsSelfLine", isSelfLine ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int CreateRobotTaskRequest::getRetryType()const
|
||||
{
|
||||
return retryType_;
|
||||
@@ -102,28 +135,6 @@ void CreateRobotTaskRequest::setDialogId(long dialogId)
|
||||
setCoreParameter("DialogId", std::to_string(dialogId));
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int CreateRobotTaskRequest::getRecallTimes()const
|
||||
{
|
||||
return recallTimes_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setRecallTimes(int recallTimes)
|
||||
{
|
||||
recallTimes_ = recallTimes;
|
||||
setCoreParameter("RecallTimes", std::to_string(recallTimes));
|
||||
}
|
||||
|
||||
std::string CreateRobotTaskRequest::getCaller()const
|
||||
{
|
||||
return caller_;
|
||||
@@ -168,14 +179,3 @@ void CreateRobotTaskRequest::setRecallInterval(int recallInterval)
|
||||
setCoreParameter("RecallInterval", std::to_string(recallInterval));
|
||||
}
|
||||
|
||||
bool CreateRobotTaskRequest::getIsSelfLine()const
|
||||
{
|
||||
return isSelfLine_;
|
||||
}
|
||||
|
||||
void CreateRobotTaskRequest::setIsSelfLine(bool isSelfLine)
|
||||
{
|
||||
isSelfLine_ = isSelfLine;
|
||||
setCoreParameter("IsSelfLine", isSelfLine ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ CreateRobotTaskResult::~CreateRobotTaskResult()
|
||||
|
||||
void CreateRobotTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -58,17 +58,6 @@ void DeleteRobotTaskRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long DeleteRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DeleteRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string DeleteRobotTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -80,3 +69,14 @@ void DeleteRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long DeleteRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DeleteRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ DeleteRobotTaskResult::~DeleteRobotTaskResult()
|
||||
|
||||
void DeleteRobotTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -36,6 +36,28 @@ void GetRtcTokenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string GetRtcTokenRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void GetRtcTokenRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string GetRtcTokenRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetRtcTokenRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetRtcTokenRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -58,17 +80,6 @@ void GetRtcTokenRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string GetRtcTokenRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void GetRtcTokenRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setCoreParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string GetRtcTokenRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
@@ -91,14 +102,3 @@ void GetRtcTokenRequest::setIsCustomAccount(bool isCustomAccount)
|
||||
setCoreParameter("IsCustomAccount", isCustomAccount ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetRtcTokenRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetRtcTokenRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ GetRtcTokenResult::~GetRtcTokenResult()
|
||||
|
||||
void GetRtcTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Module"].isNull())
|
||||
module_ = value["Module"].asString();
|
||||
|
||||
@@ -36,24 +36,6 @@ void IvrCallRequest::setByeCode(const std::string& byeCode)
|
||||
setCoreParameter("ByeCode", byeCode);
|
||||
}
|
||||
|
||||
std::vector<IvrCallRequest::MenuKeyMap> IvrCallRequest::getMenuKeyMap()const
|
||||
{
|
||||
return menuKeyMap_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setMenuKeyMap(const std::vector<MenuKeyMap>& menuKeyMap)
|
||||
{
|
||||
menuKeyMap_ = menuKeyMap;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= menuKeyMap.size(); i++) {
|
||||
auto obj = menuKeyMap.at(i);
|
||||
std::string str ="MenuKeyMap."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Code", obj.code);
|
||||
setCoreParameter(str + ".TtsParams", obj.ttsParams);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
long IvrCallRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
@@ -65,17 +47,6 @@ void IvrCallRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getStartTtsParams()const
|
||||
{
|
||||
return startTtsParams_;
|
||||
@@ -87,28 +58,6 @@ void IvrCallRequest::setStartTtsParams(const std::string& startTtsParams)
|
||||
setCoreParameter("StartTtsParams", startTtsParams);
|
||||
}
|
||||
|
||||
long IvrCallRequest::getPlayTimes()const
|
||||
{
|
||||
return playTimes_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setPlayTimes(long playTimes)
|
||||
{
|
||||
playTimes_ = playTimes;
|
||||
setCoreParameter("PlayTimes", std::to_string(playTimes));
|
||||
}
|
||||
|
||||
long IvrCallRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int IvrCallRequest::getTimeout()const
|
||||
{
|
||||
return timeout_;
|
||||
@@ -164,6 +113,57 @@ void IvrCallRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
setCoreParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
std::vector<IvrCallRequest::MenuKeyMap> IvrCallRequest::getMenuKeyMap()const
|
||||
{
|
||||
return menuKeyMap_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setMenuKeyMap(const std::vector<MenuKeyMap>& menuKeyMap)
|
||||
{
|
||||
menuKeyMap_ = menuKeyMap;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= menuKeyMap.size(); i++) {
|
||||
auto obj = menuKeyMap.at(i);
|
||||
std::string str ="MenuKeyMap."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Code", obj.code);
|
||||
setCoreParameter(str + ".TtsParams", obj.ttsParams);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long IvrCallRequest::getPlayTimes()const
|
||||
{
|
||||
return playTimes_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setPlayTimes(long playTimes)
|
||||
{
|
||||
playTimes_ = playTimes;
|
||||
setCoreParameter("PlayTimes", std::to_string(playTimes));
|
||||
}
|
||||
|
||||
long IvrCallRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
|
||||
@@ -35,13 +35,9 @@ IvrCallResult::~IvrCallResult()
|
||||
|
||||
void IvrCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
|
||||
@@ -47,6 +47,17 @@ void QueryCallDetailByCallIdRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByCallIdRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByCallIdRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long QueryCallDetailByCallIdRequest::getQueryDate()const
|
||||
{
|
||||
return queryDate_;
|
||||
@@ -91,14 +102,3 @@ void QueryCallDetailByCallIdRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByCallIdRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByCallIdRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryCallDetailByCallIdResult::~QueryCallDetailByCallIdResult()
|
||||
|
||||
void QueryCallDetailByCallIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -36,6 +36,39 @@ void QueryCallDetailByTaskIdRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByTaskIdRequest::getCallee()const
|
||||
{
|
||||
return callee_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByTaskIdRequest::setCallee(const std::string& callee)
|
||||
{
|
||||
callee_ = callee;
|
||||
setCoreParameter("Callee", callee);
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByTaskIdRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByTaskIdRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByTaskIdRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByTaskIdRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
long QueryCallDetailByTaskIdRequest::getQueryDate()const
|
||||
{
|
||||
return queryDate_;
|
||||
@@ -58,17 +91,6 @@ void QueryCallDetailByTaskIdRequest::setResourceOwnerAccount(const std::string&
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByTaskIdRequest::getCallee()const
|
||||
{
|
||||
return callee_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByTaskIdRequest::setCallee(const std::string& callee)
|
||||
{
|
||||
callee_ = callee;
|
||||
setCoreParameter("Callee", callee);
|
||||
}
|
||||
|
||||
long QueryCallDetailByTaskIdRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -80,25 +102,3 @@ void QueryCallDetailByTaskIdRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByTaskIdRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByTaskIdRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByTaskIdRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByTaskIdRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryCallDetailByTaskIdResult::~QueryCallDetailByTaskIdResult()
|
||||
|
||||
void QueryCallDetailByTaskIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryRobotInfoListResult::~QueryRobotInfoListResult()
|
||||
|
||||
void QueryRobotInfoListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -36,6 +36,39 @@ void QueryRobotTaskCallDetailRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallDetailRequest::getCallee()const
|
||||
{
|
||||
return callee_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallDetailRequest::setCallee(const std::string& callee)
|
||||
{
|
||||
callee_ = callee;
|
||||
setCoreParameter("Callee", callee);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallDetailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long QueryRobotTaskCallDetailRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallDetailRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
long QueryRobotTaskCallDetailRequest::getQueryDate()const
|
||||
{
|
||||
return queryDate_;
|
||||
@@ -58,17 +91,6 @@ void QueryRobotTaskCallDetailRequest::setResourceOwnerAccount(const std::string&
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallDetailRequest::getCallee()const
|
||||
{
|
||||
return callee_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallDetailRequest::setCallee(const std::string& callee)
|
||||
{
|
||||
callee_ = callee;
|
||||
setCoreParameter("Callee", callee);
|
||||
}
|
||||
|
||||
long QueryRobotTaskCallDetailRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -80,25 +102,3 @@ void QueryRobotTaskCallDetailRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long QueryRobotTaskCallDetailRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallDetailRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallDetailRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryRobotTaskCallDetailResult::~QueryRobotTaskCallDetailResult()
|
||||
|
||||
void QueryRobotTaskCallDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -47,6 +47,61 @@ void QueryRobotTaskCallListRequest::setCalled(const std::string& called)
|
||||
setCoreParameter("Called", called);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getDialogCountTo()const
|
||||
{
|
||||
return dialogCountTo_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setDialogCountTo(const std::string& dialogCountTo)
|
||||
{
|
||||
dialogCountTo_ = dialogCountTo;
|
||||
setCoreParameter("DialogCountTo", dialogCountTo);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getDurationFrom()const
|
||||
{
|
||||
return durationFrom_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setDurationFrom(const std::string& durationFrom)
|
||||
{
|
||||
durationFrom_ = durationFrom;
|
||||
setCoreParameter("DurationFrom", durationFrom);
|
||||
}
|
||||
|
||||
int QueryRobotTaskCallListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -91,17 +146,6 @@ void QueryRobotTaskCallListRequest::setHangupDirection(const std::string& hangup
|
||||
setCoreParameter("HangupDirection", hangupDirection);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getDialogCountTo()const
|
||||
{
|
||||
return dialogCountTo_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setDialogCountTo(const std::string& dialogCountTo)
|
||||
{
|
||||
dialogCountTo_ = dialogCountTo;
|
||||
setCoreParameter("DialogCountTo", dialogCountTo);
|
||||
}
|
||||
|
||||
long QueryRobotTaskCallListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -113,28 +157,6 @@ void QueryRobotTaskCallListRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getDurationFrom()const
|
||||
{
|
||||
return durationFrom_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setDurationFrom(const std::string& durationFrom)
|
||||
{
|
||||
durationFrom_ = durationFrom;
|
||||
setCoreParameter("DurationFrom", durationFrom);
|
||||
}
|
||||
|
||||
int QueryRobotTaskCallListRequest::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
@@ -146,17 +168,6 @@ void QueryRobotTaskCallListRequest::setPageNo(int pageNo)
|
||||
setCoreParameter("PageNo", std::to_string(pageNo));
|
||||
}
|
||||
|
||||
int QueryRobotTaskCallListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getCallResult()const
|
||||
{
|
||||
return callResult_;
|
||||
@@ -168,14 +179,3 @@ void QueryRobotTaskCallListRequest::setCallResult(const std::string& callResult)
|
||||
setCoreParameter("CallResult", callResult);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskCallListRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskCallListRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryRobotTaskCallListResult::~QueryRobotTaskCallListResult()
|
||||
|
||||
void QueryRobotTaskCallListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -47,17 +47,6 @@ void QueryRobotTaskDetailRequest::setResourceOwnerAccount(const std::string& res
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long QueryRobotTaskDetailRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskDetailRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
long QueryRobotTaskDetailRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -80,3 +69,14 @@ void QueryRobotTaskDetailRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long QueryRobotTaskDetailRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskDetailRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryRobotTaskDetailResult::~QueryRobotTaskDetailResult()
|
||||
|
||||
void QueryRobotTaskDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -36,39 +36,6 @@ void QueryRobotTaskListRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int QueryRobotTaskListRequest::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setPageNo(int pageNo)
|
||||
{
|
||||
pageNo_ = pageNo;
|
||||
setCoreParameter("PageNo", std::to_string(pageNo));
|
||||
}
|
||||
|
||||
int QueryRobotTaskListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListRequest::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
@@ -80,28 +47,6 @@ void QueryRobotTaskListRequest::setTaskName(const std::string& taskName)
|
||||
setCoreParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListRequest::getTime()const
|
||||
{
|
||||
return time_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setTime(const std::string& time)
|
||||
{
|
||||
time_ = time;
|
||||
setCoreParameter("Time", time);
|
||||
}
|
||||
|
||||
long QueryRobotTaskListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -113,6 +58,61 @@ void QueryRobotTaskListRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int QueryRobotTaskListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long QueryRobotTaskListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int QueryRobotTaskListRequest::getPageNo()const
|
||||
{
|
||||
return pageNo_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setPageNo(int pageNo)
|
||||
{
|
||||
pageNo_ = pageNo;
|
||||
setCoreParameter("PageNo", std::to_string(pageNo));
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListRequest::getTime()const
|
||||
{
|
||||
return time_;
|
||||
}
|
||||
|
||||
void QueryRobotTaskListRequest::setTime(const std::string& time)
|
||||
{
|
||||
time_ = time;
|
||||
setCoreParameter("Time", time);
|
||||
}
|
||||
|
||||
std::string QueryRobotTaskListRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryRobotTaskListResult::~QueryRobotTaskListResult()
|
||||
|
||||
void QueryRobotTaskListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -35,13 +35,9 @@ QueryRobotv2AllListResult::~QueryRobotv2AllListResult()
|
||||
|
||||
void QueryRobotv2AllListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -36,6 +36,61 @@ void SingleCallByTtsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getTtsParam()const
|
||||
{
|
||||
return ttsParam_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setTtsParam(const std::string& ttsParam)
|
||||
{
|
||||
ttsParam_ = ttsParam;
|
||||
setCoreParameter("TtsParam", ttsParam);
|
||||
}
|
||||
|
||||
int SingleCallByTtsRequest::getSpeed()const
|
||||
{
|
||||
return speed_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setSpeed(int speed)
|
||||
{
|
||||
speed_ = speed;
|
||||
setCoreParameter("Speed", std::to_string(speed));
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getCalledNumber()const
|
||||
{
|
||||
return calledNumber_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setCoreParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getCalledShowNumber()const
|
||||
{
|
||||
return calledShowNumber_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
{
|
||||
calledShowNumber_ = calledShowNumber;
|
||||
setCoreParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -69,17 +124,6 @@ void SingleCallByTtsRequest::setPlayTimes(int playTimes)
|
||||
setCoreParameter("PlayTimes", std::to_string(playTimes));
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getTtsParam()const
|
||||
{
|
||||
return ttsParam_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setTtsParam(const std::string& ttsParam)
|
||||
{
|
||||
ttsParam_ = ttsParam;
|
||||
setCoreParameter("TtsParam", ttsParam);
|
||||
}
|
||||
|
||||
long SingleCallByTtsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -91,28 +135,6 @@ void SingleCallByTtsRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int SingleCallByTtsRequest::getSpeed()const
|
||||
{
|
||||
return speed_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setSpeed(int speed)
|
||||
{
|
||||
speed_ = speed;
|
||||
setCoreParameter("Speed", std::to_string(speed));
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int SingleCallByTtsRequest::getVolume()const
|
||||
{
|
||||
return volume_;
|
||||
@@ -124,28 +146,6 @@ void SingleCallByTtsRequest::setVolume(int volume)
|
||||
setCoreParameter("Volume", std::to_string(volume));
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getCalledNumber()const
|
||||
{
|
||||
return calledNumber_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setCoreParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getCalledShowNumber()const
|
||||
{
|
||||
return calledShowNumber_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
{
|
||||
calledShowNumber_ = calledShowNumber;
|
||||
setCoreParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
|
||||
@@ -35,13 +35,9 @@ SingleCallByTtsResult::~SingleCallByTtsResult()
|
||||
|
||||
void SingleCallByTtsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
|
||||
@@ -25,17 +25,6 @@ SingleCallByVoiceRequest::SingleCallByVoiceRequest() :
|
||||
SingleCallByVoiceRequest::~SingleCallByVoiceRequest()
|
||||
{}
|
||||
|
||||
int SingleCallByVoiceRequest::getVolume()const
|
||||
{
|
||||
return volume_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setVolume(int volume)
|
||||
{
|
||||
volume_ = volume;
|
||||
setCoreParameter("Volume", std::to_string(volume));
|
||||
}
|
||||
|
||||
long SingleCallByVoiceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
@@ -47,15 +36,26 @@ void SingleCallByVoiceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getResourceOwnerAccount()const
|
||||
int SingleCallByVoiceRequest::getSpeed()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
return speed_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
void SingleCallByVoiceRequest::setSpeed(int speed)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
speed_ = speed;
|
||||
setCoreParameter("Speed", std::to_string(speed));
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getCalledNumber()const
|
||||
@@ -91,6 +91,17 @@ void SingleCallByVoiceRequest::setCalledShowNumber(const std::string& calledShow
|
||||
setCoreParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int SingleCallByVoiceRequest::getPlayTimes()const
|
||||
{
|
||||
return playTimes_;
|
||||
@@ -102,17 +113,6 @@ void SingleCallByVoiceRequest::setPlayTimes(int playTimes)
|
||||
setCoreParameter("PlayTimes", std::to_string(playTimes));
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
long SingleCallByVoiceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -124,25 +124,25 @@ void SingleCallByVoiceRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int SingleCallByVoiceRequest::getSpeed()const
|
||||
int SingleCallByVoiceRequest::getVolume()const
|
||||
{
|
||||
return speed_;
|
||||
return volume_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setSpeed(int speed)
|
||||
void SingleCallByVoiceRequest::setVolume(int volume)
|
||||
{
|
||||
speed_ = speed;
|
||||
setCoreParameter("Speed", std::to_string(speed));
|
||||
volume_ = volume;
|
||||
setCoreParameter("Volume", std::to_string(volume));
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getAccessKeyId()const
|
||||
std::string SingleCallByVoiceRequest::getOutId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
void SingleCallByVoiceRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
outId_ = outId;
|
||||
setCoreParameter("OutId", outId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ SingleCallByVoiceResult::~SingleCallByVoiceResult()
|
||||
|
||||
void SingleCallByVoiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
|
||||
@@ -47,15 +47,15 @@ void SmartCallOperateRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SmartCallOperateRequest::getResourceOwnerAccount()const
|
||||
std::string SmartCallOperateRequest::getAccessKeyId()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SmartCallOperateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
void SmartCallOperateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string SmartCallOperateRequest::getParam()const
|
||||
@@ -69,6 +69,17 @@ void SmartCallOperateRequest::setParam(const std::string& param)
|
||||
setCoreParameter("Param", param);
|
||||
}
|
||||
|
||||
std::string SmartCallOperateRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SmartCallOperateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long SmartCallOperateRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -91,14 +102,3 @@ void SmartCallOperateRequest::setCommand(const std::string& command)
|
||||
setCoreParameter("Command", command);
|
||||
}
|
||||
|
||||
std::string SmartCallOperateRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SmartCallOperateRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ SmartCallOperateResult::~SmartCallOperateResult()
|
||||
|
||||
void SmartCallOperateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString() == "true";
|
||||
|
||||
@@ -35,13 +35,9 @@ SmartCallResult::~SmartCallResult()
|
||||
|
||||
void SmartCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
|
||||
@@ -47,17 +47,6 @@ void StartRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceO
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string StartRobotTaskRequest::getScheduleTime()const
|
||||
{
|
||||
return scheduleTime_;
|
||||
}
|
||||
|
||||
void StartRobotTaskRequest::setScheduleTime(const std::string& scheduleTime)
|
||||
{
|
||||
scheduleTime_ = scheduleTime;
|
||||
setCoreParameter("ScheduleTime", scheduleTime);
|
||||
}
|
||||
|
||||
long StartRobotTaskRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -69,17 +58,6 @@ void StartRobotTaskRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long StartRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StartRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string StartRobotTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -91,3 +69,25 @@ void StartRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string StartRobotTaskRequest::getScheduleTime()const
|
||||
{
|
||||
return scheduleTime_;
|
||||
}
|
||||
|
||||
void StartRobotTaskRequest::setScheduleTime(const std::string& scheduleTime)
|
||||
{
|
||||
scheduleTime_ = scheduleTime;
|
||||
setCoreParameter("ScheduleTime", scheduleTime);
|
||||
}
|
||||
|
||||
long StartRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StartRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ StartRobotTaskResult::~StartRobotTaskResult()
|
||||
|
||||
void StartRobotTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -58,17 +58,6 @@ void StopRobotTaskRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long StopRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StopRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
std::string StopRobotTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -80,3 +69,14 @@ void StopRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long StopRobotTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StopRobotTaskRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setCoreParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ StopRobotTaskResult::~StopRobotTaskResult()
|
||||
|
||||
void StopRobotTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -36,28 +36,6 @@ void UploadRobotTaskCalledFileRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UploadRobotTaskCalledFileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileRequest::getCalledNumber()const
|
||||
{
|
||||
return calledNumber_;
|
||||
}
|
||||
|
||||
void UploadRobotTaskCalledFileRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setCoreParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileRequest::getTtsParamHead()const
|
||||
{
|
||||
return ttsParamHead_;
|
||||
@@ -80,6 +58,28 @@ void UploadRobotTaskCalledFileRequest::setTtsParam(const std::string& ttsParam)
|
||||
setCoreParameter("TtsParam", ttsParam);
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void UploadRobotTaskCalledFileRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileRequest::getCalledNumber()const
|
||||
{
|
||||
return calledNumber_;
|
||||
}
|
||||
|
||||
void UploadRobotTaskCalledFileRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setCoreParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
long UploadRobotTaskCalledFileRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
@@ -91,6 +91,17 @@ void UploadRobotTaskCalledFileRequest::setId(long id)
|
||||
setCoreParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UploadRobotTaskCalledFileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long UploadRobotTaskCalledFileRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -102,14 +113,3 @@ void UploadRobotTaskCalledFileRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UploadRobotTaskCalledFileRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void UploadRobotTaskCalledFileRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ UploadRobotTaskCalledFileResult::~UploadRobotTaskCalledFileResult()
|
||||
|
||||
void UploadRobotTaskCalledFileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
@@ -35,13 +35,9 @@ VoipAddAccountResult::~VoipAddAccountResult()
|
||||
|
||||
void VoipAddAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Module"].isNull())
|
||||
module_ = value["Module"].asString();
|
||||
|
||||
@@ -36,6 +36,17 @@ void VoipGetTokenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string VoipGetTokenRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void VoipGetTokenRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string VoipGetTokenRequest::getVoipId()const
|
||||
{
|
||||
return voipId_;
|
||||
@@ -91,14 +102,3 @@ void VoipGetTokenRequest::setIsCustomAccount(bool isCustomAccount)
|
||||
setCoreParameter("IsCustomAccount", isCustomAccount ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string VoipGetTokenRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void VoipGetTokenRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ VoipGetTokenResult::~VoipGetTokenResult()
|
||||
|
||||
void VoipGetTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Module"].isNull())
|
||||
module_ = value["Module"].asString();
|
||||
|
||||
Reference in New Issue
Block a user