Generated 2016-11-01 for live.

This commit is contained in:
sdk-team
2021-01-13 02:08:35 +00:00
parent f4ed9edc5e
commit e8a74f4418
52 changed files with 1523 additions and 645 deletions

View File

@@ -2139,6 +2139,42 @@ LiveClient::DeleteLiveDomainMappingOutcomeCallable LiveClient::deleteLiveDomainM
return task->get_future();
}
LiveClient::DeleteLiveDomainPlayMappingOutcome LiveClient::deleteLiveDomainPlayMapping(const DeleteLiveDomainPlayMappingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteLiveDomainPlayMappingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteLiveDomainPlayMappingOutcome(DeleteLiveDomainPlayMappingResult(outcome.result()));
else
return DeleteLiveDomainPlayMappingOutcome(outcome.error());
}
void LiveClient::deleteLiveDomainPlayMappingAsync(const DeleteLiveDomainPlayMappingRequest& request, const DeleteLiveDomainPlayMappingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteLiveDomainPlayMapping(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DeleteLiveDomainPlayMappingOutcomeCallable LiveClient::deleteLiveDomainPlayMappingCallable(const DeleteLiveDomainPlayMappingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteLiveDomainPlayMappingOutcome()>>(
[this, request]()
{
return this->deleteLiveDomainPlayMapping(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DeleteLiveLazyPullStreamInfoConfigOutcome LiveClient::deleteLiveLazyPullStreamInfoConfig(const DeleteLiveLazyPullStreamInfoConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3075,6 +3111,42 @@ LiveClient::DescribeCastersOutcomeCallable LiveClient::describeCastersCallable(c
return task->get_future();
}
LiveClient::DescribeDomainUsageDataOutcome LiveClient::describeDomainUsageData(const DescribeDomainUsageDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDomainUsageDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDomainUsageDataOutcome(DescribeDomainUsageDataResult(outcome.result()));
else
return DescribeDomainUsageDataOutcome(outcome.error());
}
void LiveClient::describeDomainUsageDataAsync(const DescribeDomainUsageDataRequest& request, const DescribeDomainUsageDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDomainUsageData(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeDomainUsageDataOutcomeCallable LiveClient::describeDomainUsageDataCallable(const DescribeDomainUsageDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDomainUsageDataOutcome()>>(
[this, request]()
{
return this->describeDomainUsageData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeForbidPushStreamRoomListOutcome LiveClient::describeForbidPushStreamRoomList(const DescribeForbidPushStreamRoomListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3831,6 +3903,42 @@ LiveClient::DescribeLiveDomainPushTrafficDataOutcomeCallable LiveClient::describ
return task->get_future();
}
LiveClient::DescribeLiveDomainPvUvDataOutcome LiveClient::describeLiveDomainPvUvData(const DescribeLiveDomainPvUvDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeLiveDomainPvUvDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeLiveDomainPvUvDataOutcome(DescribeLiveDomainPvUvDataResult(outcome.result()));
else
return DescribeLiveDomainPvUvDataOutcome(outcome.error());
}
void LiveClient::describeLiveDomainPvUvDataAsync(const DescribeLiveDomainPvUvDataRequest& request, const DescribeLiveDomainPvUvDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeLiveDomainPvUvData(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeLiveDomainPvUvDataOutcomeCallable LiveClient::describeLiveDomainPvUvDataCallable(const DescribeLiveDomainPvUvDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeLiveDomainPvUvDataOutcome()>>(
[this, request]()
{
return this->describeLiveDomainPvUvData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeLiveDomainRealTimeBpsDataOutcome LiveClient::describeLiveDomainRealTimeBpsData(const DescribeLiveDomainRealTimeBpsDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4623,42 +4731,6 @@ LiveClient::DescribeLiveStreamHistoryUserNumOutcomeCallable LiveClient::describe
return task->get_future();
}
LiveClient::DescribeLiveStreamOnlineUserNumOutcome LiveClient::describeLiveStreamOnlineUserNum(const DescribeLiveStreamOnlineUserNumRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeLiveStreamOnlineUserNumOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeLiveStreamOnlineUserNumOutcome(DescribeLiveStreamOnlineUserNumResult(outcome.result()));
else
return DescribeLiveStreamOnlineUserNumOutcome(outcome.error());
}
void LiveClient::describeLiveStreamOnlineUserNumAsync(const DescribeLiveStreamOnlineUserNumRequest& request, const DescribeLiveStreamOnlineUserNumAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeLiveStreamOnlineUserNum(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeLiveStreamOnlineUserNumOutcomeCallable LiveClient::describeLiveStreamOnlineUserNumCallable(const DescribeLiveStreamOnlineUserNumRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeLiveStreamOnlineUserNumOutcome()>>(
[this, request]()
{
return this->describeLiveStreamOnlineUserNum(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeLiveStreamOptimizedFeatureConfigOutcome LiveClient::describeLiveStreamOptimizedFeatureConfig(const DescribeLiveStreamOptimizedFeatureConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4983,42 +5055,6 @@ LiveClient::DescribeLiveStreamsControlHistoryOutcomeCallable LiveClient::describ
return task->get_future();
}
LiveClient::DescribeLiveStreamsFrameRateAndBitRateDataOutcome LiveClient::describeLiveStreamsFrameRateAndBitRateData(const DescribeLiveStreamsFrameRateAndBitRateDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeLiveStreamsFrameRateAndBitRateDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeLiveStreamsFrameRateAndBitRateDataOutcome(DescribeLiveStreamsFrameRateAndBitRateDataResult(outcome.result()));
else
return DescribeLiveStreamsFrameRateAndBitRateDataOutcome(outcome.error());
}
void LiveClient::describeLiveStreamsFrameRateAndBitRateDataAsync(const DescribeLiveStreamsFrameRateAndBitRateDataRequest& request, const DescribeLiveStreamsFrameRateAndBitRateDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeLiveStreamsFrameRateAndBitRateData(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeLiveStreamsFrameRateAndBitRateDataOutcomeCallable LiveClient::describeLiveStreamsFrameRateAndBitRateDataCallable(const DescribeLiveStreamsFrameRateAndBitRateDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeLiveStreamsFrameRateAndBitRateDataOutcome()>>(
[this, request]()
{
return this->describeLiveStreamsFrameRateAndBitRateData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeLiveStreamsNotifyUrlConfigOutcome LiveClient::describeLiveStreamsNotifyUrlConfig(const DescribeLiveStreamsNotifyUrlConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5271,6 +5307,42 @@ LiveClient::DescribeLiveUserTagsOutcomeCallable LiveClient::describeLiveUserTags
return task->get_future();
}
LiveClient::DescribeLiveVerifyContentOutcome LiveClient::describeLiveVerifyContent(const DescribeLiveVerifyContentRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeLiveVerifyContentOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeLiveVerifyContentOutcome(DescribeLiveVerifyContentResult(outcome.result()));
else
return DescribeLiveVerifyContentOutcome(outcome.error());
}
void LiveClient::describeLiveVerifyContentAsync(const DescribeLiveVerifyContentRequest& request, const DescribeLiveVerifyContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeLiveVerifyContent(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeLiveVerifyContentOutcomeCallable LiveClient::describeLiveVerifyContentCallable(const DescribeLiveVerifyContentRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeLiveVerifyContentOutcome()>>(
[this, request]()
{
return this->describeLiveVerifyContent(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeMixStreamListOutcome LiveClient::describeMixStreamList(const DescribeMixStreamListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7647,3 +7719,39 @@ LiveClient::UpdateMixStreamOutcomeCallable LiveClient::updateMixStreamCallable(c
return task->get_future();
}
LiveClient::VerifyLiveDomainOwnerOutcome LiveClient::verifyLiveDomainOwner(const VerifyLiveDomainOwnerRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return VerifyLiveDomainOwnerOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return VerifyLiveDomainOwnerOutcome(VerifyLiveDomainOwnerResult(outcome.result()));
else
return VerifyLiveDomainOwnerOutcome(outcome.error());
}
void LiveClient::verifyLiveDomainOwnerAsync(const VerifyLiveDomainOwnerRequest& request, const VerifyLiveDomainOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, verifyLiveDomainOwner(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::VerifyLiveDomainOwnerOutcomeCallable LiveClient::verifyLiveDomainOwnerCallable(const VerifyLiveDomainOwnerRequest &request) const
{
auto task = std::make_shared<std::packaged_task<VerifyLiveDomainOwnerOutcome()>>(
[this, request]()
{
return this->verifyLiveDomainOwner(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -71,6 +71,17 @@ void AddLiveStreamTranscodeRequest::setApp(const std::string& app)
setParameter("App", app);
}
std::string AddLiveStreamTranscodeRequest::getEncryptParameters()const
{
return encryptParameters_;
}
void AddLiveStreamTranscodeRequest::setEncryptParameters(const std::string& encryptParameters)
{
encryptParameters_ = encryptParameters;
setParameter("EncryptParameters", encryptParameters);
}
std::string AddLiveStreamTranscodeRequest::getWatermark()const
{
return watermark_;

View File

@@ -0,0 +1,62 @@
/*
* 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/DeleteLiveDomainPlayMappingRequest.h>
using AlibabaCloud::Live::Model::DeleteLiveDomainPlayMappingRequest;
DeleteLiveDomainPlayMappingRequest::DeleteLiveDomainPlayMappingRequest() :
RpcServiceRequest("live", "2016-11-01", "DeleteLiveDomainPlayMapping")
{
setMethod(HttpRequest::Method::Post);
}
DeleteLiveDomainPlayMappingRequest::~DeleteLiveDomainPlayMappingRequest()
{}
std::string DeleteLiveDomainPlayMappingRequest::getPlayDomain()const
{
return playDomain_;
}
void DeleteLiveDomainPlayMappingRequest::setPlayDomain(const std::string& playDomain)
{
playDomain_ = playDomain;
setParameter("PlayDomain", playDomain);
}
long DeleteLiveDomainPlayMappingRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteLiveDomainPlayMappingRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteLiveDomainPlayMappingRequest::getPullDomain()const
{
return pullDomain_;
}
void DeleteLiveDomainPlayMappingRequest::setPullDomain(const std::string& pullDomain)
{
pullDomain_ = pullDomain;
setParameter("PullDomain", pullDomain);
}

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/DeleteLiveDomainPlayMappingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DeleteLiveDomainPlayMappingResult::DeleteLiveDomainPlayMappingResult() :
ServiceResult()
{}
DeleteLiveDomainPlayMappingResult::DeleteLiveDomainPlayMappingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteLiveDomainPlayMappingResult::~DeleteLiveDomainPlayMappingResult()
{}
void DeleteLiveDomainPlayMappingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -57,20 +57,20 @@ void DescribeBoardSnapshotResult::parse(const std::string &payload)
Snapshot::Board::Page pageObject;
if(!boardNodePagesPage["PageIndex"].isNull())
pageObject.pageIndex = std::stoi(boardNodePagesPage["PageIndex"].asString());
auto allElementsNode = allPagesNode["Elements"]["Element"];
for (auto allPagesNodeElementsElement : allElementsNode)
auto allElementsNode = boardNodePagesPage["Elements"]["Element"];
for (auto boardNodePagesPageElementsElement : allElementsNode)
{
Snapshot::Board::Page::Element elementsObject;
if(!allPagesNodeElementsElement["ElementIndex"].isNull())
elementsObject.elementIndex = allPagesNodeElementsElement["ElementIndex"].asString();
if(!allPagesNodeElementsElement["OwnerId"].isNull())
elementsObject.ownerId = allPagesNodeElementsElement["OwnerId"].asString();
if(!allPagesNodeElementsElement["ElementType"].isNull())
elementsObject.elementType = std::stoi(allPagesNodeElementsElement["ElementType"].asString());
if(!allPagesNodeElementsElement["UpdateTimestamp"].isNull())
elementsObject.updateTimestamp = std::stol(allPagesNodeElementsElement["UpdateTimestamp"].asString());
if(!allPagesNodeElementsElement["Data"].isNull())
elementsObject.data = allPagesNodeElementsElement["Data"].asString();
if(!boardNodePagesPageElementsElement["ElementIndex"].isNull())
elementsObject.elementIndex = boardNodePagesPageElementsElement["ElementIndex"].asString();
if(!boardNodePagesPageElementsElement["OwnerId"].isNull())
elementsObject.ownerId = boardNodePagesPageElementsElement["OwnerId"].asString();
if(!boardNodePagesPageElementsElement["ElementType"].isNull())
elementsObject.elementType = std::stoi(boardNodePagesPageElementsElement["ElementType"].asString());
if(!boardNodePagesPageElementsElement["UpdateTimestamp"].isNull())
elementsObject.updateTimestamp = std::stol(boardNodePagesPageElementsElement["UpdateTimestamp"].asString());
if(!boardNodePagesPageElementsElement["Data"].isNull())
elementsObject.data = boardNodePagesPageElementsElement["Data"].asString();
pageObject.elements.push_back(elementsObject);
}
snapshot_.board.pages.push_back(pageObject);

View File

@@ -92,6 +92,12 @@ void DescribeCasterComponentsResult::parse(const std::string &payload)
componentsObject.captionLayerContent.color = captionLayerContentNode["Color"].asString();
if(!captionLayerContentNode["FontName"].isNull())
componentsObject.captionLayerContent.fontName = captionLayerContentNode["FontName"].asString();
if(!captionLayerContentNode["SourceLan"].isNull())
componentsObject.captionLayerContent.sourceLan = captionLayerContentNode["SourceLan"].asString();
if(!captionLayerContentNode["TargetLan"].isNull())
componentsObject.captionLayerContent.targetLan = captionLayerContentNode["TargetLan"].asString();
if(!captionLayerContentNode["ShowSourceLan"].isNull())
componentsObject.captionLayerContent.showSourceLan = captionLayerContentNode["ShowSourceLan"].asString() == "true";
if(!captionLayerContentNode["SizeNormalized"].isNull())
componentsObject.captionLayerContent.sizeNormalized = std::stof(captionLayerContentNode["SizeNormalized"].asString());
if(!captionLayerContentNode["BorderWidthNormalized"].isNull())

View File

@@ -45,35 +45,35 @@ void DescribeCasterLayoutsResult::parse(const std::string &payload)
Layout layoutsObject;
if(!valueLayoutsLayout["LayoutId"].isNull())
layoutsObject.layoutId = valueLayoutsLayout["LayoutId"].asString();
auto allVideoLayersNode = allLayoutsNode["VideoLayers"]["VideoLayer"];
for (auto allLayoutsNodeVideoLayersVideoLayer : allVideoLayersNode)
auto allVideoLayersNode = valueLayoutsLayout["VideoLayers"]["VideoLayer"];
for (auto valueLayoutsLayoutVideoLayersVideoLayer : allVideoLayersNode)
{
Layout::VideoLayer videoLayersObject;
if(!allLayoutsNodeVideoLayersVideoLayer["FillMode"].isNull())
videoLayersObject.fillMode = allLayoutsNodeVideoLayersVideoLayer["FillMode"].asString();
if(!allLayoutsNodeVideoLayersVideoLayer["HeightNormalized"].isNull())
videoLayersObject.heightNormalized = std::stof(allLayoutsNodeVideoLayersVideoLayer["HeightNormalized"].asString());
if(!allLayoutsNodeVideoLayersVideoLayer["WidthNormalized"].isNull())
videoLayersObject.widthNormalized = std::stof(allLayoutsNodeVideoLayersVideoLayer["WidthNormalized"].asString());
if(!allLayoutsNodeVideoLayersVideoLayer["PositionRefer"].isNull())
videoLayersObject.positionRefer = allLayoutsNodeVideoLayersVideoLayer["PositionRefer"].asString();
if(!allLayoutsNodeVideoLayersVideoLayer["FixedDelayDuration"].isNull())
videoLayersObject.fixedDelayDuration = std::stoi(allLayoutsNodeVideoLayersVideoLayer["FixedDelayDuration"].asString());
if(!valueLayoutsLayoutVideoLayersVideoLayer["FillMode"].isNull())
videoLayersObject.fillMode = valueLayoutsLayoutVideoLayersVideoLayer["FillMode"].asString();
if(!valueLayoutsLayoutVideoLayersVideoLayer["HeightNormalized"].isNull())
videoLayersObject.heightNormalized = std::stof(valueLayoutsLayoutVideoLayersVideoLayer["HeightNormalized"].asString());
if(!valueLayoutsLayoutVideoLayersVideoLayer["WidthNormalized"].isNull())
videoLayersObject.widthNormalized = std::stof(valueLayoutsLayoutVideoLayersVideoLayer["WidthNormalized"].asString());
if(!valueLayoutsLayoutVideoLayersVideoLayer["PositionRefer"].isNull())
videoLayersObject.positionRefer = valueLayoutsLayoutVideoLayersVideoLayer["PositionRefer"].asString();
if(!valueLayoutsLayoutVideoLayersVideoLayer["FixedDelayDuration"].isNull())
videoLayersObject.fixedDelayDuration = std::stoi(valueLayoutsLayoutVideoLayersVideoLayer["FixedDelayDuration"].asString());
auto allPositionNormalizeds = value["PositionNormalizeds"]["Position"];
for (auto value : allPositionNormalizeds)
videoLayersObject.positionNormalizeds.push_back(value.asString());
layoutsObject.videoLayers.push_back(videoLayersObject);
}
auto allAudioLayersNode = allLayoutsNode["AudioLayers"]["AudioLayer"];
for (auto allLayoutsNodeAudioLayersAudioLayer : allAudioLayersNode)
auto allAudioLayersNode = valueLayoutsLayout["AudioLayers"]["AudioLayer"];
for (auto valueLayoutsLayoutAudioLayersAudioLayer : allAudioLayersNode)
{
Layout::AudioLayer audioLayersObject;
if(!allLayoutsNodeAudioLayersAudioLayer["VolumeRate"].isNull())
audioLayersObject.volumeRate = std::stof(allLayoutsNodeAudioLayersAudioLayer["VolumeRate"].asString());
if(!allLayoutsNodeAudioLayersAudioLayer["ValidChannel"].isNull())
audioLayersObject.validChannel = allLayoutsNodeAudioLayersAudioLayer["ValidChannel"].asString();
if(!allLayoutsNodeAudioLayersAudioLayer["FixedDelayDuration"].isNull())
audioLayersObject.fixedDelayDuration = std::stoi(allLayoutsNodeAudioLayersAudioLayer["FixedDelayDuration"].asString());
if(!valueLayoutsLayoutAudioLayersAudioLayer["VolumeRate"].isNull())
audioLayersObject.volumeRate = std::stof(valueLayoutsLayoutAudioLayersAudioLayer["VolumeRate"].asString());
if(!valueLayoutsLayoutAudioLayersAudioLayer["ValidChannel"].isNull())
audioLayersObject.validChannel = valueLayoutsLayoutAudioLayersAudioLayer["ValidChannel"].asString();
if(!valueLayoutsLayoutAudioLayersAudioLayer["FixedDelayDuration"].isNull())
audioLayersObject.fixedDelayDuration = std::stoi(valueLayoutsLayoutAudioLayersAudioLayer["FixedDelayDuration"].asString());
layoutsObject.audioLayers.push_back(audioLayersObject);
}
auto allBlendList = value["BlendList"]["LocationId"];

View File

@@ -55,16 +55,16 @@ void DescribeCasterScenesResult::parse(const std::string &payload)
sceneListObject.streamUrl = valueSceneListScene["StreamUrl"].asString();
if(!valueSceneListScene["Status"].isNull())
sceneListObject.status = std::stoi(valueSceneListScene["Status"].asString());
auto allStreamInfosNode = allSceneListNode["StreamInfos"]["StreamInfo"];
for (auto allSceneListNodeStreamInfosStreamInfo : allStreamInfosNode)
auto allStreamInfosNode = valueSceneListScene["StreamInfos"]["StreamInfo"];
for (auto valueSceneListSceneStreamInfosStreamInfo : allStreamInfosNode)
{
Scene::StreamInfo streamInfosObject;
if(!allSceneListNodeStreamInfosStreamInfo["TranscodeConfig"].isNull())
streamInfosObject.transcodeConfig = allSceneListNodeStreamInfosStreamInfo["TranscodeConfig"].asString();
if(!allSceneListNodeStreamInfosStreamInfo["VideoFormat"].isNull())
streamInfosObject.videoFormat = allSceneListNodeStreamInfosStreamInfo["VideoFormat"].asString();
if(!allSceneListNodeStreamInfosStreamInfo["OutputStreamUrl"].isNull())
streamInfosObject.outputStreamUrl = allSceneListNodeStreamInfosStreamInfo["OutputStreamUrl"].asString();
if(!valueSceneListSceneStreamInfosStreamInfo["TranscodeConfig"].isNull())
streamInfosObject.transcodeConfig = valueSceneListSceneStreamInfosStreamInfo["TranscodeConfig"].asString();
if(!valueSceneListSceneStreamInfosStreamInfo["VideoFormat"].isNull())
streamInfosObject.videoFormat = valueSceneListSceneStreamInfosStreamInfo["VideoFormat"].asString();
if(!valueSceneListSceneStreamInfosStreamInfo["OutputStreamUrl"].isNull())
streamInfosObject.outputStreamUrl = valueSceneListSceneStreamInfosStreamInfo["OutputStreamUrl"].asString();
sceneListObject.streamInfos.push_back(streamInfosObject);
}
auto allComponentIds = value["ComponentIds"]["componentId"];

View File

@@ -51,16 +51,16 @@ void DescribeCasterStreamUrlResult::parse(const std::string &payload)
casterStreamsObject.rtmpUrl = valueCasterStreamsCasterStream["RtmpUrl"].asString();
if(!valueCasterStreamsCasterStream["OutputType"].isNull())
casterStreamsObject.outputType = std::stoi(valueCasterStreamsCasterStream["OutputType"].asString());
auto allStreamInfosNode = allCasterStreamsNode["StreamInfos"]["StreamInfo"];
for (auto allCasterStreamsNodeStreamInfosStreamInfo : allStreamInfosNode)
auto allStreamInfosNode = valueCasterStreamsCasterStream["StreamInfos"]["StreamInfo"];
for (auto valueCasterStreamsCasterStreamStreamInfosStreamInfo : allStreamInfosNode)
{
CasterStream::StreamInfo streamInfosObject;
if(!allCasterStreamsNodeStreamInfosStreamInfo["TranscodeConfig"].isNull())
streamInfosObject.transcodeConfig = allCasterStreamsNodeStreamInfosStreamInfo["TranscodeConfig"].asString();
if(!allCasterStreamsNodeStreamInfosStreamInfo["VideoFormat"].isNull())
streamInfosObject.videoFormat = allCasterStreamsNodeStreamInfosStreamInfo["VideoFormat"].asString();
if(!allCasterStreamsNodeStreamInfosStreamInfo["OutputStreamUrl"].isNull())
streamInfosObject.outputStreamUrl = allCasterStreamsNodeStreamInfosStreamInfo["OutputStreamUrl"].asString();
if(!valueCasterStreamsCasterStreamStreamInfosStreamInfo["TranscodeConfig"].isNull())
streamInfosObject.transcodeConfig = valueCasterStreamsCasterStreamStreamInfosStreamInfo["TranscodeConfig"].asString();
if(!valueCasterStreamsCasterStreamStreamInfosStreamInfo["VideoFormat"].isNull())
streamInfosObject.videoFormat = valueCasterStreamsCasterStreamStreamInfosStreamInfo["VideoFormat"].asString();
if(!valueCasterStreamsCasterStreamStreamInfosStreamInfo["OutputStreamUrl"].isNull())
streamInfosObject.outputStreamUrl = valueCasterStreamsCasterStreamStreamInfosStreamInfo["OutputStreamUrl"].asString();
casterStreamsObject.streamInfos.push_back(streamInfosObject);
}
casterStreams_.push_back(casterStreamsObject);

View File

@@ -0,0 +1,117 @@
/*
* 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/DescribeDomainUsageDataRequest.h>
using AlibabaCloud::Live::Model::DescribeDomainUsageDataRequest;
DescribeDomainUsageDataRequest::DescribeDomainUsageDataRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeDomainUsageData")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDomainUsageDataRequest::~DescribeDomainUsageDataRequest()
{}
std::string DescribeDomainUsageDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainUsageDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDomainUsageDataRequest::getType()const
{
return type_;
}
void DescribeDomainUsageDataRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string DescribeDomainUsageDataRequest::getArea()const
{
return area_;
}
void DescribeDomainUsageDataRequest::setArea(const std::string& area)
{
area_ = area;
setParameter("Area", area);
}
std::string DescribeDomainUsageDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainUsageDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainUsageDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainUsageDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeDomainUsageDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainUsageDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDomainUsageDataRequest::getField()const
{
return field_;
}
void DescribeDomainUsageDataRequest::setField(const std::string& field)
{
field_ = field;
setParameter("Field", field);
}
std::string DescribeDomainUsageDataRequest::getInterval()const
{
return interval_;
}
void DescribeDomainUsageDataRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}

View File

@@ -0,0 +1,101 @@
/*
* 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/DescribeDomainUsageDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeDomainUsageDataResult::DescribeDomainUsageDataResult() :
ServiceResult()
{}
DescribeDomainUsageDataResult::DescribeDomainUsageDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainUsageDataResult::~DescribeDomainUsageDataResult()
{}
void DescribeDomainUsageDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allUsageDataPerIntervalNode = value["UsageDataPerInterval"]["DataModule"];
for (auto valueUsageDataPerIntervalDataModule : allUsageDataPerIntervalNode)
{
DataModule usageDataPerIntervalObject;
if(!valueUsageDataPerIntervalDataModule["TimeStamp"].isNull())
usageDataPerIntervalObject.timeStamp = valueUsageDataPerIntervalDataModule["TimeStamp"].asString();
if(!valueUsageDataPerIntervalDataModule["Value"].isNull())
usageDataPerIntervalObject.value = valueUsageDataPerIntervalDataModule["Value"].asString();
usageDataPerInterval_.push_back(usageDataPerIntervalObject);
}
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["StartTime"].isNull())
startTime_ = value["StartTime"].asString();
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
if(!value["Field"].isNull())
field_ = value["Field"].asString();
if(!value["Area"].isNull())
area_ = value["Area"].asString();
if(!value["DataInterval"].isNull())
dataInterval_ = value["DataInterval"].asString();
}
std::vector<DescribeDomainUsageDataResult::DataModule> DescribeDomainUsageDataResult::getUsageDataPerInterval()const
{
return usageDataPerInterval_;
}
std::string DescribeDomainUsageDataResult::getField()const
{
return field_;
}
std::string DescribeDomainUsageDataResult::getArea()const
{
return area_;
}
std::string DescribeDomainUsageDataResult::getEndTime()const
{
return endTime_;
}
std::string DescribeDomainUsageDataResult::getDomainName()const
{
return domainName_;
}
std::string DescribeDomainUsageDataResult::getStartTime()const
{
return startTime_;
}
std::string DescribeDomainUsageDataResult::getDataInterval()const
{
return dataInterval_;
}

View File

@@ -45,22 +45,22 @@ void DescribeHlsLiveStreamRealTimeBpsDataResult::parse(const std::string &payloa
UsageDataPerDomain usageDataObject;
if(!valueUsageDataUsageDataPerDomain["DomainName"].isNull())
usageDataObject.domainName = valueUsageDataUsageDataPerDomain["DomainName"].asString();
auto allStreamInfosNode = allUsageDataNode["StreamInfos"]["StreamInfo"];
for (auto allUsageDataNodeStreamInfosStreamInfo : allStreamInfosNode)
auto allStreamInfosNode = valueUsageDataUsageDataPerDomain["StreamInfos"]["StreamInfo"];
for (auto valueUsageDataUsageDataPerDomainStreamInfosStreamInfo : allStreamInfosNode)
{
UsageDataPerDomain::StreamInfo streamInfosObject;
if(!allUsageDataNodeStreamInfosStreamInfo["StreamName"].isNull())
streamInfosObject.streamName = allUsageDataNodeStreamInfosStreamInfo["StreamName"].asString();
auto allInfosNode = allStreamInfosNode["Infos"]["Info"];
for (auto allStreamInfosNodeInfosInfo : allInfosNode)
if(!valueUsageDataUsageDataPerDomainStreamInfosStreamInfo["StreamName"].isNull())
streamInfosObject.streamName = valueUsageDataUsageDataPerDomainStreamInfosStreamInfo["StreamName"].asString();
auto allInfosNode = valueUsageDataUsageDataPerDomainStreamInfosStreamInfo["Infos"]["Info"];
for (auto valueUsageDataUsageDataPerDomainStreamInfosStreamInfoInfosInfo : allInfosNode)
{
UsageDataPerDomain::StreamInfo::Info infosObject;
if(!allStreamInfosNodeInfosInfo["DownFlow"].isNull())
infosObject.downFlow = std::stof(allStreamInfosNodeInfosInfo["DownFlow"].asString());
if(!allStreamInfosNodeInfosInfo["Rate"].isNull())
infosObject.rate = allStreamInfosNodeInfosInfo["Rate"].asString();
if(!allStreamInfosNodeInfosInfo["Online"].isNull())
infosObject.online = std::stof(allStreamInfosNodeInfosInfo["Online"].asString());
if(!valueUsageDataUsageDataPerDomainStreamInfosStreamInfoInfosInfo["DownFlow"].isNull())
infosObject.downFlow = std::stof(valueUsageDataUsageDataPerDomainStreamInfosStreamInfoInfosInfo["DownFlow"].asString());
if(!valueUsageDataUsageDataPerDomainStreamInfosStreamInfoInfosInfo["Rate"].isNull())
infosObject.rate = valueUsageDataUsageDataPerDomainStreamInfosStreamInfoInfosInfo["Rate"].asString();
if(!valueUsageDataUsageDataPerDomainStreamInfosStreamInfoInfosInfo["Online"].isNull())
infosObject.online = std::stof(valueUsageDataUsageDataPerDomainStreamInfosStreamInfoInfosInfo["Online"].asString());
streamInfosObject.infos.push_back(infosObject);
}
usageDataObject.streamInfos.push_back(streamInfosObject);

View File

@@ -41,8 +41,6 @@ void DescribeLiveCertificateDetailResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
if(!value["Cert"].isNull())
cert_ = value["Cert"].asString();
if(!value["Key"].isNull())
key_ = value["Key"].asString();
if(!value["CertId"].isNull())
certId_ = std::stol(value["CertId"].asString());
if(!value["CertName"].isNull())
@@ -65,8 +63,3 @@ std::string DescribeLiveCertificateDetailResult::getCertName()const
return certName_;
}
std::string DescribeLiveCertificateDetailResult::getKey()const
{
return key_;
}

View File

@@ -49,14 +49,14 @@ void DescribeLiveDomainConfigsResult::parse(const std::string &payload)
domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString();
if(!valueDomainConfigsDomainConfig["Status"].isNull())
domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString();
auto allFunctionArgsNode = allDomainConfigsNode["FunctionArgs"]["FunctionArg"];
for (auto allDomainConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode)
auto allFunctionArgsNode = valueDomainConfigsDomainConfig["FunctionArgs"]["FunctionArg"];
for (auto valueDomainConfigsDomainConfigFunctionArgsFunctionArg : allFunctionArgsNode)
{
DomainConfig::FunctionArg functionArgsObject;
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull())
functionArgsObject.argName = allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].asString();
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull())
functionArgsObject.argValue = allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString();
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].isNull())
functionArgsObject.argName = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].asString();
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].isNull())
functionArgsObject.argValue = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].asString();
domainConfigsObject.functionArgs.push_back(functionArgsObject);
}
domainConfigs_.push_back(domainConfigsObject);

View File

@@ -45,14 +45,14 @@ void DescribeLiveDomainOnlineUserNumResult::parse(const std::string &payload)
LiveStreamOnlineUserNumInfo onlineUserInfoObject;
if(!valueOnlineUserInfoLiveStreamOnlineUserNumInfo["StreamName"].isNull())
onlineUserInfoObject.streamName = valueOnlineUserInfoLiveStreamOnlineUserNumInfo["StreamName"].asString();
auto allInfosNode = allOnlineUserInfoNode["Infos"]["Info"];
for (auto allOnlineUserInfoNodeInfosInfo : allInfosNode)
auto allInfosNode = valueOnlineUserInfoLiveStreamOnlineUserNumInfo["Infos"]["Info"];
for (auto valueOnlineUserInfoLiveStreamOnlineUserNumInfoInfosInfo : allInfosNode)
{
LiveStreamOnlineUserNumInfo::Info infosObject;
if(!allOnlineUserInfoNodeInfosInfo["TranscodeTemplate"].isNull())
infosObject.transcodeTemplate = allOnlineUserInfoNodeInfosInfo["TranscodeTemplate"].asString();
if(!allOnlineUserInfoNodeInfosInfo["UserNumber"].isNull())
infosObject.userNumber = std::stol(allOnlineUserInfoNodeInfosInfo["UserNumber"].asString());
if(!valueOnlineUserInfoLiveStreamOnlineUserNumInfoInfosInfo["TranscodeTemplate"].isNull())
infosObject.transcodeTemplate = valueOnlineUserInfoLiveStreamOnlineUserNumInfoInfosInfo["TranscodeTemplate"].asString();
if(!valueOnlineUserInfoLiveStreamOnlineUserNumInfoInfosInfo["UserNumber"].isNull())
infosObject.userNumber = std::stol(valueOnlineUserInfoLiveStreamOnlineUserNumInfoInfosInfo["UserNumber"].asString());
onlineUserInfoObject.infos.push_back(infosObject);
}
onlineUserInfo_.push_back(onlineUserInfoObject);

View File

@@ -0,0 +1,73 @@
/*
* 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/DescribeLiveDomainPvUvDataRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveDomainPvUvDataRequest;
DescribeLiveDomainPvUvDataRequest::DescribeLiveDomainPvUvDataRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainPvUvData")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLiveDomainPvUvDataRequest::~DescribeLiveDomainPvUvDataRequest()
{}
std::string DescribeLiveDomainPvUvDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeLiveDomainPvUvDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeLiveDomainPvUvDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveDomainPvUvDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeLiveDomainPvUvDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeLiveDomainPvUvDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeLiveDomainPvUvDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLiveDomainPvUvDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,89 @@
/*
* 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/DescribeLiveDomainPvUvDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveDomainPvUvDataResult::DescribeLiveDomainPvUvDataResult() :
ServiceResult()
{}
DescribeLiveDomainPvUvDataResult::DescribeLiveDomainPvUvDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveDomainPvUvDataResult::~DescribeLiveDomainPvUvDataResult()
{}
void DescribeLiveDomainPvUvDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPvUvDataInfosNode = value["PvUvDataInfos"]["PvUvDataInfo"];
for (auto valuePvUvDataInfosPvUvDataInfo : allPvUvDataInfosNode)
{
PvUvDataInfo pvUvDataInfosObject;
if(!valuePvUvDataInfosPvUvDataInfo["PV"].isNull())
pvUvDataInfosObject.pV = valuePvUvDataInfosPvUvDataInfo["PV"].asString();
if(!valuePvUvDataInfosPvUvDataInfo["UV"].isNull())
pvUvDataInfosObject.uV = valuePvUvDataInfosPvUvDataInfo["UV"].asString();
if(!valuePvUvDataInfosPvUvDataInfo["TimeStamp"].isNull())
pvUvDataInfosObject.timeStamp = valuePvUvDataInfosPvUvDataInfo["TimeStamp"].asString();
pvUvDataInfos_.push_back(pvUvDataInfosObject);
}
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["StartTime"].isNull())
startTime_ = value["StartTime"].asString();
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
if(!value["DataInterval"].isNull())
dataInterval_ = value["DataInterval"].asString();
}
std::string DescribeLiveDomainPvUvDataResult::getEndTime()const
{
return endTime_;
}
std::string DescribeLiveDomainPvUvDataResult::getDomainName()const
{
return domainName_;
}
std::string DescribeLiveDomainPvUvDataResult::getStartTime()const
{
return startTime_;
}
std::string DescribeLiveDomainPvUvDataResult::getDataInterval()const
{
return dataInterval_;
}
std::vector<DescribeLiveDomainPvUvDataResult::PvUvDataInfo> DescribeLiveDomainPvUvDataResult::getPvUvDataInfos()const
{
return pvUvDataInfos_;
}

View File

@@ -45,16 +45,16 @@ void DescribeLiveDomainRealTimeHttpCodeDataResult::parse(const std::string &payl
UsageData realTimeHttpCodeDataObject;
if(!valueRealTimeHttpCodeDataUsageData["TimeStamp"].isNull())
realTimeHttpCodeDataObject.timeStamp = valueRealTimeHttpCodeDataUsageData["TimeStamp"].asString();
auto allValueNode = allRealTimeHttpCodeDataNode["Value"]["RealTimeCodeProportionData"];
for (auto allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData : allValueNode)
auto allValueNode = valueRealTimeHttpCodeDataUsageData["Value"]["RealTimeCodeProportionData"];
for (auto valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData : allValueNode)
{
UsageData::RealTimeCodeProportionData valueObject;
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Code"].isNull())
valueObject.code = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Code"].asString();
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Proportion"].isNull())
valueObject.proportion = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Proportion"].asString();
if(!allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Count"].isNull())
valueObject.count = allRealTimeHttpCodeDataNodeValueRealTimeCodeProportionData["Count"].asString();
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Code"].isNull())
valueObject.code = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Code"].asString();
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Proportion"].isNull())
valueObject.proportion = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Proportion"].asString();
if(!valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Count"].isNull())
valueObject.count = valueRealTimeHttpCodeDataUsageDataValueRealTimeCodeProportionData["Count"].asString();
realTimeHttpCodeDataObject.value.push_back(valueObject);
}
realTimeHttpCodeData_.push_back(realTimeHttpCodeDataObject);

View File

@@ -61,18 +61,18 @@ void DescribeLiveRecordConfigResult::parse(const std::string &payload)
liveAppRecordListObject.endTime = valueLiveAppRecordListLiveAppRecord["EndTime"].asString();
if(!valueLiveAppRecordListLiveAppRecord["OnDemond"].isNull())
liveAppRecordListObject.onDemond = std::stoi(valueLiveAppRecordListLiveAppRecord["OnDemond"].asString());
auto allRecordFormatListNode = allLiveAppRecordListNode["RecordFormatList"]["RecordFormat"];
for (auto allLiveAppRecordListNodeRecordFormatListRecordFormat : allRecordFormatListNode)
auto allRecordFormatListNode = valueLiveAppRecordListLiveAppRecord["RecordFormatList"]["RecordFormat"];
for (auto valueLiveAppRecordListLiveAppRecordRecordFormatListRecordFormat : allRecordFormatListNode)
{
LiveAppRecord::RecordFormat recordFormatListObject;
if(!allLiveAppRecordListNodeRecordFormatListRecordFormat["Format"].isNull())
recordFormatListObject.format = allLiveAppRecordListNodeRecordFormatListRecordFormat["Format"].asString();
if(!allLiveAppRecordListNodeRecordFormatListRecordFormat["OssObjectPrefix"].isNull())
recordFormatListObject.ossObjectPrefix = allLiveAppRecordListNodeRecordFormatListRecordFormat["OssObjectPrefix"].asString();
if(!allLiveAppRecordListNodeRecordFormatListRecordFormat["SliceOssObjectPrefix"].isNull())
recordFormatListObject.sliceOssObjectPrefix = allLiveAppRecordListNodeRecordFormatListRecordFormat["SliceOssObjectPrefix"].asString();
if(!allLiveAppRecordListNodeRecordFormatListRecordFormat["CycleDuration"].isNull())
recordFormatListObject.cycleDuration = std::stoi(allLiveAppRecordListNodeRecordFormatListRecordFormat["CycleDuration"].asString());
if(!valueLiveAppRecordListLiveAppRecordRecordFormatListRecordFormat["Format"].isNull())
recordFormatListObject.format = valueLiveAppRecordListLiveAppRecordRecordFormatListRecordFormat["Format"].asString();
if(!valueLiveAppRecordListLiveAppRecordRecordFormatListRecordFormat["OssObjectPrefix"].isNull())
recordFormatListObject.ossObjectPrefix = valueLiveAppRecordListLiveAppRecordRecordFormatListRecordFormat["OssObjectPrefix"].asString();
if(!valueLiveAppRecordListLiveAppRecordRecordFormatListRecordFormat["SliceOssObjectPrefix"].isNull())
recordFormatListObject.sliceOssObjectPrefix = valueLiveAppRecordListLiveAppRecordRecordFormatListRecordFormat["SliceOssObjectPrefix"].asString();
if(!valueLiveAppRecordListLiveAppRecordRecordFormatListRecordFormat["CycleDuration"].isNull())
recordFormatListObject.cycleDuration = std::stoi(valueLiveAppRecordListLiveAppRecordRecordFormatListRecordFormat["CycleDuration"].asString());
liveAppRecordListObject.recordFormatList.push_back(recordFormatListObject);
}
liveAppRecordList_.push_back(liveAppRecordListObject);

View File

@@ -49,16 +49,16 @@ void DescribeLiveStreamCountResult::parse(const std::string &payload)
streamCountInfosObject.limit = std::stol(valueStreamCountInfosStreamCountInfo["Limit"].asString());
if(!valueStreamCountInfosStreamCountInfo["Type"].isNull())
streamCountInfosObject.type = valueStreamCountInfosStreamCountInfo["Type"].asString();
auto allStreamCountDetailsNode = allStreamCountInfosNode["StreamCountDetails"]["StreamCountDetail"];
for (auto allStreamCountInfosNodeStreamCountDetailsStreamCountDetail : allStreamCountDetailsNode)
auto allStreamCountDetailsNode = valueStreamCountInfosStreamCountInfo["StreamCountDetails"]["StreamCountDetail"];
for (auto valueStreamCountInfosStreamCountInfoStreamCountDetailsStreamCountDetail : allStreamCountDetailsNode)
{
StreamCountInfo::StreamCountDetail streamCountDetailsObject;
if(!allStreamCountInfosNodeStreamCountDetailsStreamCountDetail["Format"].isNull())
streamCountDetailsObject.format = allStreamCountInfosNodeStreamCountDetailsStreamCountDetail["Format"].asString();
if(!allStreamCountInfosNodeStreamCountDetailsStreamCountDetail["VideoDataRate"].isNull())
streamCountDetailsObject.videoDataRate = std::stol(allStreamCountInfosNodeStreamCountDetailsStreamCountDetail["VideoDataRate"].asString());
if(!allStreamCountInfosNodeStreamCountDetailsStreamCountDetail["Count"].isNull())
streamCountDetailsObject.count = std::stol(allStreamCountInfosNodeStreamCountDetailsStreamCountDetail["Count"].asString());
if(!valueStreamCountInfosStreamCountInfoStreamCountDetailsStreamCountDetail["Format"].isNull())
streamCountDetailsObject.format = valueStreamCountInfosStreamCountInfoStreamCountDetailsStreamCountDetail["Format"].asString();
if(!valueStreamCountInfosStreamCountInfoStreamCountDetailsStreamCountDetail["VideoDataRate"].isNull())
streamCountDetailsObject.videoDataRate = std::stol(valueStreamCountInfosStreamCountInfoStreamCountDetailsStreamCountDetail["VideoDataRate"].asString());
if(!valueStreamCountInfosStreamCountInfoStreamCountDetailsStreamCountDetail["Count"].isNull())
streamCountDetailsObject.count = std::stol(valueStreamCountInfosStreamCountInfoStreamCountDetailsStreamCountDetail["Count"].asString());
streamCountInfosObject.streamCountDetails.push_back(streamCountDetailsObject);
}
streamCountInfos_.push_back(streamCountInfosObject);

View File

@@ -1,106 +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/live/model/DescribeLiveStreamOnlineUserNumRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveStreamOnlineUserNumRequest;
DescribeLiveStreamOnlineUserNumRequest::DescribeLiveStreamOnlineUserNumRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLiveStreamOnlineUserNum")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLiveStreamOnlineUserNumRequest::~DescribeLiveStreamOnlineUserNumRequest()
{}
std::string DescribeLiveStreamOnlineUserNumRequest::getStartTime()const
{
return startTime_;
}
void DescribeLiveStreamOnlineUserNumRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeLiveStreamOnlineUserNumRequest::getAppName()const
{
return appName_;
}
void DescribeLiveStreamOnlineUserNumRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string DescribeLiveStreamOnlineUserNumRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeLiveStreamOnlineUserNumRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeLiveStreamOnlineUserNumRequest::getStreamName()const
{
return streamName_;
}
void DescribeLiveStreamOnlineUserNumRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
std::string DescribeLiveStreamOnlineUserNumRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveStreamOnlineUserNumRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeLiveStreamOnlineUserNumRequest::getEndTime()const
{
return endTime_;
}
void DescribeLiveStreamOnlineUserNumRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeLiveStreamOnlineUserNumRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLiveStreamOnlineUserNumRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -1,68 +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/live/model/DescribeLiveStreamOnlineUserNumResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveStreamOnlineUserNumResult::DescribeLiveStreamOnlineUserNumResult() :
ServiceResult()
{}
DescribeLiveStreamOnlineUserNumResult::DescribeLiveStreamOnlineUserNumResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveStreamOnlineUserNumResult::~DescribeLiveStreamOnlineUserNumResult()
{}
void DescribeLiveStreamOnlineUserNumResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allOnlineUserInfoNode = value["OnlineUserInfo"]["LiveStreamOnlineUserNumInfo"];
for (auto valueOnlineUserInfoLiveStreamOnlineUserNumInfo : allOnlineUserInfoNode)
{
LiveStreamOnlineUserNumInfo onlineUserInfoObject;
if(!valueOnlineUserInfoLiveStreamOnlineUserNumInfo["StreamUrl"].isNull())
onlineUserInfoObject.streamUrl = valueOnlineUserInfoLiveStreamOnlineUserNumInfo["StreamUrl"].asString();
if(!valueOnlineUserInfoLiveStreamOnlineUserNumInfo["UserNumber"].isNull())
onlineUserInfoObject.userNumber = std::stol(valueOnlineUserInfoLiveStreamOnlineUserNumInfo["UserNumber"].asString());
if(!valueOnlineUserInfoLiveStreamOnlineUserNumInfo["Time"].isNull())
onlineUserInfoObject.time = valueOnlineUserInfoLiveStreamOnlineUserNumInfo["Time"].asString();
onlineUserInfo_.push_back(onlineUserInfoObject);
}
if(!value["TotalUserNumber"].isNull())
totalUserNumber_ = std::stol(value["TotalUserNumber"].asString());
}
std::vector<DescribeLiveStreamOnlineUserNumResult::LiveStreamOnlineUserNumInfo> DescribeLiveStreamOnlineUserNumResult::getOnlineUserInfo()const
{
return onlineUserInfo_;
}
long DescribeLiveStreamOnlineUserNumResult::getTotalUserNumber()const
{
return totalUserNumber_;
}

View File

@@ -78,6 +78,13 @@ void DescribeLiveStreamTranscodeInfoResult::parse(const std::string &payload)
domainTranscodeListObject.customTranscodeParameters.audioRate = std::stoi(customTranscodeParametersNode["AudioRate"].asString());
if(!customTranscodeParametersNode["AudioChannelNum"].isNull())
domainTranscodeListObject.customTranscodeParameters.audioChannelNum = std::stoi(customTranscodeParametersNode["AudioChannelNum"].asString());
auto encryptParametersNode = value["EncryptParameters"];
if(!encryptParametersNode["EncryptType"].isNull())
domainTranscodeListObject.encryptParameters.encryptType = encryptParametersNode["EncryptType"].asString();
if(!encryptParametersNode["KmsKeyExpireInterval"].isNull())
domainTranscodeListObject.encryptParameters.kmsKeyExpireInterval = encryptParametersNode["KmsKeyExpireInterval"].asString();
if(!encryptParametersNode["KmsKeyID"].isNull())
domainTranscodeListObject.encryptParameters.kmsKeyID = encryptParametersNode["KmsKeyID"].asString();
domainTranscodeList_.push_back(domainTranscodeListObject);
}

View File

@@ -49,17 +49,6 @@ void DescribeLiveStreamsControlHistoryRequest::setAppName(const std::string& app
setParameter("AppName", appName);
}
std::string DescribeLiveStreamsControlHistoryRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeLiveStreamsControlHistoryRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeLiveStreamsControlHistoryRequest::getDomainName()const
{
return domainName_;
@@ -93,3 +82,25 @@ void DescribeLiveStreamsControlHistoryRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
int DescribeLiveStreamsControlHistoryRequest::getRows()const
{
return rows_;
}
void DescribeLiveStreamsControlHistoryRequest::setRows(int rows)
{
rows_ = rows;
setParameter("Rows", std::to_string(rows));
}
int DescribeLiveStreamsControlHistoryRequest::getPage()const
{
return page_;
}
void DescribeLiveStreamsControlHistoryRequest::setPage(int page)
{
page_ = page;
setParameter("Page", std::to_string(page));
}

View File

@@ -1,106 +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/live/model/DescribeLiveStreamsFrameRateAndBitRateDataRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveStreamsFrameRateAndBitRateDataRequest;
DescribeLiveStreamsFrameRateAndBitRateDataRequest::DescribeLiveStreamsFrameRateAndBitRateDataRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLiveStreamsFrameRateAndBitRateData")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLiveStreamsFrameRateAndBitRateDataRequest::~DescribeLiveStreamsFrameRateAndBitRateDataRequest()
{}
std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeLiveStreamsFrameRateAndBitRateDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getAppName()const
{
return appName_;
}
void DescribeLiveStreamsFrameRateAndBitRateDataRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeLiveStreamsFrameRateAndBitRateDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setParameter("SecurityToken", securityToken);
}
std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getStreamName()const
{
return streamName_;
}
void DescribeLiveStreamsFrameRateAndBitRateDataRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveStreamsFrameRateAndBitRateDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeLiveStreamsFrameRateAndBitRateDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeLiveStreamsFrameRateAndBitRateDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeLiveStreamsFrameRateAndBitRateDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLiveStreamsFrameRateAndBitRateDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -1,65 +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/live/model/DescribeLiveStreamsFrameRateAndBitRateDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveStreamsFrameRateAndBitRateDataResult::DescribeLiveStreamsFrameRateAndBitRateDataResult() :
ServiceResult()
{}
DescribeLiveStreamsFrameRateAndBitRateDataResult::DescribeLiveStreamsFrameRateAndBitRateDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveStreamsFrameRateAndBitRateDataResult::~DescribeLiveStreamsFrameRateAndBitRateDataResult()
{}
void DescribeLiveStreamsFrameRateAndBitRateDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFrameRateAndBitRateInfosNode = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"];
for (auto valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo : allFrameRateAndBitRateInfosNode)
{
FrameRateAndBitRateInfo frameRateAndBitRateInfosObject;
if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["StreamUrl"].isNull())
frameRateAndBitRateInfosObject.streamUrl = valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["StreamUrl"].asString();
if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["VideoFrameRate"].isNull())
frameRateAndBitRateInfosObject.videoFrameRate = std::stof(valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["VideoFrameRate"].asString());
if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["AudioFrameRate"].isNull())
frameRateAndBitRateInfosObject.audioFrameRate = std::stof(valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["AudioFrameRate"].asString());
if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["BitRate"].isNull())
frameRateAndBitRateInfosObject.bitRate = std::stof(valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["BitRate"].asString());
if(!valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["Time"].isNull())
frameRateAndBitRateInfosObject.time = valueFrameRateAndBitRateInfosFrameRateAndBitRateInfo["Time"].asString();
frameRateAndBitRateInfos_.push_back(frameRateAndBitRateInfosObject);
}
}
std::vector<DescribeLiveStreamsFrameRateAndBitRateDataResult::FrameRateAndBitRateInfo> DescribeLiveStreamsFrameRateAndBitRateDataResult::getFrameRateAndBitRateInfos()const
{
return frameRateAndBitRateInfos_;
}

View File

@@ -45,14 +45,14 @@ void DescribeLiveTagResourcesResult::parse(const std::string &payload)
TagResource tagResourcesObject;
if(!valueTagResourcesTagResource["ResourceId"].isNull())
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
auto allTagNode = allTagResourcesNode["Tag"]["TagItem"];
for (auto allTagResourcesNodeTagTagItem : allTagNode)
auto allTagNode = valueTagResourcesTagResource["Tag"]["TagItem"];
for (auto valueTagResourcesTagResourceTagTagItem : allTagNode)
{
TagResource::TagItem tagObject;
if(!allTagResourcesNodeTagTagItem["Key"].isNull())
tagObject.key = allTagResourcesNodeTagTagItem["Key"].asString();
if(!allTagResourcesNodeTagTagItem["Value"].isNull())
tagObject.value = allTagResourcesNodeTagTagItem["Value"].asString();
if(!valueTagResourcesTagResourceTagTagItem["Key"].isNull())
tagObject.key = valueTagResourcesTagResourceTagTagItem["Key"].asString();
if(!valueTagResourcesTagResourceTagTagItem["Value"].isNull())
tagObject.value = valueTagResourcesTagResourceTagTagItem["Value"].asString();
tagResourcesObject.tag.push_back(tagObject);
}
tagResources_.push_back(tagResourcesObject);

View File

@@ -0,0 +1,51 @@
/*
* 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/DescribeLiveVerifyContentRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveVerifyContentRequest;
DescribeLiveVerifyContentRequest::DescribeLiveVerifyContentRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLiveVerifyContent")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLiveVerifyContentRequest::~DescribeLiveVerifyContentRequest()
{}
std::string DescribeLiveVerifyContentRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveVerifyContentRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeLiveVerifyContentRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLiveVerifyContentRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,51 @@
/*
* 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/DescribeLiveVerifyContentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveVerifyContentResult::DescribeLiveVerifyContentResult() :
ServiceResult()
{}
DescribeLiveVerifyContentResult::DescribeLiveVerifyContentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveVerifyContentResult::~DescribeLiveVerifyContentResult()
{}
void DescribeLiveVerifyContentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Content"].isNull())
content_ = value["Content"].asString();
}
std::string DescribeLiveVerifyContentResult::getContent()const
{
return content_;
}

View File

@@ -60,6 +60,17 @@ void SetLiveStreamsNotifyUrlConfigRequest::setNotifyUrl(const std::string& notif
setParameter("NotifyUrl", notifyUrl);
}
std::string SetLiveStreamsNotifyUrlConfigRequest::getNotifyType()const
{
return notifyType_;
}
void SetLiveStreamsNotifyUrlConfigRequest::setNotifyType(const std::string& notifyType)
{
notifyType_ = notifyType;
setParameter("NotifyType", notifyType);
}
std::string SetLiveStreamsNotifyUrlConfigRequest::getDomainName()const
{
return domainName_;

View File

@@ -57,16 +57,16 @@ void StartCasterResult::parse(const std::string &payload)
pgmSceneInfosObject.sceneId = valuePgmSceneInfosSceneInfo["SceneId"].asString();
if(!valuePgmSceneInfosSceneInfo["StreamUrl"].isNull())
pgmSceneInfosObject.streamUrl = valuePgmSceneInfosSceneInfo["StreamUrl"].asString();
auto allStreamInfosNode = allPgmSceneInfosNode["StreamInfos"]["StreamInfo"];
for (auto allPgmSceneInfosNodeStreamInfosStreamInfo : allStreamInfosNode)
auto allStreamInfosNode = valuePgmSceneInfosSceneInfo["StreamInfos"]["StreamInfo"];
for (auto valuePgmSceneInfosSceneInfoStreamInfosStreamInfo : allStreamInfosNode)
{
SceneInfo1::StreamInfo streamInfosObject;
if(!allPgmSceneInfosNodeStreamInfosStreamInfo["TranscodeConfig"].isNull())
streamInfosObject.transcodeConfig = allPgmSceneInfosNodeStreamInfosStreamInfo["TranscodeConfig"].asString();
if(!allPgmSceneInfosNodeStreamInfosStreamInfo["VideoFormat"].isNull())
streamInfosObject.videoFormat = allPgmSceneInfosNodeStreamInfosStreamInfo["VideoFormat"].asString();
if(!allPgmSceneInfosNodeStreamInfosStreamInfo["OutputStreamUrl"].isNull())
streamInfosObject.outputStreamUrl = allPgmSceneInfosNodeStreamInfosStreamInfo["OutputStreamUrl"].asString();
if(!valuePgmSceneInfosSceneInfoStreamInfosStreamInfo["TranscodeConfig"].isNull())
streamInfosObject.transcodeConfig = valuePgmSceneInfosSceneInfoStreamInfosStreamInfo["TranscodeConfig"].asString();
if(!valuePgmSceneInfosSceneInfoStreamInfosStreamInfo["VideoFormat"].isNull())
streamInfosObject.videoFormat = valuePgmSceneInfosSceneInfoStreamInfosStreamInfo["VideoFormat"].asString();
if(!valuePgmSceneInfosSceneInfoStreamInfosStreamInfo["OutputStreamUrl"].isNull())
streamInfosObject.outputStreamUrl = valuePgmSceneInfosSceneInfoStreamInfosStreamInfo["OutputStreamUrl"].asString();
pgmSceneInfosObject.streamInfos.push_back(streamInfosObject);
}
pgmSceneInfos_.push_back(pgmSceneInfosObject);

View File

@@ -0,0 +1,62 @@
/*
* 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/VerifyLiveDomainOwnerRequest.h>
using AlibabaCloud::Live::Model::VerifyLiveDomainOwnerRequest;
VerifyLiveDomainOwnerRequest::VerifyLiveDomainOwnerRequest() :
RpcServiceRequest("live", "2016-11-01", "VerifyLiveDomainOwner")
{
setMethod(HttpRequest::Method::Post);
}
VerifyLiveDomainOwnerRequest::~VerifyLiveDomainOwnerRequest()
{}
std::string VerifyLiveDomainOwnerRequest::getVerifyType()const
{
return verifyType_;
}
void VerifyLiveDomainOwnerRequest::setVerifyType(const std::string& verifyType)
{
verifyType_ = verifyType;
setParameter("VerifyType", verifyType);
}
std::string VerifyLiveDomainOwnerRequest::getDomainName()const
{
return domainName_;
}
void VerifyLiveDomainOwnerRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long VerifyLiveDomainOwnerRequest::getOwnerId()const
{
return ownerId_;
}
void VerifyLiveDomainOwnerRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,51 @@
/*
* 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/VerifyLiveDomainOwnerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
VerifyLiveDomainOwnerResult::VerifyLiveDomainOwnerResult() :
ServiceResult()
{}
VerifyLiveDomainOwnerResult::VerifyLiveDomainOwnerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
VerifyLiveDomainOwnerResult::~VerifyLiveDomainOwnerResult()
{}
void VerifyLiveDomainOwnerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Content"].isNull())
content_ = value["Content"].asString();
}
std::string VerifyLiveDomainOwnerResult::getContent()const
{
return content_;
}