Delete some abandoned interface.
This commit is contained in:
@@ -231,6 +231,42 @@ RtcClient::DeleteAutoLiveStreamRuleOutcomeCallable RtcClient::deleteAutoLiveStre
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DeleteChannelOutcome RtcClient::deleteChannel(const DeleteChannelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteChannelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteChannelOutcome(DeleteChannelResult(outcome.result()));
|
||||
else
|
||||
return DeleteChannelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::deleteChannelAsync(const DeleteChannelRequest& request, const DeleteChannelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteChannel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DeleteChannelOutcomeCallable RtcClient::deleteChannelCallable(const DeleteChannelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteChannelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteChannel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DeleteEventSubscribeOutcome RtcClient::deleteEventSubscribe(const DeleteEventSubscribeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +375,42 @@ RtcClient::DeleteRecordTemplateOutcomeCallable RtcClient::deleteRecordTemplateCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeAppsOutcome RtcClient::describeApps(const DescribeAppsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAppsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAppsOutcome(DescribeAppsResult(outcome.result()));
|
||||
else
|
||||
return DescribeAppsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeAppsAsync(const DescribeAppsRequest& request, const DescribeAppsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeApps(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeAppsOutcomeCallable RtcClient::describeAppsCallable(const DescribeAppsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAppsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeApps(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeAutoLiveStreamRuleOutcome RtcClient::describeAutoLiveStreamRule(const DescribeAutoLiveStreamRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,6 +771,42 @@ RtcClient::GetMPUTaskStatusOutcomeCallable RtcClient::getMPUTaskStatusCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::ModifyAppOutcome RtcClient::modifyApp(const ModifyAppRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyAppOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyAppOutcome(ModifyAppResult(outcome.result()));
|
||||
else
|
||||
return ModifyAppOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::modifyAppAsync(const ModifyAppRequest& request, const ModifyAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyApp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::ModifyAppOutcomeCallable RtcClient::modifyAppCallable(const ModifyAppRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyAppOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyApp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::ModifyMPULayoutOutcome RtcClient::modifyMPULayout(const ModifyMPULayoutRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -843,42 +951,6 @@ RtcClient::StartRecordTaskOutcomeCallable RtcClient::startRecordTaskCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::StopChannelUserPublishOutcome RtcClient::stopChannelUserPublish(const StopChannelUserPublishRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopChannelUserPublishOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopChannelUserPublishOutcome(StopChannelUserPublishResult(outcome.result()));
|
||||
else
|
||||
return StopChannelUserPublishOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::stopChannelUserPublishAsync(const StopChannelUserPublishRequest& request, const StopChannelUserPublishAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopChannelUserPublish(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::StopChannelUserPublishOutcomeCallable RtcClient::stopChannelUserPublishCallable(const StopChannelUserPublishRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopChannelUserPublishOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopChannelUserPublish(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::StopMPUTaskOutcome RtcClient::stopMPUTask(const StopMPUTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
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