Delete some abandoned interface in SDK.
This commit is contained in:
@@ -195,42 +195,6 @@ RtcClient::CreateMPULayoutOutcomeCallable RtcClient::createMPULayoutCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::CreateRecordIndexFileOutcome RtcClient::createRecordIndexFile(const CreateRecordIndexFileRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateRecordIndexFileOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateRecordIndexFileOutcome(CreateRecordIndexFileResult(outcome.result()));
|
||||
else
|
||||
return CreateRecordIndexFileOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::createRecordIndexFileAsync(const CreateRecordIndexFileRequest& request, const CreateRecordIndexFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createRecordIndexFile(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::CreateRecordIndexFileOutcomeCallable RtcClient::createRecordIndexFileCallable(const CreateRecordIndexFileRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateRecordIndexFileOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createRecordIndexFile(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DeleteAutoLiveStreamRuleOutcome RtcClient::deleteAutoLiveStreamRule(const DeleteAutoLiveStreamRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,42 +519,6 @@ RtcClient::DescribeRecordFilesOutcomeCallable RtcClient::describeRecordFilesCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRecordTasksOutcome RtcClient::describeRecordTasks(const DescribeRecordTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRecordTasksOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRecordTasksOutcome(DescribeRecordTasksResult(outcome.result()));
|
||||
else
|
||||
return DescribeRecordTasksOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RtcClient::describeRecordTasksAsync(const DescribeRecordTasksRequest& request, const DescribeRecordTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRecordTasks(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RtcClient::DescribeRecordTasksOutcomeCallable RtcClient::describeRecordTasksCallable(const DescribeRecordTasksRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRecordTasksOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRecordTasks(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RtcClient::DescribeRecordTemplatesOutcome RtcClient::describeRecordTemplates(const DescribeRecordTemplatesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,117 +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/CreateRecordIndexFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::CreateRecordIndexFileRequest;
|
||||
|
||||
CreateRecordIndexFileRequest::CreateRecordIndexFileRequest()
|
||||
: RpcServiceRequest("rtc", "2018-01-11", "CreateRecordIndexFile") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRecordIndexFileRequest::~CreateRecordIndexFileRequest() {}
|
||||
|
||||
std::string CreateRecordIndexFileRequest::getOssEndpoint() const {
|
||||
return ossEndpoint_;
|
||||
}
|
||||
|
||||
void CreateRecordIndexFileRequest::setOssEndpoint(const std::string &ossEndpoint) {
|
||||
ossEndpoint_ = ossEndpoint;
|
||||
setParameter(std::string("OssEndpoint"), ossEndpoint);
|
||||
}
|
||||
|
||||
std::string CreateRecordIndexFileRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void CreateRecordIndexFileRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string CreateRecordIndexFileRequest::getOssObject() const {
|
||||
return ossObject_;
|
||||
}
|
||||
|
||||
void CreateRecordIndexFileRequest::setOssObject(const std::string &ossObject) {
|
||||
ossObject_ = ossObject;
|
||||
setParameter(std::string("OssObject"), ossObject);
|
||||
}
|
||||
|
||||
std::string CreateRecordIndexFileRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void CreateRecordIndexFileRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
std::string CreateRecordIndexFileRequest::getShowLog() const {
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateRecordIndexFileRequest::setShowLog(const std::string &showLog) {
|
||||
showLog_ = showLog;
|
||||
setParameter(std::string("ShowLog"), showLog);
|
||||
}
|
||||
|
||||
std::string CreateRecordIndexFileRequest::getOssBucket() const {
|
||||
return ossBucket_;
|
||||
}
|
||||
|
||||
void CreateRecordIndexFileRequest::setOssBucket(const std::string &ossBucket) {
|
||||
ossBucket_ = ossBucket;
|
||||
setParameter(std::string("OssBucket"), ossBucket);
|
||||
}
|
||||
|
||||
std::string CreateRecordIndexFileRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void CreateRecordIndexFileRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
long CreateRecordIndexFileRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateRecordIndexFileRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateRecordIndexFileRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void CreateRecordIndexFileRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string CreateRecordIndexFileRequest::getChannelId() const {
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void CreateRecordIndexFileRequest::setChannelId(const std::string &channelId) {
|
||||
channelId_ = channelId;
|
||||
setParameter(std::string("ChannelId"), channelId);
|
||||
}
|
||||
|
||||
@@ -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/CreateRecordIndexFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
CreateRecordIndexFileResult::CreateRecordIndexFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRecordIndexFileResult::CreateRecordIndexFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRecordIndexFileResult::~CreateRecordIndexFileResult()
|
||||
{}
|
||||
|
||||
void CreateRecordIndexFileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Url"].isNull())
|
||||
url_ = value["Url"].asString();
|
||||
if(!value["Duration"].isNull())
|
||||
duration_ = std::stof(value["Duration"].asString());
|
||||
if(!value["Width"].isNull())
|
||||
width_ = std::stoi(value["Width"].asString());
|
||||
if(!value["Height"].isNull())
|
||||
height_ = std::stoi(value["Height"].asString());
|
||||
|
||||
}
|
||||
|
||||
float CreateRecordIndexFileResult::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
int CreateRecordIndexFileResult::getHeight()const
|
||||
{
|
||||
return height_;
|
||||
}
|
||||
|
||||
int CreateRecordIndexFileResult::getWidth()const
|
||||
{
|
||||
return width_;
|
||||
}
|
||||
|
||||
std::string CreateRecordIndexFileResult::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
@@ -1,116 +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/DescribeRecordTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Rtc::Model::DescribeRecordTasksRequest;
|
||||
|
||||
DescribeRecordTasksRequest::DescribeRecordTasksRequest()
|
||||
: RpcServiceRequest("rtc", "2018-01-11", "DescribeRecordTasks") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRecordTasksRequest::~DescribeRecordTasksRequest() {}
|
||||
|
||||
std::string DescribeRecordTasksRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
int DescribeRecordTasksRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeRecordTasksRequest::getTaskIds() const {
|
||||
return taskIds_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setTaskIds(const std::vector<std::string> &taskIds) {
|
||||
taskIds_ = taskIds;
|
||||
}
|
||||
|
||||
int DescribeRecordTasksRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRecordTasksRequest::getShowLog() const {
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setShowLog(const std::string &showLog) {
|
||||
showLog_ = showLog;
|
||||
setParameter(std::string("ShowLog"), showLog);
|
||||
}
|
||||
|
||||
std::string DescribeRecordTasksRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
long DescribeRecordTasksRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeRecordTasksRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string DescribeRecordTasksRequest::getChannelId() const {
|
||||
return channelId_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setChannelId(const std::string &channelId) {
|
||||
channelId_ = channelId;
|
||||
setParameter(std::string("ChannelId"), channelId);
|
||||
}
|
||||
|
||||
std::string DescribeRecordTasksRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeRecordTasksRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
@@ -1,96 +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/DescribeRecordTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rtc;
|
||||
using namespace AlibabaCloud::Rtc::Model;
|
||||
|
||||
DescribeRecordTasksResult::DescribeRecordTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRecordTasksResult::DescribeRecordTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRecordTasksResult::~DescribeRecordTasksResult()
|
||||
{}
|
||||
|
||||
void DescribeRecordTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRecordTasksNode = value["RecordTasks"]["RecordTask"];
|
||||
for (auto valueRecordTasksRecordTask : allRecordTasksNode)
|
||||
{
|
||||
RecordTask recordTasksObject;
|
||||
if(!valueRecordTasksRecordTask["Status"].isNull())
|
||||
recordTasksObject.status = std::stoi(valueRecordTasksRecordTask["Status"].asString());
|
||||
if(!valueRecordTasksRecordTask["CreateTime"].isNull())
|
||||
recordTasksObject.createTime = valueRecordTasksRecordTask["CreateTime"].asString();
|
||||
if(!valueRecordTasksRecordTask["AppId"].isNull())
|
||||
recordTasksObject.appId = valueRecordTasksRecordTask["AppId"].asString();
|
||||
if(!valueRecordTasksRecordTask["ChannelId"].isNull())
|
||||
recordTasksObject.channelId = valueRecordTasksRecordTask["ChannelId"].asString();
|
||||
if(!valueRecordTasksRecordTask["TaskId"].isNull())
|
||||
recordTasksObject.taskId = valueRecordTasksRecordTask["TaskId"].asString();
|
||||
if(!valueRecordTasksRecordTask["TemplateId"].isNull())
|
||||
recordTasksObject.templateId = valueRecordTasksRecordTask["TemplateId"].asString();
|
||||
auto allUserPanesNode = valueRecordTasksRecordTask["UserPanes"]["UserPanesItem"];
|
||||
for (auto valueRecordTasksRecordTaskUserPanesUserPanesItem : allUserPanesNode)
|
||||
{
|
||||
RecordTask::UserPanesItem userPanesObject;
|
||||
if(!valueRecordTasksRecordTaskUserPanesUserPanesItem["PaneId"].isNull())
|
||||
userPanesObject.paneId = std::stoi(valueRecordTasksRecordTaskUserPanesUserPanesItem["PaneId"].asString());
|
||||
if(!valueRecordTasksRecordTaskUserPanesUserPanesItem["Source"].isNull())
|
||||
userPanesObject.source = valueRecordTasksRecordTaskUserPanesUserPanesItem["Source"].asString();
|
||||
if(!valueRecordTasksRecordTaskUserPanesUserPanesItem["UserId"].isNull())
|
||||
userPanesObject.userId = valueRecordTasksRecordTaskUserPanesUserPanesItem["UserId"].asString();
|
||||
recordTasksObject.userPanes.push_back(userPanesObject);
|
||||
}
|
||||
auto allSubSpecUsers = value["SubSpecUsers"]["SubSpecUser"];
|
||||
for (auto value : allSubSpecUsers)
|
||||
recordTasksObject.subSpecUsers.push_back(value.asString());
|
||||
recordTasks_.push_back(recordTasksObject);
|
||||
}
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stol(value["TotalPage"].asString());
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stol(value["TotalNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRecordTasksResult::RecordTask> DescribeRecordTasksResult::getRecordTasks()const
|
||||
{
|
||||
return recordTasks_;
|
||||
}
|
||||
|
||||
long DescribeRecordTasksResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
long DescribeRecordTasksResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
@@ -39,13 +39,6 @@ void UpdateAutoLiveStreamRuleResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RuleId"].isNull())
|
||||
ruleId_ = std::stol(value["RuleId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long UpdateAutoLiveStreamRuleResult::getRuleId()const
|
||||
{
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user