Generated 2016-11-01 for live.

This commit is contained in:
sdk-team
2022-03-09 07:45:32 +00:00
parent db5e193d08
commit ffd9d00a13
25 changed files with 1092 additions and 317 deletions

View File

@@ -3363,6 +3363,42 @@ LiveClient::DeleteStudioLayoutOutcomeCallable LiveClient::deleteStudioLayoutCall
return task->get_future();
}
LiveClient::DescribeAutoShowListTasksOutcome LiveClient::describeAutoShowListTasks(const DescribeAutoShowListTasksRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeAutoShowListTasksOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeAutoShowListTasksOutcome(DescribeAutoShowListTasksResult(outcome.result()));
else
return DescribeAutoShowListTasksOutcome(outcome.error());
}
void LiveClient::describeAutoShowListTasksAsync(const DescribeAutoShowListTasksRequest& request, const DescribeAutoShowListTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeAutoShowListTasks(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::DescribeAutoShowListTasksOutcomeCallable LiveClient::describeAutoShowListTasksCallable(const DescribeAutoShowListTasksRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeAutoShowListTasksOutcome()>>(
[this, request]()
{
return this->describeAutoShowListTasks(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::DescribeBoardEventsOutcome LiveClient::describeBoardEvents(const DescribeBoardEventsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7287,6 +7323,42 @@ LiveClient::EditPlaylistOutcomeCallable LiveClient::editPlaylistCallable(const E
return task->get_future();
}
LiveClient::EditShowAndReplaceOutcome LiveClient::editShowAndReplace(const EditShowAndReplaceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return EditShowAndReplaceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return EditShowAndReplaceOutcome(EditShowAndReplaceResult(outcome.result()));
else
return EditShowAndReplaceOutcome(outcome.error());
}
void LiveClient::editShowAndReplaceAsync(const EditShowAndReplaceRequest& request, const EditShowAndReplaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, editShowAndReplace(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::EditShowAndReplaceOutcomeCallable LiveClient::editShowAndReplaceCallable(const EditShowAndReplaceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<EditShowAndReplaceOutcome()>>(
[this, request]()
{
return this->editShowAndReplace(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::EffectCasterUrgentOutcome LiveClient::effectCasterUrgent(const EffectCasterUrgentRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7395,42 +7467,6 @@ LiveClient::EnableLiveRealtimeLogDeliveryOutcomeCallable LiveClient::enableLiveR
return task->get_future();
}
LiveClient::ForbidLiveCustomStreamOutcome LiveClient::forbidLiveCustomStream(const ForbidLiveCustomStreamRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ForbidLiveCustomStreamOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ForbidLiveCustomStreamOutcome(ForbidLiveCustomStreamResult(outcome.result()));
else
return ForbidLiveCustomStreamOutcome(outcome.error());
}
void LiveClient::forbidLiveCustomStreamAsync(const ForbidLiveCustomStreamRequest& request, const ForbidLiveCustomStreamAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, forbidLiveCustomStream(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::ForbidLiveCustomStreamOutcomeCallable LiveClient::forbidLiveCustomStreamCallable(const ForbidLiveCustomStreamRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ForbidLiveCustomStreamOutcome()>>(
[this, request]()
{
return this->forbidLiveCustomStream(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::ForbidLiveStreamOutcome LiveClient::forbidLiveStream(const ForbidLiveStreamRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7575,6 +7611,42 @@ LiveClient::GetCustomTemplateOutcomeCallable LiveClient::getCustomTemplateCallab
return task->get_future();
}
LiveClient::GetEditingJobInfoOutcome LiveClient::getEditingJobInfo(const GetEditingJobInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetEditingJobInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetEditingJobInfoOutcome(GetEditingJobInfoResult(outcome.result()));
else
return GetEditingJobInfoOutcome(outcome.error());
}
void LiveClient::getEditingJobInfoAsync(const GetEditingJobInfoRequest& request, const GetEditingJobInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getEditingJobInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::GetEditingJobInfoOutcomeCallable LiveClient::getEditingJobInfoCallable(const GetEditingJobInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetEditingJobInfoOutcome()>>(
[this, request]()
{
return this->getEditingJobInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::GetMultiRateConfigOutcome LiveClient::getMultiRateConfig(const GetMultiRateConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -7647,6 +7719,42 @@ LiveClient::GetMultiRateConfigListOutcomeCallable LiveClient::getMultiRateConfig
return task->get_future();
}
LiveClient::InitializeAutoShowListTaskOutcome LiveClient::initializeAutoShowListTask(const InitializeAutoShowListTaskRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return InitializeAutoShowListTaskOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return InitializeAutoShowListTaskOutcome(InitializeAutoShowListTaskResult(outcome.result()));
else
return InitializeAutoShowListTaskOutcome(outcome.error());
}
void LiveClient::initializeAutoShowListTaskAsync(const InitializeAutoShowListTaskRequest& request, const InitializeAutoShowListTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, initializeAutoShowListTask(request), context);
};
asyncExecute(new Runnable(fn));
}
LiveClient::InitializeAutoShowListTaskOutcomeCallable LiveClient::initializeAutoShowListTaskCallable(const InitializeAutoShowListTaskRequest &request) const
{
auto task = std::make_shared<std::packaged_task<InitializeAutoShowListTaskOutcome()>>(
[this, request]()
{
return this->initializeAutoShowListTask(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
LiveClient::JoinBoardOutcome LiveClient::joinBoard(const JoinBoardRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,51 @@
/*
* 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/DescribeAutoShowListTasksRequest.h>
using AlibabaCloud::Live::Model::DescribeAutoShowListTasksRequest;
DescribeAutoShowListTasksRequest::DescribeAutoShowListTasksRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeAutoShowListTasks")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAutoShowListTasksRequest::~DescribeAutoShowListTasksRequest()
{}
std::string DescribeAutoShowListTasksRequest::getCasterId()const
{
return casterId_;
}
void DescribeAutoShowListTasksRequest::setCasterId(const std::string& casterId)
{
casterId_ = casterId;
setParameter("CasterId", casterId);
}
long DescribeAutoShowListTasksRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeAutoShowListTasksRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,51 @@
/*
* 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/DescribeAutoShowListTasksResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeAutoShowListTasksResult::DescribeAutoShowListTasksResult() :
ServiceResult()
{}
DescribeAutoShowListTasksResult::DescribeAutoShowListTasksResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAutoShowListTasksResult::~DescribeAutoShowListTasksResult()
{}
void DescribeAutoShowListTasksResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["AutoShowListTasks"].isNull())
autoShowListTasks_ = value["AutoShowListTasks"].asString();
}
std::string DescribeAutoShowListTasksResult::getAutoShowListTasks()const
{
return autoShowListTasks_;
}

View File

@@ -57,6 +57,8 @@ void DescribeLivePullStreamConfigResult::parse(const std::string &payload)
liveAppRecordListObject.startTime = valueLiveAppRecordListLiveAppRecord["StartTime"].asString();
if(!valueLiveAppRecordListLiveAppRecord["EndTime"].isNull())
liveAppRecordListObject.endTime = valueLiveAppRecordListLiveAppRecord["EndTime"].asString();
if(!valueLiveAppRecordListLiveAppRecord["Always"].isNull())
liveAppRecordListObject.always = valueLiveAppRecordListLiveAppRecord["Always"].asString();
liveAppRecordList_.push_back(liveAppRecordListObject);
}

View File

@@ -0,0 +1,106 @@
/*
* 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/EditShowAndReplaceRequest.h>
using AlibabaCloud::Live::Model::EditShowAndReplaceRequest;
EditShowAndReplaceRequest::EditShowAndReplaceRequest() :
RpcServiceRequest("live", "2016-11-01", "EditShowAndReplace")
{
setMethod(HttpRequest::Method::Post);
}
EditShowAndReplaceRequest::~EditShowAndReplaceRequest()
{}
float EditShowAndReplaceRequest::getStartTime()const
{
return startTime_;
}
void EditShowAndReplaceRequest::setStartTime(float startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string EditShowAndReplaceRequest::getUserData()const
{
return userData_;
}
void EditShowAndReplaceRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
}
std::string EditShowAndReplaceRequest::getStorageInfo()const
{
return storageInfo_;
}
void EditShowAndReplaceRequest::setStorageInfo(const std::string& storageInfo)
{
storageInfo_ = storageInfo;
setParameter("StorageInfo", storageInfo);
}
std::string EditShowAndReplaceRequest::getCasterId()const
{
return casterId_;
}
void EditShowAndReplaceRequest::setCasterId(const std::string& casterId)
{
casterId_ = casterId;
setParameter("CasterId", casterId);
}
float EditShowAndReplaceRequest::getEndTime()const
{
return endTime_;
}
void EditShowAndReplaceRequest::setEndTime(float endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long EditShowAndReplaceRequest::getOwnerId()const
{
return ownerId_;
}
void EditShowAndReplaceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string EditShowAndReplaceRequest::getShowId()const
{
return showId_;
}
void EditShowAndReplaceRequest::setShowId(const std::string& showId)
{
showId_ = showId;
setParameter("ShowId", showId);
}

View File

@@ -14,31 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/live/model/ForbidLiveCustomStreamResult.h>
#include <alibabacloud/live/model/EditShowAndReplaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
ForbidLiveCustomStreamResult::ForbidLiveCustomStreamResult() :
EditShowAndReplaceResult::EditShowAndReplaceResult() :
ServiceResult()
{}
ForbidLiveCustomStreamResult::ForbidLiveCustomStreamResult(const std::string &payload) :
EditShowAndReplaceResult::EditShowAndReplaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ForbidLiveCustomStreamResult::~ForbidLiveCustomStreamResult()
EditShowAndReplaceResult::~EditShowAndReplaceResult()
{}
void ForbidLiveCustomStreamResult::parse(const std::string &payload)
void EditShowAndReplaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["JobInfo"].isNull())
jobInfo_ = value["JobInfo"].asString();
}
std::string EditShowAndReplaceResult::getJobInfo()const
{
return jobInfo_;
}

View File

@@ -1,172 +0,0 @@
/*
* 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/ForbidLiveCustomStreamRequest.h>
using AlibabaCloud::Live::Model::ForbidLiveCustomStreamRequest;
ForbidLiveCustomStreamRequest::ForbidLiveCustomStreamRequest() :
RpcServiceRequest("live", "2016-11-01", "ForbidLiveCustomStream")
{
setMethod(HttpRequest::Method::Post);
}
ForbidLiveCustomStreamRequest::~ForbidLiveCustomStreamRequest()
{}
std::string ForbidLiveCustomStreamRequest::getStyp()const
{
return styp_;
}
void ForbidLiveCustomStreamRequest::setStyp(const std::string& styp)
{
styp_ = styp;
setParameter("Styp", styp);
}
std::string ForbidLiveCustomStreamRequest::getAppName()const
{
return appName_;
}
void ForbidLiveCustomStreamRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setParameter("AppName", appName);
}
std::string ForbidLiveCustomStreamRequest::getStreamName()const
{
return streamName_;
}
void ForbidLiveCustomStreamRequest::setStreamName(const std::string& streamName)
{
streamName_ = streamName;
setParameter("StreamName", streamName);
}
std::string ForbidLiveCustomStreamRequest::getControlStreamAction()const
{
return controlStreamAction_;
}
void ForbidLiveCustomStreamRequest::setControlStreamAction(const std::string& controlStreamAction)
{
controlStreamAction_ = controlStreamAction;
setParameter("ControlStreamAction", controlStreamAction);
}
std::string ForbidLiveCustomStreamRequest::getNeedwm()const
{
return needwm_;
}
void ForbidLiveCustomStreamRequest::setNeedwm(const std::string& needwm)
{
needwm_ = needwm;
setParameter("Needwm", needwm);
}
std::string ForbidLiveCustomStreamRequest::getResumeTime()const
{
return resumeTime_;
}
void ForbidLiveCustomStreamRequest::setResumeTime(const std::string& resumeTime)
{
resumeTime_ = resumeTime;
setParameter("ResumeTime", resumeTime);
}
std::string ForbidLiveCustomStreamRequest::getLiveStreamType()const
{
return liveStreamType_;
}
void ForbidLiveCustomStreamRequest::setLiveStreamType(const std::string& liveStreamType)
{
liveStreamType_ = liveStreamType;
setParameter("LiveStreamType", liveStreamType);
}
std::string ForbidLiveCustomStreamRequest::getDomainName()const
{
return domainName_;
}
void ForbidLiveCustomStreamRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long ForbidLiveCustomStreamRequest::getOwnerId()const
{
return ownerId_;
}
void ForbidLiveCustomStreamRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ForbidLiveCustomStreamRequest::getSphd()const
{
return sphd_;
}
void ForbidLiveCustomStreamRequest::setSphd(const std::string& sphd)
{
sphd_ = sphd;
setParameter("Sphd", sphd);
}
std::string ForbidLiveCustomStreamRequest::getOneshot()const
{
return oneshot_;
}
void ForbidLiveCustomStreamRequest::setOneshot(const std::string& oneshot)
{
oneshot_ = oneshot;
setParameter("Oneshot", oneshot);
}
std::string ForbidLiveCustomStreamRequest::getAppid()const
{
return appid_;
}
void ForbidLiveCustomStreamRequest::setAppid(const std::string& appid)
{
appid_ = appid;
setParameter("Appid", appid);
}
std::string ForbidLiveCustomStreamRequest::getRatio()const
{
return ratio_;
}
void ForbidLiveCustomStreamRequest::setRatio(const std::string& ratio)
{
ratio_ = ratio;
setParameter("Ratio", ratio);
}

View 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/GetEditingJobInfoRequest.h>
using AlibabaCloud::Live::Model::GetEditingJobInfoRequest;
GetEditingJobInfoRequest::GetEditingJobInfoRequest() :
RpcServiceRequest("live", "2016-11-01", "GetEditingJobInfo")
{
setMethod(HttpRequest::Method::Post);
}
GetEditingJobInfoRequest::~GetEditingJobInfoRequest()
{}
std::string GetEditingJobInfoRequest::getCasterId()const
{
return casterId_;
}
void GetEditingJobInfoRequest::setCasterId(const std::string& casterId)
{
casterId_ = casterId;
setParameter("CasterId", casterId);
}
long GetEditingJobInfoRequest::getOwnerId()const
{
return ownerId_;
}
void GetEditingJobInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetEditingJobInfoRequest::getShowId()const
{
return showId_;
}
void GetEditingJobInfoRequest::setShowId(const std::string& showId)
{
showId_ = showId;
setParameter("ShowId", showId);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/GetEditingJobInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
GetEditingJobInfoResult::GetEditingJobInfoResult() :
ServiceResult()
{}
GetEditingJobInfoResult::GetEditingJobInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetEditingJobInfoResult::~GetEditingJobInfoResult()
{}
void GetEditingJobInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CasterId"].isNull())
casterId_ = value["CasterId"].asString();
if(!value["EditingTasksInfo"].isNull())
editingTasksInfo_ = value["EditingTasksInfo"].asString();
}
std::string GetEditingJobInfoResult::getEditingTasksInfo()const
{
return editingTasksInfo_;
}
std::string GetEditingJobInfoResult::getCasterId()const
{
return casterId_;
}

View File

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

View File

@@ -0,0 +1,58 @@
/*
* 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/InitializeAutoShowListTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
InitializeAutoShowListTaskResult::InitializeAutoShowListTaskResult() :
ServiceResult()
{}
InitializeAutoShowListTaskResult::InitializeAutoShowListTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
InitializeAutoShowListTaskResult::~InitializeAutoShowListTaskResult()
{}
void InitializeAutoShowListTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CasterId"].isNull())
casterId_ = value["CasterId"].asString();
if(!value["StreamList"].isNull())
streamList_ = value["StreamList"].asString();
}
std::string InitializeAutoShowListTaskResult::getStreamList()const
{
return streamList_;
}
std::string InitializeAutoShowListTaskResult::getCasterId()const
{
return casterId_;
}