NIMRecentSession Class Reference

Inherits from NSObject
Declared in NIMRecentSession.h

Overview

Recent session

  session

Current session

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

Discussion

Current session

Declared In

NIMRecentSession.h

  lastMessage

Last message

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

Discussion

Last message

Declared In

NIMRecentSession.h

  unreadCount

Unread count

@property (nonatomic, readonly, assign) NSInteger unreadCount

Discussion

Unread count

Declared In

NIMRecentSession.h

  localExt

Local extension field

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

Discussion

Local extension field

Declared In

NIMRecentSession.h

  updateTime

The latest update time of the server session. The local session is invalid

@property (nonatomic, readonly, assign) NSTimeInterval updateTime

Discussion

The latest update time of the server session. The local session is invalid

Declared In

NIMRecentSession.h

  serverExt

Session server extension field. This field is invalid for local sessions

@property (nonatomic, copy) NSString *serverExt

Discussion

Session server extension field. This field is invalid for local sessions

Declared In

NIMRecentSession.h

  lastMessageType

Type of the most recent message. This field is invalid for local sessions

@property (nonatomic, readonly, assign) NIMLastMsgType lastMessageType

Discussion

Type of the most recent message. This field is invalid for local sessions

Declared In

NIMRecentSession.h

  lastRevokeNotification

Last recalled notification. This field is invalid for local sessions) If lastMessageType is NIMLastMsgTypeNormalMessage, get the last message by calling lastMessage. The field is set to nil. If lastMessageType is NIMLastMsgTypeRevokeNotication, set lastMessage to nil. If the last message is recalled, use this field.

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

Discussion

Last recalled notification. This field is invalid for local sessions) If lastMessageType is NIMLastMsgTypeNormalMessage, get the last message by calling lastMessage. The field is set to nil. If lastMessageType is NIMLastMsgTypeRevokeNotication, set lastMessage to nil. If the last message is recalled, use this field.

Declared In

NIMRecentSession.h