Browse Source

Add list live message interface.

sdk-team 3 years ago
parent
commit
f5fc8b1bdb

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1370
+1.36.1371

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

@@ -38,12 +38,15 @@ public:
 	void setUserId(const std::string &userId);
 	int getPageSize() const;
 	void setPageSize(int pageSize);
+	std::string getAppId() const;
+	void setAppId(const std::string &appId);
 
 private:
 	int sortType_;
 	int pageNum_;
 	std::string userId_;
 	int pageSize_;
+	std::string appId_;
 };
 } // namespace Model
 } // namespace Live

+ 1 - 0
live/include/alibabacloud/live/model/ListMessageGroupResult.h

@@ -38,6 +38,7 @@ namespace AlibabaCloud
 					{
 						int status;
 						std::string extension;
+						std::string appId;
 						std::string creatorId;
 						long createTime;
 						std::string groupId;

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

@@ -61,3 +61,12 @@ void ListMessageGroupRequest::setPageSize(int pageSize) {
   setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
 }
 
+std::string ListMessageGroupRequest::getAppId() const {
+  return appId_;
+}
+
+void ListMessageGroupRequest::setAppId(const std::string &appId) {
+  appId_ = appId;
+  setBodyParameter(std::string("AppId"), appId);
+}
+

+ 2 - 0
live/src/model/ListMessageGroupResult.cc

@@ -50,6 +50,8 @@ void ListMessageGroupResult::parse(const std::string &payload)
 		Result::GroupListItem groupListItemObject;
 		if(!resultNodeGroupListgroupListItem["GroupId"].isNull())
 			groupListItemObject.groupId = resultNodeGroupListgroupListItem["GroupId"].asString();
+		if(!resultNodeGroupListgroupListItem["AppId"].isNull())
+			groupListItemObject.appId = resultNodeGroupListgroupListItem["AppId"].asString();
 		if(!resultNodeGroupListgroupListItem["CreateTime"].isNull())
 			groupListItemObject.createTime = std::stol(resultNodeGroupListgroupListItem["CreateTime"].asString());
 		if(!resultNodeGroupListgroupListItem["Status"].isNull())