Live sdk update.

This commit is contained in:
sdk-team
2022-12-28 03:49:59 +00:00
parent aee93835d2
commit 56bdae2cc0
18 changed files with 887 additions and 1 deletions

View File

@@ -2211,6 +2211,42 @@ LiveClient::DeleteLiveAudioAuditNotifyConfigOutcomeCallable LiveClient::deleteLi
return task->get_future();
}
LiveClient::DeleteLiveCenterTransferOutcome LiveClient::deleteLiveCenterTransfer(const DeleteLiveCenterTransferRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteLiveCenterTransferOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteLiveCenterTransferOutcome(DeleteLiveCenterTransferResult(outcome.result()));
else
return DeleteLiveCenterTransferOutcome(outcome.error());
}
void LiveClient::deleteLiveCenterTransferAsync(const DeleteLiveCenterTransferRequest& request, const DeleteLiveCenterTransferAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteLiveCenterTransfer(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DeleteLiveCenterTransferOutcomeCallable LiveClient::deleteLiveCenterTransferCallable(const DeleteLiveCenterTransferRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteLiveCenterTransferOutcome()>>(
[this, request]()
{
return this->deleteLiveCenterTransfer(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DeleteLiveDetectNotifyConfigOutcome LiveClient::deleteLiveDetectNotifyConfig(const DeleteLiveDetectNotifyConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3903,6 +3939,42 @@ LiveClient::DescribeLiveAudioAuditNotifyConfigOutcomeCallable LiveClient::descri
return task->get_future();
}
LiveClient::DescribeLiveCenterTransferOutcome LiveClient::describeLiveCenterTransfer(const DescribeLiveCenterTransferRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeLiveCenterTransferOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeLiveCenterTransferOutcome(DescribeLiveCenterTransferResult(outcome.result()));
else
return DescribeLiveCenterTransferOutcome(outcome.error());
}
void LiveClient::describeLiveCenterTransferAsync(const DescribeLiveCenterTransferRequest& request, const DescribeLiveCenterTransferAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeLiveCenterTransfer(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeLiveCenterTransferOutcomeCallable LiveClient::describeLiveCenterTransferCallable(const DescribeLiveCenterTransferRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeLiveCenterTransferOutcome()>>(
[this, request]()
{
return this->describeLiveCenterTransfer(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeLiveCertificateDetailOutcome LiveClient::describeLiveCertificateDetail(const DescribeLiveCertificateDetailRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -10311,6 +10383,42 @@ LiveClient::UpdateLiveAudioAuditNotifyConfigOutcomeCallable LiveClient::updateLi
return task->get_future();
}
LiveClient::UpdateLiveCenterTransferOutcome LiveClient::updateLiveCenterTransfer(const UpdateLiveCenterTransferRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateLiveCenterTransferOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateLiveCenterTransferOutcome(UpdateLiveCenterTransferResult(outcome.result()));
else
return UpdateLiveCenterTransferOutcome(outcome.error());
}
void LiveClient::updateLiveCenterTransferAsync(const UpdateLiveCenterTransferRequest& request, const UpdateLiveCenterTransferAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateLiveCenterTransfer(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::UpdateLiveCenterTransferOutcomeCallable LiveClient::updateLiveCenterTransferCallable(const UpdateLiveCenterTransferRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateLiveCenterTransferOutcome()>>(
[this, request]()
{
return this->updateLiveCenterTransfer(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::UpdateLiveDetectNotifyConfigOutcome LiveClient::updateLiveDetectNotifyConfig(const UpdateLiveDetectNotifyConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,72 @@
/*
* 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/live/model/DeleteLiveCenterTransferRequest.h>
using AlibabaCloud::Live::Model::DeleteLiveCenterTransferRequest;
DeleteLiveCenterTransferRequest::DeleteLiveCenterTransferRequest()
: RpcServiceRequest("live", "2016-11-01", "DeleteLiveCenterTransfer") {
setMethod(HttpRequest::Method::Post);
}
DeleteLiveCenterTransferRequest::~DeleteLiveCenterTransferRequest() {}
std::string DeleteLiveCenterTransferRequest::getAppName() const {
return appName_;
}
void DeleteLiveCenterTransferRequest::setAppName(const std::string &appName) {
appName_ = appName;
setParameter(std::string("AppName"), appName);
}
std::string DeleteLiveCenterTransferRequest::getStreamName() const {
return streamName_;
}
void DeleteLiveCenterTransferRequest::setStreamName(const std::string &streamName) {
streamName_ = streamName;
setParameter(std::string("StreamName"), streamName);
}
std::string DeleteLiveCenterTransferRequest::getDstUrl() const {
return dstUrl_;
}
void DeleteLiveCenterTransferRequest::setDstUrl(const std::string &dstUrl) {
dstUrl_ = dstUrl;
setParameter(std::string("DstUrl"), dstUrl);
}
std::string DeleteLiveCenterTransferRequest::getDomainName() const {
return domainName_;
}
void DeleteLiveCenterTransferRequest::setDomainName(const std::string &domainName) {
domainName_ = domainName;
setParameter(std::string("DomainName"), domainName);
}
long DeleteLiveCenterTransferRequest::getOwnerId() const {
return ownerId_;
}
void DeleteLiveCenterTransferRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,72 @@
/*
* 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/live/model/DescribeLiveCenterTransferRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveCenterTransferRequest;
DescribeLiveCenterTransferRequest::DescribeLiveCenterTransferRequest()
: RpcServiceRequest("live", "2016-11-01", "DescribeLiveCenterTransfer") {
setMethod(HttpRequest::Method::Post);
}
DescribeLiveCenterTransferRequest::~DescribeLiveCenterTransferRequest() {}
std::string DescribeLiveCenterTransferRequest::getAppName() const {
return appName_;
}
void DescribeLiveCenterTransferRequest::setAppName(const std::string &appName) {
appName_ = appName;
setParameter(std::string("AppName"), appName);
}
std::string DescribeLiveCenterTransferRequest::getStreamName() const {
return streamName_;
}
void DescribeLiveCenterTransferRequest::setStreamName(const std::string &streamName) {
streamName_ = streamName;
setParameter(std::string("StreamName"), streamName);
}
std::string DescribeLiveCenterTransferRequest::getDstUrl() const {
return dstUrl_;
}
void DescribeLiveCenterTransferRequest::setDstUrl(const std::string &dstUrl) {
dstUrl_ = dstUrl;
setParameter(std::string("DstUrl"), dstUrl);
}
std::string DescribeLiveCenterTransferRequest::getDomainName() const {
return domainName_;
}
void DescribeLiveCenterTransferRequest::setDomainName(const std::string &domainName) {
domainName_ = domainName;
setParameter(std::string("DomainName"), domainName);
}
long DescribeLiveCenterTransferRequest::getOwnerId() const {
return ownerId_;
}
void DescribeLiveCenterTransferRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -0,0 +1,69 @@
/*
* 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/live/model/DescribeLiveCenterTransferResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveCenterTransferResult::DescribeLiveCenterTransferResult() :
ServiceResult()
{}
DescribeLiveCenterTransferResult::DescribeLiveCenterTransferResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveCenterTransferResult::~DescribeLiveCenterTransferResult()
{}
void DescribeLiveCenterTransferResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLiveCenterTransferInfoListNode = value["LiveCenterTransferInfoList"]["LiveCenterTransferInfo"];
for (auto valueLiveCenterTransferInfoListLiveCenterTransferInfo : allLiveCenterTransferInfoListNode)
{
LiveCenterTransferInfo liveCenterTransferInfoListObject;
if(!valueLiveCenterTransferInfoListLiveCenterTransferInfo["EndTime"].isNull())
liveCenterTransferInfoListObject.endTime = valueLiveCenterTransferInfoListLiveCenterTransferInfo["EndTime"].asString();
if(!valueLiveCenterTransferInfoListLiveCenterTransferInfo["AppName"].isNull())
liveCenterTransferInfoListObject.appName = valueLiveCenterTransferInfoListLiveCenterTransferInfo["AppName"].asString();
if(!valueLiveCenterTransferInfoListLiveCenterTransferInfo["StartTime"].isNull())
liveCenterTransferInfoListObject.startTime = valueLiveCenterTransferInfoListLiveCenterTransferInfo["StartTime"].asString();
if(!valueLiveCenterTransferInfoListLiveCenterTransferInfo["TransferArgs"].isNull())
liveCenterTransferInfoListObject.transferArgs = valueLiveCenterTransferInfoListLiveCenterTransferInfo["TransferArgs"].asString();
if(!valueLiveCenterTransferInfoListLiveCenterTransferInfo["StreamName"].isNull())
liveCenterTransferInfoListObject.streamName = valueLiveCenterTransferInfoListLiveCenterTransferInfo["StreamName"].asString();
if(!valueLiveCenterTransferInfoListLiveCenterTransferInfo["DstUrl"].isNull())
liveCenterTransferInfoListObject.dstUrl = valueLiveCenterTransferInfoListLiveCenterTransferInfo["DstUrl"].asString();
if(!valueLiveCenterTransferInfoListLiveCenterTransferInfo["DomainName"].isNull())
liveCenterTransferInfoListObject.domainName = valueLiveCenterTransferInfoListLiveCenterTransferInfo["DomainName"].asString();
liveCenterTransferInfoList_.push_back(liveCenterTransferInfoListObject);
}
}
std::vector<DescribeLiveCenterTransferResult::LiveCenterTransferInfo> DescribeLiveCenterTransferResult::getLiveCenterTransferInfoList()const
{
return liveCenterTransferInfoList_;
}

View File

@@ -70,6 +70,15 @@ void SetCasterChannelRequest::setCasterId(const std::string &casterId) {
setParameter(std::string("CasterId"), casterId);
}
bool SetCasterChannelRequest::getEnableSeekResume() const {
return enableSeekResume_;
}
void SetCasterChannelRequest::setEnableSeekResume(bool enableSeekResume) {
enableSeekResume_ = enableSeekResume;
setParameter(std::string("EnableSeekResume"), enableSeekResume ? "true" : "false");
}
long SetCasterChannelRequest::getOwnerId() const {
return ownerId_;
}

View File

@@ -0,0 +1,99 @@
/*
* 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/live/model/UpdateLiveCenterTransferRequest.h>
using AlibabaCloud::Live::Model::UpdateLiveCenterTransferRequest;
UpdateLiveCenterTransferRequest::UpdateLiveCenterTransferRequest()
: RpcServiceRequest("live", "2016-11-01", "UpdateLiveCenterTransfer") {
setMethod(HttpRequest::Method::Post);
}
UpdateLiveCenterTransferRequest::~UpdateLiveCenterTransferRequest() {}
std::string UpdateLiveCenterTransferRequest::getTransferArgs() const {
return transferArgs_;
}
void UpdateLiveCenterTransferRequest::setTransferArgs(const std::string &transferArgs) {
transferArgs_ = transferArgs;
setParameter(std::string("TransferArgs"), transferArgs);
}
std::string UpdateLiveCenterTransferRequest::getStartTime() const {
return startTime_;
}
void UpdateLiveCenterTransferRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
std::string UpdateLiveCenterTransferRequest::getAppName() const {
return appName_;
}
void UpdateLiveCenterTransferRequest::setAppName(const std::string &appName) {
appName_ = appName;
setParameter(std::string("AppName"), appName);
}
std::string UpdateLiveCenterTransferRequest::getStreamName() const {
return streamName_;
}
void UpdateLiveCenterTransferRequest::setStreamName(const std::string &streamName) {
streamName_ = streamName;
setParameter(std::string("StreamName"), streamName);
}
std::string UpdateLiveCenterTransferRequest::getDstUrl() const {
return dstUrl_;
}
void UpdateLiveCenterTransferRequest::setDstUrl(const std::string &dstUrl) {
dstUrl_ = dstUrl;
setParameter(std::string("DstUrl"), dstUrl);
}
std::string UpdateLiveCenterTransferRequest::getDomainName() const {
return domainName_;
}
void UpdateLiveCenterTransferRequest::setDomainName(const std::string &domainName) {
domainName_ = domainName;
setParameter(std::string("DomainName"), domainName);
}
std::string UpdateLiveCenterTransferRequest::getEndTime() const {
return endTime_;
}
void UpdateLiveCenterTransferRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
long UpdateLiveCenterTransferRequest::getOwnerId() const {
return ownerId_;
}
void UpdateLiveCenterTransferRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

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