public static class GroupAnnouncementChangedEvent.ChangeEntity
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
GroupAnnouncementChangedEvent.ChangeEntity.Type |
构造器和说明 |
---|
ChangeEntity(long fromUid,
GroupAnnouncementChangedEvent.ChangeEntity.Type type,
GroupAnnouncement announcement,
long ctime) |
限定符和类型 | 方法和说明 |
---|---|
GroupAnnouncement |
getAnnouncement()
获取变更内容,当type是
GroupAnnouncementChangedEvent.ChangeEntity.Type.publish_group_annoucement 返回新创建的群公告当type是 GroupAnnouncementChangedEvent.ChangeEntity.Type.delete_group_announcement 返回的群公告对象中只包含groupID,announceID字段当type是 GroupAnnouncementChangedEvent.ChangeEntity.Type.set_top_announcement 返回的群公告对象中只包含groupID,announceID,isTop,topTime字段注意此对象中仅包含针对该事件类型的变更内容,如果本地不需知道详细变更容,可以不处理,收到event时更新群公告即可。 |
long |
getCtime()
获取事件发生时间,单位毫秒
|
UserInfo |
getFromUserInfo()
获取修改者的用户信息, 本地未找到返回null
|
GroupAnnouncementChangedEvent.ChangeEntity.Type |
getType()
获取事件类型
|
public ChangeEntity(long fromUid, GroupAnnouncementChangedEvent.ChangeEntity.Type type, GroupAnnouncement announcement, long ctime)
public UserInfo getFromUserInfo()
public GroupAnnouncementChangedEvent.ChangeEntity.Type getType()
public GroupAnnouncement getAnnouncement()
GroupAnnouncementChangedEvent.ChangeEntity.Type.publish_group_annoucement
返回新创建的群公告GroupAnnouncementChangedEvent.ChangeEntity.Type.delete_group_announcement
返回的群公告对象中只包含groupID,announceID字段GroupAnnouncementChangedEvent.ChangeEntity.Type.set_top_announcement
返回的群公告对象中只包含groupID,announceID,isTop,topTime字段public long getCtime()