ChatRoom class
聊天室信息类,包含内存中的聊天室信息。
Note 如需最新数据,需从服务器获取:ChatRoomManager.fetchChatRoomInfoFromServer。
Constructors
-
ChatRoom.fromJson(Map<
String, dynamic> map) -
factory
Properties
-
adminList
→ List<
String> ? -
从内存中获取聊天室管理员列表。
final
- announcement → String?
-
从内存中获取聊天室公告。
final
-
blockList
→ List<
String> ? -
从内存中获取聊天室黑名单列表。
final
- createTimestamp → int
-
获取聊天室创建时间戳(毫秒)。
只有加入聊天室后可获取。
final
- description → String?
-
从内存中获取聊天室描述。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAllMemberMuted → bool?
-
聊天室成员是否全部被禁言。
聊天室成员是否全部被禁言,加入聊天室即可获取。
加入聊天室后,收到一键禁言/取消禁言的回调时,该状态会更新。
final
- isInWhitelist → bool
-
当前登录用户是否在白名单中。
加入聊天室后可获取。
当前用户被加入或者被移除白名单时,此属性会发生变化。
final
- maxUsers → int?
-
从内存中获取聊天室最大人数限制,在创建聊天室时设置。
final
- memberCount → int?
-
聊天室的当前人数
包括聊天室所有者、管理员与普通成员
加入聊天室即可获取
当聊天室有成员进出时,此属性会更新。
final
-
memberList
→ List<
String> ? -
从内存中获取聊天室成员列表。
final
- muteExpireTimestamp → int
-
获取当前被禁言截止时间戳(毫秒)。
final
-
muteList
→ List<
String> ? -
从内存中获取禁言列表。
final
- name → String?
-
从内存中获取聊天室名称。
final
- owner → String?
-
从内存中获取聊天室所有者 ID。
final
- permissionType → ChatRoomPermissionType
-
从内存中获取当前用户在聊天室角色,详见 ChatRoomPermissionType。
final
- roomId → String
-
从内存中获取聊天室 ID。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited