ChatGroup class
群组信息类,包含内存中的群组相关信息。
Note 如需最新数据,需先从服务器获取:ChatGroupManager.fetchGroupInfoFromServer。
Constructors
-
ChatGroup({required String groupId, String? groupName, String? avatarUrl, String? desc, String? owner, String? announcement, int? memberCount, List<
String> ? memberList, List<String> ? adminList, List<String> ? blockList, List<String> ? muteList, bool? messageBlocked, bool? isAllMemberMuted, ChatGroupPermissionType? permissionType, int? maxUserCount, bool? isPublic, bool? isJoinApprovalRequired, bool? isMemberAllowToInvite, String? extension, ChatGroupConfigs? configs, bool isDisabled = false}) - ChatGroup.fromJson(Map map)
-
factory
Properties
-
adminList
→ List<
String> ? -
从内存中获取群组管理员列表。
final
- announcement → String?
-
从内存中获取群公告内容。
final
- avatarUrl → String?
-
从内存中获取群组头像。
final
-
blockList
→ List<
String> ? -
从内存中获取群组黑名单。
final
- configs → ChatGroupConfigs?
-
群组配置。
final
- desc → String?
-
从内存中获取群组描述。
final
- extension → String?
-
群组ext
final
- groupId → String
-
群组 ID。
final
- groupName → String?
-
从内存中获取群组名称。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAllMemberMuted → bool?
-
从内存中获取是否已经全员禁言。
final
- isDisabled → bool
-
组是否被禁用。从数据库读取或提取漫游消息的默认值是false。
final
- isJoinApprovalRequired → bool?
-
加入公开群是否需要审批。
final
- isMemberAllowToInvite → bool?
-
从内存中获取是否允许成员邀请他人进群。
final
- isPublic → bool?
-
群组是否为公开群。
final
- maxUserCount → int?
-
从内存中获取群组最大人数限制,创建时确定。
Note
如需最新数据,需先从服务器获取: ChatGroupManager.fetchGroupInfoFromServer。
final
- memberCount → int?
-
从内存中获取群组成员数量。
final
-
memberList
→ List<
String> ? -
从内存中获取群组成员列表。
final
- messageBlocked → bool?
-
从内存中获取消息是否被屏蔽。
final
-
muteList
→ List<
String> ? -
从内存中获取群组禁言名单。
final
- owner → String?
-
从内存中获取群主用户 ID。
final
- permissionType → ChatGroupPermissionType?
-
从内存中获取当前用户在群组中的角色。
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 -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited