Live sdk update.
This commit is contained in:
@@ -1239,6 +1239,42 @@ LiveClient::BatchDeleteLiveDomainConfigsOutcomeCallable LiveClient::batchDeleteL
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::BatchGetOnlineUsersOutcome LiveClient::batchGetOnlineUsers(const BatchGetOnlineUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BatchGetOnlineUsersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BatchGetOnlineUsersOutcome(BatchGetOnlineUsersResult(outcome.result()));
|
||||
else
|
||||
return BatchGetOnlineUsersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::batchGetOnlineUsersAsync(const BatchGetOnlineUsersRequest& request, const BatchGetOnlineUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, batchGetOnlineUsers(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::BatchGetOnlineUsersOutcomeCallable LiveClient::batchGetOnlineUsersCallable(const BatchGetOnlineUsersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BatchGetOnlineUsersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->batchGetOnlineUsers(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::BatchSetLiveDomainConfigsOutcome LiveClient::batchSetLiveDomainConfigs(const BatchSetLiveDomainConfigsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1527,6 +1563,42 @@ LiveClient::CreateCustomTemplateOutcomeCallable LiveClient::createCustomTemplate
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::CreateLiveDelayConfigOutcome LiveClient::createLiveDelayConfig(const CreateLiveDelayConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateLiveDelayConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateLiveDelayConfigOutcome(CreateLiveDelayConfigResult(outcome.result()));
|
||||
else
|
||||
return CreateLiveDelayConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::createLiveDelayConfigAsync(const CreateLiveDelayConfigRequest& request, const CreateLiveDelayConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createLiveDelayConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::CreateLiveDelayConfigOutcomeCallable LiveClient::createLiveDelayConfigCallable(const CreateLiveDelayConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateLiveDelayConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createLiveDelayConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::CreateLiveRealTimeLogDeliveryOutcome LiveClient::createLiveRealTimeLogDelivery(const CreateLiveRealTimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2283,6 +2355,42 @@ LiveClient::DeleteLiveCenterTransferOutcomeCallable LiveClient::deleteLiveCenter
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DeleteLiveDelayConfigOutcome LiveClient::deleteLiveDelayConfig(const DeleteLiveDelayConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteLiveDelayConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteLiveDelayConfigOutcome(DeleteLiveDelayConfigResult(outcome.result()));
|
||||
else
|
||||
return DeleteLiveDelayConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::deleteLiveDelayConfigAsync(const DeleteLiveDelayConfigRequest& request, const DeleteLiveDelayConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteLiveDelayConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DeleteLiveDelayConfigOutcomeCallable LiveClient::deleteLiveDelayConfigCallable(const DeleteLiveDelayConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteLiveDelayConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteLiveDelayConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DeleteLiveDetectNotifyConfigOutcome LiveClient::deleteLiveDetectNotifyConfig(const DeleteLiveDetectNotifyConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4083,6 +4191,42 @@ LiveClient::DescribeLiveCertificateListOutcomeCallable LiveClient::describeLiveC
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveDelayConfigOutcome LiveClient::describeLiveDelayConfig(const DescribeLiveDelayConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLiveDelayConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLiveDelayConfigOutcome(DescribeLiveDelayConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeLiveDelayConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeLiveDelayConfigAsync(const DescribeLiveDelayConfigRequest& request, const DescribeLiveDelayConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLiveDelayConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveDelayConfigOutcomeCallable LiveClient::describeLiveDelayConfigCallable(const DescribeLiveDelayConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLiveDelayConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLiveDelayConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveDelayedStreamingUsageOutcome LiveClient::describeLiveDelayedStreamingUsage(const DescribeLiveDelayedStreamingUsageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5451,6 +5595,42 @@ LiveClient::DescribeLiveRecordNotifyConfigOutcomeCallable LiveClient::describeLi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveRecordNotifyRecordsOutcome LiveClient::describeLiveRecordNotifyRecords(const DescribeLiveRecordNotifyRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLiveRecordNotifyRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLiveRecordNotifyRecordsOutcome(DescribeLiveRecordNotifyRecordsResult(outcome.result()));
|
||||
else
|
||||
return DescribeLiveRecordNotifyRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::describeLiveRecordNotifyRecordsAsync(const DescribeLiveRecordNotifyRecordsRequest& request, const DescribeLiveRecordNotifyRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLiveRecordNotifyRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveRecordNotifyRecordsOutcomeCallable LiveClient::describeLiveRecordNotifyRecordsCallable(const DescribeLiveRecordNotifyRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLiveRecordNotifyRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLiveRecordNotifyRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::DescribeLiveRecordVodConfigsOutcome LiveClient::describeLiveRecordVodConfigs(const DescribeLiveRecordVodConfigsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -8043,6 +8223,42 @@ LiveClient::LeaveMessageGroupOutcomeCallable LiveClient::leaveMessageGroupCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::ListLiveDelayConfigOutcome LiveClient::listLiveDelayConfig(const ListLiveDelayConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListLiveDelayConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListLiveDelayConfigOutcome(ListLiveDelayConfigResult(outcome.result()));
|
||||
else
|
||||
return ListLiveDelayConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::listLiveDelayConfigAsync(const ListLiveDelayConfigRequest& request, const ListLiveDelayConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listLiveDelayConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::ListLiveDelayConfigOutcomeCallable LiveClient::listLiveDelayConfigCallable(const ListLiveDelayConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListLiveDelayConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listLiveDelayConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::ListLiveRealtimeLogDeliveryOutcome LiveClient::listLiveRealtimeLogDelivery(const ListLiveRealtimeLogDeliveryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -10527,6 +10743,42 @@ LiveClient::UpdateLiveCenterTransferOutcomeCallable LiveClient::updateLiveCenter
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::UpdateLiveDelayConfigOutcome LiveClient::updateLiveDelayConfig(const UpdateLiveDelayConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateLiveDelayConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateLiveDelayConfigOutcome(UpdateLiveDelayConfigResult(outcome.result()));
|
||||
else
|
||||
return UpdateLiveDelayConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void LiveClient::updateLiveDelayConfigAsync(const UpdateLiveDelayConfigRequest& request, const UpdateLiveDelayConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateLiveDelayConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
LiveClient::UpdateLiveDelayConfigOutcomeCallable LiveClient::updateLiveDelayConfigCallable(const UpdateLiveDelayConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateLiveDelayConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateLiveDelayConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
LiveClient::UpdateLiveDetectNotifyConfigOutcome LiveClient::updateLiveDetectNotifyConfig(const UpdateLiveDetectNotifyConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
54
live/src/model/BatchGetOnlineUsersRequest.cc
Normal file
54
live/src/model/BatchGetOnlineUsersRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/live/model/BatchGetOnlineUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::BatchGetOnlineUsersRequest;
|
||||
|
||||
BatchGetOnlineUsersRequest::BatchGetOnlineUsersRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "BatchGetOnlineUsers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchGetOnlineUsersRequest::~BatchGetOnlineUsersRequest() {}
|
||||
|
||||
std::string BatchGetOnlineUsersRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void BatchGetOnlineUsersRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string BatchGetOnlineUsersRequest::getUserIds() const {
|
||||
return userIds_;
|
||||
}
|
||||
|
||||
void BatchGetOnlineUsersRequest::setUserIds(const std::string &userIds) {
|
||||
userIds_ = userIds;
|
||||
setBodyParameter(std::string("UserIds"), userIds);
|
||||
}
|
||||
|
||||
std::string BatchGetOnlineUsersRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void BatchGetOnlineUsersRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setBodyParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
62
live/src/model/BatchGetOnlineUsersResult.cc
Normal file
62
live/src/model/BatchGetOnlineUsersResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/live/model/BatchGetOnlineUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
BatchGetOnlineUsersResult::BatchGetOnlineUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchGetOnlineUsersResult::BatchGetOnlineUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchGetOnlineUsersResult::~BatchGetOnlineUsersResult()
|
||||
{}
|
||||
|
||||
void BatchGetOnlineUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
auto allOnlineUsersNode = resultNode["OnlineUsers"]["onlineUsersItem"];
|
||||
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";
|
||||
result_.onlineUsers.push_back(onlineUsersItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BatchGetOnlineUsersResult::Result BatchGetOnlineUsersResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
81
live/src/model/CreateLiveDelayConfigRequest.cc
Normal file
81
live/src/model/CreateLiveDelayConfigRequest.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/CreateLiveDelayConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::CreateLiveDelayConfigRequest;
|
||||
|
||||
CreateLiveDelayConfigRequest::CreateLiveDelayConfigRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "CreateLiveDelayConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateLiveDelayConfigRequest::~CreateLiveDelayConfigRequest() {}
|
||||
|
||||
int CreateLiveDelayConfigRequest::getDelayTime() const {
|
||||
return delayTime_;
|
||||
}
|
||||
|
||||
void CreateLiveDelayConfigRequest::setDelayTime(int delayTime) {
|
||||
delayTime_ = delayTime;
|
||||
setParameter(std::string("DelayTime"), std::to_string(delayTime));
|
||||
}
|
||||
|
||||
std::string CreateLiveDelayConfigRequest::getStream() const {
|
||||
return stream_;
|
||||
}
|
||||
|
||||
void CreateLiveDelayConfigRequest::setStream(const std::string &stream) {
|
||||
stream_ = stream;
|
||||
setParameter(std::string("Stream"), stream);
|
||||
}
|
||||
|
||||
std::string CreateLiveDelayConfigRequest::getApp() const {
|
||||
return app_;
|
||||
}
|
||||
|
||||
void CreateLiveDelayConfigRequest::setApp(const std::string &app) {
|
||||
app_ = app;
|
||||
setParameter(std::string("App"), app);
|
||||
}
|
||||
|
||||
long CreateLiveDelayConfigRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateLiveDelayConfigRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateLiveDelayConfigRequest::getTaskTriggerMode() const {
|
||||
return taskTriggerMode_;
|
||||
}
|
||||
|
||||
void CreateLiveDelayConfigRequest::setTaskTriggerMode(const std::string &taskTriggerMode) {
|
||||
taskTriggerMode_ = taskTriggerMode;
|
||||
setParameter(std::string("TaskTriggerMode"), taskTriggerMode);
|
||||
}
|
||||
|
||||
std::string CreateLiveDelayConfigRequest::getDomain() const {
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void CreateLiveDelayConfigRequest::setDomain(const std::string &domain) {
|
||||
domain_ = domain;
|
||||
setParameter(std::string("Domain"), domain);
|
||||
}
|
||||
|
||||
44
live/src/model/CreateLiveDelayConfigResult.cc
Normal file
44
live/src/model/CreateLiveDelayConfigResult.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/CreateLiveDelayConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
CreateLiveDelayConfigResult::CreateLiveDelayConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateLiveDelayConfigResult::CreateLiveDelayConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateLiveDelayConfigResult::~CreateLiveDelayConfigResult()
|
||||
{}
|
||||
|
||||
void CreateLiveDelayConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
live/src/model/DeleteLiveDelayConfigRequest.cc
Normal file
63
live/src/model/DeleteLiveDelayConfigRequest.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/DeleteLiveDelayConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DeleteLiveDelayConfigRequest;
|
||||
|
||||
DeleteLiveDelayConfigRequest::DeleteLiveDelayConfigRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DeleteLiveDelayConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteLiveDelayConfigRequest::~DeleteLiveDelayConfigRequest() {}
|
||||
|
||||
std::string DeleteLiveDelayConfigRequest::getStream() const {
|
||||
return stream_;
|
||||
}
|
||||
|
||||
void DeleteLiveDelayConfigRequest::setStream(const std::string &stream) {
|
||||
stream_ = stream;
|
||||
setParameter(std::string("Stream"), stream);
|
||||
}
|
||||
|
||||
std::string DeleteLiveDelayConfigRequest::getApp() const {
|
||||
return app_;
|
||||
}
|
||||
|
||||
void DeleteLiveDelayConfigRequest::setApp(const std::string &app) {
|
||||
app_ = app;
|
||||
setParameter(std::string("App"), app);
|
||||
}
|
||||
|
||||
long DeleteLiveDelayConfigRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteLiveDelayConfigRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteLiveDelayConfigRequest::getDomain() const {
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void DeleteLiveDelayConfigRequest::setDomain(const std::string &domain) {
|
||||
domain_ = domain;
|
||||
setParameter(std::string("Domain"), domain);
|
||||
}
|
||||
|
||||
44
live/src/model/DeleteLiveDelayConfigResult.cc
Normal file
44
live/src/model/DeleteLiveDelayConfigResult.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/DeleteLiveDelayConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DeleteLiveDelayConfigResult::DeleteLiveDelayConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLiveDelayConfigResult::DeleteLiveDelayConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLiveDelayConfigResult::~DeleteLiveDelayConfigResult()
|
||||
{}
|
||||
|
||||
void DeleteLiveDelayConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -63,6 +63,8 @@ void DescribeCasterConfigResult::parse(const std::string &payload)
|
||||
recordConfig_.ossEndpoint = recordConfigNode["OssEndpoint"].asString();
|
||||
if(!recordConfigNode["OssBucket"].isNull())
|
||||
recordConfig_.ossBucket = recordConfigNode["OssBucket"].asString();
|
||||
if(!recordConfigNode["OnDemand"].isNull())
|
||||
recordConfig_.onDemand = std::stoi(recordConfigNode["OnDemand"].asString());
|
||||
auto allRecordFormatNode = recordConfigNode["RecordFormat"]["RecordFormatItem"];
|
||||
for (auto recordConfigNodeRecordFormatRecordFormatItem : allRecordFormatNode)
|
||||
{
|
||||
|
||||
63
live/src/model/DescribeLiveDelayConfigRequest.cc
Normal file
63
live/src/model/DescribeLiveDelayConfigRequest.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/DescribeLiveDelayConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DescribeLiveDelayConfigRequest;
|
||||
|
||||
DescribeLiveDelayConfigRequest::DescribeLiveDelayConfigRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DescribeLiveDelayConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLiveDelayConfigRequest::~DescribeLiveDelayConfigRequest() {}
|
||||
|
||||
std::string DescribeLiveDelayConfigRequest::getStream() const {
|
||||
return stream_;
|
||||
}
|
||||
|
||||
void DescribeLiveDelayConfigRequest::setStream(const std::string &stream) {
|
||||
stream_ = stream;
|
||||
setParameter(std::string("Stream"), stream);
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayConfigRequest::getApp() const {
|
||||
return app_;
|
||||
}
|
||||
|
||||
void DescribeLiveDelayConfigRequest::setApp(const std::string &app) {
|
||||
app_ = app;
|
||||
setParameter(std::string("App"), app);
|
||||
}
|
||||
|
||||
long DescribeLiveDelayConfigRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLiveDelayConfigRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayConfigRequest::getDomain() const {
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void DescribeLiveDelayConfigRequest::setDomain(const std::string &domain) {
|
||||
domain_ = domain;
|
||||
setParameter(std::string("Domain"), domain);
|
||||
}
|
||||
|
||||
79
live/src/model/DescribeLiveDelayConfigResult.cc
Normal file
79
live/src/model/DescribeLiveDelayConfigResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/live/model/DescribeLiveDelayConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DescribeLiveDelayConfigResult::DescribeLiveDelayConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLiveDelayConfigResult::DescribeLiveDelayConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLiveDelayConfigResult::~DescribeLiveDelayConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeLiveDelayConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
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["Stream"].isNull())
|
||||
stream_ = value["Stream"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayConfigResult::getApp()const
|
||||
{
|
||||
return app_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayConfigResult::getTaskTriggerMode()const
|
||||
{
|
||||
return taskTriggerMode_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayConfigResult::getStream()const
|
||||
{
|
||||
return stream_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayConfigResult::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveDelayConfigResult::getDelayTime()const
|
||||
{
|
||||
return delayTime_;
|
||||
}
|
||||
|
||||
@@ -79,3 +79,12 @@ void DescribeLiveDomainRecordUsageDataRequest::setInterval(const std::string &in
|
||||
setParameter(std::string("Interval"), interval);
|
||||
}
|
||||
|
||||
std::string DescribeLiveDomainRecordUsageDataRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void DescribeLiveDomainRecordUsageDataRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
|
||||
@@ -45,12 +45,14 @@ void DescribeLiveDomainRecordUsageDataResult::parse(const std::string &payload)
|
||||
DataModule recordUsageDataObject;
|
||||
if(!valueRecordUsageDataDataModule["Type"].isNull())
|
||||
recordUsageDataObject.type = valueRecordUsageDataDataModule["Type"].asString();
|
||||
if(!valueRecordUsageDataDataModule["Duration"].isNull())
|
||||
recordUsageDataObject.duration = std::stol(valueRecordUsageDataDataModule["Duration"].asString());
|
||||
if(!valueRecordUsageDataDataModule["Domain"].isNull())
|
||||
recordUsageDataObject.domain = valueRecordUsageDataDataModule["Domain"].asString();
|
||||
if(!valueRecordUsageDataDataModule["Region"].isNull())
|
||||
recordUsageDataObject.region = valueRecordUsageDataDataModule["Region"].asString();
|
||||
if(!valueRecordUsageDataDataModule["TimeStamp"].isNull())
|
||||
recordUsageDataObject.timeStamp = valueRecordUsageDataDataModule["TimeStamp"].asString();
|
||||
if(!valueRecordUsageDataDataModule["Duration"].isNull())
|
||||
recordUsageDataObject.duration = std::stol(valueRecordUsageDataDataModule["Duration"].asString());
|
||||
if(!valueRecordUsageDataDataModule["Count"].isNull())
|
||||
recordUsageDataObject.count = std::stol(valueRecordUsageDataDataModule["Count"].asString());
|
||||
recordUsageData_.push_back(recordUsageDataObject);
|
||||
|
||||
108
live/src/model/DescribeLiveRecordNotifyRecordsRequest.cc
Normal file
108
live/src/model/DescribeLiveRecordNotifyRecordsRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/DescribeLiveRecordNotifyRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::DescribeLiveRecordNotifyRecordsRequest;
|
||||
|
||||
DescribeLiveRecordNotifyRecordsRequest::DescribeLiveRecordNotifyRecordsRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "DescribeLiveRecordNotifyRecords") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeLiveRecordNotifyRecordsRequest::~DescribeLiveRecordNotifyRecordsRequest() {}
|
||||
|
||||
std::string DescribeLiveRecordNotifyRecordsRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeLiveRecordNotifyRecordsRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
long DescribeLiveRecordNotifyRecordsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeLiveRecordNotifyRecordsRequest::setPageNumber(long pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeLiveRecordNotifyRecordsRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DescribeLiveRecordNotifyRecordsRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
long DescribeLiveRecordNotifyRecordsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeLiveRecordNotifyRecordsRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeLiveRecordNotifyRecordsRequest::getStreamName() const {
|
||||
return streamName_;
|
||||
}
|
||||
|
||||
void DescribeLiveRecordNotifyRecordsRequest::setStreamName(const std::string &streamName) {
|
||||
streamName_ = streamName;
|
||||
setParameter(std::string("StreamName"), streamName);
|
||||
}
|
||||
|
||||
std::string DescribeLiveRecordNotifyRecordsRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeLiveRecordNotifyRecordsRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
std::string DescribeLiveRecordNotifyRecordsRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeLiveRecordNotifyRecordsRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
long DescribeLiveRecordNotifyRecordsRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeLiveRecordNotifyRecordsRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeLiveRecordNotifyRecordsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeLiveRecordNotifyRecordsRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
115
live/src/model/DescribeLiveRecordNotifyRecordsResult.cc
Normal file
115
live/src/model/DescribeLiveRecordNotifyRecordsResult.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/DescribeLiveRecordNotifyRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
DescribeLiveRecordNotifyRecordsResult::DescribeLiveRecordNotifyRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeLiveRecordNotifyRecordsResult::DescribeLiveRecordNotifyRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeLiveRecordNotifyRecordsResult::~DescribeLiveRecordNotifyRecordsResult()
|
||||
{}
|
||||
|
||||
void DescribeLiveRecordNotifyRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCallbackListNode = value["CallbackList"]["Callback"];
|
||||
for (auto valueCallbackListCallback : allCallbackListNode)
|
||||
{
|
||||
Callback callbackListObject;
|
||||
if(!valueCallbackListCallback["AppName"].isNull())
|
||||
callbackListObject.appName = valueCallbackListCallback["AppName"].asString();
|
||||
if(!valueCallbackListCallback["NotifyType"].isNull())
|
||||
callbackListObject.notifyType = valueCallbackListCallback["NotifyType"].asString();
|
||||
if(!valueCallbackListCallback["NotifyContent"].isNull())
|
||||
callbackListObject.notifyContent = valueCallbackListCallback["NotifyContent"].asString();
|
||||
if(!valueCallbackListCallback["Description"].isNull())
|
||||
callbackListObject.description = valueCallbackListCallback["Description"].asString();
|
||||
if(!valueCallbackListCallback["StreamName"].isNull())
|
||||
callbackListObject.streamName = valueCallbackListCallback["StreamName"].asString();
|
||||
if(!valueCallbackListCallback["NotifyUrl"].isNull())
|
||||
callbackListObject.notifyUrl = valueCallbackListCallback["NotifyUrl"].asString();
|
||||
if(!valueCallbackListCallback["NotifyResult"].isNull())
|
||||
callbackListObject.notifyResult = valueCallbackListCallback["NotifyResult"].asString();
|
||||
if(!valueCallbackListCallback["NotifyTime"].isNull())
|
||||
callbackListObject.notifyTime = valueCallbackListCallback["NotifyTime"].asString();
|
||||
if(!valueCallbackListCallback["DomainName"].isNull())
|
||||
callbackListObject.domainName = valueCallbackListCallback["DomainName"].asString();
|
||||
callbackList_.push_back(callbackListObject);
|
||||
}
|
||||
if(!value["Msg"].isNull())
|
||||
msg_ = value["Msg"].asString();
|
||||
if(!value["PageNum"].isNull())
|
||||
pageNum_ = std::stoi(value["PageNum"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLiveRecordNotifyRecordsResult::getMsg()const
|
||||
{
|
||||
return msg_;
|
||||
}
|
||||
|
||||
int DescribeLiveRecordNotifyRecordsResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveRecordNotifyRecordsResult::Callback> DescribeLiveRecordNotifyRecordsResult::getCallbackList()const
|
||||
{
|
||||
return callbackList_;
|
||||
}
|
||||
|
||||
int DescribeLiveRecordNotifyRecordsResult::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
int DescribeLiveRecordNotifyRecordsResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
int DescribeLiveRecordNotifyRecordsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeLiveRecordNotifyRecordsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
live/src/model/ListLiveDelayConfigRequest.cc
Normal file
63
live/src/model/ListLiveDelayConfigRequest.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/ListLiveDelayConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::ListLiveDelayConfigRequest;
|
||||
|
||||
ListLiveDelayConfigRequest::ListLiveDelayConfigRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "ListLiveDelayConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListLiveDelayConfigRequest::~ListLiveDelayConfigRequest() {}
|
||||
|
||||
int ListLiveDelayConfigRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListLiveDelayConfigRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
int ListLiveDelayConfigRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListLiveDelayConfigRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListLiveDelayConfigRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ListLiveDelayConfigRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ListLiveDelayConfigRequest::getDomain() const {
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void ListLiveDelayConfigRequest::setDomain(const std::string &domain) {
|
||||
domain_ = domain;
|
||||
setParameter(std::string("Domain"), domain);
|
||||
}
|
||||
|
||||
72
live/src/model/ListLiveDelayConfigResult.cc
Normal file
72
live/src/model/ListLiveDelayConfigResult.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/ListLiveDelayConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
ListLiveDelayConfigResult::ListLiveDelayConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListLiveDelayConfigResult::ListLiveDelayConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListLiveDelayConfigResult::~ListLiveDelayConfigResult()
|
||||
{}
|
||||
|
||||
void ListLiveDelayConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDelayConfigListNode = value["DelayConfigList"]["DelayConfig"];
|
||||
for (auto valueDelayConfigListDelayConfig : allDelayConfigListNode)
|
||||
{
|
||||
DelayConfig delayConfigListObject;
|
||||
if(!valueDelayConfigListDelayConfig["Stream"].isNull())
|
||||
delayConfigListObject.stream = valueDelayConfigListDelayConfig["Stream"].asString();
|
||||
if(!valueDelayConfigListDelayConfig["Domain"].isNull())
|
||||
delayConfigListObject.domain = valueDelayConfigListDelayConfig["Domain"].asString();
|
||||
if(!valueDelayConfigListDelayConfig["TaskTriggerMode"].isNull())
|
||||
delayConfigListObject.taskTriggerMode = valueDelayConfigListDelayConfig["TaskTriggerMode"].asString();
|
||||
if(!valueDelayConfigListDelayConfig["DelayTime"].isNull())
|
||||
delayConfigListObject.delayTime = valueDelayConfigListDelayConfig["DelayTime"].asString();
|
||||
if(!valueDelayConfigListDelayConfig["App"].isNull())
|
||||
delayConfigListObject.app = valueDelayConfigListDelayConfig["App"].asString();
|
||||
delayConfigList_.push_back(delayConfigListObject);
|
||||
}
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListLiveDelayConfigResult::DelayConfig> ListLiveDelayConfigResult::getDelayConfigList()const
|
||||
{
|
||||
return delayConfigList_;
|
||||
}
|
||||
|
||||
int ListLiveDelayConfigResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
@@ -55,6 +55,7 @@ void UpdateCasterSceneAudioRequest::setAudioLayer(const std::vector<UpdateCaster
|
||||
setParameter(audioLayerObjStr + ".VolumeRate", std::to_string(audioLayerObj.volumeRate));
|
||||
setParameter(audioLayerObjStr + ".FixedDelayDuration", std::to_string(audioLayerObj.fixedDelayDuration));
|
||||
setParameter(audioLayerObjStr + ".ValidChannel", audioLayerObj.validChannel);
|
||||
setParameter(audioLayerObjStr + ".Filter", audioLayerObj.filter);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
81
live/src/model/UpdateLiveDelayConfigRequest.cc
Normal file
81
live/src/model/UpdateLiveDelayConfigRequest.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/UpdateLiveDelayConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Live::Model::UpdateLiveDelayConfigRequest;
|
||||
|
||||
UpdateLiveDelayConfigRequest::UpdateLiveDelayConfigRequest()
|
||||
: RpcServiceRequest("live", "2016-11-01", "UpdateLiveDelayConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateLiveDelayConfigRequest::~UpdateLiveDelayConfigRequest() {}
|
||||
|
||||
int UpdateLiveDelayConfigRequest::getDelayTime() const {
|
||||
return delayTime_;
|
||||
}
|
||||
|
||||
void UpdateLiveDelayConfigRequest::setDelayTime(int delayTime) {
|
||||
delayTime_ = delayTime;
|
||||
setParameter(std::string("DelayTime"), std::to_string(delayTime));
|
||||
}
|
||||
|
||||
std::string UpdateLiveDelayConfigRequest::getStream() const {
|
||||
return stream_;
|
||||
}
|
||||
|
||||
void UpdateLiveDelayConfigRequest::setStream(const std::string &stream) {
|
||||
stream_ = stream;
|
||||
setParameter(std::string("Stream"), stream);
|
||||
}
|
||||
|
||||
std::string UpdateLiveDelayConfigRequest::getApp() const {
|
||||
return app_;
|
||||
}
|
||||
|
||||
void UpdateLiveDelayConfigRequest::setApp(const std::string &app) {
|
||||
app_ = app;
|
||||
setParameter(std::string("App"), app);
|
||||
}
|
||||
|
||||
long UpdateLiveDelayConfigRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UpdateLiveDelayConfigRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UpdateLiveDelayConfigRequest::getTaskTriggerMode() const {
|
||||
return taskTriggerMode_;
|
||||
}
|
||||
|
||||
void UpdateLiveDelayConfigRequest::setTaskTriggerMode(const std::string &taskTriggerMode) {
|
||||
taskTriggerMode_ = taskTriggerMode;
|
||||
setParameter(std::string("TaskTriggerMode"), taskTriggerMode);
|
||||
}
|
||||
|
||||
std::string UpdateLiveDelayConfigRequest::getDomain() const {
|
||||
return domain_;
|
||||
}
|
||||
|
||||
void UpdateLiveDelayConfigRequest::setDomain(const std::string &domain) {
|
||||
domain_ = domain;
|
||||
setParameter(std::string("Domain"), domain);
|
||||
}
|
||||
|
||||
44
live/src/model/UpdateLiveDelayConfigResult.cc
Normal file
44
live/src/model/UpdateLiveDelayConfigResult.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/UpdateLiveDelayConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Live;
|
||||
using namespace AlibabaCloud::Live::Model;
|
||||
|
||||
UpdateLiveDelayConfigResult::UpdateLiveDelayConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateLiveDelayConfigResult::UpdateLiveDelayConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateLiveDelayConfigResult::~UpdateLiveDelayConfigResult()
|
||||
{}
|
||||
|
||||
void UpdateLiveDelayConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user