regenerate code

This commit is contained in:
wb-hx510875
2020-03-26 17:27:13 +08:00
committed by Axios
parent cba94f2119
commit f0c2600a26
6249 changed files with 188711 additions and 43443 deletions

View File

@@ -0,0 +1,62 @@
/*
* 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/rtc/model/DescribeChannelUsersRequest.h>
using AlibabaCloud::Rtc::Model::DescribeChannelUsersRequest;
DescribeChannelUsersRequest::DescribeChannelUsersRequest() :
RpcServiceRequest("rtc", "2018-01-11", "DescribeChannelUsers")
{
setMethod(HttpRequest::Method::Post);
}
DescribeChannelUsersRequest::~DescribeChannelUsersRequest()
{}
long DescribeChannelUsersRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeChannelUsersRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeChannelUsersRequest::getAppId()const
{
return appId_;
}
void DescribeChannelUsersRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setParameter("AppId", appId);
}
std::string DescribeChannelUsersRequest::getChannelId()const
{
return channelId_;
}
void DescribeChannelUsersRequest::setChannelId(const std::string& channelId)
{
channelId_ = channelId;
setParameter("ChannelId", channelId);
}

View File

@@ -0,0 +1,110 @@
/*
* 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/rtc/model/DescribeChannelUsersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rtc;
using namespace AlibabaCloud::Rtc::Model;
DescribeChannelUsersResult::DescribeChannelUsersResult() :
ServiceResult()
{}
DescribeChannelUsersResult::DescribeChannelUsersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeChannelUsersResult::~DescribeChannelUsersResult()
{}
void DescribeChannelUsersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allUserList = value["UserList"]["User"];
for (const auto &item : allUserList)
userList_.push_back(item.asString());
auto allInteractiveUserList = value["InteractiveUserList"]["InteractiveUser"];
for (const auto &item : allInteractiveUserList)
interactiveUserList_.push_back(item.asString());
auto allLiveUserList = value["LiveUserList"]["LiveUser"];
for (const auto &item : allLiveUserList)
liveUserList_.push_back(item.asString());
if(!value["Timestamp"].isNull())
timestamp_ = std::stoi(value["Timestamp"].asString());
if(!value["IsChannelExist"].isNull())
isChannelExist_ = value["IsChannelExist"].asString() == "true";
if(!value["ChannelProfile"].isNull())
channelProfile_ = std::stoi(value["ChannelProfile"].asString());
if(!value["CommTotalNum"].isNull())
commTotalNum_ = std::stoi(value["CommTotalNum"].asString());
if(!value["InteractiveUserNum"].isNull())
interactiveUserNum_ = std::stoi(value["InteractiveUserNum"].asString());
if(!value["LiveUserNum"].isNull())
liveUserNum_ = std::stoi(value["LiveUserNum"].asString());
}
std::vector<std::string> DescribeChannelUsersResult::getInteractiveUserList()const
{
return interactiveUserList_;
}
int DescribeChannelUsersResult::getLiveUserNum()const
{
return liveUserNum_;
}
int DescribeChannelUsersResult::getChannelProfile()const
{
return channelProfile_;
}
int DescribeChannelUsersResult::getInteractiveUserNum()const
{
return interactiveUserNum_;
}
std::vector<std::string> DescribeChannelUsersResult::getUserList()const
{
return userList_;
}
std::vector<std::string> DescribeChannelUsersResult::getLiveUserList()const
{
return liveUserList_;
}
int DescribeChannelUsersResult::getTimestamp()const
{
return timestamp_;
}
bool DescribeChannelUsersResult::getIsChannelExist()const
{
return isChannelExist_;
}
int DescribeChannelUsersResult::getCommTotalNum()const
{
return commTotalNum_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rtc/model/DescribeRTCAppKeyRequest.h>
using AlibabaCloud::Rtc::Model::DescribeRTCAppKeyRequest;
DescribeRTCAppKeyRequest::DescribeRTCAppKeyRequest() :
RpcServiceRequest("rtc", "2018-01-11", "DescribeRTCAppKey")
{
setMethod(HttpRequest::Method::Post);
}
DescribeRTCAppKeyRequest::~DescribeRTCAppKeyRequest()
{}
long DescribeRTCAppKeyRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeRTCAppKeyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeRTCAppKeyRequest::getAppId()const
{
return appId_;
}
void DescribeRTCAppKeyRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setParameter("AppId", appId);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rtc/model/DescribeRTCAppKeyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rtc;
using namespace AlibabaCloud::Rtc::Model;
DescribeRTCAppKeyResult::DescribeRTCAppKeyResult() :
ServiceResult()
{}
DescribeRTCAppKeyResult::DescribeRTCAppKeyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRTCAppKeyResult::~DescribeRTCAppKeyResult()
{}
void DescribeRTCAppKeyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AppKey"].isNull())
appKey_ = value["AppKey"].asString();
}
std::string DescribeRTCAppKeyResult::getAppKey()const
{
return appKey_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rtc/model/DescribeUserInfoInChannelRequest.h>
using AlibabaCloud::Rtc::Model::DescribeUserInfoInChannelRequest;
DescribeUserInfoInChannelRequest::DescribeUserInfoInChannelRequest() :
RpcServiceRequest("rtc", "2018-01-11", "DescribeUserInfoInChannel")
{
setMethod(HttpRequest::Method::Post);
}
DescribeUserInfoInChannelRequest::~DescribeUserInfoInChannelRequest()
{}
std::string DescribeUserInfoInChannelRequest::getUserId()const
{
return userId_;
}
void DescribeUserInfoInChannelRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setParameter("UserId", userId);
}
long DescribeUserInfoInChannelRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeUserInfoInChannelRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeUserInfoInChannelRequest::getAppId()const
{
return appId_;
}
void DescribeUserInfoInChannelRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setParameter("AppId", appId);
}
std::string DescribeUserInfoInChannelRequest::getChannelId()const
{
return channelId_;
}
void DescribeUserInfoInChannelRequest::setChannelId(const std::string& channelId)
{
channelId_ = channelId;
setParameter("ChannelId", channelId);
}

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/rtc/model/DescribeUserInfoInChannelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rtc;
using namespace AlibabaCloud::Rtc::Model;
DescribeUserInfoInChannelResult::DescribeUserInfoInChannelResult() :
ServiceResult()
{}
DescribeUserInfoInChannelResult::DescribeUserInfoInChannelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUserInfoInChannelResult::~DescribeUserInfoInChannelResult()
{}
void DescribeUserInfoInChannelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPropertyNode = value["Property"]["PropertyItem"];
for (auto valuePropertyPropertyItem : allPropertyNode)
{
PropertyItem propertyObject;
if(!valuePropertyPropertyItem["Session"].isNull())
propertyObject.session = valuePropertyPropertyItem["Session"].asString();
if(!valuePropertyPropertyItem["Join"].isNull())
propertyObject.join = std::stoi(valuePropertyPropertyItem["Join"].asString());
if(!valuePropertyPropertyItem["Role"].isNull())
propertyObject.role = std::stoi(valuePropertyPropertyItem["Role"].asString());
property_.push_back(propertyObject);
}
if(!value["Timestamp"].isNull())
timestamp_ = std::stoi(value["Timestamp"].asString());
if(!value["IsChannelExist"].isNull())
isChannelExist_ = value["IsChannelExist"].asString() == "true";
if(!value["IsInChannel"].isNull())
isInChannel_ = value["IsInChannel"].asString() == "true";
}
bool DescribeUserInfoInChannelResult::getIsInChannel()const
{
return isInChannel_;
}
std::vector<DescribeUserInfoInChannelResult::PropertyItem> DescribeUserInfoInChannelResult::getProperty()const
{
return property_;
}
int DescribeUserInfoInChannelResult::getTimestamp()const
{
return timestamp_;
}
bool DescribeUserInfoInChannelResult::getIsChannelExist()const
{
return isChannelExist_;
}

View File

@@ -27,6 +27,17 @@ GetMPUTaskStatusRequest::GetMPUTaskStatusRequest() :
GetMPUTaskStatusRequest::~GetMPUTaskStatusRequest()
{}
std::string GetMPUTaskStatusRequest::getTaskId()const
{
return taskId_;
}
void GetMPUTaskStatusRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}
long GetMPUTaskStatusRequest::getOwnerId()const
{
return ownerId_;
@@ -49,14 +60,3 @@ void GetMPUTaskStatusRequest::setAppId(const std::string& appId)
setParameter("AppId", appId);
}
std::string GetMPUTaskStatusRequest::getTaskId()const
{
return taskId_;
}
void GetMPUTaskStatusRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}

View File

@@ -40,17 +40,6 @@ void RemoveParticipantsRequest::setParticipantIds(const std::vector<std::string>
}
}
long RemoveParticipantsRequest::getOwnerId()const
{
return ownerId_;
}
void RemoveParticipantsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string RemoveParticipantsRequest::getConferenceId()const
{
return conferenceId_;
@@ -62,6 +51,17 @@ void RemoveParticipantsRequest::setConferenceId(const std::string& conferenceId)
setParameter("ConferenceId", conferenceId);
}
long RemoveParticipantsRequest::getOwnerId()const
{
return ownerId_;
}
void RemoveParticipantsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string RemoveParticipantsRequest::getAppId()const
{
return appId_;

View File

@@ -0,0 +1,117 @@
/*
* 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/rtc/model/SetChannelPropertyRequest.h>
using AlibabaCloud::Rtc::Model::SetChannelPropertyRequest;
SetChannelPropertyRequest::SetChannelPropertyRequest() :
RpcServiceRequest("rtc", "2018-01-11", "SetChannelProperty")
{
setMethod(HttpRequest::Method::Post);
}
SetChannelPropertyRequest::~SetChannelPropertyRequest()
{}
int SetChannelPropertyRequest::getStartTime()const
{
return startTime_;
}
void SetChannelPropertyRequest::setStartTime(int startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
int SetChannelPropertyRequest::getMaxUserNum()const
{
return maxUserNum_;
}
void SetChannelPropertyRequest::setMaxUserNum(int maxUserNum)
{
maxUserNum_ = maxUserNum;
setParameter("MaxUserNum", std::to_string(maxUserNum));
}
int SetChannelPropertyRequest::getDuration()const
{
return duration_;
}
void SetChannelPropertyRequest::setDuration(int duration)
{
duration_ = duration;
setParameter("Duration", std::to_string(duration));
}
std::string SetChannelPropertyRequest::getTopics()const
{
return topics_;
}
void SetChannelPropertyRequest::setTopics(const std::string& topics)
{
topics_ = topics;
setParameter("Topics", topics);
}
long SetChannelPropertyRequest::getOwnerId()const
{
return ownerId_;
}
void SetChannelPropertyRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SetChannelPropertyRequest::getPriority()const
{
return priority_;
}
void SetChannelPropertyRequest::setPriority(const std::string& priority)
{
priority_ = priority;
setParameter("Priority", priority);
}
std::string SetChannelPropertyRequest::getAppId()const
{
return appId_;
}
void SetChannelPropertyRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setParameter("AppId", appId);
}
std::string SetChannelPropertyRequest::getChannelId()const
{
return channelId_;
}
void SetChannelPropertyRequest::setChannelId(const std::string& channelId)
{
channelId_ = channelId;
setParameter("ChannelId", channelId);
}

View File

@@ -0,0 +1,44 @@
/*
* 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/rtc/model/SetChannelPropertyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rtc;
using namespace AlibabaCloud::Rtc::Model;
SetChannelPropertyResult::SetChannelPropertyResult() :
ServiceResult()
{}
SetChannelPropertyResult::SetChannelPropertyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SetChannelPropertyResult::~SetChannelPropertyResult()
{}
void SetChannelPropertyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}