Add list live message interface.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
int status;
|
||||
std::string extension;
|
||||
std::string appId;
|
||||
std::string creatorId;
|
||||
long createTime;
|
||||
std::string groupId;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user