由峰远发起的DYVMSAPI SDK自动发布, 版本号:1.10.3
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
82
dyvmsapi/src/model/CancelCallRequest.cc
Normal file
82
dyvmsapi/src/model/CancelCallRequest.cc
Normal 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/CancelCallRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::CancelCallRequest;
|
||||
|
||||
CancelCallRequest::CancelCallRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "CancelCall")
|
||||
{}
|
||||
|
||||
CancelCallRequest::~CancelCallRequest()
|
||||
{}
|
||||
|
||||
std::string CancelCallRequest::getCallId()const
|
||||
{
|
||||
return callId_;
|
||||
}
|
||||
|
||||
void CancelCallRequest::setCallId(const std::string& callId)
|
||||
{
|
||||
callId_ = callId;
|
||||
setParameter("CallId", callId);
|
||||
}
|
||||
|
||||
long CancelCallRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CancelCallRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CancelCallRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CancelCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long CancelCallRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CancelCallRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CancelCallRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CancelCallRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
66
dyvmsapi/src/model/CancelCallResult.cc
Normal file
66
dyvmsapi/src/model/CancelCallResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/CancelCallResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
CancelCallResult::CancelCallResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelCallResult::CancelCallResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelCallResult::~CancelCallResult()
|
||||
{}
|
||||
|
||||
void CancelCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
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 CancelCallResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string CancelCallResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CancelCallResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
170
dyvmsapi/src/model/ClickToDialRequest.cc
Normal file
170
dyvmsapi/src/model/ClickToDialRequest.cc
Normal file
@@ -0,0 +1,170 @@
|
||||
/*
|
||||
* 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/ClickToDialRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::ClickToDialRequest;
|
||||
|
||||
ClickToDialRequest::ClickToDialRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "ClickToDial")
|
||||
{}
|
||||
|
||||
ClickToDialRequest::~ClickToDialRequest()
|
||||
{}
|
||||
|
||||
long ClickToDialRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
bool ClickToDialRequest::getRecordFlag()const
|
||||
{
|
||||
return recordFlag_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setRecordFlag(bool recordFlag)
|
||||
{
|
||||
recordFlag_ = recordFlag;
|
||||
setParameter("RecordFlag", std::to_string(recordFlag));
|
||||
}
|
||||
|
||||
long ClickToDialRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getCallerShowNumber()const
|
||||
{
|
||||
return callerShowNumber_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setCallerShowNumber(const std::string& callerShowNumber)
|
||||
{
|
||||
callerShowNumber_ = callerShowNumber;
|
||||
setParameter("CallerShowNumber", callerShowNumber);
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int ClickToDialRequest::getSessionTimeout()const
|
||||
{
|
||||
return sessionTimeout_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setSessionTimeout(int sessionTimeout)
|
||||
{
|
||||
sessionTimeout_ = sessionTimeout;
|
||||
setParameter("SessionTimeout", std::to_string(sessionTimeout));
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getCalledNumber()const
|
||||
{
|
||||
return calledNumber_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getCalledShowNumber()const
|
||||
{
|
||||
return calledShowNumber_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
{
|
||||
calledShowNumber_ = calledShowNumber;
|
||||
setParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setParameter("OutId", outId);
|
||||
}
|
||||
|
||||
bool ClickToDialRequest::getAsrFlag()const
|
||||
{
|
||||
return asrFlag_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setAsrFlag(bool asrFlag)
|
||||
{
|
||||
asrFlag_ = asrFlag;
|
||||
setParameter("AsrFlag", std::to_string(asrFlag));
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getAsrModelId()const
|
||||
{
|
||||
return asrModelId_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setAsrModelId(const std::string& asrModelId)
|
||||
{
|
||||
asrModelId_ = asrModelId;
|
||||
setParameter("AsrModelId", asrModelId);
|
||||
}
|
||||
|
||||
std::string ClickToDialRequest::getCallerNumber()const
|
||||
{
|
||||
return callerNumber_;
|
||||
}
|
||||
|
||||
void ClickToDialRequest::setCallerNumber(const std::string& callerNumber)
|
||||
{
|
||||
callerNumber_ = callerNumber;
|
||||
setParameter("CallerNumber", callerNumber);
|
||||
}
|
||||
|
||||
66
dyvmsapi/src/model/ClickToDialResult.cc
Normal file
66
dyvmsapi/src/model/ClickToDialResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/ClickToDialResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
ClickToDialResult::ClickToDialResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ClickToDialResult::ClickToDialResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ClickToDialResult::~ClickToDialResult()
|
||||
{}
|
||||
|
||||
void ClickToDialResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ClickToDialResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ClickToDialResult::getCallId()const
|
||||
{
|
||||
return callId_;
|
||||
}
|
||||
|
||||
std::string ClickToDialResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
188
dyvmsapi/src/model/IvrCallRequest.cc
Normal file
188
dyvmsapi/src/model/IvrCallRequest.cc
Normal file
@@ -0,0 +1,188 @@
|
||||
/*
|
||||
* 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/IvrCallRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::IvrCallRequest;
|
||||
|
||||
IvrCallRequest::IvrCallRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "IvrCall")
|
||||
{}
|
||||
|
||||
IvrCallRequest::~IvrCallRequest()
|
||||
{}
|
||||
|
||||
std::string IvrCallRequest::getByeCode()const
|
||||
{
|
||||
return byeCode_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setByeCode(const std::string& byeCode)
|
||||
{
|
||||
byeCode_ = byeCode;
|
||||
setParameter("ByeCode", byeCode);
|
||||
}
|
||||
|
||||
std::vector<IvrCallRequest::MenuKeyMap> IvrCallRequest::getMenuKeyMap()const
|
||||
{
|
||||
return menuKeyMap_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setMenuKeyMap(const std::vector<MenuKeyMap>& menuKeyMap)
|
||||
{
|
||||
menuKeyMap_ = menuKeyMap;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= menuKeyMap.size(); i++) {
|
||||
auto obj = menuKeyMap.at(i);
|
||||
std::string str ="MenuKeyMap."+ std::to_string(i);
|
||||
setParameter(str + ".Key", obj.key);
|
||||
setParameter(str + ".Code", obj.code);
|
||||
setParameter(str + ".TtsParams", obj.ttsParams);
|
||||
}
|
||||
}
|
||||
|
||||
long IvrCallRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getStartTtsParams()const
|
||||
{
|
||||
return startTtsParams_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setStartTtsParams(const std::string& startTtsParams)
|
||||
{
|
||||
startTtsParams_ = startTtsParams;
|
||||
setParameter("StartTtsParams", startTtsParams);
|
||||
}
|
||||
|
||||
long IvrCallRequest::getPlayTimes()const
|
||||
{
|
||||
return playTimes_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setPlayTimes(long playTimes)
|
||||
{
|
||||
playTimes_ = playTimes;
|
||||
setParameter("PlayTimes", std::to_string(playTimes));
|
||||
}
|
||||
|
||||
long IvrCallRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int IvrCallRequest::getTimeout()const
|
||||
{
|
||||
return timeout_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setTimeout(int timeout)
|
||||
{
|
||||
timeout_ = timeout;
|
||||
setParameter("Timeout", std::to_string(timeout));
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getStartCode()const
|
||||
{
|
||||
return startCode_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setStartCode(const std::string& startCode)
|
||||
{
|
||||
startCode_ = startCode;
|
||||
setParameter("StartCode", startCode);
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getCalledNumber()const
|
||||
{
|
||||
return calledNumber_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getCalledShowNumber()const
|
||||
{
|
||||
return calledShowNumber_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
{
|
||||
calledShowNumber_ = calledShowNumber;
|
||||
setParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setParameter("OutId", outId);
|
||||
}
|
||||
|
||||
std::string IvrCallRequest::getByeTtsParams()const
|
||||
{
|
||||
return byeTtsParams_;
|
||||
}
|
||||
|
||||
void IvrCallRequest::setByeTtsParams(const std::string& byeTtsParams)
|
||||
{
|
||||
byeTtsParams_ = byeTtsParams;
|
||||
setParameter("ByeTtsParams", byeTtsParams);
|
||||
}
|
||||
|
||||
66
dyvmsapi/src/model/IvrCallResult.cc
Normal file
66
dyvmsapi/src/model/IvrCallResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/IvrCallResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
IvrCallResult::IvrCallResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
IvrCallResult::IvrCallResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
IvrCallResult::~IvrCallResult()
|
||||
{}
|
||||
|
||||
void IvrCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string IvrCallResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string IvrCallResult::getCallId()const
|
||||
{
|
||||
return callId_;
|
||||
}
|
||||
|
||||
std::string IvrCallResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
104
dyvmsapi/src/model/QueryCallDetailByCallIdRequest.cc
Normal file
104
dyvmsapi/src/model/QueryCallDetailByCallIdRequest.cc
Normal 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/QueryCallDetailByCallIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::QueryCallDetailByCallIdRequest;
|
||||
|
||||
QueryCallDetailByCallIdRequest::QueryCallDetailByCallIdRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "QueryCallDetailByCallId")
|
||||
{}
|
||||
|
||||
QueryCallDetailByCallIdRequest::~QueryCallDetailByCallIdRequest()
|
||||
{}
|
||||
|
||||
std::string QueryCallDetailByCallIdRequest::getCallId()const
|
||||
{
|
||||
return callId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByCallIdRequest::setCallId(const std::string& callId)
|
||||
{
|
||||
callId_ = callId;
|
||||
setParameter("CallId", callId);
|
||||
}
|
||||
|
||||
long QueryCallDetailByCallIdRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByCallIdRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long QueryCallDetailByCallIdRequest::getQueryDate()const
|
||||
{
|
||||
return queryDate_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByCallIdRequest::setQueryDate(long queryDate)
|
||||
{
|
||||
queryDate_ = queryDate;
|
||||
setParameter("QueryDate", std::to_string(queryDate));
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByCallIdRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByCallIdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long QueryCallDetailByCallIdRequest::getProdId()const
|
||||
{
|
||||
return prodId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByCallIdRequest::setProdId(long prodId)
|
||||
{
|
||||
prodId_ = prodId;
|
||||
setParameter("ProdId", std::to_string(prodId));
|
||||
}
|
||||
|
||||
long QueryCallDetailByCallIdRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByCallIdRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByCallIdRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void QueryCallDetailByCallIdRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
66
dyvmsapi/src/model/QueryCallDetailByCallIdResult.cc
Normal file
66
dyvmsapi/src/model/QueryCallDetailByCallIdResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/QueryCallDetailByCallIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
QueryCallDetailByCallIdResult::QueryCallDetailByCallIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryCallDetailByCallIdResult::QueryCallDetailByCallIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryCallDetailByCallIdResult::~QueryCallDetailByCallIdResult()
|
||||
{}
|
||||
|
||||
void QueryCallDetailByCallIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
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 QueryCallDetailByCallIdResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByCallIdResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryCallDetailByCallIdResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
159
dyvmsapi/src/model/SingleCallByTtsRequest.cc
Normal file
159
dyvmsapi/src/model/SingleCallByTtsRequest.cc
Normal file
@@ -0,0 +1,159 @@
|
||||
/*
|
||||
* 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/SingleCallByTtsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::SingleCallByTtsRequest;
|
||||
|
||||
SingleCallByTtsRequest::SingleCallByTtsRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "SingleCallByTts")
|
||||
{}
|
||||
|
||||
SingleCallByTtsRequest::~SingleCallByTtsRequest()
|
||||
{}
|
||||
|
||||
long SingleCallByTtsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getTtsCode()const
|
||||
{
|
||||
return ttsCode_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setTtsCode(const std::string& ttsCode)
|
||||
{
|
||||
ttsCode_ = ttsCode;
|
||||
setParameter("TtsCode", ttsCode);
|
||||
}
|
||||
|
||||
int SingleCallByTtsRequest::getPlayTimes()const
|
||||
{
|
||||
return playTimes_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setPlayTimes(int playTimes)
|
||||
{
|
||||
playTimes_ = playTimes;
|
||||
setParameter("PlayTimes", std::to_string(playTimes));
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getTtsParam()const
|
||||
{
|
||||
return ttsParam_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setTtsParam(const std::string& ttsParam)
|
||||
{
|
||||
ttsParam_ = ttsParam;
|
||||
setParameter("TtsParam", ttsParam);
|
||||
}
|
||||
|
||||
long SingleCallByTtsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int SingleCallByTtsRequest::getSpeed()const
|
||||
{
|
||||
return speed_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setSpeed(int speed)
|
||||
{
|
||||
speed_ = speed;
|
||||
setParameter("Speed", std::to_string(speed));
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int SingleCallByTtsRequest::getVolume()const
|
||||
{
|
||||
return volume_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setVolume(int volume)
|
||||
{
|
||||
volume_ = volume;
|
||||
setParameter("Volume", std::to_string(volume));
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getCalledNumber()const
|
||||
{
|
||||
return calledNumber_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getCalledShowNumber()const
|
||||
{
|
||||
return calledShowNumber_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
{
|
||||
calledShowNumber_ = calledShowNumber;
|
||||
setParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void SingleCallByTtsRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setParameter("OutId", outId);
|
||||
}
|
||||
|
||||
66
dyvmsapi/src/model/SingleCallByTtsResult.cc
Normal file
66
dyvmsapi/src/model/SingleCallByTtsResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/SingleCallByTtsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
SingleCallByTtsResult::SingleCallByTtsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SingleCallByTtsResult::SingleCallByTtsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SingleCallByTtsResult::~SingleCallByTtsResult()
|
||||
{}
|
||||
|
||||
void SingleCallByTtsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsResult::getCallId()const
|
||||
{
|
||||
return callId_;
|
||||
}
|
||||
|
||||
std::string SingleCallByTtsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
148
dyvmsapi/src/model/SingleCallByVoiceRequest.cc
Normal file
148
dyvmsapi/src/model/SingleCallByVoiceRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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/SingleCallByVoiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::SingleCallByVoiceRequest;
|
||||
|
||||
SingleCallByVoiceRequest::SingleCallByVoiceRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "SingleCallByVoice")
|
||||
{}
|
||||
|
||||
SingleCallByVoiceRequest::~SingleCallByVoiceRequest()
|
||||
{}
|
||||
|
||||
int SingleCallByVoiceRequest::getVolume()const
|
||||
{
|
||||
return volume_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setVolume(int volume)
|
||||
{
|
||||
volume_ = volume;
|
||||
setParameter("Volume", std::to_string(volume));
|
||||
}
|
||||
|
||||
long SingleCallByVoiceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getCalledNumber()const
|
||||
{
|
||||
return calledNumber_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getVoiceCode()const
|
||||
{
|
||||
return voiceCode_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setVoiceCode(const std::string& voiceCode)
|
||||
{
|
||||
voiceCode_ = voiceCode;
|
||||
setParameter("VoiceCode", voiceCode);
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getCalledShowNumber()const
|
||||
{
|
||||
return calledShowNumber_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
{
|
||||
calledShowNumber_ = calledShowNumber;
|
||||
setParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
int SingleCallByVoiceRequest::getPlayTimes()const
|
||||
{
|
||||
return playTimes_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setPlayTimes(int playTimes)
|
||||
{
|
||||
playTimes_ = playTimes;
|
||||
setParameter("PlayTimes", std::to_string(playTimes));
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setParameter("OutId", outId);
|
||||
}
|
||||
|
||||
long SingleCallByVoiceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int SingleCallByVoiceRequest::getSpeed()const
|
||||
{
|
||||
return speed_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setSpeed(int speed)
|
||||
{
|
||||
speed_ = speed;
|
||||
setParameter("Speed", std::to_string(speed));
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SingleCallByVoiceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
66
dyvmsapi/src/model/SingleCallByVoiceResult.cc
Normal file
66
dyvmsapi/src/model/SingleCallByVoiceResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/SingleCallByVoiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
SingleCallByVoiceResult::SingleCallByVoiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SingleCallByVoiceResult::SingleCallByVoiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SingleCallByVoiceResult::~SingleCallByVoiceResult()
|
||||
{}
|
||||
|
||||
void SingleCallByVoiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceResult::getCallId()const
|
||||
{
|
||||
return callId_;
|
||||
}
|
||||
|
||||
std::string SingleCallByVoiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
203
dyvmsapi/src/model/SmartCallRequest.cc
Normal file
203
dyvmsapi/src/model/SmartCallRequest.cc
Normal file
@@ -0,0 +1,203 @@
|
||||
/*
|
||||
* 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/SmartCallRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::SmartCallRequest;
|
||||
|
||||
SmartCallRequest::SmartCallRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "SmartCall")
|
||||
{}
|
||||
|
||||
SmartCallRequest::~SmartCallRequest()
|
||||
{}
|
||||
|
||||
long SmartCallRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
bool SmartCallRequest::getActionCodeBreak()const
|
||||
{
|
||||
return actionCodeBreak_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setActionCodeBreak(bool actionCodeBreak)
|
||||
{
|
||||
actionCodeBreak_ = actionCodeBreak;
|
||||
setParameter("ActionCodeBreak", std::to_string(actionCodeBreak));
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
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));
|
||||
}
|
||||
|
||||
int SmartCallRequest::getSpeed()const
|
||||
{
|
||||
return speed_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setSpeed(int speed)
|
||||
{
|
||||
speed_ = speed;
|
||||
setParameter("Speed", std::to_string(speed));
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int SmartCallRequest::getVolume()const
|
||||
{
|
||||
return volume_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setVolume(int volume)
|
||||
{
|
||||
volume_ = volume;
|
||||
setParameter("Volume", std::to_string(volume));
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getDynamicId()const
|
||||
{
|
||||
return dynamicId_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setDynamicId(const std::string& dynamicId)
|
||||
{
|
||||
dynamicId_ = dynamicId;
|
||||
setParameter("DynamicId", dynamicId);
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getCalledNumber()const
|
||||
{
|
||||
return calledNumber_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setCalledNumber(const std::string& calledNumber)
|
||||
{
|
||||
calledNumber_ = calledNumber;
|
||||
setParameter("CalledNumber", calledNumber);
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getVoiceCode()const
|
||||
{
|
||||
return voiceCode_;
|
||||
}
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getCalledShowNumber()const
|
||||
{
|
||||
return calledShowNumber_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setCalledShowNumber(const std::string& calledShowNumber)
|
||||
{
|
||||
calledShowNumber_ = calledShowNumber;
|
||||
setParameter("CalledShowNumber", calledShowNumber);
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getOutId()const
|
||||
{
|
||||
return outId_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setOutId(const std::string& outId)
|
||||
{
|
||||
outId_ = outId;
|
||||
setParameter("OutId", outId);
|
||||
}
|
||||
|
||||
std::string SmartCallRequest::getAsrModelId()const
|
||||
{
|
||||
return asrModelId_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setAsrModelId(const std::string& asrModelId)
|
||||
{
|
||||
asrModelId_ = asrModelId;
|
||||
setParameter("AsrModelId", asrModelId);
|
||||
}
|
||||
|
||||
int SmartCallRequest::getPauseTime()const
|
||||
{
|
||||
return pauseTime_;
|
||||
}
|
||||
|
||||
void SmartCallRequest::setPauseTime(int pauseTime)
|
||||
{
|
||||
pauseTime_ = pauseTime;
|
||||
setParameter("PauseTime", std::to_string(pauseTime));
|
||||
}
|
||||
|
||||
66
dyvmsapi/src/model/SmartCallResult.cc
Normal file
66
dyvmsapi/src/model/SmartCallResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/SmartCallResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
SmartCallResult::SmartCallResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SmartCallResult::SmartCallResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SmartCallResult::~SmartCallResult()
|
||||
{}
|
||||
|
||||
void SmartCallResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CallId"].isNull())
|
||||
callId_ = value["CallId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SmartCallResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SmartCallResult::getCallId()const
|
||||
{
|
||||
return callId_;
|
||||
}
|
||||
|
||||
std::string SmartCallResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
82
dyvmsapi/src/model/VoipAddAccountRequest.cc
Normal file
82
dyvmsapi/src/model/VoipAddAccountRequest.cc
Normal 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/VoipAddAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::VoipAddAccountRequest;
|
||||
|
||||
VoipAddAccountRequest::VoipAddAccountRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "VoipAddAccount")
|
||||
{}
|
||||
|
||||
VoipAddAccountRequest::~VoipAddAccountRequest()
|
||||
{}
|
||||
|
||||
long VoipAddAccountRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void VoipAddAccountRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string VoipAddAccountRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void VoipAddAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long VoipAddAccountRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void VoipAddAccountRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string VoipAddAccountRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void VoipAddAccountRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string VoipAddAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void VoipAddAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
66
dyvmsapi/src/model/VoipAddAccountResult.cc
Normal file
66
dyvmsapi/src/model/VoipAddAccountResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/VoipAddAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
VoipAddAccountResult::VoipAddAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
VoipAddAccountResult::VoipAddAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
VoipAddAccountResult::~VoipAddAccountResult()
|
||||
{}
|
||||
|
||||
void VoipAddAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
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 VoipAddAccountResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string VoipAddAccountResult::getModule()const
|
||||
{
|
||||
return module_;
|
||||
}
|
||||
|
||||
std::string VoipAddAccountResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
93
dyvmsapi/src/model/VoipGetTokenRequest.cc
Normal file
93
dyvmsapi/src/model/VoipGetTokenRequest.cc
Normal 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/VoipGetTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Dyvmsapi::Model::VoipGetTokenRequest;
|
||||
|
||||
VoipGetTokenRequest::VoipGetTokenRequest() :
|
||||
RpcServiceRequest("dyvmsapi", "2017-05-25", "VoipGetToken")
|
||||
{}
|
||||
|
||||
VoipGetTokenRequest::~VoipGetTokenRequest()
|
||||
{}
|
||||
|
||||
long VoipGetTokenRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void VoipGetTokenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string VoipGetTokenRequest::getVoipId()const
|
||||
{
|
||||
return voipId_;
|
||||
}
|
||||
|
||||
void VoipGetTokenRequest::setVoipId(const std::string& voipId)
|
||||
{
|
||||
voipId_ = voipId;
|
||||
setParameter("VoipId", voipId);
|
||||
}
|
||||
|
||||
std::string VoipGetTokenRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void VoipGetTokenRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long VoipGetTokenRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void VoipGetTokenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string VoipGetTokenRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void VoipGetTokenRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string VoipGetTokenRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void VoipGetTokenRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
66
dyvmsapi/src/model/VoipGetTokenResult.cc
Normal file
66
dyvmsapi/src/model/VoipGetTokenResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/VoipGetTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dyvmsapi;
|
||||
using namespace AlibabaCloud::Dyvmsapi::Model;
|
||||
|
||||
VoipGetTokenResult::VoipGetTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
VoipGetTokenResult::VoipGetTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
VoipGetTokenResult::~VoipGetTokenResult()
|
||||
{}
|
||||
|
||||
void VoipGetTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
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 VoipGetTokenResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string VoipGetTokenResult::getModule()const
|
||||
{
|
||||
return module_;
|
||||
}
|
||||
|
||||
std::string VoipGetTokenResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user