Class NERoomRecentSession
-
- All Implemented Interfaces:
public final class NERoomRecentSession
-
-
Field Summary
Fields Modifier and Type Field Description private final StringsessionIdprivate final StringfromAccountprivate final StringfromNickprivate final NERoomSessionTypeEnumsessionTypeprivate final StringrecentMessageIdprivate final IntegerunreadCountprivate final Stringcontentprivate final Longtime
-
Constructor Summary
Constructors Constructor Description NERoomRecentSession(String sessionId, String fromAccount, String fromNick, NERoomSessionTypeEnum sessionType, String recentMessageId, Integer unreadCount, String content, Long time)
-
Method Summary
Modifier and Type Method Description final StringgetSessionId()获取聊天对象的Id(好友帐号,群ID等) final StringgetFromAccount()获取与该联系人的最后一条消息的发送方的帐号 final StringgetFromNick()获取与该联系人的最后一条消息的发送方的昵称 final NERoomSessionTypeEnumgetSessionType()获取会话类型 final StringgetRecentMessageId()最近一条消息的消息ID final IntegergetUnreadCount()获取该联系人的未读消息条数 final StringgetContent()获取最近一条消息的缩略内容。<br></br> 对于文本消息,返回文本内容。<br></br> 对于其他消息,返回一个简单的说明内容。如需展示更详细,或其他需求,可根据. final LonggetTime()获取最近一条消息的时间,单位为ms -
-
Method Detail
-
getSessionId
final String getSessionId()
获取聊天对象的Id(好友帐号,群ID等)
-
getFromAccount
final String getFromAccount()
获取与该联系人的最后一条消息的发送方的帐号
-
getFromNick
final String getFromNick()
获取与该联系人的最后一条消息的发送方的昵称
-
getSessionType
final NERoomSessionTypeEnum getSessionType()
获取会话类型
-
getRecentMessageId
final String getRecentMessageId()
最近一条消息的消息ID
-
getUnreadCount
final Integer getUnreadCount()
获取该联系人的未读消息条数
-
getContent
final String getContent()
获取最近一条消息的缩略内容。<br></br> 对于文本消息,返回文本内容。<br></br> 对于其他消息,返回一个简单的说明内容。如需展示更详细,或其他需求,可根据.getAttachment生成。
-
-
-
-