NIMMessageReceipt Class Reference

Inherits from NSObject
Declared in NIMMessageReceipt.h

Overview

已读回执

  session

已读回执对应的会话

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

Discussion

已读回执对应的会话

Declared In

NIMMessageReceipt.h

  timestamp

时间戳

@property (nonatomic, assign, readonly) NSTimeInterval timestamp

Discussion

时间戳

发送已读回执时,这个字段需要被设置为当前会话中的最后一条消息时间戳 接受已读回执时,这个字段表示在这个时间戳之前的消息都已读 此字段支持 P2P 会话类型

Declared In

NIMMessageReceipt.h

  messageId

消息 Id

@property (nonatomic, copy, readonly) NSString *messageId

Discussion

消息 Id

只有 Team 会话有效,表示已读的这条消息的 Id

Declared In

NIMMessageReceipt.h

  teamReceiptInfo

群已读回执相关信息

@property (nonatomic, strong, readonly) NIMTeamMessageReceipt *teamReceiptInfo

Discussion

群已读回执相关信息

Declared In

NIMMessageReceipt.h

– initWithMessage:

通过最后一条消息构造已读回执

- (instancetype)initWithMessage:(NIMMessage *)message

Parameters

message

会话中的最后一条消息

Return Value

已读回执实例

Discussion

通过最后一条消息构造已读回执

Declared In

NIMMessageReceipt.h