NIMMessageConfig class

消息配置

Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

NIMMessageConfig({bool? readReceiptEnabled, bool? lastMessageUpdateEnabled, bool? historyEnabled, bool? roamingEnabled, bool? onlineSyncEnabled, bool? offlineEnabled, bool? unreadEnabled})
NIMMessageConfig.fromJson(Map<String, dynamic> map)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
historyEnabled bool?
是否需要在服务端保存历史消息。YES:需要,NO:不需要,默认NO
getter/setter pair
lastMessageUpdateEnabled bool?
是否需要更新消息所属的会话信息。YES:需要,NO:不需要,默认为NO
getter/setter pair
offlineEnabled bool?
是否需要存离线消息。YES:需要,NO:不需要,默认NO
getter/setter pair
onlineSyncEnabled bool?
是否需要发送方多端在线同步消息。YES:需要,NO:不需要,默认NO
getter/setter pair
readReceiptEnabled bool?
是否需要群消息已读回执信息。YES:需要,NO:不需要,默认为NO
getter/setter pair
roamingEnabled bool?
是否需要漫游消息。YES:需要,NO:不需要,默认NO
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unreadEnabled bool?
是否需要计未读。YES:需要,NO:不需要,默认NO
getter/setter pair

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited