Generated 2016-11-01 for live.

This commit is contained in:
sdk-team
2021-07-08 02:32:29 +00:00
parent cf6a43062a
commit ff3b6aec0a
33 changed files with 1749 additions and 1 deletions

View File

@@ -60,6 +60,17 @@ void AddCustomLiveStreamTranscodeRequest::setGop(const std::string& gop)
setParameter("Gop", gop);
}
std::string AddCustomLiveStreamTranscodeRequest::getKmsKeyExpireInterval()const
{
return kmsKeyExpireInterval_;
}
void AddCustomLiveStreamTranscodeRequest::setKmsKeyExpireInterval(const std::string& kmsKeyExpireInterval)
{
kmsKeyExpireInterval_ = kmsKeyExpireInterval;
setParameter("KmsKeyExpireInterval", kmsKeyExpireInterval);
}
std::string AddCustomLiveStreamTranscodeRequest::getAudioCodec()const
{
return audioCodec_;
@@ -71,6 +82,17 @@ void AddCustomLiveStreamTranscodeRequest::setAudioCodec(const std::string& audio
setParameter("AudioCodec", audioCodec);
}
std::string AddCustomLiveStreamTranscodeRequest::getKmsUID()const
{
return kmsUID_;
}
void AddCustomLiveStreamTranscodeRequest::setKmsUID(const std::string& kmsUID)
{
kmsUID_ = kmsUID;
setParameter("KmsUID", kmsUID);
}
std::string AddCustomLiveStreamTranscodeRequest::getTemplateType()const
{
return templateType_;
@@ -115,6 +137,17 @@ void AddCustomLiveStreamTranscodeRequest::setApp(const std::string& app)
setParameter("App", app);
}
std::string AddCustomLiveStreamTranscodeRequest::getEncryptParameters()const
{
return encryptParameters_;
}
void AddCustomLiveStreamTranscodeRequest::setEncryptParameters(const std::string& encryptParameters)
{
encryptParameters_ = encryptParameters;
setParameter("EncryptParameters", encryptParameters);
}
int AddCustomLiveStreamTranscodeRequest::getAudioChannelNum()const
{
return audioChannelNum_;
@@ -214,3 +247,14 @@ void AddCustomLiveStreamTranscodeRequest::setVideoBitrate(int videoBitrate)
setParameter("VideoBitrate", std::to_string(videoBitrate));
}
std::string AddCustomLiveStreamTranscodeRequest::getKmsKeyID()const
{
return kmsKeyID_;
}
void AddCustomLiveStreamTranscodeRequest::setKmsKeyID(const std::string& kmsKeyID)
{
kmsKeyID_ = kmsKeyID;
setParameter("KmsKeyID", kmsKeyID);
}

View File

@@ -57,6 +57,8 @@ void DescribeDRMCertListResult::parse(const std::string &payload)
dRMCertInfoListListObject.ask = valueDRMCertInfoListListCertInfo["Ask"].asString();
if(!valueDRMCertInfoListListCertInfo["Description"].isNull())
dRMCertInfoListListObject.description = valueDRMCertInfoListListCertInfo["Description"].asString();
if(!valueDRMCertInfoListListCertInfo["CreateDate"].isNull())
dRMCertInfoListListObject.createDate = valueDRMCertInfoListListCertInfo["CreateDate"].asString();
dRMCertInfoListList_.push_back(dRMCertInfoListListObject);
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/live/model/DescribeLiveDomainRecordUsageDataRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveDomainRecordUsageDataRequest;
DescribeLiveDomainRecordUsageDataRequest::DescribeLiveDomainRecordUsageDataRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainRecordUsageData")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLiveDomainRecordUsageDataRequest::~DescribeLiveDomainRecordUsageDataRequest()
{}
std::string DescribeLiveDomainRecordUsageDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeLiveDomainRecordUsageDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeLiveDomainRecordUsageDataRequest::getSplitBy()const
{
return splitBy_;
}
void DescribeLiveDomainRecordUsageDataRequest::setSplitBy(const std::string& splitBy)
{
splitBy_ = splitBy;
setParameter("SplitBy", splitBy);
}
std::string DescribeLiveDomainRecordUsageDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveDomainRecordUsageDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeLiveDomainRecordUsageDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeLiveDomainRecordUsageDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeLiveDomainRecordUsageDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLiveDomainRecordUsageDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,65 @@
/*
* 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/DescribeLiveDomainRecordUsageDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveDomainRecordUsageDataResult::DescribeLiveDomainRecordUsageDataResult() :
ServiceResult()
{}
DescribeLiveDomainRecordUsageDataResult::DescribeLiveDomainRecordUsageDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveDomainRecordUsageDataResult::~DescribeLiveDomainRecordUsageDataResult()
{}
void DescribeLiveDomainRecordUsageDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRecordUsageDataNode = value["RecordUsageData"]["DataModule"];
for (auto valueRecordUsageDataDataModule : allRecordUsageDataNode)
{
DataModule recordUsageDataObject;
if(!valueRecordUsageDataDataModule["TimeStamp"].isNull())
recordUsageDataObject.timeStamp = valueRecordUsageDataDataModule["TimeStamp"].asString();
if(!valueRecordUsageDataDataModule["Domain"].isNull())
recordUsageDataObject.domain = valueRecordUsageDataDataModule["Domain"].asString();
if(!valueRecordUsageDataDataModule["Type"].isNull())
recordUsageDataObject.type = valueRecordUsageDataDataModule["Type"].asString();
if(!valueRecordUsageDataDataModule["Size"].isNull())
recordUsageDataObject.size = std::stol(valueRecordUsageDataDataModule["Size"].asString());
if(!valueRecordUsageDataDataModule["Count"].isNull())
recordUsageDataObject.count = std::stol(valueRecordUsageDataDataModule["Count"].asString());
recordUsageData_.push_back(recordUsageDataObject);
}
}
std::vector<DescribeLiveDomainRecordUsageDataResult::DataModule> DescribeLiveDomainRecordUsageDataResult::getRecordUsageData()const
{
return recordUsageData_;
}

View File

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

View File

@@ -0,0 +1,65 @@
/*
* 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/DescribeLiveDrmUsageDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveDrmUsageDataResult::DescribeLiveDrmUsageDataResult() :
ServiceResult()
{}
DescribeLiveDrmUsageDataResult::DescribeLiveDrmUsageDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveDrmUsageDataResult::~DescribeLiveDrmUsageDataResult()
{}
void DescribeLiveDrmUsageDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDrmUsageDataNode = value["DrmUsageData"]["DataModule"];
for (auto valueDrmUsageDataDataModule : allDrmUsageDataNode)
{
DataModule drmUsageDataObject;
if(!valueDrmUsageDataDataModule["TimeStamp"].isNull())
drmUsageDataObject.timeStamp = valueDrmUsageDataDataModule["TimeStamp"].asString();
if(!valueDrmUsageDataDataModule["Domain"].isNull())
drmUsageDataObject.domain = valueDrmUsageDataDataModule["Domain"].asString();
if(!valueDrmUsageDataDataModule["Region"].isNull())
drmUsageDataObject.region = valueDrmUsageDataDataModule["Region"].asString();
if(!valueDrmUsageDataDataModule["DrmType"].isNull())
drmUsageDataObject.drmType = valueDrmUsageDataDataModule["DrmType"].asString();
if(!valueDrmUsageDataDataModule["Count"].isNull())
drmUsageDataObject.count = std::stol(valueDrmUsageDataDataModule["Count"].asString());
drmUsageData_.push_back(drmUsageDataObject);
}
}
std::vector<DescribeLiveDrmUsageDataResult::DataModule> DescribeLiveDrmUsageDataResult::getDrmUsageData()const
{
return drmUsageData_;
}

View File

@@ -49,6 +49,17 @@ void DescribeLiveRealtimeDeliveryAccRequest::setStartTime(const std::string& sta
setParameter("StartTime", startTime);
}
std::string DescribeLiveRealtimeDeliveryAccRequest::getDomainName()const
{
return domainName_;
}
void DescribeLiveRealtimeDeliveryAccRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeLiveRealtimeDeliveryAccRequest::getEndTime()const
{
return endTime_;

View File

@@ -63,6 +63,8 @@ void DescribeLiveStreamsOnlineListResult::parse(const std::string &payload)
onlineInfoObject.transcoded = valueOnlineInfoLiveStreamOnlineInfo["Transcoded"].asString();
if(!valueOnlineInfoLiveStreamOnlineInfo["TranscodeId"].isNull())
onlineInfoObject.transcodeId = valueOnlineInfoLiveStreamOnlineInfo["TranscodeId"].asString();
if(!valueOnlineInfoLiveStreamOnlineInfo["TranscodeDrm"].isNull())
onlineInfoObject.transcodeDrm = valueOnlineInfoLiveStreamOnlineInfo["TranscodeDrm"].asString();
if(!valueOnlineInfoLiveStreamOnlineInfo["ServerIp"].isNull())
onlineInfoObject.serverIp = valueOnlineInfoLiveStreamOnlineInfo["ServerIp"].asString();
if(!valueOnlineInfoLiveStreamOnlineInfo["ClientIp"].isNull())

View File

@@ -0,0 +1,95 @@
/*
* 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/DescribeToutiaoLivePlayRequest.h>
using AlibabaCloud::Live::Model::DescribeToutiaoLivePlayRequest;
DescribeToutiaoLivePlayRequest::DescribeToutiaoLivePlayRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeToutiaoLivePlay")
{
setMethod(HttpRequest::Method::Post);
}
DescribeToutiaoLivePlayRequest::~DescribeToutiaoLivePlayRequest()
{}
std::string DescribeToutiaoLivePlayRequest::getStartTime()const
{
return startTime_;
}
void DescribeToutiaoLivePlayRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeToutiaoLivePlayRequest::getStream()const
{
return stream_;
}
void DescribeToutiaoLivePlayRequest::setStream(const std::string& stream)
{
stream_ = stream;
setParameter("Stream", stream);
}
std::string DescribeToutiaoLivePlayRequest::getApp()const
{
return app_;
}
void DescribeToutiaoLivePlayRequest::setApp(const std::string& app)
{
app_ = app;
setParameter("App", app);
}
std::string DescribeToutiaoLivePlayRequest::getEndTime()const
{
return endTime_;
}
void DescribeToutiaoLivePlayRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeToutiaoLivePlayRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeToutiaoLivePlayRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeToutiaoLivePlayRequest::getDomain()const
{
return domain_;
}
void DescribeToutiaoLivePlayRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

View File

@@ -0,0 +1,76 @@
/*
* 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/DescribeToutiaoLivePlayResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeToutiaoLivePlayResult::DescribeToutiaoLivePlayResult() :
ServiceResult()
{}
DescribeToutiaoLivePlayResult::DescribeToutiaoLivePlayResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeToutiaoLivePlayResult::~DescribeToutiaoLivePlayResult()
{}
void DescribeToutiaoLivePlayResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allContentNode = value["Content"]["ContentItem"];
for (auto valueContentContentItem : allContentNode)
{
ContentItem contentObject;
if(!valueContentContentItem["App"].isNull())
contentObject.app = valueContentContentItem["App"].asString();
if(!valueContentContentItem["Bandwidth"].isNull())
contentObject.bandwidth = std::stof(valueContentContentItem["Bandwidth"].asString());
if(!valueContentContentItem["CdnName"].isNull())
contentObject.cdnName = valueContentContentItem["CdnName"].asString();
if(!valueContentContentItem["Domain"].isNull())
contentObject.domain = valueContentContentItem["Domain"].asString();
if(!valueContentContentItem["PlayNum"].isNull())
contentObject.playNum = std::stol(valueContentContentItem["PlayNum"].asString());
if(!valueContentContentItem["StreamName"].isNull())
contentObject.streamName = valueContentContentItem["StreamName"].asString();
if(!valueContentContentItem["Timestamp"].isNull())
contentObject.timestamp = std::stol(valueContentContentItem["Timestamp"].asString());
content_.push_back(contentObject);
}
if(!value["Description"].isNull())
description_ = value["Description"].asString();
}
std::string DescribeToutiaoLivePlayResult::getDescription()const
{
return description_;
}
std::vector<DescribeToutiaoLivePlayResult::ContentItem> DescribeToutiaoLivePlayResult::getContent()const
{
return content_;
}

View File

@@ -0,0 +1,95 @@
/*
* 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/DescribeToutiaoLivePublishRequest.h>
using AlibabaCloud::Live::Model::DescribeToutiaoLivePublishRequest;
DescribeToutiaoLivePublishRequest::DescribeToutiaoLivePublishRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeToutiaoLivePublish")
{
setMethod(HttpRequest::Method::Post);
}
DescribeToutiaoLivePublishRequest::~DescribeToutiaoLivePublishRequest()
{}
std::string DescribeToutiaoLivePublishRequest::getStartTime()const
{
return startTime_;
}
void DescribeToutiaoLivePublishRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeToutiaoLivePublishRequest::getStream()const
{
return stream_;
}
void DescribeToutiaoLivePublishRequest::setStream(const std::string& stream)
{
stream_ = stream;
setParameter("Stream", stream);
}
std::string DescribeToutiaoLivePublishRequest::getApp()const
{
return app_;
}
void DescribeToutiaoLivePublishRequest::setApp(const std::string& app)
{
app_ = app;
setParameter("App", app);
}
std::string DescribeToutiaoLivePublishRequest::getEndTime()const
{
return endTime_;
}
void DescribeToutiaoLivePublishRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeToutiaoLivePublishRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeToutiaoLivePublishRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeToutiaoLivePublishRequest::getDomain()const
{
return domain_;
}
void DescribeToutiaoLivePublishRequest::setDomain(const std::string& domain)
{
domain_ = domain;
setParameter("Domain", domain);
}

View File

@@ -0,0 +1,80 @@
/*
* 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/DescribeToutiaoLivePublishResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeToutiaoLivePublishResult::DescribeToutiaoLivePublishResult() :
ServiceResult()
{}
DescribeToutiaoLivePublishResult::DescribeToutiaoLivePublishResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeToutiaoLivePublishResult::~DescribeToutiaoLivePublishResult()
{}
void DescribeToutiaoLivePublishResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allContentNode = value["Content"]["ContentItem"];
for (auto valueContentContentItem : allContentNode)
{
ContentItem contentObject;
if(!valueContentContentItem["App"].isNull())
contentObject.app = valueContentContentItem["App"].asString();
if(!valueContentContentItem["Bitrate"].isNull())
contentObject.bitrate = std::stof(valueContentContentItem["Bitrate"].asString());
if(!valueContentContentItem["BwDiff"].isNull())
contentObject.bwDiff = std::stof(valueContentContentItem["BwDiff"].asString());
if(!valueContentContentItem["CdnName"].isNull())
contentObject.cdnName = valueContentContentItem["CdnName"].asString();
if(!valueContentContentItem["Domain"].isNull())
contentObject.domain = valueContentContentItem["Domain"].asString();
if(!valueContentContentItem["Flr"].isNull())
contentObject.flr = std::stof(valueContentContentItem["Flr"].asString());
if(!valueContentContentItem["Fps"].isNull())
contentObject.fps = std::stof(valueContentContentItem["Fps"].asString());
if(!valueContentContentItem["StreamName"].isNull())
contentObject.streamName = valueContentContentItem["StreamName"].asString();
if(!valueContentContentItem["Timestamp"].isNull())
contentObject.timestamp = std::stol(valueContentContentItem["Timestamp"].asString());
content_.push_back(contentObject);
}
if(!value["Description"].isNull())
description_ = value["Description"].asString();
}
std::string DescribeToutiaoLivePublishResult::getDescription()const
{
return description_;
}
std::vector<DescribeToutiaoLivePublishResult::ContentItem> DescribeToutiaoLivePublishResult::getContent()const
{
return content_;
}

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/UpdateLivePullStreamInfoConfigRequest.h>
using AlibabaCloud::Live::Model::UpdateLivePullStreamInfoConfigRequest;
UpdateLivePullStreamInfoConfigRequest::UpdateLivePullStreamInfoConfigRequest() :
RpcServiceRequest("live", "2016-11-01", "UpdateLivePullStreamInfoConfig")
{
setMethod(HttpRequest::Method::Get);
}
UpdateLivePullStreamInfoConfigRequest::~UpdateLivePullStreamInfoConfigRequest()
{}
std::string UpdateLivePullStreamInfoConfigRequest::getStartTime()const
{
return startTime_;
}
void UpdateLivePullStreamInfoConfigRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string UpdateLivePullStreamInfoConfigRequest::getAppName()const
{
return appName_;
}
void UpdateLivePullStreamInfoConfigRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string UpdateLivePullStreamInfoConfigRequest::getStreamName()const
{
return streamName_;
}
void UpdateLivePullStreamInfoConfigRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
std::string UpdateLivePullStreamInfoConfigRequest::getPullAlways()const
{
return pullAlways_;
}
void UpdateLivePullStreamInfoConfigRequest::setPullAlways(const std::string& pullAlways)
{
pullAlways_ = pullAlways;
setParameter("PullAlways", pullAlways);
}
std::string UpdateLivePullStreamInfoConfigRequest::getDomainName()const
{
return domainName_;
}
void UpdateLivePullStreamInfoConfigRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string UpdateLivePullStreamInfoConfigRequest::getEndTime()const
{
return endTime_;
}
void UpdateLivePullStreamInfoConfigRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long UpdateLivePullStreamInfoConfigRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateLivePullStreamInfoConfigRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string UpdateLivePullStreamInfoConfigRequest::getSourceUrl()const
{
return sourceUrl_;
}
void UpdateLivePullStreamInfoConfigRequest::setSourceUrl(const std::string& sourceUrl)
{
sourceUrl_ = sourceUrl;
setParameter("SourceUrl", sourceUrl);
}

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