Update to support new apis.
This commit is contained in:
@@ -1887,6 +1887,42 @@ LiveClient::CreateLiveMessageGroupOutcomeCallable LiveClient::createLiveMessageG
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::CreateLivePrivateLineOutcome LiveClient::createLivePrivateLine(const CreateLivePrivateLineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateLivePrivateLineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateLivePrivateLineOutcome(CreateLivePrivateLineResult(outcome.result()));
|
||||
else
|
||||
return CreateLivePrivateLineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::createLivePrivateLineAsync(const CreateLivePrivateLineRequest& request, const CreateLivePrivateLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createLivePrivateLine(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::CreateLivePrivateLineOutcomeCallable LiveClient::createLivePrivateLineCallable(const CreateLivePrivateLineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateLivePrivateLineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createLivePrivateLine(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::CreateLiveRealTimeLogDeliveryOutcome LiveClient::createLiveRealTimeLogDelivery(const CreateLiveRealTimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3183,6 +3219,42 @@ LiveClient::DeleteLivePackageConfigOutcomeCallable LiveClient::deleteLivePackage
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DeleteLivePrivateLineOutcome LiveClient::deleteLivePrivateLine(const DeleteLivePrivateLineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteLivePrivateLineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteLivePrivateLineOutcome(DeleteLivePrivateLineResult(outcome.result()));
|
||||
else
|
||||
return DeleteLivePrivateLineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::deleteLivePrivateLineAsync(const DeleteLivePrivateLineRequest& request, const DeleteLivePrivateLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteLivePrivateLine(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DeleteLivePrivateLineOutcomeCallable LiveClient::deleteLivePrivateLineCallable(const DeleteLivePrivateLineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteLivePrivateLineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteLivePrivateLine(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DeleteLivePullStreamInfoConfigOutcome LiveClient::deleteLivePullStreamInfoConfig(const DeleteLivePullStreamInfoConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6711,6 +6783,78 @@ LiveClient::DescribeLivePackageConfigOutcomeCallable LiveClient::describeLivePac
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLivePrivateLineAreasOutcome LiveClient::describeLivePrivateLineAreas(const DescribeLivePrivateLineAreasRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLivePrivateLineAreasOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLivePrivateLineAreasOutcome(DescribeLivePrivateLineAreasResult(outcome.result()));
|
||||
else
|
||||
return DescribeLivePrivateLineAreasOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeLivePrivateLineAreasAsync(const DescribeLivePrivateLineAreasRequest& request, const DescribeLivePrivateLineAreasAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLivePrivateLineAreas(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeLivePrivateLineAreasOutcomeCallable LiveClient::describeLivePrivateLineAreasCallable(const DescribeLivePrivateLineAreasRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLivePrivateLineAreasOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLivePrivateLineAreas(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLivePrivateLineAvailGAOutcome LiveClient::describeLivePrivateLineAvailGA(const DescribeLivePrivateLineAvailGARequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLivePrivateLineAvailGAOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLivePrivateLineAvailGAOutcome(DescribeLivePrivateLineAvailGAResult(outcome.result()));
|
||||
else
|
||||
return DescribeLivePrivateLineAvailGAOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeLivePrivateLineAvailGAAsync(const DescribeLivePrivateLineAvailGARequest& request, const DescribeLivePrivateLineAvailGAAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLivePrivateLineAvailGA(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeLivePrivateLineAvailGAOutcomeCallable LiveClient::describeLivePrivateLineAvailGACallable(const DescribeLivePrivateLineAvailGARequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLivePrivateLineAvailGAOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLivePrivateLineAvailGA(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveProducerUsageDataOutcome LiveClient::describeLiveProducerUsageData(const DescribeLiveProducerUsageDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7431,6 +7575,42 @@ LiveClient::DescribeLiveStreamHistoryUserNumOutcomeCallable LiveClient::describe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveStreamMergeOutcome LiveClient::describeLiveStreamMerge(const DescribeLiveStreamMergeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLiveStreamMergeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLiveStreamMergeOutcome(DescribeLiveStreamMergeResult(outcome.result()));
|
||||
else
|
||||
return DescribeLiveStreamMergeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeLiveStreamMergeAsync(const DescribeLiveStreamMergeRequest& request, const DescribeLiveStreamMergeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLiveStreamMerge(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveStreamMergeOutcomeCallable LiveClient::describeLiveStreamMergeCallable(const DescribeLiveStreamMergeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLiveStreamMergeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLiveStreamMerge(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveStreamMetricDetailDataOutcome LiveClient::describeLiveStreamMetricDetailData(const DescribeLiveStreamMetricDetailDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8439,6 +8619,42 @@ LiveClient::DescribeLiveUserTagsOutcomeCallable LiveClient::describeLiveUserTags
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeMeterLiveBypassDurationOutcome LiveClient::describeMeterLiveBypassDuration(const DescribeMeterLiveBypassDurationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMeterLiveBypassDurationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeMeterLiveBypassDurationOutcome(DescribeMeterLiveBypassDurationResult(outcome.result()));
|
||||
else
|
||||
return DescribeMeterLiveBypassDurationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeMeterLiveBypassDurationAsync(const DescribeMeterLiveBypassDurationRequest& request, const DescribeMeterLiveBypassDurationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeMeterLiveBypassDuration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeMeterLiveBypassDurationOutcomeCallable LiveClient::describeMeterLiveBypassDurationCallable(const DescribeMeterLiveBypassDurationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeMeterLiveBypassDurationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeMeterLiveBypassDuration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeMeterLiveInteractionDauOutcome LiveClient::describeMeterLiveInteractionDau(const DescribeMeterLiveInteractionDauRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -44,12 +44,12 @@ void BatchGetOnlineUsersResult::parse(const std::string &payload)
|
||||
for (auto resultNodeOnlineUsersonlineUsersItem : allOnlineUsersNode)
|
||||
{
|
||||
Result::OnlineUsersItem onlineUsersItemObject;
|
||||
if(!resultNodeOnlineUsersonlineUsersItem["UserId"].isNull())
|
||||
onlineUsersItemObject.userId = resultNodeOnlineUsersonlineUsersItem["UserId"].asString();
|
||||
if(!resultNodeOnlineUsersonlineUsersItem["JoinTime"].isNull())
|
||||
onlineUsersItemObject.joinTime = std::stol(resultNodeOnlineUsersonlineUsersItem["JoinTime"].asString());
|
||||
if(!resultNodeOnlineUsersonlineUsersItem["Online"].isNull())
|
||||
onlineUsersItemObject.online = resultNodeOnlineUsersonlineUsersItem["Online"].asString() == "true";
|
||||
if(!resultNodeOnlineUsersonlineUsersItem["UserId"].isNull())
|
||||
onlineUsersItemObject.userId = resultNodeOnlineUsersonlineUsersItem["UserId"].asString();
|
||||
result_.onlineUsers.push_back(onlineUsersItemObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,10 +43,10 @@ void CheckLiveMessageUsersOnlineResult::parse(const std::string &payload)
|
||||
for (auto valueUserListUsers : allUserListNode)
|
||||
{
|
||||
Users userListObject;
|
||||
if(!valueUserListUsers["UserId"].isNull())
|
||||
userListObject.userId = valueUserListUsers["UserId"].asString();
|
||||
if(!valueUserListUsers["Online"].isNull())
|
||||
userListObject.online = valueUserListUsers["Online"].asString() == "true";
|
||||
if(!valueUserListUsers["UserId"].isNull())
|
||||
userListObject.userId = valueUserListUsers["UserId"].asString();
|
||||
userList_.push_back(userListObject);
|
||||
}
|
||||
|
||||
|
||||
117
live/src/model/CreateLivePrivateLineRequest.cc
Normal file
117
live/src/model/CreateLivePrivateLineRequest.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/CreateLivePrivateLineRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::CreateLivePrivateLineRequest;
|
||||
|
||||
CreateLivePrivateLineRequest::CreateLivePrivateLineRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "CreateLivePrivateLine") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateLivePrivateLineRequest::~CreateLivePrivateLineRequest() {}
|
||||
|
||||
std::string CreateLivePrivateLineRequest::getMaxBandwidth() const {
|
||||
return maxBandwidth_;
|
||||
}
|
||||
|
||||
void CreateLivePrivateLineRequest::setMaxBandwidth(const std::string &maxBandwidth) {
|
||||
maxBandwidth_ = maxBandwidth;
|
||||
setParameter(std::string("MaxBandwidth"), maxBandwidth);
|
||||
}
|
||||
|
||||
std::string CreateLivePrivateLineRequest::getReuse() const {
|
||||
return reuse_;
|
||||
}
|
||||
|
||||
void CreateLivePrivateLineRequest::setReuse(const std::string &reuse) {
|
||||
reuse_ = reuse;
|
||||
setParameter(std::string("Reuse"), reuse);
|
||||
}
|
||||
|
||||
std::string CreateLivePrivateLineRequest::getAccelerationArea() const {
|
||||
return accelerationArea_;
|
||||
}
|
||||
|
||||
void CreateLivePrivateLineRequest::setAccelerationArea(const std::string &accelerationArea) {
|
||||
accelerationArea_ = accelerationArea;
|
||||
setParameter(std::string("AccelerationArea"), accelerationArea);
|
||||
}
|
||||
|
||||
std::string CreateLivePrivateLineRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateLivePrivateLineRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string CreateLivePrivateLineRequest::getStreamName() const {
|
||||
return streamName_;
|
||||
}
|
||||
|
||||
void CreateLivePrivateLineRequest::setStreamName(const std::string &streamName) {
|
||||
streamName_ = streamName;
|
||||
setParameter(std::string("StreamName"), streamName);
|
||||
}
|
||||
|
||||
std::string CreateLivePrivateLineRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void CreateLivePrivateLineRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
long CreateLivePrivateLineRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateLivePrivateLineRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateLivePrivateLineRequest::getVideoCenter() const {
|
||||
return videoCenter_;
|
||||
}
|
||||
|
||||
void CreateLivePrivateLineRequest::setVideoCenter(const std::string &videoCenter) {
|
||||
videoCenter_ = videoCenter;
|
||||
setParameter(std::string("VideoCenter"), videoCenter);
|
||||
}
|
||||
|
||||
std::string CreateLivePrivateLineRequest::getAccelerationType() const {
|
||||
return accelerationType_;
|
||||
}
|
||||
|
||||
void CreateLivePrivateLineRequest::setAccelerationType(const std::string &accelerationType) {
|
||||
accelerationType_ = accelerationType;
|
||||
setParameter(std::string("AccelerationType"), accelerationType);
|
||||
}
|
||||
|
||||
std::string CreateLivePrivateLineRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateLivePrivateLineRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
44
live/src/model/CreateLivePrivateLineResult.cc
Normal file
44
live/src/model/CreateLivePrivateLineResult.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/CreateLivePrivateLineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
CreateLivePrivateLineResult::CreateLivePrivateLineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateLivePrivateLineResult::CreateLivePrivateLineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateLivePrivateLineResult::~CreateLivePrivateLineResult()
|
||||
{}
|
||||
|
||||
void CreateLivePrivateLineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -40,10 +40,10 @@ void CreateMessageGroupResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["GroupId"].isNull())
|
||||
result_.groupId = resultNode["GroupId"].asString();
|
||||
if(!resultNode["Extension"].isNull())
|
||||
result_.extension = resultNode["Extension"].asString();
|
||||
if(!resultNode["GroupId"].isNull())
|
||||
result_.groupId = resultNode["GroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
72
live/src/model/DeleteLivePrivateLineRequest.cc
Normal file
72
live/src/model/DeleteLivePrivateLineRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/live/model/DeleteLivePrivateLineRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DeleteLivePrivateLineRequest;
|
||||
|
||||
DeleteLivePrivateLineRequest::DeleteLivePrivateLineRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DeleteLivePrivateLine") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLivePrivateLineRequest::~DeleteLivePrivateLineRequest() {}
|
||||
|
||||
std::string DeleteLivePrivateLineRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DeleteLivePrivateLineRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string DeleteLivePrivateLineRequest::getStreamName() const {
|
||||
return streamName_;
|
||||
}
|
||||
|
||||
void DeleteLivePrivateLineRequest::setStreamName(const std::string &streamName) {
|
||||
streamName_ = streamName;
|
||||
setParameter(std::string("StreamName"), streamName);
|
||||
}
|
||||
|
||||
std::string DeleteLivePrivateLineRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DeleteLivePrivateLineRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
long DeleteLivePrivateLineRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteLivePrivateLineRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteLivePrivateLineRequest::getAccelerationType() const {
|
||||
return accelerationType_;
|
||||
}
|
||||
|
||||
void DeleteLivePrivateLineRequest::setAccelerationType(const std::string &accelerationType) {
|
||||
accelerationType_ = accelerationType;
|
||||
setParameter(std::string("AccelerationType"), accelerationType);
|
||||
}
|
||||
|
||||
44
live/src/model/DeleteLivePrivateLineResult.cc
Normal file
44
live/src/model/DeleteLivePrivateLineResult.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/DeleteLivePrivateLineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DeleteLivePrivateLineResult::DeleteLivePrivateLineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLivePrivateLineResult::DeleteLivePrivateLineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLivePrivateLineResult::~DeleteLivePrivateLineResult()
|
||||
{}
|
||||
|
||||
void DeleteLivePrivateLineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -42,12 +42,12 @@ void DescribeChannelParticipantsResult::parse(const std::string &payload)
|
||||
auto allUserList = value["UserList"]["Users"];
|
||||
for (const auto &item : allUserList)
|
||||
userList_.push_back(item.asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
if(!value["Times"].isNull())
|
||||
times_ = std::stol(value["Times"].asString());
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,16 +43,16 @@ void DescribeLiveCenterStreamRateDataResult::parse(const std::string &payload)
|
||||
for (auto valueRateDatasData : allRateDatasNode)
|
||||
{
|
||||
Data rateDatasObject;
|
||||
if(!valueRateDatasData["VideoFps"].isNull())
|
||||
rateDatasObject.videoFps = valueRateDatasData["VideoFps"].asString();
|
||||
if(!valueRateDatasData["VideoRate"].isNull())
|
||||
rateDatasObject.videoRate = valueRateDatasData["VideoRate"].asString();
|
||||
if(!valueRateDatasData["AudioFps"].isNull())
|
||||
rateDatasObject.audioFps = valueRateDatasData["AudioFps"].asString();
|
||||
if(!valueRateDatasData["AudioRate"].isNull())
|
||||
rateDatasObject.audioRate = valueRateDatasData["AudioRate"].asString();
|
||||
if(!valueRateDatasData["Time"].isNull())
|
||||
rateDatasObject.time = valueRateDatasData["Time"].asString();
|
||||
if(!valueRateDatasData["VideoFps"].isNull())
|
||||
rateDatasObject.videoFps = valueRateDatasData["VideoFps"].asString();
|
||||
if(!valueRateDatasData["VideoRate"].isNull())
|
||||
rateDatasObject.videoRate = valueRateDatasData["VideoRate"].asString();
|
||||
rateDatas_.push_back(rateDatasObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,16 +39,16 @@ void DescribeLiveDelayConfigResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Domain"].isNull())
|
||||
domain_ = value["Domain"].asString();
|
||||
if(!value["TaskTriggerMode"].isNull())
|
||||
taskTriggerMode_ = value["TaskTriggerMode"].asString();
|
||||
if(!value["App"].isNull())
|
||||
app_ = value["App"].asString();
|
||||
if(!value["DelayTime"].isNull())
|
||||
delayTime_ = value["DelayTime"].asString();
|
||||
if(!value["Domain"].isNull())
|
||||
domain_ = value["Domain"].asString();
|
||||
if(!value["Stream"].isNull())
|
||||
stream_ = value["Stream"].asString();
|
||||
if(!value["TaskTriggerMode"].isNull())
|
||||
taskTriggerMode_ = value["TaskTriggerMode"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -67,13 +67,13 @@ std::string DescribeLiveDelayConfigResult::getStream()const
|
||||
return stream_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayConfigResult::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayConfigResult::getDelayTime()const
|
||||
{
|
||||
return delayTime_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayConfigResult::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,14 +51,14 @@ void DescribeLiveDomainEdgeLogResult::parse(const std::string &payload)
|
||||
DomainLogDetail::LogInfoDetail logInfosObject;
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["EndTime"].isNull())
|
||||
logInfosObject.endTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["EndTime"].asString();
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].isNull())
|
||||
logInfosObject.logSize = std::stol(valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].asString());
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].isNull())
|
||||
logInfosObject.startTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].asString();
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogName"].isNull())
|
||||
logInfosObject.logName = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogName"].asString();
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogPath"].isNull())
|
||||
logInfosObject.logPath = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogPath"].asString();
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].isNull())
|
||||
logInfosObject.logSize = std::stol(valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].asString());
|
||||
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].isNull())
|
||||
logInfosObject.startTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].asString();
|
||||
domainLogDetailsObject.logInfos.push_back(logInfosObject);
|
||||
}
|
||||
auto pageInfosNode = value["PageInfos"];
|
||||
|
||||
@@ -43,22 +43,22 @@ void DescribeLiveGrtnTrafficUsageResult::parse(const std::string &payload)
|
||||
for (auto valueUsageDataPerIntervalUsageData : allUsageDataPerIntervalNode)
|
||||
{
|
||||
UsageData usageDataPerIntervalObject;
|
||||
if(!valueUsageDataPerIntervalUsageData["Value"].isNull())
|
||||
usageDataPerIntervalObject.value = valueUsageDataPerIntervalUsageData["Value"].asString();
|
||||
if(!valueUsageDataPerIntervalUsageData["TimeStamp"].isNull())
|
||||
usageDataPerIntervalObject.timeStamp = valueUsageDataPerIntervalUsageData["TimeStamp"].asString();
|
||||
if(!valueUsageDataPerIntervalUsageData["Value"].isNull())
|
||||
usageDataPerIntervalObject.value = valueUsageDataPerIntervalUsageData["Value"].asString();
|
||||
usageDataPerInterval_.push_back(usageDataPerIntervalObject);
|
||||
}
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["Filed"].isNull())
|
||||
filed_ = value["Filed"].asString();
|
||||
if(!value["AppId"].isNull())
|
||||
appId_ = value["AppId"].asString();
|
||||
if(!value["Area"].isNull())
|
||||
area_ = value["Area"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["Filed"].isNull())
|
||||
filed_ = value["Filed"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -77,16 +77,16 @@ std::string DescribeLiveGrtnTrafficUsageResult::getFiled()const
|
||||
return filed_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveGrtnTrafficUsageResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveGrtnTrafficUsageResult::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveGrtnTrafficUsageResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveGrtnTrafficUsageResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
|
||||
45
live/src/model/DescribeLivePrivateLineAreasRequest.cc
Normal file
45
live/src/model/DescribeLivePrivateLineAreasRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/DescribeLivePrivateLineAreasRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DescribeLivePrivateLineAreasRequest;
|
||||
|
||||
DescribeLivePrivateLineAreasRequest::DescribeLivePrivateLineAreasRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DescribeLivePrivateLineAreas") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLivePrivateLineAreasRequest::~DescribeLivePrivateLineAreasRequest() {}
|
||||
|
||||
std::string DescribeLivePrivateLineAreasRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeLivePrivateLineAreasRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
long DescribeLivePrivateLineAreasRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLivePrivateLineAreasRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
67
live/src/model/DescribeLivePrivateLineAreasResult.cc
Normal file
67
live/src/model/DescribeLivePrivateLineAreasResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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/DescribeLivePrivateLineAreasResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DescribeLivePrivateLineAreasResult::DescribeLivePrivateLineAreasResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLivePrivateLineAreasResult::DescribeLivePrivateLineAreasResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLivePrivateLineAreasResult::~DescribeLivePrivateLineAreasResult()
|
||||
{}
|
||||
|
||||
void DescribeLivePrivateLineAreasResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLiveAreasListNode = value["LiveAreasList"]["LiveArea"];
|
||||
for (auto valueLiveAreasListLiveArea : allLiveAreasListNode)
|
||||
{
|
||||
LiveArea liveAreasListObject;
|
||||
if(!valueLiveAreasListLiveArea["RegionType"].isNull())
|
||||
liveAreasListObject.regionType = valueLiveAreasListLiveArea["RegionType"].asString();
|
||||
auto allRegionsNode = valueLiveAreasListLiveArea["Regions"]["Region"];
|
||||
for (auto valueLiveAreasListLiveAreaRegionsRegion : allRegionsNode)
|
||||
{
|
||||
LiveArea::Region regionsObject;
|
||||
if(!valueLiveAreasListLiveAreaRegionsRegion["LocalName"].isNull())
|
||||
regionsObject.localName = valueLiveAreasListLiveAreaRegionsRegion["LocalName"].asString();
|
||||
if(!valueLiveAreasListLiveAreaRegionsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueLiveAreasListLiveAreaRegionsRegion["RegionId"].asString();
|
||||
liveAreasListObject.regions.push_back(regionsObject);
|
||||
}
|
||||
liveAreasList_.push_back(liveAreasListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLivePrivateLineAreasResult::LiveArea> DescribeLivePrivateLineAreasResult::getLiveAreasList()const
|
||||
{
|
||||
return liveAreasList_;
|
||||
}
|
||||
|
||||
90
live/src/model/DescribeLivePrivateLineAvailGARequest.cc
Normal file
90
live/src/model/DescribeLivePrivateLineAvailGARequest.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/DescribeLivePrivateLineAvailGARequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DescribeLivePrivateLineAvailGARequest;
|
||||
|
||||
DescribeLivePrivateLineAvailGARequest::DescribeLivePrivateLineAvailGARequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DescribeLivePrivateLineAvailGA") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLivePrivateLineAvailGARequest::~DescribeLivePrivateLineAvailGARequest() {}
|
||||
|
||||
std::string DescribeLivePrivateLineAvailGARequest::getAccelerationArea() const {
|
||||
return accelerationArea_;
|
||||
}
|
||||
|
||||
void DescribeLivePrivateLineAvailGARequest::setAccelerationArea(const std::string &accelerationArea) {
|
||||
accelerationArea_ = accelerationArea;
|
||||
setParameter(std::string("AccelerationArea"), accelerationArea);
|
||||
}
|
||||
|
||||
std::string DescribeLivePrivateLineAvailGARequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DescribeLivePrivateLineAvailGARequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string DescribeLivePrivateLineAvailGARequest::getStreamName() const {
|
||||
return streamName_;
|
||||
}
|
||||
|
||||
void DescribeLivePrivateLineAvailGARequest::setStreamName(const std::string &streamName) {
|
||||
streamName_ = streamName;
|
||||
setParameter(std::string("StreamName"), streamName);
|
||||
}
|
||||
|
||||
std::string DescribeLivePrivateLineAvailGARequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeLivePrivateLineAvailGARequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
long DescribeLivePrivateLineAvailGARequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLivePrivateLineAvailGARequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeLivePrivateLineAvailGARequest::getVideoCenter() const {
|
||||
return videoCenter_;
|
||||
}
|
||||
|
||||
void DescribeLivePrivateLineAvailGARequest::setVideoCenter(const std::string &videoCenter) {
|
||||
videoCenter_ = videoCenter;
|
||||
setParameter(std::string("VideoCenter"), videoCenter);
|
||||
}
|
||||
|
||||
std::string DescribeLivePrivateLineAvailGARequest::getIsGaInstance() const {
|
||||
return isGaInstance_;
|
||||
}
|
||||
|
||||
void DescribeLivePrivateLineAvailGARequest::setIsGaInstance(const std::string &isGaInstance) {
|
||||
isGaInstance_ = isGaInstance;
|
||||
setParameter(std::string("IsGaInstance"), isGaInstance);
|
||||
}
|
||||
|
||||
77
live/src/model/DescribeLivePrivateLineAvailGAResult.cc
Normal file
77
live/src/model/DescribeLivePrivateLineAvailGAResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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/DescribeLivePrivateLineAvailGAResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DescribeLivePrivateLineAvailGAResult::DescribeLivePrivateLineAvailGAResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLivePrivateLineAvailGAResult::DescribeLivePrivateLineAvailGAResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLivePrivateLineAvailGAResult::~DescribeLivePrivateLineAvailGAResult()
|
||||
{}
|
||||
|
||||
void DescribeLivePrivateLineAvailGAResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLivePrivateLineAvailGAsNode = value["LivePrivateLineAvailGAs"]["LivePrivateLineAvailGA"];
|
||||
for (auto valueLivePrivateLineAvailGAsLivePrivateLineAvailGA : allLivePrivateLineAvailGAsNode)
|
||||
{
|
||||
LivePrivateLineAvailGA livePrivateLineAvailGAsObject;
|
||||
if(!valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["AccelerationArea"].isNull())
|
||||
livePrivateLineAvailGAsObject.accelerationArea = valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["AccelerationArea"].asString();
|
||||
if(!valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["AccelerationType"].isNull())
|
||||
livePrivateLineAvailGAsObject.accelerationType = valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["AccelerationType"].asString();
|
||||
if(!valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["AppName"].isNull())
|
||||
livePrivateLineAvailGAsObject.appName = valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["AppName"].asString();
|
||||
if(!valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["BindingStatus"].isNull())
|
||||
livePrivateLineAvailGAsObject.bindingStatus = valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["BindingStatus"].asString();
|
||||
if(!valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["DomainName"].isNull())
|
||||
livePrivateLineAvailGAsObject.domainName = valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["DomainName"].asString();
|
||||
if(!valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["IP"].isNull())
|
||||
livePrivateLineAvailGAsObject.iP = valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["IP"].asString();
|
||||
if(!valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["InstanceId"].isNull())
|
||||
livePrivateLineAvailGAsObject.instanceId = valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["InstanceId"].asString();
|
||||
if(!valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["Status"].isNull())
|
||||
livePrivateLineAvailGAsObject.status = valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["Status"].asString();
|
||||
if(!valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["StreamName"].isNull())
|
||||
livePrivateLineAvailGAsObject.streamName = valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["StreamName"].asString();
|
||||
if(!valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["Uid"].isNull())
|
||||
livePrivateLineAvailGAsObject.uid = valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["Uid"].asString();
|
||||
if(!valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["VideoCenter"].isNull())
|
||||
livePrivateLineAvailGAsObject.videoCenter = valueLivePrivateLineAvailGAsLivePrivateLineAvailGA["VideoCenter"].asString();
|
||||
livePrivateLineAvailGAs_.push_back(livePrivateLineAvailGAsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLivePrivateLineAvailGAResult::LivePrivateLineAvailGA> DescribeLivePrivateLineAvailGAResult::getLivePrivateLineAvailGAs()const
|
||||
{
|
||||
return livePrivateLineAvailGAs_;
|
||||
}
|
||||
|
||||
@@ -43,20 +43,20 @@ void DescribeLiveStreamDetailFrameRateAndBitRateDataResult::parse(const std::str
|
||||
for (auto valueFrameRateAndBitRateInfosfrabr : allFrameRateAndBitRateInfosNode)
|
||||
{
|
||||
Frabr frameRateAndBitRateInfosObject;
|
||||
if(!valueFrameRateAndBitRateInfosfrabr["Time"].isNull())
|
||||
frameRateAndBitRateInfosObject.time = valueFrameRateAndBitRateInfosfrabr["Time"].asString();
|
||||
if(!valueFrameRateAndBitRateInfosfrabr["VideoFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.videoFrameRate = std::stof(valueFrameRateAndBitRateInfosfrabr["VideoFrameRate"].asString());
|
||||
if(!valueFrameRateAndBitRateInfosfrabr["AudioFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.audioFrameRate = std::stof(valueFrameRateAndBitRateInfosfrabr["AudioFrameRate"].asString());
|
||||
if(!valueFrameRateAndBitRateInfosfrabr["StreamUrl"].isNull())
|
||||
frameRateAndBitRateInfosObject.streamUrl = valueFrameRateAndBitRateInfosfrabr["StreamUrl"].asString();
|
||||
if(!valueFrameRateAndBitRateInfosfrabr["BitRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.bitRate = std::stof(valueFrameRateAndBitRateInfosfrabr["BitRate"].asString());
|
||||
if(!valueFrameRateAndBitRateInfosfrabr["VideoBitRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.videoBitRate = std::stof(valueFrameRateAndBitRateInfosfrabr["VideoBitRate"].asString());
|
||||
if(!valueFrameRateAndBitRateInfosfrabr["AudioBitRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.audioBitRate = std::stof(valueFrameRateAndBitRateInfosfrabr["AudioBitRate"].asString());
|
||||
if(!valueFrameRateAndBitRateInfosfrabr["AudioFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.audioFrameRate = std::stof(valueFrameRateAndBitRateInfosfrabr["AudioFrameRate"].asString());
|
||||
if(!valueFrameRateAndBitRateInfosfrabr["BitRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.bitRate = std::stof(valueFrameRateAndBitRateInfosfrabr["BitRate"].asString());
|
||||
if(!valueFrameRateAndBitRateInfosfrabr["StreamUrl"].isNull())
|
||||
frameRateAndBitRateInfosObject.streamUrl = valueFrameRateAndBitRateInfosfrabr["StreamUrl"].asString();
|
||||
if(!valueFrameRateAndBitRateInfosfrabr["Time"].isNull())
|
||||
frameRateAndBitRateInfosObject.time = valueFrameRateAndBitRateInfosfrabr["Time"].asString();
|
||||
if(!valueFrameRateAndBitRateInfosfrabr["VideoBitRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.videoBitRate = std::stof(valueFrameRateAndBitRateInfosfrabr["VideoBitRate"].asString());
|
||||
if(!valueFrameRateAndBitRateInfosfrabr["VideoFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.videoFrameRate = std::stof(valueFrameRateAndBitRateInfosfrabr["VideoFrameRate"].asString());
|
||||
frameRateAndBitRateInfos_.push_back(frameRateAndBitRateInfosObject);
|
||||
}
|
||||
|
||||
|
||||
72
live/src/model/DescribeLiveStreamMergeRequest.cc
Normal file
72
live/src/model/DescribeLiveStreamMergeRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/live/model/DescribeLiveStreamMergeRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DescribeLiveStreamMergeRequest;
|
||||
|
||||
DescribeLiveStreamMergeRequest::DescribeLiveStreamMergeRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DescribeLiveStreamMerge") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLiveStreamMergeRequest::~DescribeLiveStreamMergeRequest() {}
|
||||
|
||||
std::string DescribeLiveStreamMergeRequest::getProtocol() const {
|
||||
return protocol_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamMergeRequest::setProtocol(const std::string &protocol) {
|
||||
protocol_ = protocol;
|
||||
setParameter(std::string("Protocol"), protocol);
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamMergeRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamMergeRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamMergeRequest::getStreamName() const {
|
||||
return streamName_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamMergeRequest::setStreamName(const std::string &streamName) {
|
||||
streamName_ = streamName;
|
||||
setParameter(std::string("StreamName"), streamName);
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamMergeRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamMergeRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
long DescribeLiveStreamMergeRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamMergeRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
81
live/src/model/DescribeLiveStreamMergeResult.cc
Normal file
81
live/src/model/DescribeLiveStreamMergeResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/DescribeLiveStreamMergeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DescribeLiveStreamMergeResult::DescribeLiveStreamMergeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLiveStreamMergeResult::DescribeLiveStreamMergeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLiveStreamMergeResult::~DescribeLiveStreamMergeResult()
|
||||
{}
|
||||
|
||||
void DescribeLiveStreamMergeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLiveStreamMergeListNode = value["LiveStreamMergeList"]["LiveStreamMerge"];
|
||||
for (auto valueLiveStreamMergeListLiveStreamMerge : allLiveStreamMergeListNode)
|
||||
{
|
||||
LiveStreamMerge liveStreamMergeListObject;
|
||||
if(!valueLiveStreamMergeListLiveStreamMerge["AppName"].isNull())
|
||||
liveStreamMergeListObject.appName = valueLiveStreamMergeListLiveStreamMerge["AppName"].asString();
|
||||
if(!valueLiveStreamMergeListLiveStreamMerge["AppUsing"].isNull())
|
||||
liveStreamMergeListObject.appUsing = valueLiveStreamMergeListLiveStreamMerge["AppUsing"].asString();
|
||||
if(!valueLiveStreamMergeListLiveStreamMerge["DomainName"].isNull())
|
||||
liveStreamMergeListObject.domainName = valueLiveStreamMergeListLiveStreamMerge["DomainName"].asString();
|
||||
if(!valueLiveStreamMergeListLiveStreamMerge["EndTime"].isNull())
|
||||
liveStreamMergeListObject.endTime = valueLiveStreamMergeListLiveStreamMerge["EndTime"].asString();
|
||||
if(!valueLiveStreamMergeListLiveStreamMerge["ExtraInAppStreams"].isNull())
|
||||
liveStreamMergeListObject.extraInAppStreams = valueLiveStreamMergeListLiveStreamMerge["ExtraInAppStreams"].asString();
|
||||
if(!valueLiveStreamMergeListLiveStreamMerge["InAppName1"].isNull())
|
||||
liveStreamMergeListObject.inAppName1 = valueLiveStreamMergeListLiveStreamMerge["InAppName1"].asString();
|
||||
if(!valueLiveStreamMergeListLiveStreamMerge["InAppName2"].isNull())
|
||||
liveStreamMergeListObject.inAppName2 = valueLiveStreamMergeListLiveStreamMerge["InAppName2"].asString();
|
||||
if(!valueLiveStreamMergeListLiveStreamMerge["InStreamName1"].isNull())
|
||||
liveStreamMergeListObject.inStreamName1 = valueLiveStreamMergeListLiveStreamMerge["InStreamName1"].asString();
|
||||
if(!valueLiveStreamMergeListLiveStreamMerge["InStreamName2"].isNull())
|
||||
liveStreamMergeListObject.inStreamName2 = valueLiveStreamMergeListLiveStreamMerge["InStreamName2"].asString();
|
||||
if(!valueLiveStreamMergeListLiveStreamMerge["Protocol"].isNull())
|
||||
liveStreamMergeListObject.protocol = valueLiveStreamMergeListLiveStreamMerge["Protocol"].asString();
|
||||
if(!valueLiveStreamMergeListLiveStreamMerge["StartTime"].isNull())
|
||||
liveStreamMergeListObject.startTime = valueLiveStreamMergeListLiveStreamMerge["StartTime"].asString();
|
||||
if(!valueLiveStreamMergeListLiveStreamMerge["StreamName"].isNull())
|
||||
liveStreamMergeListObject.streamName = valueLiveStreamMergeListLiveStreamMerge["StreamName"].asString();
|
||||
if(!valueLiveStreamMergeListLiveStreamMerge["StreamUsing"].isNull())
|
||||
liveStreamMergeListObject.streamUsing = valueLiveStreamMergeListLiveStreamMerge["StreamUsing"].asString();
|
||||
liveStreamMergeList_.push_back(liveStreamMergeListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamMergeResult::LiveStreamMerge> DescribeLiveStreamMergeResult::getLiveStreamMergeList()const
|
||||
{
|
||||
return liveStreamMergeList_;
|
||||
}
|
||||
|
||||
63
live/src/model/DescribeMeterLiveBypassDurationRequest.cc
Normal file
63
live/src/model/DescribeMeterLiveBypassDurationRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/DescribeMeterLiveBypassDurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DescribeMeterLiveBypassDurationRequest;
|
||||
|
||||
DescribeMeterLiveBypassDurationRequest::DescribeMeterLiveBypassDurationRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DescribeMeterLiveBypassDuration") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMeterLiveBypassDurationRequest::~DescribeMeterLiveBypassDurationRequest() {}
|
||||
|
||||
std::string DescribeMeterLiveBypassDurationRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeMeterLiveBypassDurationRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
std::string DescribeMeterLiveBypassDurationRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeMeterLiveBypassDurationRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
std::string DescribeMeterLiveBypassDurationRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeMeterLiveBypassDurationRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string DescribeMeterLiveBypassDurationRequest::getInterval() const {
|
||||
return interval_;
|
||||
}
|
||||
|
||||
void DescribeMeterLiveBypassDurationRequest::setInterval(const std::string &interval) {
|
||||
interval_ = interval;
|
||||
setParameter(std::string("Interval"), interval);
|
||||
}
|
||||
|
||||
120
live/src/model/DescribeMeterLiveBypassDurationResult.cc
Normal file
120
live/src/model/DescribeMeterLiveBypassDurationResult.cc
Normal file
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* 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/DescribeMeterLiveBypassDurationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DescribeMeterLiveBypassDurationResult::DescribeMeterLiveBypassDurationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMeterLiveBypassDurationResult::DescribeMeterLiveBypassDurationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMeterLiveBypassDurationResult::~DescribeMeterLiveBypassDurationResult()
|
||||
{}
|
||||
|
||||
void DescribeMeterLiveBypassDurationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["AudioDuration"].isNull())
|
||||
dataObject.audioDuration = std::stol(valueDataDataItem["AudioDuration"].asString());
|
||||
if(!valueDataDataItem["Single_Audio"].isNull())
|
||||
dataObject.single_Audio = std::stol(valueDataDataItem["Single_Audio"].asString());
|
||||
if(!valueDataDataItem["Single_Video"].isNull())
|
||||
dataObject.single_Video = std::stol(valueDataDataItem["Single_Video"].asString());
|
||||
if(!valueDataDataItem["Timestamp"].isNull())
|
||||
dataObject.timestamp = valueDataDataItem["Timestamp"].asString();
|
||||
if(!valueDataDataItem["TotalDuration"].isNull())
|
||||
dataObject.totalDuration = std::stol(valueDataDataItem["TotalDuration"].asString());
|
||||
if(!valueDataDataItem["V480Duration"].isNull())
|
||||
dataObject.v480Duration = std::stol(valueDataDataItem["V480Duration"].asString());
|
||||
if(!valueDataDataItem["V720Duration"].isNull())
|
||||
dataObject.v720Duration = std::stol(valueDataDataItem["V720Duration"].asString());
|
||||
if(!valueDataDataItem["V1080Duration"].isNull())
|
||||
dataObject.v1080Duration = std::stol(valueDataDataItem["V1080Duration"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["AudioSummaryDuration"].isNull())
|
||||
audioSummaryDuration_ = std::stol(value["AudioSummaryDuration"].asString());
|
||||
if(!value["SingleAudioSummaryDuration"].isNull())
|
||||
singleAudioSummaryDuration_ = std::stol(value["SingleAudioSummaryDuration"].asString());
|
||||
if(!value["SingleVideoSummaryDuration"].isNull())
|
||||
singleVideoSummaryDuration_ = std::stol(value["SingleVideoSummaryDuration"].asString());
|
||||
if(!value["TotalSummaryDuration"].isNull())
|
||||
totalSummaryDuration_ = std::stol(value["TotalSummaryDuration"].asString());
|
||||
if(!value["V480SummaryDuration"].isNull())
|
||||
v480SummaryDuration_ = std::stol(value["V480SummaryDuration"].asString());
|
||||
if(!value["V720SummaryDuration"].isNull())
|
||||
v720SummaryDuration_ = std::stol(value["V720SummaryDuration"].asString());
|
||||
if(!value["V1080SummaryDuration"].isNull())
|
||||
v1080SummaryDuration_ = std::stol(value["V1080SummaryDuration"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeMeterLiveBypassDurationResult::getV480SummaryDuration()const
|
||||
{
|
||||
return v480SummaryDuration_;
|
||||
}
|
||||
|
||||
long DescribeMeterLiveBypassDurationResult::getV1080SummaryDuration()const
|
||||
{
|
||||
return v1080SummaryDuration_;
|
||||
}
|
||||
|
||||
long DescribeMeterLiveBypassDurationResult::getV720SummaryDuration()const
|
||||
{
|
||||
return v720SummaryDuration_;
|
||||
}
|
||||
|
||||
std::vector<DescribeMeterLiveBypassDurationResult::DataItem> DescribeMeterLiveBypassDurationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
long DescribeMeterLiveBypassDurationResult::getAudioSummaryDuration()const
|
||||
{
|
||||
return audioSummaryDuration_;
|
||||
}
|
||||
|
||||
long DescribeMeterLiveBypassDurationResult::getTotalSummaryDuration()const
|
||||
{
|
||||
return totalSummaryDuration_;
|
||||
}
|
||||
|
||||
long DescribeMeterLiveBypassDurationResult::getSingleAudioSummaryDuration()const
|
||||
{
|
||||
return singleAudioSummaryDuration_;
|
||||
}
|
||||
|
||||
long DescribeMeterLiveBypassDurationResult::getSingleVideoSummaryDuration()const
|
||||
{
|
||||
return singleVideoSummaryDuration_;
|
||||
}
|
||||
|
||||
@@ -43,10 +43,10 @@ void DescribeMeterLiveInteractionDauResult::parse(const std::string &payload)
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Timestamp"].isNull())
|
||||
dataObject.timestamp = std::stol(valueDataDataItem["Timestamp"].asString());
|
||||
if(!valueDataDataItem["Dau"].isNull())
|
||||
dataObject.dau = valueDataDataItem["Dau"].asString();
|
||||
if(!valueDataDataItem["Timestamp"].isNull())
|
||||
dataObject.timestamp = std::stol(valueDataDataItem["Timestamp"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["PeakDau"].isNull())
|
||||
|
||||
@@ -43,12 +43,12 @@ void DescribeMeterLiveRtcDurationResult::parse(const std::string &payload)
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["AudioDuration"].isNull())
|
||||
dataObject.audioDuration = std::stol(valueDataDataItem["AudioDuration"].asString());
|
||||
if(!valueDataDataItem["Timestamp"].isNull())
|
||||
dataObject.timestamp = valueDataDataItem["Timestamp"].asString();
|
||||
if(!valueDataDataItem["TotalDuration"].isNull())
|
||||
dataObject.totalDuration = std::stol(valueDataDataItem["TotalDuration"].asString());
|
||||
if(!valueDataDataItem["AudioDuration"].isNull())
|
||||
dataObject.audioDuration = std::stol(valueDataDataItem["AudioDuration"].asString());
|
||||
if(!valueDataDataItem["V480Duration"].isNull())
|
||||
dataObject.v480Duration = std::stol(valueDataDataItem["V480Duration"].asString());
|
||||
if(!valueDataDataItem["V720Duration"].isNull())
|
||||
@@ -57,10 +57,10 @@ void DescribeMeterLiveRtcDurationResult::parse(const std::string &payload)
|
||||
dataObject.v1080Duration = std::stol(valueDataDataItem["V1080Duration"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["TotalSummaryDuration"].isNull())
|
||||
totalSummaryDuration_ = std::stol(value["TotalSummaryDuration"].asString());
|
||||
if(!value["AudioSummaryDuration"].isNull())
|
||||
audioSummaryDuration_ = std::stol(value["AudioSummaryDuration"].asString());
|
||||
if(!value["TotalSummaryDuration"].isNull())
|
||||
totalSummaryDuration_ = std::stol(value["TotalSummaryDuration"].asString());
|
||||
if(!value["V480SummaryDuration"].isNull())
|
||||
v480SummaryDuration_ = std::stol(value["V480SummaryDuration"].asString());
|
||||
if(!value["V720SummaryDuration"].isNull())
|
||||
@@ -90,13 +90,13 @@ std::vector<DescribeMeterLiveRtcDurationResult::DataItem> DescribeMeterLiveRtcDu
|
||||
return data_;
|
||||
}
|
||||
|
||||
long DescribeMeterLiveRtcDurationResult::getTotalSummaryDuration()const
|
||||
{
|
||||
return totalSummaryDuration_;
|
||||
}
|
||||
|
||||
long DescribeMeterLiveRtcDurationResult::getAudioSummaryDuration()const
|
||||
{
|
||||
return audioSummaryDuration_;
|
||||
}
|
||||
|
||||
long DescribeMeterLiveRtcDurationResult::getTotalSummaryDuration()const
|
||||
{
|
||||
return totalSummaryDuration_;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,26 +43,26 @@ void DescribeRTSNativeSDKFirstFrameCostResult::parse(const std::string &payload)
|
||||
for (auto valueFirstFrameCostDataData : allFirstFrameCostDataNode)
|
||||
{
|
||||
Data firstFrameCostDataObject;
|
||||
if(!valueFirstFrameCostDataData["TimeStamp"].isNull())
|
||||
firstFrameCostDataObject.timeStamp = valueFirstFrameCostDataData["TimeStamp"].asString();
|
||||
if(!valueFirstFrameCostDataData["Initialized"].isNull())
|
||||
firstFrameCostDataObject.initialized = valueFirstFrameCostDataData["Initialized"].asString();
|
||||
if(!valueFirstFrameCostDataData["Connected"].isNull())
|
||||
firstFrameCostDataObject.connected = valueFirstFrameCostDataData["Connected"].asString();
|
||||
if(!valueFirstFrameCostDataData["FinishGetStreamInfo"].isNull())
|
||||
firstFrameCostDataObject.finishGetStreamInfo = valueFirstFrameCostDataData["FinishGetStreamInfo"].asString();
|
||||
if(!valueFirstFrameCostDataData["FirstPacket"].isNull())
|
||||
firstFrameCostDataObject.firstPacket = valueFirstFrameCostDataData["FirstPacket"].asString();
|
||||
if(!valueFirstFrameCostDataData["FirstFrameComplete"].isNull())
|
||||
firstFrameCostDataObject.firstFrameComplete = valueFirstFrameCostDataData["FirstFrameComplete"].asString();
|
||||
if(!valueFirstFrameCostDataData["FirstPacket"].isNull())
|
||||
firstFrameCostDataObject.firstPacket = valueFirstFrameCostDataData["FirstPacket"].asString();
|
||||
if(!valueFirstFrameCostDataData["Initialized"].isNull())
|
||||
firstFrameCostDataObject.initialized = valueFirstFrameCostDataData["Initialized"].asString();
|
||||
if(!valueFirstFrameCostDataData["TimeStamp"].isNull())
|
||||
firstFrameCostDataObject.timeStamp = valueFirstFrameCostDataData["TimeStamp"].asString();
|
||||
firstFrameCostData_.push_back(firstFrameCostDataObject);
|
||||
}
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,18 +43,18 @@ void DescribeRTSNativeSDKFirstFrameDelayResult::parse(const std::string &payload
|
||||
for (auto valueFrameDelayDataData : allFrameDelayDataNode)
|
||||
{
|
||||
Data frameDelayDataObject;
|
||||
if(!valueFrameDelayDataData["TimeStamp"].isNull())
|
||||
frameDelayDataObject.timeStamp = valueFrameDelayDataData["TimeStamp"].asString();
|
||||
if(!valueFrameDelayDataData["FrameDelay"].isNull())
|
||||
frameDelayDataObject.frameDelay = valueFrameDelayDataData["FrameDelay"].asString();
|
||||
if(!valueFrameDelayDataData["TimeStamp"].isNull())
|
||||
frameDelayDataObject.timeStamp = valueFrameDelayDataData["TimeStamp"].asString();
|
||||
frameDelayData_.push_back(frameDelayDataObject);
|
||||
}
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -61,10 +61,10 @@ void DescribeRTSNativeSDKPlayFailStatusResult::parse(const std::string &payload)
|
||||
}
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,20 +43,20 @@ void DescribeRTSNativeSDKPlayTimeResult::parse(const std::string &payload)
|
||||
for (auto valuePlayTimeDataData : allPlayTimeDataNode)
|
||||
{
|
||||
Data playTimeDataObject;
|
||||
if(!valuePlayTimeDataData["TimeStamp"].isNull())
|
||||
playTimeDataObject.timeStamp = valuePlayTimeDataData["TimeStamp"].asString();
|
||||
if(!valuePlayTimeDataData["PlayTime"].isNull())
|
||||
playTimeDataObject.playTime = valuePlayTimeDataData["PlayTime"].asString();
|
||||
if(!valuePlayTimeDataData["StallTime"].isNull())
|
||||
playTimeDataObject.stallTime = valuePlayTimeDataData["StallTime"].asString();
|
||||
if(!valuePlayTimeDataData["TimeStamp"].isNull())
|
||||
playTimeDataObject.timeStamp = valuePlayTimeDataData["TimeStamp"].asString();
|
||||
playTimeData_.push_back(playTimeDataObject);
|
||||
}
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -45,18 +45,18 @@ void DescribeRTSNativeSDKVvDataResult::parse(const std::string &payload)
|
||||
Data vvDataObject;
|
||||
if(!valueVvDataData["TimeStamp"].isNull())
|
||||
vvDataObject.timeStamp = valueVvDataData["TimeStamp"].asString();
|
||||
if(!valueVvDataData["VvTotal"].isNull())
|
||||
vvDataObject.vvTotal = valueVvDataData["VvTotal"].asString();
|
||||
if(!valueVvDataData["VvSuccess"].isNull())
|
||||
vvDataObject.vvSuccess = valueVvDataData["VvSuccess"].asString();
|
||||
if(!valueVvDataData["VvTotal"].isNull())
|
||||
vvDataObject.vvTotal = valueVvDataData["VvTotal"].asString();
|
||||
vvData_.push_back(vvDataObject);
|
||||
}
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,37 +40,37 @@ void DescribeShowListResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto showListInfoNode = value["ShowListInfo"];
|
||||
if(!showListInfoNode["HighPriorityShowStartTime"].isNull())
|
||||
showListInfo_.highPriorityShowStartTime = showListInfoNode["HighPriorityShowStartTime"].asString();
|
||||
if(!showListInfoNode["TotalShowListRepeatTimes"].isNull())
|
||||
showListInfo_.totalShowListRepeatTimes = std::stoi(showListInfoNode["TotalShowListRepeatTimes"].asString());
|
||||
if(!showListInfoNode["ShowListRepeatTimes"].isNull())
|
||||
showListInfo_.showListRepeatTimes = std::stoi(showListInfoNode["ShowListRepeatTimes"].asString());
|
||||
if(!showListInfoNode["CurrentShowId"].isNull())
|
||||
showListInfo_.currentShowId = showListInfoNode["CurrentShowId"].asString();
|
||||
if(!showListInfoNode["HighPriorityShowId"].isNull())
|
||||
showListInfo_.highPriorityShowId = showListInfoNode["HighPriorityShowId"].asString();
|
||||
if(!showListInfoNode["HighPriorityShowStartTime"].isNull())
|
||||
showListInfo_.highPriorityShowStartTime = showListInfoNode["HighPriorityShowStartTime"].asString();
|
||||
if(!showListInfoNode["ShowListRepeatTimes"].isNull())
|
||||
showListInfo_.showListRepeatTimes = std::stoi(showListInfoNode["ShowListRepeatTimes"].asString());
|
||||
if(!showListInfoNode["TotalShowListRepeatTimes"].isNull())
|
||||
showListInfo_.totalShowListRepeatTimes = std::stoi(showListInfoNode["TotalShowListRepeatTimes"].asString());
|
||||
auto allShowListNode = showListInfoNode["ShowList"]["Show"];
|
||||
for (auto showListInfoNodeShowListShow : allShowListNode)
|
||||
{
|
||||
ShowListInfo::Show showObject;
|
||||
if(!showListInfoNodeShowListShow["ShowName"].isNull())
|
||||
showObject.showName = showListInfoNodeShowListShow["ShowName"].asString();
|
||||
if(!showListInfoNodeShowListShow["Duration"].isNull())
|
||||
showObject.duration = std::stol(showListInfoNodeShowListShow["Duration"].asString());
|
||||
if(!showListInfoNodeShowListShow["RepeatTimes"].isNull())
|
||||
showObject.repeatTimes = std::stoi(showListInfoNodeShowListShow["RepeatTimes"].asString());
|
||||
if(!showListInfoNodeShowListShow["ShowId"].isNull())
|
||||
showObject.showId = showListInfoNodeShowListShow["ShowId"].asString();
|
||||
if(!showListInfoNodeShowListShow["ShowName"].isNull())
|
||||
showObject.showName = showListInfoNodeShowListShow["ShowName"].asString();
|
||||
auto resourceInfoNode = value["ResourceInfo"];
|
||||
if(!resourceInfoNode["LiveInputType"].isNull())
|
||||
showObject.resourceInfo.liveInputType = std::stoi(resourceInfoNode["LiveInputType"].asString());
|
||||
if(!resourceInfoNode["ResourceUrl"].isNull())
|
||||
showObject.resourceInfo.resourceUrl = resourceInfoNode["ResourceUrl"].asString();
|
||||
if(!resourceInfoNode["ResourceType"].isNull())
|
||||
showObject.resourceInfo.resourceType = resourceInfoNode["ResourceType"].asString();
|
||||
if(!resourceInfoNode["ResourceId"].isNull())
|
||||
showObject.resourceInfo.resourceId = resourceInfoNode["ResourceId"].asString();
|
||||
if(!resourceInfoNode["ResourceType"].isNull())
|
||||
showObject.resourceInfo.resourceType = resourceInfoNode["ResourceType"].asString();
|
||||
if(!resourceInfoNode["ResourceUrl"].isNull())
|
||||
showObject.resourceInfo.resourceUrl = resourceInfoNode["ResourceUrl"].asString();
|
||||
showListInfo_.showList.push_back(showObject);
|
||||
}
|
||||
if(!value["ShowList"].isNull())
|
||||
|
||||
@@ -40,28 +40,28 @@ void GetEdgeTranscodeJobResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobNode = value["Job"];
|
||||
if(!jobNode["Status"].isNull())
|
||||
job_.status = jobNode["Status"].asString();
|
||||
if(!jobNode["Type"].isNull())
|
||||
job_.type = jobNode["Type"].asString();
|
||||
if(!jobNode["StreamInput"].isNull())
|
||||
job_.streamInput = jobNode["StreamInput"].asString();
|
||||
if(!jobNode["StreamOutput"].isNull())
|
||||
job_.streamOutput = jobNode["StreamOutput"].asString();
|
||||
if(!jobNode["LastStopAt"].isNull())
|
||||
job_.lastStopAt = jobNode["LastStopAt"].asString();
|
||||
if(!jobNode["LastStartAt"].isNull())
|
||||
job_.lastStartAt = jobNode["LastStartAt"].asString();
|
||||
if(!jobNode["CreateTime"].isNull())
|
||||
job_.createTime = jobNode["CreateTime"].asString();
|
||||
if(!jobNode["JobId"].isNull())
|
||||
job_.jobId = jobNode["JobId"].asString();
|
||||
if(!jobNode["TemplateName"].isNull())
|
||||
job_.templateName = jobNode["TemplateName"].asString();
|
||||
if(!jobNode["LastStartAt"].isNull())
|
||||
job_.lastStartAt = jobNode["LastStartAt"].asString();
|
||||
if(!jobNode["LastStopAt"].isNull())
|
||||
job_.lastStopAt = jobNode["LastStopAt"].asString();
|
||||
if(!jobNode["Name"].isNull())
|
||||
job_.name = jobNode["Name"].asString();
|
||||
if(!jobNode["Status"].isNull())
|
||||
job_.status = jobNode["Status"].asString();
|
||||
if(!jobNode["StreamInput"].isNull())
|
||||
job_.streamInput = jobNode["StreamInput"].asString();
|
||||
if(!jobNode["StreamOutput"].isNull())
|
||||
job_.streamOutput = jobNode["StreamOutput"].asString();
|
||||
if(!jobNode["TemplateId"].isNull())
|
||||
job_.templateId = jobNode["TemplateId"].asString();
|
||||
if(!jobNode["TemplateName"].isNull())
|
||||
job_.templateName = jobNode["TemplateName"].asString();
|
||||
if(!jobNode["Type"].isNull())
|
||||
job_.type = jobNode["Type"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,24 +40,24 @@ void GetEdgeTranscodeTemplateResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _templateNode = value["Template"];
|
||||
if(!_templateNode["Type"].isNull())
|
||||
_template_.type = _templateNode["Type"].asString();
|
||||
if(!_templateNode["Gop"].isNull())
|
||||
_template_.gop = _templateNode["Gop"].asString();
|
||||
if(!_templateNode["CreateTime"].isNull())
|
||||
_template_.createTime = _templateNode["CreateTime"].asString();
|
||||
if(!_templateNode["Codec"].isNull())
|
||||
_template_.codec = _templateNode["Codec"].asString();
|
||||
if(!_templateNode["Fps"].isNull())
|
||||
_template_.fps = _templateNode["Fps"].asString();
|
||||
if(!_templateNode["Bitrate"].isNull())
|
||||
_template_.bitrate = _templateNode["Bitrate"].asString();
|
||||
if(!_templateNode["Codec"].isNull())
|
||||
_template_.codec = _templateNode["Codec"].asString();
|
||||
if(!_templateNode["CreateTime"].isNull())
|
||||
_template_.createTime = _templateNode["CreateTime"].asString();
|
||||
if(!_templateNode["Fps"].isNull())
|
||||
_template_.fps = _templateNode["Fps"].asString();
|
||||
if(!_templateNode["Gop"].isNull())
|
||||
_template_.gop = _templateNode["Gop"].asString();
|
||||
if(!_templateNode["Name"].isNull())
|
||||
_template_.name = _templateNode["Name"].asString();
|
||||
if(!_templateNode["Resolution"].isNull())
|
||||
_template_.resolution = _templateNode["Resolution"].asString();
|
||||
if(!_templateNode["TemplateId"].isNull())
|
||||
_template_.templateId = _templateNode["TemplateId"].asString();
|
||||
if(!_templateNode["Type"].isNull())
|
||||
_template_.type = _templateNode["Type"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,18 +40,18 @@ void GetMessageAppResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["AppConfig"].isNull())
|
||||
result_.appConfig = resultNode["AppConfig"].asString();
|
||||
if(!resultNode["AppId"].isNull())
|
||||
result_.appId = resultNode["AppId"].asString();
|
||||
if(!resultNode["AppName"].isNull())
|
||||
result_.appName = resultNode["AppName"].asString();
|
||||
if(!resultNode["CreateTime"].isNull())
|
||||
result_.createTime = std::stol(resultNode["CreateTime"].asString());
|
||||
if(!resultNode["Status"].isNull())
|
||||
result_.status = std::stoi(resultNode["Status"].asString());
|
||||
if(!resultNode["AppConfig"].isNull())
|
||||
result_.appConfig = resultNode["AppConfig"].asString();
|
||||
if(!resultNode["Extension"].isNull())
|
||||
result_.extension = resultNode["Extension"].asString();
|
||||
if(!resultNode["Status"].isNull())
|
||||
result_.status = std::stoi(resultNode["Status"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,18 +40,18 @@ void GetMessageGroupResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["GroupId"].isNull())
|
||||
result_.groupId = resultNode["GroupId"].asString();
|
||||
if(!resultNode["CreateTime"].isNull())
|
||||
result_.createTime = std::stol(resultNode["CreateTime"].asString());
|
||||
if(!resultNode["Status"].isNull())
|
||||
result_.status = std::stoi(resultNode["Status"].asString());
|
||||
if(!resultNode["CreatorId"].isNull())
|
||||
result_.creatorId = resultNode["CreatorId"].asString();
|
||||
if(!resultNode["Extension"].isNull())
|
||||
result_.extension = resultNode["Extension"].asString();
|
||||
if(!resultNode["GroupId"].isNull())
|
||||
result_.groupId = resultNode["GroupId"].asString();
|
||||
if(!resultNode["IsMuteAll"].isNull())
|
||||
result_.isMuteAll = resultNode["IsMuteAll"].asString() == "true";
|
||||
if(!resultNode["Status"].isNull())
|
||||
result_.status = std::stoi(resultNode["Status"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -42,10 +42,10 @@ void GetMessageTokenResult::parse(const std::string &payload)
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["AccessToken"].isNull())
|
||||
result_.accessToken = resultNode["AccessToken"].asString();
|
||||
if(!resultNode["RefreshToken"].isNull())
|
||||
result_.refreshToken = resultNode["RefreshToken"].asString();
|
||||
if(!resultNode["AccessTokenExpiredTime"].isNull())
|
||||
result_.accessTokenExpiredTime = std::stol(resultNode["AccessTokenExpiredTime"].asString());
|
||||
if(!resultNode["RefreshToken"].isNull())
|
||||
result_.refreshToken = resultNode["RefreshToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,28 +43,28 @@ void ListEdgeTranscodeJobResult::parse(const std::string &payload)
|
||||
for (auto valueJobListJob : allJobListNode)
|
||||
{
|
||||
Job jobListObject;
|
||||
if(!valueJobListJob["Status"].isNull())
|
||||
jobListObject.status = valueJobListJob["Status"].asString();
|
||||
if(!valueJobListJob["Type"].isNull())
|
||||
jobListObject.type = valueJobListJob["Type"].asString();
|
||||
if(!valueJobListJob["StreamInput"].isNull())
|
||||
jobListObject.streamInput = valueJobListJob["StreamInput"].asString();
|
||||
if(!valueJobListJob["StreamOutput"].isNull())
|
||||
jobListObject.streamOutput = valueJobListJob["StreamOutput"].asString();
|
||||
if(!valueJobListJob["LastStopAt"].isNull())
|
||||
jobListObject.lastStopAt = valueJobListJob["LastStopAt"].asString();
|
||||
if(!valueJobListJob["LastStartAt"].isNull())
|
||||
jobListObject.lastStartAt = valueJobListJob["LastStartAt"].asString();
|
||||
if(!valueJobListJob["CreateTime"].isNull())
|
||||
jobListObject.createTime = valueJobListJob["CreateTime"].asString();
|
||||
if(!valueJobListJob["JobId"].isNull())
|
||||
jobListObject.jobId = valueJobListJob["JobId"].asString();
|
||||
if(!valueJobListJob["TemplateName"].isNull())
|
||||
jobListObject.templateName = valueJobListJob["TemplateName"].asString();
|
||||
if(!valueJobListJob["LastStartAt"].isNull())
|
||||
jobListObject.lastStartAt = valueJobListJob["LastStartAt"].asString();
|
||||
if(!valueJobListJob["LastStopAt"].isNull())
|
||||
jobListObject.lastStopAt = valueJobListJob["LastStopAt"].asString();
|
||||
if(!valueJobListJob["Name"].isNull())
|
||||
jobListObject.name = valueJobListJob["Name"].asString();
|
||||
if(!valueJobListJob["Status"].isNull())
|
||||
jobListObject.status = valueJobListJob["Status"].asString();
|
||||
if(!valueJobListJob["StreamInput"].isNull())
|
||||
jobListObject.streamInput = valueJobListJob["StreamInput"].asString();
|
||||
if(!valueJobListJob["StreamOutput"].isNull())
|
||||
jobListObject.streamOutput = valueJobListJob["StreamOutput"].asString();
|
||||
if(!valueJobListJob["TemplateId"].isNull())
|
||||
jobListObject.templateId = valueJobListJob["TemplateId"].asString();
|
||||
if(!valueJobListJob["TemplateName"].isNull())
|
||||
jobListObject.templateName = valueJobListJob["TemplateName"].asString();
|
||||
if(!valueJobListJob["Type"].isNull())
|
||||
jobListObject.type = valueJobListJob["Type"].asString();
|
||||
jobList_.push_back(jobListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -43,24 +43,24 @@ void ListEdgeTranscodeTemplateResult::parse(const std::string &payload)
|
||||
for (auto valueTemplateListTemplate : allTemplateListNode)
|
||||
{
|
||||
_Template templateListObject;
|
||||
if(!valueTemplateListTemplate["Type"].isNull())
|
||||
templateListObject.type = valueTemplateListTemplate["Type"].asString();
|
||||
if(!valueTemplateListTemplate["Gop"].isNull())
|
||||
templateListObject.gop = valueTemplateListTemplate["Gop"].asString();
|
||||
if(!valueTemplateListTemplate["CreateTime"].isNull())
|
||||
templateListObject.createTime = valueTemplateListTemplate["CreateTime"].asString();
|
||||
if(!valueTemplateListTemplate["Codec"].isNull())
|
||||
templateListObject.codec = valueTemplateListTemplate["Codec"].asString();
|
||||
if(!valueTemplateListTemplate["Fps"].isNull())
|
||||
templateListObject.fps = valueTemplateListTemplate["Fps"].asString();
|
||||
if(!valueTemplateListTemplate["Bitrate"].isNull())
|
||||
templateListObject.bitrate = valueTemplateListTemplate["Bitrate"].asString();
|
||||
if(!valueTemplateListTemplate["Codec"].isNull())
|
||||
templateListObject.codec = valueTemplateListTemplate["Codec"].asString();
|
||||
if(!valueTemplateListTemplate["CreateTime"].isNull())
|
||||
templateListObject.createTime = valueTemplateListTemplate["CreateTime"].asString();
|
||||
if(!valueTemplateListTemplate["Fps"].isNull())
|
||||
templateListObject.fps = valueTemplateListTemplate["Fps"].asString();
|
||||
if(!valueTemplateListTemplate["Gop"].isNull())
|
||||
templateListObject.gop = valueTemplateListTemplate["Gop"].asString();
|
||||
if(!valueTemplateListTemplate["Name"].isNull())
|
||||
templateListObject.name = valueTemplateListTemplate["Name"].asString();
|
||||
if(!valueTemplateListTemplate["Resolution"].isNull())
|
||||
templateListObject.resolution = valueTemplateListTemplate["Resolution"].asString();
|
||||
if(!valueTemplateListTemplate["TemplateId"].isNull())
|
||||
templateListObject.templateId = valueTemplateListTemplate["TemplateId"].asString();
|
||||
if(!valueTemplateListTemplate["Type"].isNull())
|
||||
templateListObject.type = valueTemplateListTemplate["Type"].asString();
|
||||
templateList_.push_back(templateListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -47,18 +47,18 @@ void ListLiveMessageAppsResult::parse(const std::string &payload)
|
||||
appListObject.appId = valueAppListApps["AppId"].asString();
|
||||
if(!valueAppListApps["AppKey"].isNull())
|
||||
appListObject.appKey = valueAppListApps["AppKey"].asString();
|
||||
if(!valueAppListApps["AppSign"].isNull())
|
||||
appListObject.appSign = valueAppListApps["AppSign"].asString();
|
||||
if(!valueAppListApps["Disable"].isNull())
|
||||
appListObject.disable = valueAppListApps["Disable"].asString();
|
||||
if(!valueAppListApps["AppName"].isNull())
|
||||
appListObject.appName = valueAppListApps["AppName"].asString();
|
||||
if(!valueAppListApps["AppSign"].isNull())
|
||||
appListObject.appSign = valueAppListApps["AppSign"].asString();
|
||||
if(!valueAppListApps["CreateTime"].isNull())
|
||||
appListObject.createTime = std::stol(valueAppListApps["CreateTime"].asString());
|
||||
if(!valueAppListApps["ModifyTime"].isNull())
|
||||
appListObject.modifyTime = std::stol(valueAppListApps["ModifyTime"].asString());
|
||||
if(!valueAppListApps["DataCenter"].isNull())
|
||||
appListObject.dataCenter = valueAppListApps["DataCenter"].asString();
|
||||
if(!valueAppListApps["Disable"].isNull())
|
||||
appListObject.disable = valueAppListApps["Disable"].asString();
|
||||
if(!valueAppListApps["ModifyTime"].isNull())
|
||||
appListObject.modifyTime = std::stol(valueAppListApps["ModifyTime"].asString());
|
||||
appList_.push_back(appListObject);
|
||||
}
|
||||
if(!value["HasMore"].isNull())
|
||||
|
||||
@@ -34,6 +34,15 @@ void ListLiveMessageGroupsRequest::setSortType(int sortType) {
|
||||
setParameter(std::string("SortType"), std::to_string(sortType));
|
||||
}
|
||||
|
||||
int ListLiveMessageGroupsRequest::getGroupStatus() const {
|
||||
return groupStatus_;
|
||||
}
|
||||
|
||||
void ListLiveMessageGroupsRequest::setGroupStatus(int groupStatus) {
|
||||
groupStatus_ = groupStatus;
|
||||
setParameter(std::string("GroupStatus"), std::to_string(groupStatus));
|
||||
}
|
||||
|
||||
long ListLiveMessageGroupsRequest::getNextPageToken() const {
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
@@ -40,26 +40,26 @@ void ListMessageAppResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Total"].isNull())
|
||||
result_.total = std::stoi(resultNode["Total"].asString());
|
||||
if(!resultNode["HasMore"].isNull())
|
||||
result_.hasMore = resultNode["HasMore"].asString() == "true";
|
||||
if(!resultNode["Total"].isNull())
|
||||
result_.total = std::stoi(resultNode["Total"].asString());
|
||||
auto allAppListNode = resultNode["AppList"]["appListItem"];
|
||||
for (auto resultNodeAppListappListItem : allAppListNode)
|
||||
{
|
||||
Result::AppListItem appListItemObject;
|
||||
if(!resultNodeAppListappListItem["AppConfig"].isNull())
|
||||
appListItemObject.appConfig = resultNodeAppListappListItem["AppConfig"].asString();
|
||||
if(!resultNodeAppListappListItem["AppId"].isNull())
|
||||
appListItemObject.appId = resultNodeAppListappListItem["AppId"].asString();
|
||||
if(!resultNodeAppListappListItem["AppName"].isNull())
|
||||
appListItemObject.appName = resultNodeAppListappListItem["AppName"].asString();
|
||||
if(!resultNodeAppListappListItem["CreateTime"].isNull())
|
||||
appListItemObject.createTime = std::stol(resultNodeAppListappListItem["CreateTime"].asString());
|
||||
if(!resultNodeAppListappListItem["Status"].isNull())
|
||||
appListItemObject.status = std::stoi(resultNodeAppListappListItem["Status"].asString());
|
||||
if(!resultNodeAppListappListItem["AppConfig"].isNull())
|
||||
appListItemObject.appConfig = resultNodeAppListappListItem["AppConfig"].asString();
|
||||
if(!resultNodeAppListappListItem["Extension"].isNull())
|
||||
appListItemObject.extension = resultNodeAppListappListItem["Extension"].asString();
|
||||
if(!resultNodeAppListappListItem["Status"].isNull())
|
||||
appListItemObject.status = std::stoi(resultNodeAppListappListItem["Status"].asString());
|
||||
result_.appList.push_back(appListItemObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,26 +40,26 @@ void ListMessageGroupResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Total"].isNull())
|
||||
result_.total = std::stoi(resultNode["Total"].asString());
|
||||
if(!resultNode["HasMore"].isNull())
|
||||
result_.hasMore = resultNode["HasMore"].asString() == "true";
|
||||
if(!resultNode["Total"].isNull())
|
||||
result_.total = std::stoi(resultNode["Total"].asString());
|
||||
auto allGroupListNode = resultNode["GroupList"]["groupListItem"];
|
||||
for (auto resultNodeGroupListgroupListItem : allGroupListNode)
|
||||
{
|
||||
Result::GroupListItem groupListItemObject;
|
||||
if(!resultNodeGroupListgroupListItem["GroupId"].isNull())
|
||||
groupListItemObject.groupId = resultNodeGroupListgroupListItem["GroupId"].asString();
|
||||
if(!resultNodeGroupListgroupListItem["AppId"].isNull())
|
||||
groupListItemObject.appId = resultNodeGroupListgroupListItem["AppId"].asString();
|
||||
if(!resultNodeGroupListgroupListItem["CreateTime"].isNull())
|
||||
groupListItemObject.createTime = std::stol(resultNodeGroupListgroupListItem["CreateTime"].asString());
|
||||
if(!resultNodeGroupListgroupListItem["Status"].isNull())
|
||||
groupListItemObject.status = std::stoi(resultNodeGroupListgroupListItem["Status"].asString());
|
||||
if(!resultNodeGroupListgroupListItem["CreatorId"].isNull())
|
||||
groupListItemObject.creatorId = resultNodeGroupListgroupListItem["CreatorId"].asString();
|
||||
if(!resultNodeGroupListgroupListItem["Extension"].isNull())
|
||||
groupListItemObject.extension = resultNodeGroupListgroupListItem["Extension"].asString();
|
||||
if(!resultNodeGroupListgroupListItem["GroupId"].isNull())
|
||||
groupListItemObject.groupId = resultNodeGroupListgroupListItem["GroupId"].asString();
|
||||
if(!resultNodeGroupListgroupListItem["Status"].isNull())
|
||||
groupListItemObject.status = std::stoi(resultNodeGroupListgroupListItem["Status"].asString());
|
||||
result_.groupList.push_back(groupListItemObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,24 +40,24 @@ void ListMessageGroupUserByIdResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Total"].isNull())
|
||||
result_.total = std::stoi(resultNode["Total"].asString());
|
||||
if(!resultNode["HasMore"].isNull())
|
||||
result_.hasMore = resultNode["HasMore"].asString() == "true";
|
||||
if(!resultNode["Total"].isNull())
|
||||
result_.total = std::stoi(resultNode["Total"].asString());
|
||||
auto allUserListNode = resultNode["UserList"]["userListItem"];
|
||||
for (auto resultNodeUserListuserListItem : allUserListNode)
|
||||
{
|
||||
Result::UserListItem userListItemObject;
|
||||
if(!resultNodeUserListuserListItem["UserId"].isNull())
|
||||
userListItemObject.userId = resultNodeUserListuserListItem["UserId"].asString();
|
||||
if(!resultNodeUserListuserListItem["UserNick"].isNull())
|
||||
userListItemObject.userNick = resultNodeUserListuserListItem["UserNick"].asString();
|
||||
if(!resultNodeUserListuserListItem["IsMute"].isNull())
|
||||
userListItemObject.isMute = resultNodeUserListuserListItem["IsMute"].asString() == "true";
|
||||
if(!resultNodeUserListuserListItem["UserAvatar"].isNull())
|
||||
userListItemObject.userAvatar = resultNodeUserListuserListItem["UserAvatar"].asString();
|
||||
if(!resultNodeUserListuserListItem["UserExtension"].isNull())
|
||||
userListItemObject.userExtension = resultNodeUserListuserListItem["UserExtension"].asString();
|
||||
if(!resultNodeUserListuserListItem["IsMute"].isNull())
|
||||
userListItemObject.isMute = resultNodeUserListuserListItem["IsMute"].asString() == "true";
|
||||
if(!resultNodeUserListuserListItem["UserId"].isNull())
|
||||
userListItemObject.userId = resultNodeUserListuserListItem["UserId"].asString();
|
||||
if(!resultNodeUserListuserListItem["UserNick"].isNull())
|
||||
userListItemObject.userNick = resultNodeUserListuserListItem["UserNick"].asString();
|
||||
auto allMuteBy = value["MuteBy"]["muteBy"];
|
||||
for (auto value : allMuteBy)
|
||||
userListItemObject.muteBy.push_back(value.asString());
|
||||
|
||||
@@ -40,18 +40,18 @@ void ListMessageGroupUserResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Total"].isNull())
|
||||
result_.total = std::stoi(resultNode["Total"].asString());
|
||||
if(!resultNode["HasMore"].isNull())
|
||||
result_.hasMore = resultNode["HasMore"].asString() == "true";
|
||||
if(!resultNode["Total"].isNull())
|
||||
result_.total = std::stoi(resultNode["Total"].asString());
|
||||
auto allUserListNode = resultNode["UserList"]["userListItem"];
|
||||
for (auto resultNodeUserListuserListItem : allUserListNode)
|
||||
{
|
||||
Result::UserListItem userListItemObject;
|
||||
if(!resultNodeUserListuserListItem["UserId"].isNull())
|
||||
userListItemObject.userId = resultNodeUserListuserListItem["UserId"].asString();
|
||||
if(!resultNodeUserListuserListItem["JoinTime"].isNull())
|
||||
userListItemObject.joinTime = std::stol(resultNodeUserListuserListItem["JoinTime"].asString());
|
||||
if(!resultNodeUserListuserListItem["UserId"].isNull())
|
||||
userListItemObject.userId = resultNodeUserListuserListItem["UserId"].asString();
|
||||
result_.userList.push_back(userListItemObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -46,16 +46,16 @@ void ListMessageResult::parse(const std::string &payload)
|
||||
for (auto resultNodeMessageListmessageListItem : allMessageListNode)
|
||||
{
|
||||
Result::MessageListItem messageListItemObject;
|
||||
if(!resultNodeMessageListmessageListItem["Data"].isNull())
|
||||
messageListItemObject.data = resultNodeMessageListmessageListItem["Data"].asString();
|
||||
if(!resultNodeMessageListmessageListItem["GroupId"].isNull())
|
||||
messageListItemObject.groupId = resultNodeMessageListmessageListItem["GroupId"].asString();
|
||||
if(!resultNodeMessageListmessageListItem["MessageId"].isNull())
|
||||
messageListItemObject.messageId = resultNodeMessageListmessageListItem["MessageId"].asString();
|
||||
if(!resultNodeMessageListmessageListItem["Type"].isNull())
|
||||
messageListItemObject.type = std::stoi(resultNodeMessageListmessageListItem["Type"].asString());
|
||||
if(!resultNodeMessageListmessageListItem["SenderId"].isNull())
|
||||
messageListItemObject.senderId = resultNodeMessageListmessageListItem["SenderId"].asString();
|
||||
if(!resultNodeMessageListmessageListItem["Data"].isNull())
|
||||
messageListItemObject.data = resultNodeMessageListmessageListItem["Data"].asString();
|
||||
if(!resultNodeMessageListmessageListItem["Type"].isNull())
|
||||
messageListItemObject.type = std::stoi(resultNodeMessageListmessageListItem["Type"].asString());
|
||||
result_.messageList.push_back(messageListItemObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ void ListMuteGroupUserResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["Total"].isNull())
|
||||
result_.total = std::stoi(resultNode["Total"].asString());
|
||||
if(!resultNode["HasMore"].isNull())
|
||||
result_.hasMore = resultNode["HasMore"].asString() == "true";
|
||||
if(!resultNode["Total"].isNull())
|
||||
result_.total = std::stoi(resultNode["Total"].asString());
|
||||
auto allUserListNode = resultNode["UserList"]["userListItem"];
|
||||
for (auto resultNodeUserListuserListItem : allUserListNode)
|
||||
{
|
||||
|
||||
@@ -39,6 +39,20 @@ void ModifyLiveMessageUserInfoResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFailListNode = value["FailList"]["FailGroups"];
|
||||
for (auto valueFailListFailGroups : allFailListNode)
|
||||
{
|
||||
FailGroups failListObject;
|
||||
if(!valueFailListFailGroups["Code"].isNull())
|
||||
failListObject.code = std::stoi(valueFailListFailGroups["Code"].asString());
|
||||
if(!valueFailListFailGroups["GroupId"].isNull())
|
||||
failListObject.groupId = valueFailListFailGroups["GroupId"].asString();
|
||||
if(!valueFailListFailGroups["Reason"].isNull())
|
||||
failListObject.reason = valueFailListFailGroups["Reason"].asString();
|
||||
if(!valueFailListFailGroups["Success"].isNull())
|
||||
failListObject.success = valueFailListFailGroups["Success"].asString() == "true";
|
||||
failList_.push_back(failListObject);
|
||||
}
|
||||
auto allSuccessListNode = value["SuccessList"]["SuccessGroups"];
|
||||
for (auto valueSuccessListSuccessGroups : allSuccessListNode)
|
||||
{
|
||||
@@ -49,20 +63,6 @@ void ModifyLiveMessageUserInfoResult::parse(const std::string &payload)
|
||||
successListObject.success = valueSuccessListSuccessGroups["Success"].asString() == "true";
|
||||
successList_.push_back(successListObject);
|
||||
}
|
||||
auto allFailListNode = value["FailList"]["FailGroups"];
|
||||
for (auto valueFailListFailGroups : allFailListNode)
|
||||
{
|
||||
FailGroups failListObject;
|
||||
if(!valueFailListFailGroups["GroupId"].isNull())
|
||||
failListObject.groupId = valueFailListFailGroups["GroupId"].asString();
|
||||
if(!valueFailListFailGroups["Success"].isNull())
|
||||
failListObject.success = valueFailListFailGroups["Success"].asString() == "true";
|
||||
if(!valueFailListFailGroups["Reason"].isNull())
|
||||
failListObject.reason = valueFailListFailGroups["Reason"].asString();
|
||||
if(!valueFailListFailGroups["Code"].isNull())
|
||||
failListObject.code = std::stoi(valueFailListFailGroups["Code"].asString());
|
||||
failList_.push_back(failListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,26 +43,26 @@ void QueryMessageAppResult::parse(const std::string &payload)
|
||||
for (auto valueResultresultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultresultItem["TotalCount"].isNull())
|
||||
resultObject.totalCount = std::stoi(valueResultresultItem["TotalCount"].asString());
|
||||
if(!valueResultresultItem["HasMore"].isNull())
|
||||
resultObject.hasMore = valueResultresultItem["HasMore"].asString() == "true";
|
||||
if(!valueResultresultItem["TotalCount"].isNull())
|
||||
resultObject.totalCount = std::stoi(valueResultresultItem["TotalCount"].asString());
|
||||
auto allAppListNode = valueResultresultItem["AppList"]["appListItem"];
|
||||
for (auto valueResultresultItemAppListappListItem : allAppListNode)
|
||||
{
|
||||
ResultItem::AppListItem appListObject;
|
||||
if(!valueResultresultItemAppListappListItem["AppConfig"].isNull())
|
||||
appListObject.appConfig = valueResultresultItemAppListappListItem["AppConfig"].asString();
|
||||
if(!valueResultresultItemAppListappListItem["AppId"].isNull())
|
||||
appListObject.appId = valueResultresultItemAppListappListItem["AppId"].asString();
|
||||
if(!valueResultresultItemAppListappListItem["AppName"].isNull())
|
||||
appListObject.appName = valueResultresultItemAppListappListItem["AppName"].asString();
|
||||
if(!valueResultresultItemAppListappListItem["CreateTime"].isNull())
|
||||
appListObject.createTime = std::stol(valueResultresultItemAppListappListItem["CreateTime"].asString());
|
||||
if(!valueResultresultItemAppListappListItem["Status"].isNull())
|
||||
appListObject.status = std::stoi(valueResultresultItemAppListappListItem["Status"].asString());
|
||||
if(!valueResultresultItemAppListappListItem["AppConfig"].isNull())
|
||||
appListObject.appConfig = valueResultresultItemAppListappListItem["AppConfig"].asString();
|
||||
if(!valueResultresultItemAppListappListItem["Extension"].isNull())
|
||||
appListObject.extension = valueResultresultItemAppListappListItem["Extension"].asString();
|
||||
if(!valueResultresultItemAppListappListItem["Status"].isNull())
|
||||
appListObject.status = std::stoi(valueResultresultItemAppListappListItem["Status"].asString());
|
||||
resultObject.appList.push_back(appListObject);
|
||||
}
|
||||
result_.push_back(resultObject);
|
||||
|
||||
@@ -60,20 +60,20 @@ void StartLiveMPUTaskRequest::setTranscodeParams(const StartLiveMPUTaskRequest::
|
||||
for(int dep1 = 0; dep1 != transcodeParams.layout.userPanes.size(); dep1++) {
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".BackgroundImageUrl", transcodeParams.layout.userPanes[dep1].backgroundImageUrl);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".ZOrder", transcodeParams.layout.userPanes[dep1].zOrder);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".X", transcodeParams.layout.userPanes[dep1].x);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".Width", transcodeParams.layout.userPanes[dep1].width);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".X", transcodeParams.layout.userPanes[dep1].x);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".Y", transcodeParams.layout.userPanes[dep1].y);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".RenderMode", transcodeParams.layout.userPanes[dep1].renderMode);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".UserInfo.SourceType", transcodeParams.layout.userPanes[dep1].userInfo.sourceType);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".UserInfo.UserId", transcodeParams.layout.userPanes[dep1].userInfo.userId);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".RenderMode", transcodeParams.layout.userPanes[dep1].renderMode);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".Height", transcodeParams.layout.userPanes[dep1].height);
|
||||
}
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.LayoutMode", transcodeParams.layout.layoutMode);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.MaxVideoUser.StreamType", transcodeParams.layout.maxVideoUser.streamType);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.MaxVideoUser.SourceType", transcodeParams.layout.maxVideoUser.sourceType);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.MaxVideoUser.UserId", transcodeParams.layout.maxVideoUser.userId);
|
||||
setParameter(std::string("TranscodeParams") + ".Background.URL", transcodeParams.background.uRL);
|
||||
setParameter(std::string("TranscodeParams") + ".Background.RenderMode", transcodeParams.background.renderMode);
|
||||
setParameter(std::string("TranscodeParams") + ".Background.URL", transcodeParams.background.uRL);
|
||||
for(int dep1 = 0; dep1 != transcodeParams.userInfos.size(); dep1++) {
|
||||
setParameter(std::string("TranscodeParams") + ".UserInfos." + std::to_string(dep1 + 1) + ".StreamType", transcodeParams.userInfos[dep1].streamType);
|
||||
setParameter(std::string("TranscodeParams") + ".UserInfos." + std::to_string(dep1 + 1) + ".SourceType", transcodeParams.userInfos[dep1].sourceType);
|
||||
@@ -84,10 +84,10 @@ void StartLiveMPUTaskRequest::setTranscodeParams(const StartLiveMPUTaskRequest::
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.AudioBitrate", transcodeParams.encodeParams.audioBitrate);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoFramerate", transcodeParams.encodeParams.videoFramerate);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoHeight", transcodeParams.encodeParams.videoHeight);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoBitrate", transcodeParams.encodeParams.videoBitrate);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.AudioSampleRate", transcodeParams.encodeParams.audioSampleRate);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoGop", transcodeParams.encodeParams.videoGop);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoBitrate", transcodeParams.encodeParams.videoBitrate);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.AudioChannels", transcodeParams.encodeParams.audioChannels);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoGop", transcodeParams.encodeParams.videoGop);
|
||||
}
|
||||
|
||||
std::string StartLiveMPUTaskRequest::getAppId() const {
|
||||
|
||||
@@ -59,20 +59,20 @@ void UpdateLiveMPUTaskRequest::setTranscodeParams(const UpdateLiveMPUTaskRequest
|
||||
for(int dep1 = 0; dep1 != transcodeParams.layout.userPanes.size(); dep1++) {
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".BackgroundImageUrl", transcodeParams.layout.userPanes[dep1].backgroundImageUrl);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".ZOrder", transcodeParams.layout.userPanes[dep1].zOrder);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".X", transcodeParams.layout.userPanes[dep1].x);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".Width", transcodeParams.layout.userPanes[dep1].width);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".X", transcodeParams.layout.userPanes[dep1].x);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".Y", transcodeParams.layout.userPanes[dep1].y);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".RenderMode", transcodeParams.layout.userPanes[dep1].renderMode);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".UserInfo.SourceType", transcodeParams.layout.userPanes[dep1].userInfo.sourceType);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".UserInfo.UserId", transcodeParams.layout.userPanes[dep1].userInfo.userId);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".RenderMode", transcodeParams.layout.userPanes[dep1].renderMode);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.UserPanes." + std::to_string(dep1 + 1) + ".Height", transcodeParams.layout.userPanes[dep1].height);
|
||||
}
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.LayoutMode", transcodeParams.layout.layoutMode);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.MaxVideoUser.StreamType", transcodeParams.layout.maxVideoUser.streamType);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.MaxVideoUser.SourceType", transcodeParams.layout.maxVideoUser.sourceType);
|
||||
setParameter(std::string("TranscodeParams") + ".Layout.MaxVideoUser.UserId", transcodeParams.layout.maxVideoUser.userId);
|
||||
setParameter(std::string("TranscodeParams") + ".Background.URL", transcodeParams.background.uRL);
|
||||
setParameter(std::string("TranscodeParams") + ".Background.RenderMode", transcodeParams.background.renderMode);
|
||||
setParameter(std::string("TranscodeParams") + ".Background.URL", transcodeParams.background.uRL);
|
||||
for(int dep1 = 0; dep1 != transcodeParams.userInfos.size(); dep1++) {
|
||||
setParameter(std::string("TranscodeParams") + ".UserInfos." + std::to_string(dep1 + 1) + ".StreamType", transcodeParams.userInfos[dep1].streamType);
|
||||
setParameter(std::string("TranscodeParams") + ".UserInfos." + std::to_string(dep1 + 1) + ".SourceType", transcodeParams.userInfos[dep1].sourceType);
|
||||
@@ -83,10 +83,10 @@ void UpdateLiveMPUTaskRequest::setTranscodeParams(const UpdateLiveMPUTaskRequest
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.AudioBitrate", transcodeParams.encodeParams.audioBitrate);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoFramerate", transcodeParams.encodeParams.videoFramerate);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoHeight", transcodeParams.encodeParams.videoHeight);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoBitrate", transcodeParams.encodeParams.videoBitrate);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.AudioSampleRate", transcodeParams.encodeParams.audioSampleRate);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoGop", transcodeParams.encodeParams.videoGop);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoBitrate", transcodeParams.encodeParams.videoBitrate);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.AudioChannels", transcodeParams.encodeParams.audioChannels);
|
||||
setParameter(std::string("TranscodeParams") + ".EncodeParams.VideoGop", transcodeParams.encodeParams.videoGop);
|
||||
}
|
||||
|
||||
std::string UpdateLiveMPUTaskRequest::getAppId() const {
|
||||
|
||||
Reference in New Issue
Block a user