Rebuild sdk (#60)

* rebuild sdk

* fixed ut include Utils.h
This commit is contained in:
Axios
2019-08-14 14:34:09 +08:00
committed by GitHub
parent f3d9843e63
commit c43307bc80
11893 changed files with 462166 additions and 221301 deletions

View File

@@ -0,0 +1,82 @@
/*
* 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/dyvmsapi/model/AddRtcAccountRequest.h>
using AlibabaCloud::Dyvmsapi::Model::AddRtcAccountRequest;
AddRtcAccountRequest::AddRtcAccountRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "AddRtcAccount")
{}
AddRtcAccountRequest::~AddRtcAccountRequest()
{}
long AddRtcAccountRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddRtcAccountRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddRtcAccountRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddRtcAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long AddRtcAccountRequest::getOwnerId()const
{
return ownerId_;
}
void AddRtcAccountRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string AddRtcAccountRequest::getDeviceId()const
{
return deviceId_;
}
void AddRtcAccountRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setCoreParameter("DeviceId", deviceId);
}
std::string AddRtcAccountRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddRtcAccountRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/AddRtcAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
AddRtcAccountResult::AddRtcAccountResult() :
ServiceResult()
{}
AddRtcAccountResult::AddRtcAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddRtcAccountResult::~AddRtcAccountResult()
{}
void AddRtcAccountResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string AddRtcAccountResult::getMessage()const
{
return message_;
}
std::string AddRtcAccountResult::getModule()const
{
return module_;
}
std::string AddRtcAccountResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,192 @@
/*
* 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/dyvmsapi/model/BatchRobotSmartCallRequest.h>
using AlibabaCloud::Dyvmsapi::Model::BatchRobotSmartCallRequest;
BatchRobotSmartCallRequest::BatchRobotSmartCallRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "BatchRobotSmartCall")
{}
BatchRobotSmartCallRequest::~BatchRobotSmartCallRequest()
{}
long BatchRobotSmartCallRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void BatchRobotSmartCallRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
bool BatchRobotSmartCallRequest::getEarlyMediaAsr()const
{
return earlyMediaAsr_;
}
void BatchRobotSmartCallRequest::setEarlyMediaAsr(bool earlyMediaAsr)
{
earlyMediaAsr_ = 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_;
}
void BatchRobotSmartCallRequest::setTtsParamHead(const std::string& ttsParamHead)
{
ttsParamHead_ = ttsParamHead;
setCoreParameter("TtsParamHead", ttsParamHead);
}
std::string BatchRobotSmartCallRequest::getTaskName()const
{
return taskName_;
}
void BatchRobotSmartCallRequest::setTaskName(const std::string& taskName)
{
taskName_ = taskName;
setCoreParameter("TaskName", taskName);
}
std::string BatchRobotSmartCallRequest::getTtsParam()const
{
return ttsParam_;
}
void BatchRobotSmartCallRequest::setTtsParam(const std::string& ttsParam)
{
ttsParam_ = 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_;
}
void BatchRobotSmartCallRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string BatchRobotSmartCallRequest::getCalledNumber()const
{
return calledNumber_;
}
void BatchRobotSmartCallRequest::setCalledNumber(const std::string& calledNumber)
{
calledNumber_ = 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_;
}
void BatchRobotSmartCallRequest::setCalledShowNumber(const std::string& calledShowNumber)
{
calledShowNumber_ = calledShowNumber;
setCoreParameter("CalledShowNumber", calledShowNumber);
}
std::string BatchRobotSmartCallRequest::getCorpName()const
{
return corpName_;
}
void BatchRobotSmartCallRequest::setCorpName(const std::string& corpName)
{
corpName_ = corpName;
setCoreParameter("CorpName", corpName);
}
bool BatchRobotSmartCallRequest::getScheduleCall()const
{
return scheduleCall_;
}
void BatchRobotSmartCallRequest::setScheduleCall(bool scheduleCall)
{
scheduleCall_ = scheduleCall;
setCoreParameter("ScheduleCall", scheduleCall ? "true" : "false");
}
bool BatchRobotSmartCallRequest::getIsSelfLine()const
{
return isSelfLine_;
}
void BatchRobotSmartCallRequest::setIsSelfLine(bool isSelfLine)
{
isSelfLine_ = isSelfLine;
setCoreParameter("IsSelfLine", isSelfLine ? "true" : "false");
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/BatchRobotSmartCallResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
BatchRobotSmartCallResult::BatchRobotSmartCallResult() :
ServiceResult()
{}
BatchRobotSmartCallResult::BatchRobotSmartCallResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BatchRobotSmartCallResult::~BatchRobotSmartCallResult()
{}
void BatchRobotSmartCallResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string BatchRobotSmartCallResult::getTaskId()const
{
return taskId_;
}
std::string BatchRobotSmartCallResult::getMessage()const
{
return message_;
}
std::string BatchRobotSmartCallResult::getCode()const
{
return code_;
}

View File

@@ -33,7 +33,7 @@ std::string CancelCallRequest::getCallId()const
void CancelCallRequest::setCallId(const std::string& callId)
{
callId_ = callId;
setParameter("CallId", callId);
setCoreParameter("CallId", callId);
}
long CancelCallRequest::getResourceOwnerId()const
@@ -44,7 +44,7 @@ long CancelCallRequest::getResourceOwnerId()const
void CancelCallRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CancelCallRequest::getResourceOwnerAccount()const
@@ -55,7 +55,7 @@ std::string CancelCallRequest::getResourceOwnerAccount()const
void CancelCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long CancelCallRequest::getOwnerId()const
@@ -66,7 +66,7 @@ long CancelCallRequest::getOwnerId()const
void CancelCallRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string CancelCallRequest::getAccessKeyId()const
@@ -77,6 +77,6 @@ std::string CancelCallRequest::getAccessKeyId()const
void CancelCallRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -35,10 +35,13 @@ CancelCallResult::~CancelCallResult()
void CancelCallResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
reader.parse(payload, value);
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Status"].isNull())
status_ = value["Status"].asString() == "true";

View File

@@ -0,0 +1,82 @@
/*
* 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/dyvmsapi/model/CancelOrderRobotTaskRequest.h>
using AlibabaCloud::Dyvmsapi::Model::CancelOrderRobotTaskRequest;
CancelOrderRobotTaskRequest::CancelOrderRobotTaskRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "CancelOrderRobotTask")
{}
CancelOrderRobotTaskRequest::~CancelOrderRobotTaskRequest()
{}
long CancelOrderRobotTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CancelOrderRobotTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CancelOrderRobotTaskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CancelOrderRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long CancelOrderRobotTaskRequest::getOwnerId()const
{
return ownerId_;
}
void CancelOrderRobotTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = 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_;
}
void CancelOrderRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/CancelOrderRobotTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
CancelOrderRobotTaskResult::CancelOrderRobotTaskResult() :
ServiceResult()
{}
CancelOrderRobotTaskResult::CancelOrderRobotTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelOrderRobotTaskResult::~CancelOrderRobotTaskResult()
{}
void CancelOrderRobotTaskResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CancelOrderRobotTaskResult::getMessage()const
{
return message_;
}
std::string CancelOrderRobotTaskResult::getData()const
{
return data_;
}
std::string CancelOrderRobotTaskResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/dyvmsapi/model/CancelRobotTaskRequest.h>
using AlibabaCloud::Dyvmsapi::Model::CancelRobotTaskRequest;
CancelRobotTaskRequest::CancelRobotTaskRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "CancelRobotTask")
{}
CancelRobotTaskRequest::~CancelRobotTaskRequest()
{}
long CancelRobotTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CancelRobotTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CancelRobotTaskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CancelRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long CancelRobotTaskRequest::getOwnerId()const
{
return ownerId_;
}
void CancelRobotTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = 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_;
}
void CancelRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/CancelRobotTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
CancelRobotTaskResult::CancelRobotTaskResult() :
ServiceResult()
{}
CancelRobotTaskResult::CancelRobotTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelRobotTaskResult::~CancelRobotTaskResult()
{}
void CancelRobotTaskResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CancelRobotTaskResult::getMessage()const
{
return message_;
}
std::string CancelRobotTaskResult::getData()const
{
return data_;
}
std::string CancelRobotTaskResult::getCode()const
{
return code_;
}

View File

@@ -33,7 +33,7 @@ long ClickToDialRequest::getResourceOwnerId()const
void ClickToDialRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ClickToDialRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string ClickToDialRequest::getResourceOwnerAccount()const
void ClickToDialRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
bool ClickToDialRequest::getRecordFlag()const
@@ -55,7 +55,7 @@ bool ClickToDialRequest::getRecordFlag()const
void ClickToDialRequest::setRecordFlag(bool recordFlag)
{
recordFlag_ = recordFlag;
setParameter("RecordFlag", std::to_string(recordFlag));
setCoreParameter("RecordFlag", recordFlag ? "true" : "false");
}
long ClickToDialRequest::getOwnerId()const
@@ -66,7 +66,7 @@ long ClickToDialRequest::getOwnerId()const
void ClickToDialRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string ClickToDialRequest::getCallerShowNumber()const
@@ -77,7 +77,7 @@ std::string ClickToDialRequest::getCallerShowNumber()const
void ClickToDialRequest::setCallerShowNumber(const std::string& callerShowNumber)
{
callerShowNumber_ = callerShowNumber;
setParameter("CallerShowNumber", callerShowNumber);
setCoreParameter("CallerShowNumber", callerShowNumber);
}
std::string ClickToDialRequest::getAccessKeyId()const
@@ -88,7 +88,7 @@ std::string ClickToDialRequest::getAccessKeyId()const
void ClickToDialRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
int ClickToDialRequest::getSessionTimeout()const
@@ -99,7 +99,7 @@ int ClickToDialRequest::getSessionTimeout()const
void ClickToDialRequest::setSessionTimeout(int sessionTimeout)
{
sessionTimeout_ = sessionTimeout;
setParameter("SessionTimeout", std::to_string(sessionTimeout));
setCoreParameter("SessionTimeout", std::to_string(sessionTimeout));
}
std::string ClickToDialRequest::getCalledNumber()const
@@ -110,7 +110,7 @@ std::string ClickToDialRequest::getCalledNumber()const
void ClickToDialRequest::setCalledNumber(const std::string& calledNumber)
{
calledNumber_ = calledNumber;
setParameter("CalledNumber", calledNumber);
setCoreParameter("CalledNumber", calledNumber);
}
std::string ClickToDialRequest::getCalledShowNumber()const
@@ -121,7 +121,7 @@ std::string ClickToDialRequest::getCalledShowNumber()const
void ClickToDialRequest::setCalledShowNumber(const std::string& calledShowNumber)
{
calledShowNumber_ = calledShowNumber;
setParameter("CalledShowNumber", calledShowNumber);
setCoreParameter("CalledShowNumber", calledShowNumber);
}
std::string ClickToDialRequest::getOutId()const
@@ -132,7 +132,7 @@ std::string ClickToDialRequest::getOutId()const
void ClickToDialRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setParameter("OutId", outId);
setCoreParameter("OutId", outId);
}
bool ClickToDialRequest::getAsrFlag()const
@@ -143,7 +143,7 @@ bool ClickToDialRequest::getAsrFlag()const
void ClickToDialRequest::setAsrFlag(bool asrFlag)
{
asrFlag_ = asrFlag;
setParameter("AsrFlag", std::to_string(asrFlag));
setCoreParameter("AsrFlag", asrFlag ? "true" : "false");
}
std::string ClickToDialRequest::getAsrModelId()const
@@ -154,7 +154,7 @@ std::string ClickToDialRequest::getAsrModelId()const
void ClickToDialRequest::setAsrModelId(const std::string& asrModelId)
{
asrModelId_ = asrModelId;
setParameter("AsrModelId", asrModelId);
setCoreParameter("AsrModelId", asrModelId);
}
std::string ClickToDialRequest::getCallerNumber()const
@@ -165,6 +165,6 @@ std::string ClickToDialRequest::getCallerNumber()const
void ClickToDialRequest::setCallerNumber(const std::string& callerNumber)
{
callerNumber_ = callerNumber;
setParameter("CallerNumber", callerNumber);
setCoreParameter("CallerNumber", callerNumber);
}

View File

@@ -35,10 +35,13 @@ ClickToDialResult::~ClickToDialResult()
void ClickToDialResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
reader.parse(payload, value);
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["CallId"].isNull())
callId_ = value["CallId"].asString();

View File

@@ -0,0 +1,181 @@
/*
* 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/dyvmsapi/model/CreateRobotTaskRequest.h>
using AlibabaCloud::Dyvmsapi::Model::CreateRobotTaskRequest;
CreateRobotTaskRequest::CreateRobotTaskRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "CreateRobotTask")
{}
CreateRobotTaskRequest::~CreateRobotTaskRequest()
{}
long CreateRobotTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateRobotTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateRobotTaskRequest::getRecallStateCodes()const
{
return recallStateCodes_;
}
void CreateRobotTaskRequest::setRecallStateCodes(const std::string& recallStateCodes)
{
recallStateCodes_ = recallStateCodes;
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_;
}
void CreateRobotTaskRequest::setTaskName(const std::string& taskName)
{
taskName_ = taskName;
setCoreParameter("TaskName", taskName);
}
int CreateRobotTaskRequest::getRetryType()const
{
return retryType_;
}
void CreateRobotTaskRequest::setRetryType(int retryType)
{
retryType_ = retryType;
setCoreParameter("RetryType", std::to_string(retryType));
}
long CreateRobotTaskRequest::getOwnerId()const
{
return ownerId_;
}
void CreateRobotTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
long CreateRobotTaskRequest::getDialogId()const
{
return dialogId_;
}
void CreateRobotTaskRequest::setDialogId(long dialogId)
{
dialogId_ = 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_;
}
void CreateRobotTaskRequest::setCaller(const std::string& caller)
{
caller_ = caller;
setCoreParameter("Caller", caller);
}
bool CreateRobotTaskRequest::getNumberStatusIdent()const
{
return numberStatusIdent_;
}
void CreateRobotTaskRequest::setNumberStatusIdent(bool numberStatusIdent)
{
numberStatusIdent_ = numberStatusIdent;
setCoreParameter("NumberStatusIdent", numberStatusIdent ? "true" : "false");
}
std::string CreateRobotTaskRequest::getCorpName()const
{
return corpName_;
}
void CreateRobotTaskRequest::setCorpName(const std::string& corpName)
{
corpName_ = corpName;
setCoreParameter("CorpName", corpName);
}
int CreateRobotTaskRequest::getRecallInterval()const
{
return recallInterval_;
}
void CreateRobotTaskRequest::setRecallInterval(int recallInterval)
{
recallInterval_ = 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");
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/CreateRobotTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
CreateRobotTaskResult::CreateRobotTaskResult() :
ServiceResult()
{}
CreateRobotTaskResult::CreateRobotTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRobotTaskResult::~CreateRobotTaskResult()
{}
void CreateRobotTaskResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CreateRobotTaskResult::getMessage()const
{
return message_;
}
std::string CreateRobotTaskResult::getData()const
{
return data_;
}
std::string CreateRobotTaskResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/dyvmsapi/model/DeleteRobotTaskRequest.h>
using AlibabaCloud::Dyvmsapi::Model::DeleteRobotTaskRequest;
DeleteRobotTaskRequest::DeleteRobotTaskRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "DeleteRobotTask")
{}
DeleteRobotTaskRequest::~DeleteRobotTaskRequest()
{}
long DeleteRobotTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteRobotTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteRobotTaskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteRobotTaskRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteRobotTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = 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_;
}
void DeleteRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/DeleteRobotTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
DeleteRobotTaskResult::DeleteRobotTaskResult() :
ServiceResult()
{}
DeleteRobotTaskResult::DeleteRobotTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRobotTaskResult::~DeleteRobotTaskResult()
{}
void DeleteRobotTaskResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DeleteRobotTaskResult::getMessage()const
{
return message_;
}
std::string DeleteRobotTaskResult::getData()const
{
return data_;
}
std::string DeleteRobotTaskResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,104 @@
/*
* 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/dyvmsapi/model/GetRtcTokenRequest.h>
using AlibabaCloud::Dyvmsapi::Model::GetRtcTokenRequest;
GetRtcTokenRequest::GetRtcTokenRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "GetRtcToken")
{}
GetRtcTokenRequest::~GetRtcTokenRequest()
{}
long GetRtcTokenRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetRtcTokenRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetRtcTokenRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetRtcTokenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetRtcTokenRequest::getOwnerId()const
{
return ownerId_;
}
void GetRtcTokenRequest::setOwnerId(long ownerId)
{
ownerId_ = 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_;
}
void GetRtcTokenRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setCoreParameter("DeviceId", deviceId);
}
bool GetRtcTokenRequest::getIsCustomAccount()const
{
return isCustomAccount_;
}
void GetRtcTokenRequest::setIsCustomAccount(bool isCustomAccount)
{
isCustomAccount_ = 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);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/GetRtcTokenResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
GetRtcTokenResult::GetRtcTokenResult() :
ServiceResult()
{}
GetRtcTokenResult::GetRtcTokenResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetRtcTokenResult::~GetRtcTokenResult()
{}
void GetRtcTokenResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetRtcTokenResult::getMessage()const
{
return message_;
}
std::string GetRtcTokenResult::getModule()const
{
return module_;
}
std::string GetRtcTokenResult::getCode()const
{
return code_;
}

View File

@@ -33,7 +33,7 @@ std::string IvrCallRequest::getByeCode()const
void IvrCallRequest::setByeCode(const std::string& byeCode)
{
byeCode_ = byeCode;
setParameter("ByeCode", byeCode);
setCoreParameter("ByeCode", byeCode);
}
std::vector<IvrCallRequest::MenuKeyMap> IvrCallRequest::getMenuKeyMap()const
@@ -48,9 +48,9 @@ void IvrCallRequest::setMenuKeyMap(const std::vector<MenuKeyMap>& menuKeyMap)
for(int i = 0; i!= menuKeyMap.size(); i++) {
auto obj = menuKeyMap.at(i);
std::string str ="MenuKeyMap."+ std::to_string(i);
setParameter(str + ".Key", obj.key);
setParameter(str + ".Code", obj.code);
setParameter(str + ".TtsParams", obj.ttsParams);
setCoreParameter(str + ".Code", obj.code);
setCoreParameter(str + ".TtsParams", obj.ttsParams);
setCoreParameter(str + ".Key", obj.key);
}
}
@@ -62,7 +62,7 @@ long IvrCallRequest::getResourceOwnerId()const
void IvrCallRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string IvrCallRequest::getResourceOwnerAccount()const
@@ -73,7 +73,7 @@ std::string IvrCallRequest::getResourceOwnerAccount()const
void IvrCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string IvrCallRequest::getStartTtsParams()const
@@ -84,7 +84,7 @@ std::string IvrCallRequest::getStartTtsParams()const
void IvrCallRequest::setStartTtsParams(const std::string& startTtsParams)
{
startTtsParams_ = startTtsParams;
setParameter("StartTtsParams", startTtsParams);
setCoreParameter("StartTtsParams", startTtsParams);
}
long IvrCallRequest::getPlayTimes()const
@@ -95,7 +95,7 @@ long IvrCallRequest::getPlayTimes()const
void IvrCallRequest::setPlayTimes(long playTimes)
{
playTimes_ = playTimes;
setParameter("PlayTimes", std::to_string(playTimes));
setCoreParameter("PlayTimes", std::to_string(playTimes));
}
long IvrCallRequest::getOwnerId()const
@@ -106,7 +106,7 @@ long IvrCallRequest::getOwnerId()const
void IvrCallRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
int IvrCallRequest::getTimeout()const
@@ -117,7 +117,7 @@ int IvrCallRequest::getTimeout()const
void IvrCallRequest::setTimeout(int timeout)
{
timeout_ = timeout;
setParameter("Timeout", std::to_string(timeout));
setCoreParameter("Timeout", std::to_string(timeout));
}
std::string IvrCallRequest::getAccessKeyId()const
@@ -128,7 +128,7 @@ std::string IvrCallRequest::getAccessKeyId()const
void IvrCallRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string IvrCallRequest::getStartCode()const
@@ -139,7 +139,7 @@ std::string IvrCallRequest::getStartCode()const
void IvrCallRequest::setStartCode(const std::string& startCode)
{
startCode_ = startCode;
setParameter("StartCode", startCode);
setCoreParameter("StartCode", startCode);
}
std::string IvrCallRequest::getCalledNumber()const
@@ -150,7 +150,7 @@ std::string IvrCallRequest::getCalledNumber()const
void IvrCallRequest::setCalledNumber(const std::string& calledNumber)
{
calledNumber_ = calledNumber;
setParameter("CalledNumber", calledNumber);
setCoreParameter("CalledNumber", calledNumber);
}
std::string IvrCallRequest::getCalledShowNumber()const
@@ -161,7 +161,7 @@ std::string IvrCallRequest::getCalledShowNumber()const
void IvrCallRequest::setCalledShowNumber(const std::string& calledShowNumber)
{
calledShowNumber_ = calledShowNumber;
setParameter("CalledShowNumber", calledShowNumber);
setCoreParameter("CalledShowNumber", calledShowNumber);
}
std::string IvrCallRequest::getOutId()const
@@ -172,7 +172,7 @@ std::string IvrCallRequest::getOutId()const
void IvrCallRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setParameter("OutId", outId);
setCoreParameter("OutId", outId);
}
std::string IvrCallRequest::getByeTtsParams()const
@@ -183,6 +183,6 @@ std::string IvrCallRequest::getByeTtsParams()const
void IvrCallRequest::setByeTtsParams(const std::string& byeTtsParams)
{
byeTtsParams_ = byeTtsParams;
setParameter("ByeTtsParams", byeTtsParams);
setCoreParameter("ByeTtsParams", byeTtsParams);
}

View File

@@ -35,10 +35,13 @@ IvrCallResult::~IvrCallResult()
void IvrCallResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
reader.parse(payload, value);
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["CallId"].isNull())
callId_ = value["CallId"].asString();

View File

@@ -33,7 +33,7 @@ std::string QueryCallDetailByCallIdRequest::getCallId()const
void QueryCallDetailByCallIdRequest::setCallId(const std::string& callId)
{
callId_ = callId;
setParameter("CallId", callId);
setCoreParameter("CallId", callId);
}
long QueryCallDetailByCallIdRequest::getResourceOwnerId()const
@@ -44,7 +44,7 @@ long QueryCallDetailByCallIdRequest::getResourceOwnerId()const
void QueryCallDetailByCallIdRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long QueryCallDetailByCallIdRequest::getQueryDate()const
@@ -55,7 +55,7 @@ long QueryCallDetailByCallIdRequest::getQueryDate()const
void QueryCallDetailByCallIdRequest::setQueryDate(long queryDate)
{
queryDate_ = queryDate;
setParameter("QueryDate", std::to_string(queryDate));
setCoreParameter("QueryDate", std::to_string(queryDate));
}
std::string QueryCallDetailByCallIdRequest::getResourceOwnerAccount()const
@@ -66,7 +66,7 @@ std::string QueryCallDetailByCallIdRequest::getResourceOwnerAccount()const
void QueryCallDetailByCallIdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long QueryCallDetailByCallIdRequest::getProdId()const
@@ -77,7 +77,7 @@ long QueryCallDetailByCallIdRequest::getProdId()const
void QueryCallDetailByCallIdRequest::setProdId(long prodId)
{
prodId_ = prodId;
setParameter("ProdId", std::to_string(prodId));
setCoreParameter("ProdId", std::to_string(prodId));
}
long QueryCallDetailByCallIdRequest::getOwnerId()const
@@ -88,7 +88,7 @@ long QueryCallDetailByCallIdRequest::getOwnerId()const
void QueryCallDetailByCallIdRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryCallDetailByCallIdRequest::getAccessKeyId()const
@@ -99,6 +99,6 @@ std::string QueryCallDetailByCallIdRequest::getAccessKeyId()const
void QueryCallDetailByCallIdRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -35,10 +35,13 @@ QueryCallDetailByCallIdResult::~QueryCallDetailByCallIdResult()
void QueryCallDetailByCallIdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
reader.parse(payload, value);
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();

View File

@@ -0,0 +1,104 @@
/*
* 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/dyvmsapi/model/QueryCallDetailByTaskIdRequest.h>
using AlibabaCloud::Dyvmsapi::Model::QueryCallDetailByTaskIdRequest;
QueryCallDetailByTaskIdRequest::QueryCallDetailByTaskIdRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryCallDetailByTaskId")
{}
QueryCallDetailByTaskIdRequest::~QueryCallDetailByTaskIdRequest()
{}
long QueryCallDetailByTaskIdRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryCallDetailByTaskIdRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long QueryCallDetailByTaskIdRequest::getQueryDate()const
{
return queryDate_;
}
void QueryCallDetailByTaskIdRequest::setQueryDate(long queryDate)
{
queryDate_ = queryDate;
setCoreParameter("QueryDate", std::to_string(queryDate));
}
std::string QueryCallDetailByTaskIdRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryCallDetailByTaskIdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
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_;
}
void QueryCallDetailByTaskIdRequest::setOwnerId(long ownerId)
{
ownerId_ = 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);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/QueryCallDetailByTaskIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
QueryCallDetailByTaskIdResult::QueryCallDetailByTaskIdResult() :
ServiceResult()
{}
QueryCallDetailByTaskIdResult::QueryCallDetailByTaskIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCallDetailByTaskIdResult::~QueryCallDetailByTaskIdResult()
{}
void QueryCallDetailByTaskIdResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryCallDetailByTaskIdResult::getMessage()const
{
return message_;
}
std::string QueryCallDetailByTaskIdResult::getData()const
{
return data_;
}
std::string QueryCallDetailByTaskIdResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/dyvmsapi/model/QueryRobotInfoListRequest.h>
using AlibabaCloud::Dyvmsapi::Model::QueryRobotInfoListRequest;
QueryRobotInfoListRequest::QueryRobotInfoListRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotInfoList")
{}
QueryRobotInfoListRequest::~QueryRobotInfoListRequest()
{}
long QueryRobotInfoListRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryRobotInfoListRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryRobotInfoListRequest::getAuditStatus()const
{
return auditStatus_;
}
void QueryRobotInfoListRequest::setAuditStatus(const std::string& auditStatus)
{
auditStatus_ = auditStatus;
setCoreParameter("AuditStatus", auditStatus);
}
std::string QueryRobotInfoListRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryRobotInfoListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long QueryRobotInfoListRequest::getOwnerId()const
{
return ownerId_;
}
void QueryRobotInfoListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryRobotInfoListRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryRobotInfoListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/QueryRobotInfoListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
QueryRobotInfoListResult::QueryRobotInfoListResult() :
ServiceResult()
{}
QueryRobotInfoListResult::QueryRobotInfoListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryRobotInfoListResult::~QueryRobotInfoListResult()
{}
void QueryRobotInfoListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryRobotInfoListResult::getMessage()const
{
return message_;
}
std::string QueryRobotInfoListResult::getData()const
{
return data_;
}
std::string QueryRobotInfoListResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,104 @@
/*
* 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/dyvmsapi/model/QueryRobotTaskCallDetailRequest.h>
using AlibabaCloud::Dyvmsapi::Model::QueryRobotTaskCallDetailRequest;
QueryRobotTaskCallDetailRequest::QueryRobotTaskCallDetailRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotTaskCallDetail")
{}
QueryRobotTaskCallDetailRequest::~QueryRobotTaskCallDetailRequest()
{}
long QueryRobotTaskCallDetailRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryRobotTaskCallDetailRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long QueryRobotTaskCallDetailRequest::getQueryDate()const
{
return queryDate_;
}
void QueryRobotTaskCallDetailRequest::setQueryDate(long queryDate)
{
queryDate_ = queryDate;
setCoreParameter("QueryDate", std::to_string(queryDate));
}
std::string QueryRobotTaskCallDetailRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryRobotTaskCallDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
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_;
}
void QueryRobotTaskCallDetailRequest::setOwnerId(long ownerId)
{
ownerId_ = 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);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/QueryRobotTaskCallDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
QueryRobotTaskCallDetailResult::QueryRobotTaskCallDetailResult() :
ServiceResult()
{}
QueryRobotTaskCallDetailResult::QueryRobotTaskCallDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryRobotTaskCallDetailResult::~QueryRobotTaskCallDetailResult()
{}
void QueryRobotTaskCallDetailResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryRobotTaskCallDetailResult::getMessage()const
{
return message_;
}
std::string QueryRobotTaskCallDetailResult::getData()const
{
return data_;
}
std::string QueryRobotTaskCallDetailResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,181 @@
/*
* 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/dyvmsapi/model/QueryRobotTaskCallListRequest.h>
using AlibabaCloud::Dyvmsapi::Model::QueryRobotTaskCallListRequest;
QueryRobotTaskCallListRequest::QueryRobotTaskCallListRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotTaskCallList")
{}
QueryRobotTaskCallListRequest::~QueryRobotTaskCallListRequest()
{}
long QueryRobotTaskCallListRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryRobotTaskCallListRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryRobotTaskCallListRequest::getCalled()const
{
return called_;
}
void QueryRobotTaskCallListRequest::setCalled(const std::string& called)
{
called_ = called;
setCoreParameter("Called", called);
}
std::string QueryRobotTaskCallListRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryRobotTaskCallListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryRobotTaskCallListRequest::getDialogCountFrom()const
{
return dialogCountFrom_;
}
void QueryRobotTaskCallListRequest::setDialogCountFrom(const std::string& dialogCountFrom)
{
dialogCountFrom_ = dialogCountFrom;
setCoreParameter("DialogCountFrom", dialogCountFrom);
}
std::string QueryRobotTaskCallListRequest::getDurationTo()const
{
return durationTo_;
}
void QueryRobotTaskCallListRequest::setDurationTo(const std::string& durationTo)
{
durationTo_ = durationTo;
setCoreParameter("DurationTo", durationTo);
}
std::string QueryRobotTaskCallListRequest::getHangupDirection()const
{
return hangupDirection_;
}
void QueryRobotTaskCallListRequest::setHangupDirection(const std::string& hangupDirection)
{
hangupDirection_ = hangupDirection;
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_;
}
void QueryRobotTaskCallListRequest::setOwnerId(long ownerId)
{
ownerId_ = 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_;
}
void QueryRobotTaskCallListRequest::setPageNo(int pageNo)
{
pageNo_ = 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_;
}
void QueryRobotTaskCallListRequest::setCallResult(const std::string& callResult)
{
callResult_ = callResult;
setCoreParameter("CallResult", callResult);
}
std::string QueryRobotTaskCallListRequest::getTaskId()const
{
return taskId_;
}
void QueryRobotTaskCallListRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setCoreParameter("TaskId", taskId);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/QueryRobotTaskCallListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
QueryRobotTaskCallListResult::QueryRobotTaskCallListResult() :
ServiceResult()
{}
QueryRobotTaskCallListResult::QueryRobotTaskCallListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryRobotTaskCallListResult::~QueryRobotTaskCallListResult()
{}
void QueryRobotTaskCallListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryRobotTaskCallListResult::getMessage()const
{
return message_;
}
std::string QueryRobotTaskCallListResult::getData()const
{
return data_;
}
std::string QueryRobotTaskCallListResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/dyvmsapi/model/QueryRobotTaskDetailRequest.h>
using AlibabaCloud::Dyvmsapi::Model::QueryRobotTaskDetailRequest;
QueryRobotTaskDetailRequest::QueryRobotTaskDetailRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotTaskDetail")
{}
QueryRobotTaskDetailRequest::~QueryRobotTaskDetailRequest()
{}
long QueryRobotTaskDetailRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryRobotTaskDetailRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryRobotTaskDetailRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryRobotTaskDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
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_;
}
void QueryRobotTaskDetailRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryRobotTaskDetailRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryRobotTaskDetailRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/QueryRobotTaskDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
QueryRobotTaskDetailResult::QueryRobotTaskDetailResult() :
ServiceResult()
{}
QueryRobotTaskDetailResult::QueryRobotTaskDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryRobotTaskDetailResult::~QueryRobotTaskDetailResult()
{}
void QueryRobotTaskDetailResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryRobotTaskDetailResult::getMessage()const
{
return message_;
}
std::string QueryRobotTaskDetailResult::getData()const
{
return data_;
}
std::string QueryRobotTaskDetailResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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/dyvmsapi/model/QueryRobotTaskListRequest.h>
using AlibabaCloud::Dyvmsapi::Model::QueryRobotTaskListRequest;
QueryRobotTaskListRequest::QueryRobotTaskListRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotTaskList")
{}
QueryRobotTaskListRequest::~QueryRobotTaskListRequest()
{}
long QueryRobotTaskListRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryRobotTaskListRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = 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_;
}
void QueryRobotTaskListRequest::setTaskName(const std::string& taskName)
{
taskName_ = 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_;
}
void QueryRobotTaskListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string QueryRobotTaskListRequest::getStatus()const
{
return status_;
}
void QueryRobotTaskListRequest::setStatus(const std::string& status)
{
status_ = status;
setCoreParameter("Status", status);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/QueryRobotTaskListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
QueryRobotTaskListResult::QueryRobotTaskListResult() :
ServiceResult()
{}
QueryRobotTaskListResult::QueryRobotTaskListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryRobotTaskListResult::~QueryRobotTaskListResult()
{}
void QueryRobotTaskListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryRobotTaskListResult::getMessage()const
{
return message_;
}
std::string QueryRobotTaskListResult::getData()const
{
return data_;
}
std::string QueryRobotTaskListResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dyvmsapi/model/QueryRobotv2AllListRequest.h>
using AlibabaCloud::Dyvmsapi::Model::QueryRobotv2AllListRequest;
QueryRobotv2AllListRequest::QueryRobotv2AllListRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryRobotv2AllList")
{}
QueryRobotv2AllListRequest::~QueryRobotv2AllListRequest()
{}
long QueryRobotv2AllListRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryRobotv2AllListRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryRobotv2AllListRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryRobotv2AllListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long QueryRobotv2AllListRequest::getOwnerId()const
{
return ownerId_;
}
void QueryRobotv2AllListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryRobotv2AllListRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryRobotv2AllListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/QueryRobotv2AllListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
QueryRobotv2AllListResult::QueryRobotv2AllListResult() :
ServiceResult()
{}
QueryRobotv2AllListResult::QueryRobotv2AllListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryRobotv2AllListResult::~QueryRobotv2AllListResult()
{}
void QueryRobotv2AllListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string QueryRobotv2AllListResult::getMessage()const
{
return message_;
}
std::string QueryRobotv2AllListResult::getData()const
{
return data_;
}
std::string QueryRobotv2AllListResult::getCode()const
{
return code_;
}

View File

@@ -33,7 +33,7 @@ long SingleCallByTtsRequest::getResourceOwnerId()const
void SingleCallByTtsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SingleCallByTtsRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string SingleCallByTtsRequest::getResourceOwnerAccount()const
void SingleCallByTtsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string SingleCallByTtsRequest::getTtsCode()const
@@ -55,7 +55,7 @@ std::string SingleCallByTtsRequest::getTtsCode()const
void SingleCallByTtsRequest::setTtsCode(const std::string& ttsCode)
{
ttsCode_ = ttsCode;
setParameter("TtsCode", ttsCode);
setCoreParameter("TtsCode", ttsCode);
}
int SingleCallByTtsRequest::getPlayTimes()const
@@ -66,7 +66,7 @@ int SingleCallByTtsRequest::getPlayTimes()const
void SingleCallByTtsRequest::setPlayTimes(int playTimes)
{
playTimes_ = playTimes;
setParameter("PlayTimes", std::to_string(playTimes));
setCoreParameter("PlayTimes", std::to_string(playTimes));
}
std::string SingleCallByTtsRequest::getTtsParam()const
@@ -77,7 +77,7 @@ std::string SingleCallByTtsRequest::getTtsParam()const
void SingleCallByTtsRequest::setTtsParam(const std::string& ttsParam)
{
ttsParam_ = ttsParam;
setParameter("TtsParam", ttsParam);
setCoreParameter("TtsParam", ttsParam);
}
long SingleCallByTtsRequest::getOwnerId()const
@@ -88,7 +88,7 @@ long SingleCallByTtsRequest::getOwnerId()const
void SingleCallByTtsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
int SingleCallByTtsRequest::getSpeed()const
@@ -99,7 +99,7 @@ int SingleCallByTtsRequest::getSpeed()const
void SingleCallByTtsRequest::setSpeed(int speed)
{
speed_ = speed;
setParameter("Speed", std::to_string(speed));
setCoreParameter("Speed", std::to_string(speed));
}
std::string SingleCallByTtsRequest::getAccessKeyId()const
@@ -110,7 +110,7 @@ std::string SingleCallByTtsRequest::getAccessKeyId()const
void SingleCallByTtsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
int SingleCallByTtsRequest::getVolume()const
@@ -121,7 +121,7 @@ int SingleCallByTtsRequest::getVolume()const
void SingleCallByTtsRequest::setVolume(int volume)
{
volume_ = volume;
setParameter("Volume", std::to_string(volume));
setCoreParameter("Volume", std::to_string(volume));
}
std::string SingleCallByTtsRequest::getCalledNumber()const
@@ -132,7 +132,7 @@ std::string SingleCallByTtsRequest::getCalledNumber()const
void SingleCallByTtsRequest::setCalledNumber(const std::string& calledNumber)
{
calledNumber_ = calledNumber;
setParameter("CalledNumber", calledNumber);
setCoreParameter("CalledNumber", calledNumber);
}
std::string SingleCallByTtsRequest::getCalledShowNumber()const
@@ -143,7 +143,7 @@ std::string SingleCallByTtsRequest::getCalledShowNumber()const
void SingleCallByTtsRequest::setCalledShowNumber(const std::string& calledShowNumber)
{
calledShowNumber_ = calledShowNumber;
setParameter("CalledShowNumber", calledShowNumber);
setCoreParameter("CalledShowNumber", calledShowNumber);
}
std::string SingleCallByTtsRequest::getOutId()const
@@ -154,6 +154,6 @@ std::string SingleCallByTtsRequest::getOutId()const
void SingleCallByTtsRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setParameter("OutId", outId);
setCoreParameter("OutId", outId);
}

View File

@@ -35,10 +35,13 @@ SingleCallByTtsResult::~SingleCallByTtsResult()
void SingleCallByTtsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
reader.parse(payload, value);
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["CallId"].isNull())
callId_ = value["CallId"].asString();

View File

@@ -33,7 +33,7 @@ int SingleCallByVoiceRequest::getVolume()const
void SingleCallByVoiceRequest::setVolume(int volume)
{
volume_ = volume;
setParameter("Volume", std::to_string(volume));
setCoreParameter("Volume", std::to_string(volume));
}
long SingleCallByVoiceRequest::getResourceOwnerId()const
@@ -44,7 +44,7 @@ long SingleCallByVoiceRequest::getResourceOwnerId()const
void SingleCallByVoiceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SingleCallByVoiceRequest::getResourceOwnerAccount()const
@@ -55,7 +55,7 @@ std::string SingleCallByVoiceRequest::getResourceOwnerAccount()const
void SingleCallByVoiceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string SingleCallByVoiceRequest::getCalledNumber()const
@@ -66,7 +66,7 @@ std::string SingleCallByVoiceRequest::getCalledNumber()const
void SingleCallByVoiceRequest::setCalledNumber(const std::string& calledNumber)
{
calledNumber_ = calledNumber;
setParameter("CalledNumber", calledNumber);
setCoreParameter("CalledNumber", calledNumber);
}
std::string SingleCallByVoiceRequest::getVoiceCode()const
@@ -77,7 +77,7 @@ std::string SingleCallByVoiceRequest::getVoiceCode()const
void SingleCallByVoiceRequest::setVoiceCode(const std::string& voiceCode)
{
voiceCode_ = voiceCode;
setParameter("VoiceCode", voiceCode);
setCoreParameter("VoiceCode", voiceCode);
}
std::string SingleCallByVoiceRequest::getCalledShowNumber()const
@@ -88,7 +88,7 @@ std::string SingleCallByVoiceRequest::getCalledShowNumber()const
void SingleCallByVoiceRequest::setCalledShowNumber(const std::string& calledShowNumber)
{
calledShowNumber_ = calledShowNumber;
setParameter("CalledShowNumber", calledShowNumber);
setCoreParameter("CalledShowNumber", calledShowNumber);
}
int SingleCallByVoiceRequest::getPlayTimes()const
@@ -99,7 +99,7 @@ int SingleCallByVoiceRequest::getPlayTimes()const
void SingleCallByVoiceRequest::setPlayTimes(int playTimes)
{
playTimes_ = playTimes;
setParameter("PlayTimes", std::to_string(playTimes));
setCoreParameter("PlayTimes", std::to_string(playTimes));
}
std::string SingleCallByVoiceRequest::getOutId()const
@@ -110,7 +110,7 @@ std::string SingleCallByVoiceRequest::getOutId()const
void SingleCallByVoiceRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setParameter("OutId", outId);
setCoreParameter("OutId", outId);
}
long SingleCallByVoiceRequest::getOwnerId()const
@@ -121,7 +121,7 @@ long SingleCallByVoiceRequest::getOwnerId()const
void SingleCallByVoiceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
int SingleCallByVoiceRequest::getSpeed()const
@@ -132,7 +132,7 @@ int SingleCallByVoiceRequest::getSpeed()const
void SingleCallByVoiceRequest::setSpeed(int speed)
{
speed_ = speed;
setParameter("Speed", std::to_string(speed));
setCoreParameter("Speed", std::to_string(speed));
}
std::string SingleCallByVoiceRequest::getAccessKeyId()const
@@ -143,6 +143,6 @@ std::string SingleCallByVoiceRequest::getAccessKeyId()const
void SingleCallByVoiceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -35,10 +35,13 @@ SingleCallByVoiceResult::~SingleCallByVoiceResult()
void SingleCallByVoiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
reader.parse(payload, value);
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["CallId"].isNull())
callId_ = value["CallId"].asString();

View File

@@ -0,0 +1,104 @@
/*
* 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/dyvmsapi/model/SmartCallOperateRequest.h>
using AlibabaCloud::Dyvmsapi::Model::SmartCallOperateRequest;
SmartCallOperateRequest::SmartCallOperateRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "SmartCallOperate")
{}
SmartCallOperateRequest::~SmartCallOperateRequest()
{}
std::string SmartCallOperateRequest::getCallId()const
{
return callId_;
}
void SmartCallOperateRequest::setCallId(const std::string& callId)
{
callId_ = callId;
setCoreParameter("CallId", callId);
}
long SmartCallOperateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SmartCallOperateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SmartCallOperateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SmartCallOperateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string SmartCallOperateRequest::getParam()const
{
return param_;
}
void SmartCallOperateRequest::setParam(const std::string& param)
{
param_ = param;
setCoreParameter("Param", param);
}
long SmartCallOperateRequest::getOwnerId()const
{
return ownerId_;
}
void SmartCallOperateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string SmartCallOperateRequest::getCommand()const
{
return command_;
}
void SmartCallOperateRequest::setCommand(const std::string& command)
{
command_ = command;
setCoreParameter("Command", command);
}
std::string SmartCallOperateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SmartCallOperateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/SmartCallOperateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
SmartCallOperateResult::SmartCallOperateResult() :
ServiceResult()
{}
SmartCallOperateResult::SmartCallOperateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SmartCallOperateResult::~SmartCallOperateResult()
{}
void SmartCallOperateResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Status"].isNull())
status_ = value["Status"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
bool SmartCallOperateResult::getStatus()const
{
return status_;
}
std::string SmartCallOperateResult::getMessage()const
{
return message_;
}
std::string SmartCallOperateResult::getCode()const
{
return code_;
}

View File

@@ -33,51 +33,29 @@ long SmartCallRequest::getResourceOwnerId()const
void SmartCallRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
bool SmartCallRequest::getActionCodeBreak()const
std::string SmartCallRequest::getVoiceCodeParam()const
{
return actionCodeBreak_;
return voiceCodeParam_;
}
void SmartCallRequest::setActionCodeBreak(bool actionCodeBreak)
void SmartCallRequest::setVoiceCodeParam(const std::string& voiceCodeParam)
{
actionCodeBreak_ = actionCodeBreak;
setParameter("ActionCodeBreak", std::to_string(actionCodeBreak));
voiceCodeParam_ = voiceCodeParam;
setCoreParameter("VoiceCodeParam", voiceCodeParam);
}
std::string SmartCallRequest::getResourceOwnerAccount()const
bool SmartCallRequest::getEarlyMediaAsr()const
{
return resourceOwnerAccount_;
return earlyMediaAsr_;
}
void SmartCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
void SmartCallRequest::setEarlyMediaAsr(bool earlyMediaAsr)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
bool SmartCallRequest::getRecordFlag()const
{
return recordFlag_;
}
void SmartCallRequest::setRecordFlag(bool recordFlag)
{
recordFlag_ = recordFlag;
setParameter("RecordFlag", std::to_string(recordFlag));
}
long SmartCallRequest::getOwnerId()const
{
return ownerId_;
}
void SmartCallRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
earlyMediaAsr_ = earlyMediaAsr;
setCoreParameter("EarlyMediaAsr", earlyMediaAsr ? "true" : "false");
}
int SmartCallRequest::getSpeed()const
@@ -88,7 +66,7 @@ int SmartCallRequest::getSpeed()const
void SmartCallRequest::setSpeed(int speed)
{
speed_ = speed;
setParameter("Speed", std::to_string(speed));
setCoreParameter("Speed", std::to_string(speed));
}
std::string SmartCallRequest::getAccessKeyId()const
@@ -99,18 +77,29 @@ std::string SmartCallRequest::getAccessKeyId()const
void SmartCallRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
int SmartCallRequest::getVolume()const
std::string SmartCallRequest::getAsrBaseId()const
{
return volume_;
return asrBaseId_;
}
void SmartCallRequest::setVolume(int volume)
void SmartCallRequest::setAsrBaseId(const std::string& asrBaseId)
{
volume_ = volume;
setParameter("Volume", std::to_string(volume));
asrBaseId_ = asrBaseId;
setCoreParameter("AsrBaseId", asrBaseId);
}
int SmartCallRequest::getSessionTimeout()const
{
return sessionTimeout_;
}
void SmartCallRequest::setSessionTimeout(int sessionTimeout)
{
sessionTimeout_ = sessionTimeout;
setCoreParameter("SessionTimeout", std::to_string(sessionTimeout));
}
std::string SmartCallRequest::getDynamicId()const
@@ -121,7 +110,7 @@ std::string SmartCallRequest::getDynamicId()const
void SmartCallRequest::setDynamicId(const std::string& dynamicId)
{
dynamicId_ = dynamicId;
setParameter("DynamicId", dynamicId);
setCoreParameter("DynamicId", dynamicId);
}
std::string SmartCallRequest::getCalledNumber()const
@@ -132,7 +121,18 @@ std::string SmartCallRequest::getCalledNumber()const
void SmartCallRequest::setCalledNumber(const std::string& calledNumber)
{
calledNumber_ = calledNumber;
setParameter("CalledNumber", calledNumber);
setCoreParameter("CalledNumber", calledNumber);
}
int SmartCallRequest::getTtsSpeed()const
{
return ttsSpeed_;
}
void SmartCallRequest::setTtsSpeed(int ttsSpeed)
{
ttsSpeed_ = ttsSpeed;
setCoreParameter("TtsSpeed", std::to_string(ttsSpeed));
}
std::string SmartCallRequest::getVoiceCode()const
@@ -143,18 +143,7 @@ std::string SmartCallRequest::getVoiceCode()const
void SmartCallRequest::setVoiceCode(const std::string& voiceCode)
{
voiceCode_ = voiceCode;
setParameter("VoiceCode", voiceCode);
}
int SmartCallRequest::getMuteTime()const
{
return muteTime_;
}
void SmartCallRequest::setMuteTime(int muteTime)
{
muteTime_ = muteTime;
setParameter("MuteTime", std::to_string(muteTime));
setCoreParameter("VoiceCode", voiceCode);
}
std::string SmartCallRequest::getCalledShowNumber()const
@@ -165,7 +154,106 @@ std::string SmartCallRequest::getCalledShowNumber()const
void SmartCallRequest::setCalledShowNumber(const std::string& calledShowNumber)
{
calledShowNumber_ = calledShowNumber;
setParameter("CalledShowNumber", calledShowNumber);
setCoreParameter("CalledShowNumber", calledShowNumber);
}
int SmartCallRequest::getActionCodeTimeBreak()const
{
return actionCodeTimeBreak_;
}
void SmartCallRequest::setActionCodeTimeBreak(int actionCodeTimeBreak)
{
actionCodeTimeBreak_ = actionCodeTimeBreak;
setCoreParameter("ActionCodeTimeBreak", std::to_string(actionCodeTimeBreak));
}
bool SmartCallRequest::getTtsConf()const
{
return ttsConf_;
}
void SmartCallRequest::setTtsConf(bool ttsConf)
{
ttsConf_ = ttsConf;
setCoreParameter("TtsConf", ttsConf ? "true" : "false");
}
bool SmartCallRequest::getActionCodeBreak()const
{
return actionCodeBreak_;
}
void SmartCallRequest::setActionCodeBreak(bool actionCodeBreak)
{
actionCodeBreak_ = actionCodeBreak;
setCoreParameter("ActionCodeBreak", actionCodeBreak ? "true" : "false");
}
std::string SmartCallRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SmartCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
bool SmartCallRequest::getRecordFlag()const
{
return recordFlag_;
}
void SmartCallRequest::setRecordFlag(bool recordFlag)
{
recordFlag_ = recordFlag;
setCoreParameter("RecordFlag", recordFlag ? "true" : "false");
}
long SmartCallRequest::getOwnerId()const
{
return ownerId_;
}
void SmartCallRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
int SmartCallRequest::getTtsVolume()const
{
return ttsVolume_;
}
void SmartCallRequest::setTtsVolume(int ttsVolume)
{
ttsVolume_ = ttsVolume;
setCoreParameter("TtsVolume", std::to_string(ttsVolume));
}
int SmartCallRequest::getVolume()const
{
return volume_;
}
void SmartCallRequest::setVolume(int volume)
{
volume_ = volume;
setCoreParameter("Volume", std::to_string(volume));
}
int SmartCallRequest::getMuteTime()const
{
return muteTime_;
}
void SmartCallRequest::setMuteTime(int muteTime)
{
muteTime_ = muteTime;
setCoreParameter("MuteTime", std::to_string(muteTime));
}
std::string SmartCallRequest::getOutId()const
@@ -176,7 +264,7 @@ std::string SmartCallRequest::getOutId()const
void SmartCallRequest::setOutId(const std::string& outId)
{
outId_ = outId;
setParameter("OutId", outId);
setCoreParameter("OutId", outId);
}
std::string SmartCallRequest::getAsrModelId()const
@@ -187,7 +275,7 @@ std::string SmartCallRequest::getAsrModelId()const
void SmartCallRequest::setAsrModelId(const std::string& asrModelId)
{
asrModelId_ = asrModelId;
setParameter("AsrModelId", asrModelId);
setCoreParameter("AsrModelId", asrModelId);
}
int SmartCallRequest::getPauseTime()const
@@ -198,6 +286,17 @@ int SmartCallRequest::getPauseTime()const
void SmartCallRequest::setPauseTime(int pauseTime)
{
pauseTime_ = pauseTime;
setParameter("PauseTime", std::to_string(pauseTime));
setCoreParameter("PauseTime", std::to_string(pauseTime));
}
std::string SmartCallRequest::getTtsStyle()const
{
return ttsStyle_;
}
void SmartCallRequest::setTtsStyle(const std::string& ttsStyle)
{
ttsStyle_ = ttsStyle;
setCoreParameter("TtsStyle", ttsStyle);
}

View File

@@ -35,10 +35,13 @@ SmartCallResult::~SmartCallResult()
void SmartCallResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
reader.parse(payload, value);
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["CallId"].isNull())
callId_ = value["CallId"].asString();

View File

@@ -0,0 +1,93 @@
/*
* 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/dyvmsapi/model/StartRobotTaskRequest.h>
using AlibabaCloud::Dyvmsapi::Model::StartRobotTaskRequest;
StartRobotTaskRequest::StartRobotTaskRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "StartRobotTask")
{}
StartRobotTaskRequest::~StartRobotTaskRequest()
{}
long StartRobotTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void StartRobotTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string StartRobotTaskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void StartRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
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_;
}
void StartRobotTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = 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_;
}
void StartRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/StartRobotTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
StartRobotTaskResult::StartRobotTaskResult() :
ServiceResult()
{}
StartRobotTaskResult::StartRobotTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StartRobotTaskResult::~StartRobotTaskResult()
{}
void StartRobotTaskResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string StartRobotTaskResult::getMessage()const
{
return message_;
}
std::string StartRobotTaskResult::getData()const
{
return data_;
}
std::string StartRobotTaskResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/dyvmsapi/model/StopRobotTaskRequest.h>
using AlibabaCloud::Dyvmsapi::Model::StopRobotTaskRequest;
StopRobotTaskRequest::StopRobotTaskRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "StopRobotTask")
{}
StopRobotTaskRequest::~StopRobotTaskRequest()
{}
long StopRobotTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void StopRobotTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string StopRobotTaskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void StopRobotTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long StopRobotTaskRequest::getOwnerId()const
{
return ownerId_;
}
void StopRobotTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = 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_;
}
void StopRobotTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/StopRobotTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
StopRobotTaskResult::StopRobotTaskResult() :
ServiceResult()
{}
StopRobotTaskResult::StopRobotTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
StopRobotTaskResult::~StopRobotTaskResult()
{}
void StopRobotTaskResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string StopRobotTaskResult::getMessage()const
{
return message_;
}
std::string StopRobotTaskResult::getData()const
{
return data_;
}
std::string StopRobotTaskResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,115 @@
/*
* 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/dyvmsapi/model/UploadRobotTaskCalledFileRequest.h>
using AlibabaCloud::Dyvmsapi::Model::UploadRobotTaskCalledFileRequest;
UploadRobotTaskCalledFileRequest::UploadRobotTaskCalledFileRequest() :
RpcServiceRequest("dyvmsapi", "2017-05-25", "UploadRobotTaskCalledFile")
{}
UploadRobotTaskCalledFileRequest::~UploadRobotTaskCalledFileRequest()
{}
long UploadRobotTaskCalledFileRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void UploadRobotTaskCalledFileRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = 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_;
}
void UploadRobotTaskCalledFileRequest::setTtsParamHead(const std::string& ttsParamHead)
{
ttsParamHead_ = ttsParamHead;
setCoreParameter("TtsParamHead", ttsParamHead);
}
std::string UploadRobotTaskCalledFileRequest::getTtsParam()const
{
return ttsParam_;
}
void UploadRobotTaskCalledFileRequest::setTtsParam(const std::string& ttsParam)
{
ttsParam_ = ttsParam;
setCoreParameter("TtsParam", ttsParam);
}
long UploadRobotTaskCalledFileRequest::getId()const
{
return id_;
}
void UploadRobotTaskCalledFileRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
long UploadRobotTaskCalledFileRequest::getOwnerId()const
{
return ownerId_;
}
void UploadRobotTaskCalledFileRequest::setOwnerId(long ownerId)
{
ownerId_ = 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);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/dyvmsapi/model/UploadRobotTaskCalledFileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
UploadRobotTaskCalledFileResult::UploadRobotTaskCalledFileResult() :
ServiceResult()
{}
UploadRobotTaskCalledFileResult::UploadRobotTaskCalledFileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UploadRobotTaskCalledFileResult::~UploadRobotTaskCalledFileResult()
{}
void UploadRobotTaskCalledFileResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string UploadRobotTaskCalledFileResult::getMessage()const
{
return message_;
}
std::string UploadRobotTaskCalledFileResult::getData()const
{
return data_;
}
std::string UploadRobotTaskCalledFileResult::getCode()const
{
return code_;
}

View File

@@ -33,7 +33,7 @@ long VoipAddAccountRequest::getResourceOwnerId()const
void VoipAddAccountRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string VoipAddAccountRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string VoipAddAccountRequest::getResourceOwnerAccount()const
void VoipAddAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long VoipAddAccountRequest::getOwnerId()const
@@ -55,7 +55,7 @@ long VoipAddAccountRequest::getOwnerId()const
void VoipAddAccountRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string VoipAddAccountRequest::getDeviceId()const
@@ -66,7 +66,7 @@ std::string VoipAddAccountRequest::getDeviceId()const
void VoipAddAccountRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
setCoreParameter("DeviceId", deviceId);
}
std::string VoipAddAccountRequest::getAccessKeyId()const
@@ -77,6 +77,6 @@ std::string VoipAddAccountRequest::getAccessKeyId()const
void VoipAddAccountRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -35,10 +35,13 @@ VoipAddAccountResult::~VoipAddAccountResult()
void VoipAddAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
reader.parse(payload, value);
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();

View File

@@ -33,7 +33,7 @@ long VoipGetTokenRequest::getResourceOwnerId()const
void VoipGetTokenRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string VoipGetTokenRequest::getVoipId()const
@@ -44,7 +44,7 @@ std::string VoipGetTokenRequest::getVoipId()const
void VoipGetTokenRequest::setVoipId(const std::string& voipId)
{
voipId_ = voipId;
setParameter("VoipId", voipId);
setCoreParameter("VoipId", voipId);
}
std::string VoipGetTokenRequest::getResourceOwnerAccount()const
@@ -55,7 +55,7 @@ std::string VoipGetTokenRequest::getResourceOwnerAccount()const
void VoipGetTokenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long VoipGetTokenRequest::getOwnerId()const
@@ -66,7 +66,7 @@ long VoipGetTokenRequest::getOwnerId()const
void VoipGetTokenRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string VoipGetTokenRequest::getDeviceId()const
@@ -77,7 +77,18 @@ std::string VoipGetTokenRequest::getDeviceId()const
void VoipGetTokenRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setParameter("DeviceId", deviceId);
setCoreParameter("DeviceId", deviceId);
}
bool VoipGetTokenRequest::getIsCustomAccount()const
{
return isCustomAccount_;
}
void VoipGetTokenRequest::setIsCustomAccount(bool isCustomAccount)
{
isCustomAccount_ = isCustomAccount;
setCoreParameter("IsCustomAccount", isCustomAccount ? "true" : "false");
}
std::string VoipGetTokenRequest::getAccessKeyId()const
@@ -88,6 +99,6 @@ std::string VoipGetTokenRequest::getAccessKeyId()const
void VoipGetTokenRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -35,10 +35,13 @@ VoipGetTokenResult::~VoipGetTokenResult()
void VoipGetTokenResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
reader.parse(payload, value);
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Module"].isNull())
module_ = value["Module"].asString();