NIMChatroomMember class
聊天室成员信息
- Annotations
Constructors
-
NIMChatroomMember({required String roomId, required String account, required NIMChatroomMemberType memberType, required String? nickname, String? avatar, Map<
String, dynamic> ? extension, bool isOnline = true, bool isInBlackList = false, bool isMuted = false, bool isTempMuted = false, int? tempMuteDuration, bool? isValid = true, int? enterTime, List<String> ? tags, String? notifyTargetTags}) -
NIMChatroomMember.fromMap(Map<
String, dynamic> json) -
factory
Properties
- account → String
-
成员账号
final
- avatar → String?
-
聊天室内的头像,预留字段,可从NimUserInfo中取avatar,可以由用户进聊天室时提交。
final
- enterTime → int?
-
进入聊天室的时间点,对于离线成员该字段为空
final
-
extension
→ Map<
String, dynamic> ? -
开发者扩展字段,长度限制4k,可以由用户进聊天室时提交。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInBlackList → bool
-
是否在黑名单中
final
- isMuted → bool
-
是禁言用户
final
- isOnline → bool
-
成员是否处于在线状态,仅特殊成员才可能离线,对游客/匿名用户而言只能是在线。
final
- isTempMuted → bool
-
是否临时禁言
final
- isValid → bool?
-
记录有效标记为
final
- memberType → NIMChatroomMemberType
-
成员类型:主要分为游客和非游客,非游客又分成受限用户、普通用户、创建者、管理员;
final
- nickname → String?
-
聊天室内的昵称字段,预留字段,可从NimUserInfo中取,也可以由用户进聊天室时提交。
final
- notifyTargetTags → String?
-
通知目标标签
final
- roomId → String
-
聊天室id
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
固定成员的记录更新时间,用于固定成员列表的排列查询
用户标签
final
- tempMuteDuration → int?
-
临时禁言的解除时长,单位秒
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited