Browse Source

Generated 2016-11-01 for live.

sdk-team 4 years ago
parent
commit
ce5db2480c

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2022-05-16 Version: 1.36.1126
+- Generated 2016-11-01 for `live`.
+
 2022-05-13 Version: 1.36.1125
 - Add ListDashboardUrl api.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1125
+1.36.1126

+ 2 - 0
live/include/alibabacloud/live/model/DescribeCasterConfigResult.h

@@ -64,6 +64,7 @@ namespace AlibabaCloud
 				int getChannelEnable()const;
 				std::string getDomainName()const;
 				std::string getUrgentMaterialId()const;
+				std::string getSideOutputUrlList()const;
 				TranscodeConfig getTranscodeConfig()const;
 				std::string getProgramName()const;
 				float getDelay()const;
@@ -81,6 +82,7 @@ namespace AlibabaCloud
 				int channelEnable_;
 				std::string domainName_;
 				std::string urgentMaterialId_;
+				std::string sideOutputUrlList_;
 				TranscodeConfig transcodeConfig_;
 				std::string programName_;
 				float delay_;

+ 26 - 0
live/include/alibabacloud/live/model/DescribeShowListResult.h

@@ -32,16 +32,42 @@ namespace AlibabaCloud
 			class ALIBABACLOUD_LIVE_EXPORT DescribeShowListResult : public ServiceResult
 			{
 			public:
+				struct ShowListInfo
+				{
+					struct Show
+					{
+						struct ResourceInfo
+						{
+							std::string resourceId;
+							std::string resourceType;
+							std::string resourceUrl;
+							int liveInputType;
+						};
+						ResourceInfo resourceInfo;
+						std::string showId;
+						long duration;
+						int repeatTimes;
+						std::string showName;
+					};
+					std::string currentShowId;
+					std::string highPriorityShowStartTime;
+					int totalShowListRepeatTimes;
+					std::string highPriorityShowId;
+					int showListRepeatTimes;
+					std::vector<Show> showList;
+				};
 
 
 				DescribeShowListResult();
 				explicit DescribeShowListResult(const std::string &payload);
 				~DescribeShowListResult();
+				ShowListInfo getShowListInfo()const;
 				std::string getShowList()const;
 
 			protected:
 				void parse(const std::string &payload);
 			private:
+				ShowListInfo showListInfo_;
 				std::string showList_;
 
 			};

+ 3 - 0
live/include/alibabacloud/live/model/InitializeAutoShowListTaskRequest.h

@@ -40,6 +40,8 @@ public:
 	void setEndTime(long endTime);
 	long getOwnerId() const;
 	void setOwnerId(long ownerId);
+	std::string getCallBackUrl() const;
+	void setCallBackUrl(const std::string &callBackUrl);
 	std::string getResourceIds() const;
 	void setResourceIds(const std::string &resourceIds);
 
@@ -49,6 +51,7 @@ private:
 	std::string domainName_;
 	long endTime_;
 	long ownerId_;
+	std::string callBackUrl_;
 	std::string resourceIds_;
 };
 } // namespace Model

+ 15 - 8
live/src/model/DescribeCasterConfigResult.cc

@@ -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 - 0
live/src/model/DescribeShowListResult.cc

@@ -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_;

+ 9 - 0
live/src/model/InitializeAutoShowListTaskRequest.cc

@@ -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_;
 }