Add list live message interface.

This commit is contained in:
sdk-team
2022-12-05 02:44:08 +00:00
parent f9ab1f5227
commit f5fc8b1bdb
5 changed files with 16 additions and 1 deletions

View File

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

View File

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

View File

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

View File

@@ -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())