Generated 2016-11-01 for live.

This commit is contained in:
sdk-team
2022-01-06 07:34:35 +00:00
parent fae23e0d83
commit 5ea308961d
43 changed files with 1846 additions and 8 deletions

View File

@@ -0,0 +1,139 @@
/*
* 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/AddShowIntoShowListRequest.h>
using AlibabaCloud::Live::Model::AddShowIntoShowListRequest;
AddShowIntoShowListRequest::AddShowIntoShowListRequest() :
RpcServiceRequest("live", "2016-11-01", "AddShowIntoShowList")
{
setMethod(HttpRequest::Method::Post);
}
AddShowIntoShowListRequest::~AddShowIntoShowListRequest()
{}
int AddShowIntoShowListRequest::getLiveInputType()const
{
return liveInputType_;
}
void AddShowIntoShowListRequest::setLiveInputType(int liveInputType)
{
liveInputType_ = liveInputType;
setParameter("LiveInputType", std::to_string(liveInputType));
}
long AddShowIntoShowListRequest::getDuration()const
{
return duration_;
}
void AddShowIntoShowListRequest::setDuration(long duration)
{
duration_ = duration;
setParameter("Duration", std::to_string(duration));
}
int AddShowIntoShowListRequest::getRepeatTimes()const
{
return repeatTimes_;
}
void AddShowIntoShowListRequest::setRepeatTimes(int repeatTimes)
{
repeatTimes_ = repeatTimes;
setParameter("RepeatTimes", std::to_string(repeatTimes));
}
std::string AddShowIntoShowListRequest::getShowName()const
{
return showName_;
}
void AddShowIntoShowListRequest::setShowName(const std::string& showName)
{
showName_ = showName;
setParameter("ShowName", showName);
}
std::string AddShowIntoShowListRequest::getResourceId()const
{
return resourceId_;
}
void AddShowIntoShowListRequest::setResourceId(const std::string& resourceId)
{
resourceId_ = resourceId;
setParameter("ResourceId", resourceId);
}
std::string AddShowIntoShowListRequest::getCasterId()const
{
return casterId_;
}
void AddShowIntoShowListRequest::setCasterId(const std::string& casterId)
{
casterId_ = casterId;
setParameter("CasterId", casterId);
}
long AddShowIntoShowListRequest::getOwnerId()const
{
return ownerId_;
}
void AddShowIntoShowListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddShowIntoShowListRequest::getResourceType()const
{
return resourceType_;
}
void AddShowIntoShowListRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
}
std::string AddShowIntoShowListRequest::getResourceUrl()const
{
return resourceUrl_;
}
void AddShowIntoShowListRequest::setResourceUrl(const std::string& resourceUrl)
{
resourceUrl_ = resourceUrl;
setParameter("ResourceUrl", resourceUrl);
}
int AddShowIntoShowListRequest::getSpot()const
{
return spot_;
}
void AddShowIntoShowListRequest::setSpot(int spot)
{
spot_ = spot;
setParameter("Spot", std::to_string(spot));
}

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/AddShowIntoShowListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
AddShowIntoShowListResult::AddShowIntoShowListResult() :
ServiceResult()
{}
AddShowIntoShowListResult::AddShowIntoShowListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddShowIntoShowListResult::~AddShowIntoShowListResult()
{}
void AddShowIntoShowListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ShowId"].isNull())
showId_ = value["ShowId"].asString();
}
std::string AddShowIntoShowListResult::getShowId()const
{
return showId_;
}

View File

@@ -104,6 +104,17 @@ void CreateCasterRequest::setPurchaseTime(const std::string& purchaseTime)
setParameter("PurchaseTime", purchaseTime);
}
int CreateCasterRequest::getMicMode()const
{
return micMode_;
}
void CreateCasterRequest::setMicMode(int micMode)
{
micMode_ = micMode;
setParameter("MicMode", std::to_string(micMode));
}
std::string CreateCasterRequest::getChargeType()const
{
return chargeType_;

View File

@@ -49,6 +49,8 @@ void DescribeCasterStreamUrlResult::parse(const std::string &payload)
casterStreamsObject.streamUrl = valueCasterStreamsCasterStream["StreamUrl"].asString();
if(!valueCasterStreamsCasterStream["RtmpUrl"].isNull())
casterStreamsObject.rtmpUrl = valueCasterStreamsCasterStream["RtmpUrl"].asString();
if(!valueCasterStreamsCasterStream["RtsUrl"].isNull())
casterStreamsObject.rtsUrl = valueCasterStreamsCasterStream["RtsUrl"].asString();
if(!valueCasterStreamsCasterStream["OutputType"].isNull())
casterStreamsObject.outputType = std::stoi(valueCasterStreamsCasterStream["OutputType"].asString());
auto allStreamInfosNode = valueCasterStreamsCasterStream["StreamInfos"]["StreamInfo"];

View File

@@ -104,6 +104,28 @@ void DescribeCastersRequest::setOwnerId(long ownerId)
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeCastersRequest::getOrderByModifyAsc()const
{
return orderByModifyAsc_;
}
void DescribeCastersRequest::setOrderByModifyAsc(const std::string& orderByModifyAsc)
{
orderByModifyAsc_ = orderByModifyAsc;
setParameter("OrderByModifyAsc", orderByModifyAsc);
}
int DescribeCastersRequest::getChargeType()const
{
return chargeType_;
}
void DescribeCastersRequest::setChargeType(int chargeType)
{
chargeType_ = chargeType;
setParameter("ChargeType", std::to_string(chargeType));
}
int DescribeCastersRequest::getStatus()const
{
return status_;

View File

@@ -65,6 +65,12 @@ void DescribeCastersResult::parse(const std::string &payload)
casterListObject.casterTemplate = valueCasterListCaster["CasterTemplate"].asString();
if(!valueCasterListCaster["ChannelEnable"].isNull())
casterListObject.channelEnable = std::stoi(valueCasterListCaster["ChannelEnable"].asString());
if(!valueCasterListCaster["LastModified"].isNull())
casterListObject.lastModified = valueCasterListCaster["LastModified"].asString();
if(!valueCasterListCaster["Duration"].isNull())
casterListObject.duration = valueCasterListCaster["Duration"].asString();
if(!valueCasterListCaster["RoomId"].isNull())
casterListObject.roomId = std::stoi(valueCasterListCaster["RoomId"].asString());
casterList_.push_back(casterListObject);
}
if(!value["Total"].isNull())

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/DescribeLiveDomainStreamWaterLevelRequest.h>
using AlibabaCloud::Live::Model::DescribeLiveDomainStreamWaterLevelRequest;
DescribeLiveDomainStreamWaterLevelRequest::DescribeLiveDomainStreamWaterLevelRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeLiveDomainStreamWaterLevel")
{
setMethod(HttpRequest::Method::Post);
}
DescribeLiveDomainStreamWaterLevelRequest::~DescribeLiveDomainStreamWaterLevelRequest()
{}
std::string DescribeLiveDomainStreamWaterLevelRequest::getLiveRegion()const
{
return liveRegion_;
}
void DescribeLiveDomainStreamWaterLevelRequest::setLiveRegion(const std::string& liveRegion)
{
liveRegion_ = liveRegion;
setParameter("LiveRegion", liveRegion);
}
long DescribeLiveDomainStreamWaterLevelRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeLiveDomainStreamWaterLevelRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View 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/DescribeLiveDomainStreamWaterLevelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeLiveDomainStreamWaterLevelResult::DescribeLiveDomainStreamWaterLevelResult() :
ServiceResult()
{}
DescribeLiveDomainStreamWaterLevelResult::DescribeLiveDomainStreamWaterLevelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLiveDomainStreamWaterLevelResult::~DescribeLiveDomainStreamWaterLevelResult()
{}
void DescribeLiveDomainStreamWaterLevelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLiveDomainWaterLevelListNode = value["LiveDomainWaterLevelList"]["LiveDomainWaterLevel"];
for (auto valueLiveDomainWaterLevelListLiveDomainWaterLevel : allLiveDomainWaterLevelListNode)
{
LiveDomainWaterLevel liveDomainWaterLevelListObject;
if(!valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainName"].isNull())
liveDomainWaterLevelListObject.domainName = valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainName"].asString();
if(!valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainRawCount"].isNull())
liveDomainWaterLevelListObject.domainRawCount = std::stoi(valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainRawCount"].asString());
if(!valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainTranscodeCount"].isNull())
liveDomainWaterLevelListObject.domainTranscodeCount = std::stoi(valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainTranscodeCount"].asString());
if(!valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainRawLimit"].isNull())
liveDomainWaterLevelListObject.domainRawLimit = std::stoi(valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainRawLimit"].asString());
if(!valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainTranscodeLimit"].isNull())
liveDomainWaterLevelListObject.domainTranscodeLimit = std::stoi(valueLiveDomainWaterLevelListLiveDomainWaterLevel["DomainTranscodeLimit"].asString());
liveDomainWaterLevelList_.push_back(liveDomainWaterLevelListObject);
}
auto liveUidWaterLevelNode = value["LiveUidWaterLevel"];
if(!liveUidWaterLevelNode["AliUid"].isNull())
liveUidWaterLevel_.aliUid = liveUidWaterLevelNode["AliUid"].asString();
if(!liveUidWaterLevelNode["UidRawCount"].isNull())
liveUidWaterLevel_.uidRawCount = std::stoi(liveUidWaterLevelNode["UidRawCount"].asString());
if(!liveUidWaterLevelNode["UidTranscodeCount"].isNull())
liveUidWaterLevel_.uidTranscodeCount = std::stoi(liveUidWaterLevelNode["UidTranscodeCount"].asString());
if(!liveUidWaterLevelNode["UidRawLimit"].isNull())
liveUidWaterLevel_.uidRawLimit = std::stoi(liveUidWaterLevelNode["UidRawLimit"].asString());
if(!liveUidWaterLevelNode["UidTranscodeLimit"].isNull())
liveUidWaterLevel_.uidTranscodeLimit = std::stoi(liveUidWaterLevelNode["UidTranscodeLimit"].asString());
}
DescribeLiveDomainStreamWaterLevelResult::LiveUidWaterLevel DescribeLiveDomainStreamWaterLevelResult::getLiveUidWaterLevel()const
{
return liveUidWaterLevel_;
}
std::vector<DescribeLiveDomainStreamWaterLevelResult::LiveDomainWaterLevel> DescribeLiveDomainStreamWaterLevelResult::getLiveDomainWaterLevelList()const
{
return liveDomainWaterLevelList_;
}

View File

@@ -43,14 +43,16 @@ void DescribeLiveShiftConfigsResult::parse(const std::string &payload)
for (auto valueContentConfig : allContentNode)
{
Config contentObject;
if(!valueContentConfig["DomainName"].isNull())
contentObject.domainName = valueContentConfig["DomainName"].asString();
if(!valueContentConfig["AppName"].isNull())
contentObject.appName = valueContentConfig["AppName"].asString();
if(!valueContentConfig["StreamName"].isNull())
contentObject.streamName = valueContentConfig["StreamName"].asString();
if(!valueContentConfig["Vision"].isNull())
contentObject.vision = std::stoi(valueContentConfig["Vision"].asString());
if(!valueContentConfig["DomainName"].isNull())
contentObject.domainName = valueContentConfig["DomainName"].asString();
if(!valueContentConfig["StreamName"].isNull())
contentObject.streamName = valueContentConfig["StreamName"].asString();
if(!valueContentConfig["IgnoreTranscode"].isNull())
contentObject.ignoreTranscode = valueContentConfig["IgnoreTranscode"].asString() == "true";
content_.push_back(contentObject);
}

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/DescribeShowListRequest.h>
using AlibabaCloud::Live::Model::DescribeShowListRequest;
DescribeShowListRequest::DescribeShowListRequest() :
RpcServiceRequest("live", "2016-11-01", "DescribeShowList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeShowListRequest::~DescribeShowListRequest()
{}
std::string DescribeShowListRequest::getCasterId()const
{
return casterId_;
}
void DescribeShowListRequest::setCasterId(const std::string& casterId)
{
casterId_ = casterId;
setParameter("CasterId", casterId);
}
long DescribeShowListRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeShowListRequest::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/DescribeShowListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
DescribeShowListResult::DescribeShowListResult() :
ServiceResult()
{}
DescribeShowListResult::DescribeShowListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeShowListResult::~DescribeShowListResult()
{}
void DescribeShowListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ShowList"].isNull())
showList_ = value["ShowList"].asString();
}
std::string DescribeShowListResult::getShowList()const
{
return showList_;
}

View File

@@ -122,6 +122,8 @@ void DescribeStudioLayoutsResult::parse(const std::string &payload)
studioLayoutsObject.bgImageConfig.materialId = bgImageConfigNode["MaterialId"].asString();
if(!bgImageConfigNode["ImageUrl"].isNull())
studioLayoutsObject.bgImageConfig.imageUrl = bgImageConfigNode["ImageUrl"].asString();
if(!bgImageConfigNode["LocationId"].isNull())
studioLayoutsObject.bgImageConfig.locationId = bgImageConfigNode["LocationId"].asString();
studioLayouts_.push_back(studioLayoutsObject);
}
if(!value["Total"].isNull())

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/ModifyShowListRequest.h>
using AlibabaCloud::Live::Model::ModifyShowListRequest;
ModifyShowListRequest::ModifyShowListRequest() :
RpcServiceRequest("live", "2016-11-01", "ModifyShowList")
{
setMethod(HttpRequest::Method::Post);
}
ModifyShowListRequest::~ModifyShowListRequest()
{}
int ModifyShowListRequest::getRepeatTimes()const
{
return repeatTimes_;
}
void ModifyShowListRequest::setRepeatTimes(int repeatTimes)
{
repeatTimes_ = repeatTimes;
setParameter("RepeatTimes", std::to_string(repeatTimes));
}
std::string ModifyShowListRequest::getHighPriorityShowStartTime()const
{
return highPriorityShowStartTime_;
}
void ModifyShowListRequest::setHighPriorityShowStartTime(const std::string& highPriorityShowStartTime)
{
highPriorityShowStartTime_ = highPriorityShowStartTime;
setParameter("HighPriorityShowStartTime", highPriorityShowStartTime);
}
std::string ModifyShowListRequest::getCasterId()const
{
return casterId_;
}
void ModifyShowListRequest::setCasterId(const std::string& casterId)
{
casterId_ = casterId;
setParameter("CasterId", casterId);
}
std::string ModifyShowListRequest::getHighPriorityShowId()const
{
return highPriorityShowId_;
}
void ModifyShowListRequest::setHighPriorityShowId(const std::string& highPriorityShowId)
{
highPriorityShowId_ = highPriorityShowId;
setParameter("HighPriorityShowId", highPriorityShowId);
}
long ModifyShowListRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyShowListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ModifyShowListRequest::getShowId()const
{
return showId_;
}
void ModifyShowListRequest::setShowId(const std::string& showId)
{
showId_ = showId;
setParameter("ShowId", showId);
}
int ModifyShowListRequest::getSpot()const
{
return spot_;
}
void ModifyShowListRequest::setSpot(int spot)
{
spot_ = spot;
setParameter("Spot", std::to_string(spot));
}

View 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/ModifyShowListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
ModifyShowListResult::ModifyShowListResult() :
ServiceResult()
{}
ModifyShowListResult::ModifyShowListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyShowListResult::~ModifyShowListResult()
{}
void ModifyShowListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -60,6 +60,17 @@ void OpenLiveShiftRequest::setStreamName(const std::string& streamName)
setParameter("StreamName", streamName);
}
bool OpenLiveShiftRequest::getIgnoreTranscode()const
{
return ignoreTranscode_;
}
void OpenLiveShiftRequest::setIgnoreTranscode(bool ignoreTranscode)
{
ignoreTranscode_ = ignoreTranscode;
setParameter("IgnoreTranscode", ignoreTranscode ? "true" : "false");
}
std::string OpenLiveShiftRequest::getDomainName()const
{
return domainName_;

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

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/PlayChoosenShowResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
PlayChoosenShowResult::PlayChoosenShowResult() :
ServiceResult()
{}
PlayChoosenShowResult::PlayChoosenShowResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PlayChoosenShowResult::~PlayChoosenShowResult()
{}
void PlayChoosenShowResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ShowId"].isNull())
showId_ = value["ShowId"].asString();
}
std::string PlayChoosenShowResult::getShowId()const
{
return showId_;
}

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

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/RemoveShowFromShowListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Live;
using namespace AlibabaCloud::Live::Model;
RemoveShowFromShowListResult::RemoveShowFromShowListResult() :
ServiceResult()
{}
RemoveShowFromShowListResult::RemoveShowFromShowListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RemoveShowFromShowListResult::~RemoveShowFromShowListResult()
{}
void RemoveShowFromShowListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ShowId"].isNull())
showId_ = value["ShowId"].asString();
}
std::string RemoveShowFromShowListResult::getShowId()const
{
return showId_;
}