Delete some abandoned interface in SDK.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2021-11-24 Version: 1.36.945
|
||||
- Delete some abandoned interface in SDK.
|
||||
|
||||
2021-11-24 Version: 1.36.944
|
||||
- Set API DescribeVodDomainSrcBpsData to public.
|
||||
|
||||
|
||||
@@ -29,8 +29,6 @@ set(rtc_public_header_model
|
||||
include/alibabacloud/rtc/model/CreateEventSubscribeResult.h
|
||||
include/alibabacloud/rtc/model/CreateMPULayoutRequest.h
|
||||
include/alibabacloud/rtc/model/CreateMPULayoutResult.h
|
||||
include/alibabacloud/rtc/model/CreateRecordIndexFileRequest.h
|
||||
include/alibabacloud/rtc/model/CreateRecordIndexFileResult.h
|
||||
include/alibabacloud/rtc/model/DeleteAutoLiveStreamRuleRequest.h
|
||||
include/alibabacloud/rtc/model/DeleteAutoLiveStreamRuleResult.h
|
||||
include/alibabacloud/rtc/model/DeleteEventSubscribeRequest.h
|
||||
@@ -49,8 +47,6 @@ set(rtc_public_header_model
|
||||
include/alibabacloud/rtc/model/DescribeMPULayoutInfoListResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRecordFilesRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRecordFilesResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRecordTasksRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRecordTasksResult.h
|
||||
include/alibabacloud/rtc/model/DescribeRecordTemplatesRequest.h
|
||||
include/alibabacloud/rtc/model/DescribeRecordTemplatesResult.h
|
||||
include/alibabacloud/rtc/model/DescribeUserInfoInChannelRequest.h
|
||||
@@ -94,8 +90,6 @@ set(rtc_src
|
||||
src/model/CreateEventSubscribeResult.cc
|
||||
src/model/CreateMPULayoutRequest.cc
|
||||
src/model/CreateMPULayoutResult.cc
|
||||
src/model/CreateRecordIndexFileRequest.cc
|
||||
src/model/CreateRecordIndexFileResult.cc
|
||||
src/model/DeleteAutoLiveStreamRuleRequest.cc
|
||||
src/model/DeleteAutoLiveStreamRuleResult.cc
|
||||
src/model/DeleteEventSubscribeRequest.cc
|
||||
@@ -114,8 +108,6 @@ set(rtc_src
|
||||
src/model/DescribeMPULayoutInfoListResult.cc
|
||||
src/model/DescribeRecordFilesRequest.cc
|
||||
src/model/DescribeRecordFilesResult.cc
|
||||
src/model/DescribeRecordTasksRequest.cc
|
||||
src/model/DescribeRecordTasksResult.cc
|
||||
src/model/DescribeRecordTemplatesRequest.cc
|
||||
src/model/DescribeRecordTemplatesResult.cc
|
||||
src/model/DescribeUserInfoInChannelRequest.cc
|
||||
|
||||
@@ -30,8 +30,6 @@
|
||||
#include "model/CreateEventSubscribeResult.h"
|
||||
#include "model/CreateMPULayoutRequest.h"
|
||||
#include "model/CreateMPULayoutResult.h"
|
||||
#include "model/CreateRecordIndexFileRequest.h"
|
||||
#include "model/CreateRecordIndexFileResult.h"
|
||||
#include "model/DeleteAutoLiveStreamRuleRequest.h"
|
||||
#include "model/DeleteAutoLiveStreamRuleResult.h"
|
||||
#include "model/DeleteEventSubscribeRequest.h"
|
||||
@@ -50,8 +48,6 @@
|
||||
#include "model/DescribeMPULayoutInfoListResult.h"
|
||||
#include "model/DescribeRecordFilesRequest.h"
|
||||
#include "model/DescribeRecordFilesResult.h"
|
||||
#include "model/DescribeRecordTasksRequest.h"
|
||||
#include "model/DescribeRecordTasksResult.h"
|
||||
#include "model/DescribeRecordTemplatesRequest.h"
|
||||
#include "model/DescribeRecordTemplatesResult.h"
|
||||
#include "model/DescribeUserInfoInChannelRequest.h"
|
||||
@@ -105,9 +101,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateMPULayoutResult> CreateMPULayoutOutcome;
|
||||
typedef std::future<CreateMPULayoutOutcome> CreateMPULayoutOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::CreateMPULayoutRequest&, const CreateMPULayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMPULayoutAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateRecordIndexFileResult> CreateRecordIndexFileOutcome;
|
||||
typedef std::future<CreateRecordIndexFileOutcome> CreateRecordIndexFileOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::CreateRecordIndexFileRequest&, const CreateRecordIndexFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRecordIndexFileAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteAutoLiveStreamRuleResult> DeleteAutoLiveStreamRuleOutcome;
|
||||
typedef std::future<DeleteAutoLiveStreamRuleOutcome> DeleteAutoLiveStreamRuleOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DeleteAutoLiveStreamRuleRequest&, const DeleteAutoLiveStreamRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAutoLiveStreamRuleAsyncHandler;
|
||||
@@ -135,9 +128,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeRecordFilesResult> DescribeRecordFilesOutcome;
|
||||
typedef std::future<DescribeRecordFilesOutcome> DescribeRecordFilesOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRecordFilesRequest&, const DescribeRecordFilesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRecordFilesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRecordTasksResult> DescribeRecordTasksOutcome;
|
||||
typedef std::future<DescribeRecordTasksOutcome> DescribeRecordTasksOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRecordTasksRequest&, const DescribeRecordTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRecordTasksAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRecordTemplatesResult> DescribeRecordTemplatesOutcome;
|
||||
typedef std::future<DescribeRecordTemplatesOutcome> DescribeRecordTemplatesOutcomeCallable;
|
||||
typedef std::function<void(const RtcClient*, const Model::DescribeRecordTemplatesRequest&, const DescribeRecordTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRecordTemplatesAsyncHandler;
|
||||
@@ -203,9 +193,6 @@ namespace AlibabaCloud
|
||||
CreateMPULayoutOutcome createMPULayout(const Model::CreateMPULayoutRequest &request)const;
|
||||
void createMPULayoutAsync(const Model::CreateMPULayoutRequest& request, const CreateMPULayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMPULayoutOutcomeCallable createMPULayoutCallable(const Model::CreateMPULayoutRequest& request) const;
|
||||
CreateRecordIndexFileOutcome createRecordIndexFile(const Model::CreateRecordIndexFileRequest &request)const;
|
||||
void createRecordIndexFileAsync(const Model::CreateRecordIndexFileRequest& request, const CreateRecordIndexFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRecordIndexFileOutcomeCallable createRecordIndexFileCallable(const Model::CreateRecordIndexFileRequest& request) const;
|
||||
DeleteAutoLiveStreamRuleOutcome deleteAutoLiveStreamRule(const Model::DeleteAutoLiveStreamRuleRequest &request)const;
|
||||
void deleteAutoLiveStreamRuleAsync(const Model::DeleteAutoLiveStreamRuleRequest& request, const DeleteAutoLiveStreamRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteAutoLiveStreamRuleOutcomeCallable deleteAutoLiveStreamRuleCallable(const Model::DeleteAutoLiveStreamRuleRequest& request) const;
|
||||
@@ -233,9 +220,6 @@ namespace AlibabaCloud
|
||||
DescribeRecordFilesOutcome describeRecordFiles(const Model::DescribeRecordFilesRequest &request)const;
|
||||
void describeRecordFilesAsync(const Model::DescribeRecordFilesRequest& request, const DescribeRecordFilesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRecordFilesOutcomeCallable describeRecordFilesCallable(const Model::DescribeRecordFilesRequest& request) const;
|
||||
DescribeRecordTasksOutcome describeRecordTasks(const Model::DescribeRecordTasksRequest &request)const;
|
||||
void describeRecordTasksAsync(const Model::DescribeRecordTasksRequest& request, const DescribeRecordTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRecordTasksOutcomeCallable describeRecordTasksCallable(const Model::DescribeRecordTasksRequest& request) const;
|
||||
DescribeRecordTemplatesOutcome describeRecordTemplates(const Model::DescribeRecordTemplatesRequest &request)const;
|
||||
void describeRecordTemplatesAsync(const Model::DescribeRecordTemplatesRequest& request, const DescribeRecordTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRecordTemplatesOutcomeCallable describeRecordTemplatesCallable(const Model::DescribeRecordTemplatesRequest& request) const;
|
||||
|
||||
@@ -1,69 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_CREATERECORDINDEXFILEREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_CREATERECORDINDEXFILEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Rtc {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_RTC_EXPORT CreateRecordIndexFileRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateRecordIndexFileRequest();
|
||||
~CreateRecordIndexFileRequest();
|
||||
std::string getOssEndpoint() const;
|
||||
void setOssEndpoint(const std::string &ossEndpoint);
|
||||
std::string getStartTime() const;
|
||||
void setStartTime(const std::string &startTime);
|
||||
std::string getOssObject() const;
|
||||
void setOssObject(const std::string &ossObject);
|
||||
std::string getTaskId() const;
|
||||
void setTaskId(const std::string &taskId);
|
||||
std::string getShowLog() const;
|
||||
void setShowLog(const std::string &showLog);
|
||||
std::string getOssBucket() const;
|
||||
void setOssBucket(const std::string &ossBucket);
|
||||
std::string getEndTime() const;
|
||||
void setEndTime(const std::string &endTime);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId() const;
|
||||
void setAppId(const std::string &appId);
|
||||
std::string getChannelId() const;
|
||||
void setChannelId(const std::string &channelId);
|
||||
|
||||
private:
|
||||
std::string ossEndpoint_;
|
||||
std::string startTime_;
|
||||
std::string ossObject_;
|
||||
std::string taskId_;
|
||||
std::string showLog_;
|
||||
std::string ossBucket_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
std::string channelId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Rtc
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_CREATERECORDINDEXFILEREQUEST_H_
|
||||
@@ -1,57 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_CREATERECORDINDEXFILERESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_CREATERECORDINDEXFILERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT CreateRecordIndexFileResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateRecordIndexFileResult();
|
||||
explicit CreateRecordIndexFileResult(const std::string &payload);
|
||||
~CreateRecordIndexFileResult();
|
||||
float getDuration()const;
|
||||
int getHeight()const;
|
||||
int getWidth()const;
|
||||
std::string getUrl()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
float duration_;
|
||||
int height_;
|
||||
int width_;
|
||||
std::string url_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_CREATERECORDINDEXFILERESULT_H_
|
||||
@@ -1,69 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSREQUEST_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Rtc {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRecordTasksRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeRecordTasksRequest();
|
||||
~DescribeRecordTasksRequest();
|
||||
std::string getStartTime() const;
|
||||
void setStartTime(const std::string &startTime);
|
||||
int getPageNum() const;
|
||||
void setPageNum(int pageNum);
|
||||
std::vector<std::string> getTaskIds() const;
|
||||
void setTaskIds(const std::vector<std::string> &taskIds);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getShowLog() const;
|
||||
void setShowLog(const std::string &showLog);
|
||||
std::string getEndTime() const;
|
||||
void setEndTime(const std::string &endTime);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAppId() const;
|
||||
void setAppId(const std::string &appId);
|
||||
std::string getChannelId() const;
|
||||
void setChannelId(const std::string &channelId);
|
||||
std::string getStatus() const;
|
||||
void setStatus(const std::string &status);
|
||||
|
||||
private:
|
||||
std::string startTime_;
|
||||
int pageNum_;
|
||||
std::vector<std::string> taskIds_;
|
||||
int pageSize_;
|
||||
std::string showLog_;
|
||||
std::string endTime_;
|
||||
long ownerId_;
|
||||
std::string appId_;
|
||||
std::string channelId_;
|
||||
std::string status_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Rtc
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSRESULT_H_
|
||||
#define ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rtc/RtcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rtc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RTC_EXPORT DescribeRecordTasksResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RecordTask
|
||||
{
|
||||
struct UserPanesItem
|
||||
{
|
||||
std::string userId;
|
||||
int paneId;
|
||||
std::string source;
|
||||
};
|
||||
int status;
|
||||
std::vector<RecordTask::UserPanesItem> userPanes;
|
||||
std::string taskId;
|
||||
std::string appId;
|
||||
std::vector<std::string> subSpecUsers;
|
||||
std::string createTime;
|
||||
std::string channelId;
|
||||
std::string templateId;
|
||||
};
|
||||
|
||||
|
||||
DescribeRecordTasksResult();
|
||||
explicit DescribeRecordTasksResult(const std::string &payload);
|
||||
~DescribeRecordTasksResult();
|
||||
std::vector<RecordTask> getRecordTasks()const;
|
||||
long getTotalNum()const;
|
||||
long getTotalPage()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<RecordTask> recordTasks_;
|
||||
long totalNum_;
|
||||
long totalPage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RTC_MODEL_DESCRIBERECORDTASKSRESULT_H_
|
||||
@@ -37,12 +37,10 @@ namespace AlibabaCloud
|
||||
UpdateAutoLiveStreamRuleResult();
|
||||
explicit UpdateAutoLiveStreamRuleResult(const std::string &payload);
|
||||
~UpdateAutoLiveStreamRuleResult();
|
||||
long getRuleId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long ruleId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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