Generated 2016-11-01 for live.
This commit is contained in:
@@ -79,24 +79,26 @@ void DescribeCasterConfigResult::parse(const std::string &payload)
|
||||
}
|
||||
if(!value["Delay"].isNull())
|
||||
delay_ = std::stof(value["Delay"].asString());
|
||||
if(!value["CallbackUrl"].isNull())
|
||||
callbackUrl_ = value["CallbackUrl"].asString();
|
||||
if(!value["UrgentMaterialId"].isNull())
|
||||
urgentMaterialId_ = value["UrgentMaterialId"].asString();
|
||||
if(!value["CallbackUrl"].isNull())
|
||||
callbackUrl_ = value["CallbackUrl"].asString();
|
||||
if(!value["ProgramName"].isNull())
|
||||
programName_ = value["ProgramName"].asString();
|
||||
if(!value["SideOutputUrl"].isNull())
|
||||
sideOutputUrl_ = value["SideOutputUrl"].asString();
|
||||
if(!value["CasterName"].isNull())
|
||||
casterName_ = value["CasterName"].asString();
|
||||
if(!value["ProgramEffect"].isNull())
|
||||
programEffect_ = std::stoi(value["ProgramEffect"].asString());
|
||||
if(!value["CasterId"].isNull())
|
||||
casterId_ = value["CasterId"].asString();
|
||||
if(!value["ChannelEnable"].isNull())
|
||||
channelEnable_ = std::stoi(value["ChannelEnable"].asString());
|
||||
if(!value["ProgramEffect"].isNull())
|
||||
programEffect_ = std::stoi(value["ProgramEffect"].asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["ChannelEnable"].isNull())
|
||||
channelEnable_ = std::stoi(value["ChannelEnable"].asString());
|
||||
if(!value["SideOutputUrlList"].isNull())
|
||||
sideOutputUrlList_ = value["SideOutputUrlList"].asString();
|
||||
if(!value["SideOutputUrl"].isNull())
|
||||
sideOutputUrl_ = value["SideOutputUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -115,6 +117,11 @@ std::string DescribeCasterConfigResult::getUrgentMaterialId()const
|
||||
return urgentMaterialId_;
|
||||
}
|
||||
|
||||
std::string DescribeCasterConfigResult::getSideOutputUrlList()const
|
||||
{
|
||||
return sideOutputUrlList_;
|
||||
}
|
||||
|
||||
DescribeCasterConfigResult::TranscodeConfig DescribeCasterConfigResult::getTranscodeConfig()const
|
||||
{
|
||||
return transcodeConfig_;
|
||||
|
||||
@@ -39,11 +39,50 @@ void DescribeShowListResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto showListInfoNode = value["ShowListInfo"];
|
||||
if(!showListInfoNode["HighPriorityShowStartTime"].isNull())
|
||||
showListInfo_.highPriorityShowStartTime = showListInfoNode["HighPriorityShowStartTime"].asString();
|
||||
if(!showListInfoNode["TotalShowListRepeatTimes"].isNull())
|
||||
showListInfo_.totalShowListRepeatTimes = std::stoi(showListInfoNode["TotalShowListRepeatTimes"].asString());
|
||||
if(!showListInfoNode["ShowListRepeatTimes"].isNull())
|
||||
showListInfo_.showListRepeatTimes = std::stoi(showListInfoNode["ShowListRepeatTimes"].asString());
|
||||
if(!showListInfoNode["CurrentShowId"].isNull())
|
||||
showListInfo_.currentShowId = showListInfoNode["CurrentShowId"].asString();
|
||||
if(!showListInfoNode["HighPriorityShowId"].isNull())
|
||||
showListInfo_.highPriorityShowId = showListInfoNode["HighPriorityShowId"].asString();
|
||||
auto allShowListNode = showListInfoNode["ShowList"]["Show"];
|
||||
for (auto showListInfoNodeShowListShow : allShowListNode)
|
||||
{
|
||||
ShowListInfo::Show showObject;
|
||||
if(!showListInfoNodeShowListShow["ShowName"].isNull())
|
||||
showObject.showName = showListInfoNodeShowListShow["ShowName"].asString();
|
||||
if(!showListInfoNodeShowListShow["Duration"].isNull())
|
||||
showObject.duration = std::stol(showListInfoNodeShowListShow["Duration"].asString());
|
||||
if(!showListInfoNodeShowListShow["RepeatTimes"].isNull())
|
||||
showObject.repeatTimes = std::stoi(showListInfoNodeShowListShow["RepeatTimes"].asString());
|
||||
if(!showListInfoNodeShowListShow["ShowId"].isNull())
|
||||
showObject.showId = showListInfoNodeShowListShow["ShowId"].asString();
|
||||
auto resourceInfoNode = value["ResourceInfo"];
|
||||
if(!resourceInfoNode["LiveInputType"].isNull())
|
||||
showObject.resourceInfo.liveInputType = std::stoi(resourceInfoNode["LiveInputType"].asString());
|
||||
if(!resourceInfoNode["ResourceUrl"].isNull())
|
||||
showObject.resourceInfo.resourceUrl = resourceInfoNode["ResourceUrl"].asString();
|
||||
if(!resourceInfoNode["ResourceType"].isNull())
|
||||
showObject.resourceInfo.resourceType = resourceInfoNode["ResourceType"].asString();
|
||||
if(!resourceInfoNode["ResourceId"].isNull())
|
||||
showObject.resourceInfo.resourceId = resourceInfoNode["ResourceId"].asString();
|
||||
showListInfo_.showList.push_back(showObject);
|
||||
}
|
||||
if(!value["ShowList"].isNull())
|
||||
showList_ = value["ShowList"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeShowListResult::ShowListInfo DescribeShowListResult::getShowListInfo()const
|
||||
{
|
||||
return showListInfo_;
|
||||
}
|
||||
|
||||
std::string DescribeShowListResult::getShowList()const
|
||||
{
|
||||
return showList_;
|
||||
|
||||
@@ -70,6 +70,15 @@ void InitializeAutoShowListTaskRequest::setOwnerId(long ownerId) {
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string InitializeAutoShowListTaskRequest::getCallBackUrl() const {
|
||||
return callBackUrl_;
|
||||
}
|
||||
|
||||
void InitializeAutoShowListTaskRequest::setCallBackUrl(const std::string &callBackUrl) {
|
||||
callBackUrl_ = callBackUrl;
|
||||
setParameter(std::string("CallBackUrl"), callBackUrl);
|
||||
}
|
||||
|
||||
std::string InitializeAutoShowListTaskRequest::getResourceIds() const {
|
||||
return resourceIds_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user