Update Dyvmsapi SDK.

This commit is contained in:
sdk-team
2021-08-20 06:56:32 +00:00
parent 36828e0fce
commit 57e4665c5e
9 changed files with 325 additions and 1 deletions

View File

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

View File

@@ -0,0 +1,68 @@
/*
* 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/GetCallInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dyvmsapi;
using namespace AlibabaCloud::Dyvmsapi::Model;
GetCallInfoResult::GetCallInfoResult() :
ServiceResult()
{}
GetCallInfoResult::GetCallInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetCallInfoResult::~GetCallInfoResult()
{}
void GetCallInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["ChannelId"].isNull())
data_.channelId = dataNode["ChannelId"].asString();
if(!dataNode["Status"].isNull())
data_.status = dataNode["Status"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetCallInfoResult::getMessage()const
{
return message_;
}
GetCallInfoResult::Data GetCallInfoResult::getData()const
{
return data_;
}
std::string GetCallInfoResult::getCode()const
{
return code_;
}