Generated 2016-11-01 for live.
This commit is contained in:
@@ -4551,6 +4551,42 @@ LiveClient::DescribeLiveDomainRecordDataOutcomeCallable LiveClient::describeLive
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveDomainRecordUsageDataOutcome LiveClient::describeLiveDomainRecordUsageData(const DescribeLiveDomainRecordUsageDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLiveDomainRecordUsageDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLiveDomainRecordUsageDataOutcome(DescribeLiveDomainRecordUsageDataResult(outcome.result()));
|
||||
else
|
||||
return DescribeLiveDomainRecordUsageDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeLiveDomainRecordUsageDataAsync(const DescribeLiveDomainRecordUsageDataRequest& request, const DescribeLiveDomainRecordUsageDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLiveDomainRecordUsageData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveDomainRecordUsageDataOutcomeCallable LiveClient::describeLiveDomainRecordUsageDataCallable(const DescribeLiveDomainRecordUsageDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLiveDomainRecordUsageDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLiveDomainRecordUsageData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveDomainSnapshotDataOutcome LiveClient::describeLiveDomainSnapshotData(const DescribeLiveDomainSnapshotDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4767,6 +4803,42 @@ LiveClient::DescribeLiveDomainTranscodeDataOutcomeCallable LiveClient::describeL
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveDrmUsageDataOutcome LiveClient::describeLiveDrmUsageData(const DescribeLiveDrmUsageDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLiveDrmUsageDataOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLiveDrmUsageDataOutcome(DescribeLiveDrmUsageDataResult(outcome.result()));
|
||||
else
|
||||
return DescribeLiveDrmUsageDataOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeLiveDrmUsageDataAsync(const DescribeLiveDrmUsageDataRequest& request, const DescribeLiveDrmUsageDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLiveDrmUsageData(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveDrmUsageDataOutcomeCallable LiveClient::describeLiveDrmUsageDataCallable(const DescribeLiveDrmUsageDataRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLiveDrmUsageDataOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLiveDrmUsageData(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveLazyPullStreamConfigOutcome LiveClient::describeLiveLazyPullStreamConfig(const DescribeLiveLazyPullStreamConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6171,6 +6243,78 @@ LiveClient::DescribeStudioLayoutsOutcomeCallable LiveClient::describeStudioLayou
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeToutiaoLivePlayOutcome LiveClient::describeToutiaoLivePlay(const DescribeToutiaoLivePlayRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeToutiaoLivePlayOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeToutiaoLivePlayOutcome(DescribeToutiaoLivePlayResult(outcome.result()));
|
||||
else
|
||||
return DescribeToutiaoLivePlayOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeToutiaoLivePlayAsync(const DescribeToutiaoLivePlayRequest& request, const DescribeToutiaoLivePlayAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeToutiaoLivePlay(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeToutiaoLivePlayOutcomeCallable LiveClient::describeToutiaoLivePlayCallable(const DescribeToutiaoLivePlayRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeToutiaoLivePlayOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeToutiaoLivePlay(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeToutiaoLivePublishOutcome LiveClient::describeToutiaoLivePublish(const DescribeToutiaoLivePublishRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeToutiaoLivePublishOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeToutiaoLivePublishOutcome(DescribeToutiaoLivePublishResult(outcome.result()));
|
||||
else
|
||||
return DescribeToutiaoLivePublishOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeToutiaoLivePublishAsync(const DescribeToutiaoLivePublishRequest& request, const DescribeToutiaoLivePublishAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeToutiaoLivePublish(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeToutiaoLivePublishOutcomeCallable LiveClient::describeToutiaoLivePublishCallable(const DescribeToutiaoLivePublishRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeToutiaoLivePublishOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeToutiaoLivePublish(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeUpBpsPeakDataOutcome LiveClient::describeUpBpsPeakData(const DescribeUpBpsPeakDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8619,6 +8763,42 @@ LiveClient::UpdateLiveDetectNotifyConfigOutcomeCallable LiveClient::updateLiveDe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::UpdateLivePullStreamInfoConfigOutcome LiveClient::updateLivePullStreamInfoConfig(const UpdateLivePullStreamInfoConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateLivePullStreamInfoConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateLivePullStreamInfoConfigOutcome(UpdateLivePullStreamInfoConfigResult(outcome.result()));
|
||||
else
|
||||
return UpdateLivePullStreamInfoConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::updateLivePullStreamInfoConfigAsync(const UpdateLivePullStreamInfoConfigRequest& request, const UpdateLivePullStreamInfoConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateLivePullStreamInfoConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::UpdateLivePullStreamInfoConfigOutcomeCallable LiveClient::updateLivePullStreamInfoConfigCallable(const UpdateLivePullStreamInfoConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateLivePullStreamInfoConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateLivePullStreamInfoConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::UpdateLiveRecordNotifyConfigOutcome LiveClient::updateLiveRecordNotifyConfig(const UpdateLiveRecordNotifyConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
84
live/src/model/DescribeLiveDomainRecordUsageDataRequest.cc
Normal file
84
live/src/model/DescribeLiveDomainRecordUsageDataRequest.cc
Normal 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));
|
||||
}
|
||||
|
||||
65
live/src/model/DescribeLiveDomainRecordUsageDataResult.cc
Normal file
65
live/src/model/DescribeLiveDomainRecordUsageDataResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
95
live/src/model/DescribeLiveDrmUsageDataRequest.cc
Normal file
95
live/src/model/DescribeLiveDrmUsageDataRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
65
live/src/model/DescribeLiveDrmUsageDataResult.cc
Normal file
65
live/src/model/DescribeLiveDrmUsageDataResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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())
|
||||
|
||||
95
live/src/model/DescribeToutiaoLivePlayRequest.cc
Normal file
95
live/src/model/DescribeToutiaoLivePlayRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
76
live/src/model/DescribeToutiaoLivePlayResult.cc
Normal file
76
live/src/model/DescribeToutiaoLivePlayResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
95
live/src/model/DescribeToutiaoLivePublishRequest.cc
Normal file
95
live/src/model/DescribeToutiaoLivePublishRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
80
live/src/model/DescribeToutiaoLivePublishResult.cc
Normal file
80
live/src/model/DescribeToutiaoLivePublishResult.cc
Normal 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_;
|
||||
}
|
||||
|
||||
117
live/src/model/UpdateLivePullStreamInfoConfigRequest.cc
Normal file
117
live/src/model/UpdateLivePullStreamInfoConfigRequest.cc
Normal 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);
|
||||
}
|
||||
|
||||
44
live/src/model/UpdateLivePullStreamInfoConfigResult.cc
Normal file
44
live/src/model/UpdateLivePullStreamInfoConfigResult.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/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());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user