Delete some abandoned interface.
This commit is contained in:
63
rtc/src/model/DeleteChannelRequest.cc
Normal file
63
rtc/src/model/DeleteChannelRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/DeleteChannelRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DeleteChannelRequest;
|
||||
|
||||
DeleteChannelRequest::DeleteChannelRequest()
|
||||
: RpcServiceRequest("rtc", "2018-01-11", "DeleteChannel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteChannelRequest::~DeleteChannelRequest() {}
|
||||
|
||||
std::string DeleteChannelRequest::getShowLog() const {
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setShowLog(const std::string &showLog) {
|
||||
showLog_ = showLog;
|
||||
setParameter(std::string("ShowLog"), showLog);
|
||||
}
|
||||
|
||||
long DeleteChannelRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string DeleteChannelRequest::getChannelId() const {
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void DeleteChannelRequest::setChannelId(const std::string &channelId) {
|
||||
channelId_ = channelId;
|
||||
setParameter(std::string("ChannelId"), channelId);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rtc/model/StopChannelUserPublishResult.h>
|
||||
#include <alibabacloud/rtc/model/DeleteChannelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
StopChannelUserPublishResult::StopChannelUserPublishResult() :
|
||||
DeleteChannelResult::DeleteChannelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopChannelUserPublishResult::StopChannelUserPublishResult(const std::string &payload) :
|
||||
DeleteChannelResult::DeleteChannelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopChannelUserPublishResult::~StopChannelUserPublishResult()
|
||||
DeleteChannelResult::~DeleteChannelResult()
|
||||
{}
|
||||
|
||||
void StopChannelUserPublishResult::parse(const std::string &payload)
|
||||
void DeleteChannelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
90
rtc/src/model/DescribeAppsRequest.cc
Normal file
90
rtc/src/model/DescribeAppsRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/DescribeAppsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeAppsRequest;
|
||||
|
||||
DescribeAppsRequest::DescribeAppsRequest()
|
||||
: RpcServiceRequest("rtc", "2018-01-11", "DescribeApps") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAppsRequest::~DescribeAppsRequest() {}
|
||||
|
||||
int DescribeAppsRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeAppsRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
int DescribeAppsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAppsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getShowLog() const {
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeAppsRequest::setShowLog(const std::string &showLog) {
|
||||
showLog_ = showLog;
|
||||
setParameter(std::string("ShowLog"), showLog);
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getOrder() const {
|
||||
return order_;
|
||||
}
|
||||
|
||||
void DescribeAppsRequest::setOrder(const std::string &order) {
|
||||
order_ = order;
|
||||
setParameter(std::string("Order"), order);
|
||||
}
|
||||
|
||||
long DescribeAppsRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeAppsRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeAppsRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string DescribeAppsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeAppsRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
84
rtc/src/model/DescribeAppsResult.cc
Normal file
84
rtc/src/model/DescribeAppsResult.cc
Normal 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/rtc/model/DescribeAppsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeAppsResult::DescribeAppsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAppsResult::DescribeAppsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAppsResult::~DescribeAppsResult()
|
||||
{}
|
||||
|
||||
void DescribeAppsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAppListNode = value["AppList"]["App"];
|
||||
for (auto valueAppListApp : allAppListNode)
|
||||
{
|
||||
App appListObject;
|
||||
if(!valueAppListApp["Status"].isNull())
|
||||
appListObject.status = std::stoi(valueAppListApp["Status"].asString());
|
||||
if(!valueAppListApp["AppName"].isNull())
|
||||
appListObject.appName = valueAppListApp["AppName"].asString();
|
||||
if(!valueAppListApp["AppId"].isNull())
|
||||
appListObject.appId = valueAppListApp["AppId"].asString();
|
||||
if(!valueAppListApp["CreateTime"].isNull())
|
||||
appListObject.createTime = valueAppListApp["CreateTime"].asString();
|
||||
if(!valueAppListApp["BillType"].isNull())
|
||||
appListObject.billType = valueAppListApp["BillType"].asString();
|
||||
if(!valueAppListApp["AppType"].isNull())
|
||||
appListObject.appType = valueAppListApp["AppType"].asString();
|
||||
auto allServiceAreas = value["ServiceAreas"]["ServiceArea"];
|
||||
for (auto value : allServiceAreas)
|
||||
appListObject.serviceAreas.push_back(value.asString());
|
||||
appList_.push_back(appListObject);
|
||||
}
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeAppsResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
int DescribeAppsResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAppsResult::App> DescribeAppsResult::getAppList()const
|
||||
{
|
||||
return appList_;
|
||||
}
|
||||
|
||||
63
rtc/src/model/ModifyAppRequest.cc
Normal file
63
rtc/src/model/ModifyAppRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/ModifyAppRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::ModifyAppRequest;
|
||||
|
||||
ModifyAppRequest::ModifyAppRequest()
|
||||
: RpcServiceRequest("rtc", "2018-01-11", "ModifyApp") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyAppRequest::~ModifyAppRequest() {}
|
||||
|
||||
std::string ModifyAppRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ModifyAppRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getShowLog() const {
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void ModifyAppRequest::setShowLog(const std::string &showLog) {
|
||||
showLog_ = showLog;
|
||||
setParameter(std::string("ShowLog"), showLog);
|
||||
}
|
||||
|
||||
long ModifyAppRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyAppRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyAppRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ModifyAppRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
44
rtc/src/model/ModifyAppResult.cc
Normal file
44
rtc/src/model/ModifyAppResult.cc
Normal 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/ModifyAppResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
ModifyAppResult::ModifyAppResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyAppResult::ModifyAppResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyAppResult::~ModifyAppResult()
|
||||
{}
|
||||
|
||||
void ModifyAppResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* 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/StopChannelUserPublishRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::StopChannelUserPublishRequest;
|
||||
|
||||
StopChannelUserPublishRequest::StopChannelUserPublishRequest()
|
||||
: RpcServiceRequest("rtc", "2018-01-11", "StopChannelUserPublish") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopChannelUserPublishRequest::~StopChannelUserPublishRequest() {}
|
||||
|
||||
std::string StopChannelUserPublishRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void StopChannelUserPublishRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
std::string StopChannelUserPublishRequest::getShowLog() const {
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void StopChannelUserPublishRequest::setShowLog(const std::string &showLog) {
|
||||
showLog_ = showLog;
|
||||
setParameter(std::string("ShowLog"), showLog);
|
||||
}
|
||||
|
||||
long StopChannelUserPublishRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StopChannelUserPublishRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StopChannelUserPublishRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void StopChannelUserPublishRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string StopChannelUserPublishRequest::getChannelId() const {
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void StopChannelUserPublishRequest::setChannelId(const std::string &channelId) {
|
||||
channelId_ = channelId;
|
||||
setParameter(std::string("ChannelId"), channelId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user