SyImReadReceipt class

已读回执(单聊 + 群聊统一)。与 Android ImReadReceipt、iOS SyImReadReceipt 字段和语义相同:

  • conversationId:OpenIM 会话 id(单聊 si_<小 uid>_<大 uid>,群 sg_<groupId>);推导不出时为空串。
  • userId:已读方。groupId:群聊为群 id,单聊为 null。
  • msgIds:该已读方本次已读的客户端消息 id。readTime:毫秒,OpenIM 没给时为 0。

Constructors

SyImReadReceipt({String conversationId = '', String userId = '', String? groupId, List<String> msgIds = const [], int readTime = 0})
const

Properties

conversationId → String
final
groupId → String?
final
hashCode → int
The hash code for this object.
no setteroverride
isGroup → bool
no setter
msgIds → List<String>
final
readTime → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override