ChatRoom class

~english The chat room instance class.

Note To get the correct value, ensure that you call ChatRoomManager.fetchChatRoomInfoFromServer before calling this method. ~end

~chinese 聊天室信息类,包含内存中的聊天室信息。

Note 如需最新数据,需从服务器获取:ChatRoomManager.fetchChatRoomInfoFromServer。 ~end

Constructors

ChatRoom.fromJson(Map<String, dynamic> map)
factory

Properties

adminList List<String>?
~english Gets the chat room admin list.
final
announcement String?
~english Gets the chat room announcement in the chat room from the memory.
final
blockList List<String>?
~english Gets the chat room block list.
final
description String?
~english Gets the chat room description from the memory.
final
hashCode int
The hash code for this object.
no setterinherited
isAllMemberMuted bool?
~english Checks whether all members are muted in the chat room from the memory.
final
maxUsers int?
~english Gets the maximum number of members in the chat room from the memory, which is set/specified when the chat room is created.
final
memberCount int?
~english Gets the number of online members from the memory.
final
memberList List<String>?
~english Gets the member list.
final
muteList List<String>?
~english Gets the mute list of the chat room.
final
name String?
~english Gets the chat room name from the memory.
final
owner String?
~english Gets the chat room owner ID. If this method returns an empty string, the SDK fails to get chat room details.
final
permissionType ChatRoomPermissionType
~english Gets the current user's role in the chat room. The role types: ChatRoomPermissionType.
final
roomId String
~english Gets the chat room 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