NIMRecentSession Class Reference

Inherits from NSObject
Declared in NIMRecentSession.h

Overview

最近会话

  session

当前会话

@property (nullable, nonatomic, readonly, copy) NIMSession *session

Discussion

当前会话

Declared In

NIMRecentSession.h

  lastMessage

最后一条消息

@property (nullable, nonatomic, strong) NIMMessage *lastMessage

Discussion

最后一条消息

Declared In

NIMRecentSession.h

  unreadCount

未读消息数

@property (nonatomic, readonly, assign) NSInteger unreadCount

Discussion

未读消息数

Declared In

NIMRecentSession.h

  localExt

本地扩展

@property (nullable, nonatomic, readonly, copy) NSDictionary *localExt

Discussion

本地扩展

Declared In

NIMRecentSession.h

  updateTime

服务端会话的最新更新时间,本地会话无效

@property (nonatomic, readonly, assign) NSTimeInterval updateTime

Discussion

服务端会话的最新更新时间,本地会话无效

Declared In

NIMRecentSession.h

  serverExt

会话服务扩展字段(本地会话该字段无效)

@property (nonatomic, copy) NSString *serverExt

Discussion

会话服务扩展字段(本地会话该字段无效)

Declared In

NIMRecentSession.h

  lastMessageType

最后一条消息的类型(本地会话该字段无效)

@property (nonatomic, readonly, assign) NIMLastMsgType lastMessageType

Discussion

最后一条消息的类型(本地会话该字段无效)

Declared In

NIMRecentSession.h

  lastRevokeNotification

最后一条撤回通知(本地会话该字段无效) lastMessageType为NIMLastMsgTypeNormalMessage时,最后一条为普通消息,请使用lastMessage获取,本字段为nil lastMessageType为NIMLastMsgTypeRevokeNotication时,lastMessage字段为nil,最后一条为撤回通知,请使用本字段获取

@property (nullable, nonatomic, readonly, strong) NIMRevokeMessageNotification *lastRevokeNotification

Discussion

最后一条撤回通知(本地会话该字段无效) lastMessageType为NIMLastMsgTypeNormalMessage时,最后一条为普通消息,请使用lastMessage获取,本字段为nil lastMessageType为NIMLastMsgTypeRevokeNotication时,lastMessage字段为nil,最后一条为撤回通知,请使用本字段获取

Declared In

NIMRecentSession.h