Live sdk update.
This commit is contained in:
@@ -4083,6 +4083,42 @@ LiveClient::DescribeLiveCertificateListOutcomeCallable LiveClient::describeLiveC
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveDelayedStreamingUsageOutcome LiveClient::describeLiveDelayedStreamingUsage(const DescribeLiveDelayedStreamingUsageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLiveDelayedStreamingUsageOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLiveDelayedStreamingUsageOutcome(DescribeLiveDelayedStreamingUsageResult(outcome.result()));
|
||||
else
|
||||
return DescribeLiveDelayedStreamingUsageOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeLiveDelayedStreamingUsageAsync(const DescribeLiveDelayedStreamingUsageRequest& request, const DescribeLiveDelayedStreamingUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLiveDelayedStreamingUsage(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveDelayedStreamingUsageOutcomeCallable LiveClient::describeLiveDelayedStreamingUsageCallable(const DescribeLiveDelayedStreamingUsageRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLiveDelayedStreamingUsageOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLiveDelayedStreamingUsage(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveDetectNotifyConfigOutcome LiveClient::describeLiveDetectNotifyConfig(const DescribeLiveDetectNotifyConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -9663,6 +9699,42 @@ LiveClient::SetLiveLazyPullStreamInfoConfigOutcomeCallable LiveClient::setLiveLa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::SetLiveMpuTaskSeiOutcome LiveClient::setLiveMpuTaskSei(const SetLiveMpuTaskSeiRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetLiveMpuTaskSeiOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetLiveMpuTaskSeiOutcome(SetLiveMpuTaskSeiResult(outcome.result()));
|
||||
else
|
||||
return SetLiveMpuTaskSeiOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::setLiveMpuTaskSeiAsync(const SetLiveMpuTaskSeiRequest& request, const SetLiveMpuTaskSeiAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setLiveMpuTaskSei(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::SetLiveMpuTaskSeiOutcomeCallable LiveClient::setLiveMpuTaskSeiCallable(const SetLiveMpuTaskSeiRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetLiveMpuTaskSeiOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setLiveMpuTaskSei(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::SetLiveStreamDelayConfigOutcome LiveClient::setLiveStreamDelayConfig(const SetLiveStreamDelayConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -106,6 +106,15 @@ void AddLiveStreamWatermarkRequest::setTransparency(int transparency) {
|
||||
setParameter(std::string("Transparency"), std::to_string(transparency));
|
||||
}
|
||||
|
||||
std::string AddLiveStreamWatermarkRequest::getDomain() const {
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void AddLiveStreamWatermarkRequest::setDomain(const std::string &domain) {
|
||||
domain_ = domain;
|
||||
setParameter(std::string("Domain"), domain);
|
||||
}
|
||||
|
||||
std::string AddLiveStreamWatermarkRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
@@ -70,6 +70,15 @@ void CreateLiveStreamRecordIndexFilesRequest::setSecurityToken(const std::string
|
||||
setParameter(std::string("SecurityToken"), securityToken);
|
||||
}
|
||||
|
||||
bool CreateLiveStreamRecordIndexFilesRequest::getEndTimeIncluded() const {
|
||||
return endTimeIncluded_;
|
||||
}
|
||||
|
||||
void CreateLiveStreamRecordIndexFilesRequest::setEndTimeIncluded(bool endTimeIncluded) {
|
||||
endTimeIncluded_ = endTimeIncluded;
|
||||
setParameter(std::string("EndTimeIncluded"), endTimeIncluded ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateLiveStreamRecordIndexFilesRequest::getStreamName() const {
|
||||
return streamName_;
|
||||
}
|
||||
|
||||
90
live/src/model/DescribeLiveDelayedStreamingUsageRequest.cc
Normal file
90
live/src/model/DescribeLiveDelayedStreamingUsageRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/DescribeLiveDelayedStreamingUsageRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DescribeLiveDelayedStreamingUsageRequest;
|
||||
|
||||
DescribeLiveDelayedStreamingUsageRequest::DescribeLiveDelayedStreamingUsageRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DescribeLiveDelayedStreamingUsage") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLiveDelayedStreamingUsageRequest::~DescribeLiveDelayedStreamingUsageRequest() {}
|
||||
|
||||
std::string DescribeLiveDelayedStreamingUsageRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeLiveDelayedStreamingUsageRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayedStreamingUsageRequest::getStreamName() const {
|
||||
return streamName_;
|
||||
}
|
||||
|
||||
void DescribeLiveDelayedStreamingUsageRequest::setStreamName(const std::string &streamName) {
|
||||
streamName_ = streamName;
|
||||
setParameter(std::string("StreamName"), streamName);
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayedStreamingUsageRequest::getSplitBy() const {
|
||||
return splitBy_;
|
||||
}
|
||||
|
||||
void DescribeLiveDelayedStreamingUsageRequest::setSplitBy(const std::string &splitBy) {
|
||||
splitBy_ = splitBy;
|
||||
setParameter(std::string("SplitBy"), splitBy);
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayedStreamingUsageRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeLiveDelayedStreamingUsageRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayedStreamingUsageRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeLiveDelayedStreamingUsageRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
long DescribeLiveDelayedStreamingUsageRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLiveDelayedStreamingUsageRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayedStreamingUsageRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void DescribeLiveDelayedStreamingUsageRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
79
live/src/model/DescribeLiveDelayedStreamingUsageResult.cc
Normal file
79
live/src/model/DescribeLiveDelayedStreamingUsageResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/DescribeLiveDelayedStreamingUsageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DescribeLiveDelayedStreamingUsageResult::DescribeLiveDelayedStreamingUsageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLiveDelayedStreamingUsageResult::DescribeLiveDelayedStreamingUsageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLiveDelayedStreamingUsageResult::~DescribeLiveDelayedStreamingUsageResult()
|
||||
{}
|
||||
|
||||
void DescribeLiveDelayedStreamingUsageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDelayDataNode = value["DelayData"]["DelayDataItem"];
|
||||
for (auto valueDelayDataDelayDataItem : allDelayDataNode)
|
||||
{
|
||||
DelayDataItem delayDataObject;
|
||||
if(!valueDelayDataDelayDataItem["Duration"].isNull())
|
||||
delayDataObject.duration = std::stol(valueDelayDataDelayDataItem["Duration"].asString());
|
||||
if(!valueDelayDataDelayDataItem["TimeStamp"].isNull())
|
||||
delayDataObject.timeStamp = valueDelayDataDelayDataItem["TimeStamp"].asString();
|
||||
if(!valueDelayDataDelayDataItem["StreamName"].isNull())
|
||||
delayDataObject.streamName = valueDelayDataDelayDataItem["StreamName"].asString();
|
||||
if(!valueDelayDataDelayDataItem["DomainName"].isNull())
|
||||
delayDataObject.domainName = valueDelayDataDelayDataItem["DomainName"].asString();
|
||||
if(!valueDelayDataDelayDataItem["Region"].isNull())
|
||||
delayDataObject.region = valueDelayDataDelayDataItem["Region"].asString();
|
||||
delayData_.push_back(delayDataObject);
|
||||
}
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayedStreamingUsageResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayedStreamingUsageResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveDelayedStreamingUsageResult::DelayDataItem> DescribeLiveDelayedStreamingUsageResult::getDelayData()const
|
||||
{
|
||||
return delayData_;
|
||||
}
|
||||
|
||||
@@ -70,3 +70,12 @@ void DescribeLiveDomainRecordUsageDataRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeLiveDomainRecordUsageDataRequest::getInterval() const {
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void DescribeLiveDomainRecordUsageDataRequest::setInterval(const std::string &interval) {
|
||||
interval_ = interval;
|
||||
setParameter(std::string("Interval"), interval);
|
||||
}
|
||||
|
||||
|
||||
@@ -55,9 +55,23 @@ void DescribeLiveDomainRecordUsageDataResult::parse(const std::string &payload)
|
||||
recordUsageDataObject.count = std::stol(valueRecordUsageDataDataModule["Count"].asString());
|
||||
recordUsageData_.push_back(recordUsageDataObject);
|
||||
}
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLiveDomainRecordUsageDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveDomainRecordUsageDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveDomainRecordUsageDataResult::DataModule> DescribeLiveDomainRecordUsageDataResult::getRecordUsageData()const
|
||||
{
|
||||
return recordUsageData_;
|
||||
|
||||
@@ -52,3 +52,12 @@ void DescribeLiveStreamWatermarkRulesRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamWatermarkRulesRequest::getDomain() const {
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamWatermarkRulesRequest::setDomain(const std::string &domain) {
|
||||
domain_ = domain;
|
||||
setParameter(std::string("Domain"), domain);
|
||||
}
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ void DescribeLiveStreamWatermarkRulesResult::parse(const std::string &payload)
|
||||
ruleInfoListObject.ruleId = valueRuleInfoListRuleInfo["RuleId"].asString();
|
||||
ruleInfoList_.push_back(ruleInfoListObject);
|
||||
}
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -67,3 +69,8 @@ std::vector<DescribeLiveStreamWatermarkRulesResult::RuleInfo> DescribeLiveStream
|
||||
return ruleInfoList_;
|
||||
}
|
||||
|
||||
int DescribeLiveStreamWatermarkRulesResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,15 @@ void DescribeLiveStreamWatermarksRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamWatermarksRequest::getKeyWord() const {
|
||||
return keyWord_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamWatermarksRequest::setKeyWord(const std::string &keyWord) {
|
||||
keyWord_ = keyWord;
|
||||
setParameter(std::string("KeyWord"), keyWord);
|
||||
}
|
||||
|
||||
long DescribeLiveStreamWatermarksRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
@@ -52,3 +61,12 @@ void DescribeLiveStreamWatermarksRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamWatermarksRequest::getDomain() const {
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamWatermarksRequest::setDomain(const std::string &domain) {
|
||||
domain_ = domain;
|
||||
setParameter(std::string("Domain"), domain);
|
||||
}
|
||||
|
||||
|
||||
@@ -63,12 +63,16 @@ void DescribeLiveStreamWatermarksResult::parse(const std::string &payload)
|
||||
watermarkListObject.description = valueWatermarkListWatermark["Description"].asString();
|
||||
if(!valueWatermarkListWatermark["OffsetCorner"].isNull())
|
||||
watermarkListObject.offsetCorner = valueWatermarkListWatermark["OffsetCorner"].asString();
|
||||
if(!valueWatermarkListWatermark["RuleCount"].isNull())
|
||||
watermarkListObject.ruleCount = std::stoi(valueWatermarkListWatermark["RuleCount"].asString());
|
||||
if(!valueWatermarkListWatermark["Name"].isNull())
|
||||
watermarkListObject.name = valueWatermarkListWatermark["Name"].asString();
|
||||
if(!valueWatermarkListWatermark["TemplateId"].isNull())
|
||||
watermarkListObject.templateId = valueWatermarkListWatermark["TemplateId"].asString();
|
||||
watermarkList_.push_back(watermarkListObject);
|
||||
}
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -77,3 +81,8 @@ std::vector<DescribeLiveStreamWatermarksResult::Watermark> DescribeLiveStreamWat
|
||||
return watermarkList_;
|
||||
}
|
||||
|
||||
int DescribeLiveStreamWatermarksResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,24 +34,6 @@ void DescribeLiveUserBillPredictionRequest::setStartTime(const std::string &star
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string DescribeLiveUserBillPredictionRequest::getDimension() const {
|
||||
return dimension_;
|
||||
}
|
||||
|
||||
void DescribeLiveUserBillPredictionRequest::setDimension(const std::string &dimension) {
|
||||
dimension_ = dimension;
|
||||
setParameter(std::string("Dimension"), dimension);
|
||||
}
|
||||
|
||||
std::string DescribeLiveUserBillPredictionRequest::getArea() const {
|
||||
return area_;
|
||||
}
|
||||
|
||||
void DescribeLiveUserBillPredictionRequest::setArea(const std::string &area) {
|
||||
area_ = area;
|
||||
setParameter(std::string("Area"), area);
|
||||
}
|
||||
|
||||
std::string DescribeLiveUserBillPredictionRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
54
live/src/model/SetLiveMpuTaskSeiRequest.cc
Normal file
54
live/src/model/SetLiveMpuTaskSeiRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/SetLiveMpuTaskSeiRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::SetLiveMpuTaskSeiRequest;
|
||||
|
||||
SetLiveMpuTaskSeiRequest::SetLiveMpuTaskSeiRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "SetLiveMpuTaskSei") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetLiveMpuTaskSeiRequest::~SetLiveMpuTaskSeiRequest() {}
|
||||
|
||||
std::string SetLiveMpuTaskSeiRequest::getCustomSei() const {
|
||||
return customSei_;
|
||||
}
|
||||
|
||||
void SetLiveMpuTaskSeiRequest::setCustomSei(const std::string &customSei) {
|
||||
customSei_ = customSei;
|
||||
setParameter(std::string("CustomSei"), customSei);
|
||||
}
|
||||
|
||||
std::string SetLiveMpuTaskSeiRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void SetLiveMpuTaskSeiRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string SetLiveMpuTaskSeiRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void SetLiveMpuTaskSeiRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
44
live/src/model/SetLiveMpuTaskSeiResult.cc
Normal file
44
live/src/model/SetLiveMpuTaskSeiResult.cc
Normal 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/SetLiveMpuTaskSeiResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
SetLiveMpuTaskSeiResult::SetLiveMpuTaskSeiResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetLiveMpuTaskSeiResult::SetLiveMpuTaskSeiResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetLiveMpuTaskSeiResult::~SetLiveMpuTaskSeiResult()
|
||||
{}
|
||||
|
||||
void SetLiveMpuTaskSeiResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user