NIMChatroomMember class Null safety

Chat room members info

Annotations
  • @JsonSerializable()

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
Member Account
final
avatar → String?
Avatar in a chat room, reserved field that can be retrieved from NimUserInfo, and submitted by the user when entering the chat room.
final
enterTime → int?
The time when a user joined a chat room. The field is empty for offline members.
final
extension → Map<String, dynamic>?
Extension field that can contain 4000 characters and is submitted by users when joining a chat room
@JsonKey(fromJson: castPlatformMapToDartMap), final
hashCode → int
The hash code for this object.
read-only, inherited
isInBlackList → bool
Check if the member is included in a blocklist.
final
isMuted → bool
Check if the member is muted.
final
isOnline → bool
Check if members are online. Special members can set to offline. Guests and anonymous users must stay online.
final
isTempMuted → bool
Check if the member is temporarily muted.
final
isValid → bool?
Check if a tag is valid
final
memberType → NIMChatroomMemberType
Member types: guest and non-guest. Non-guests include restricted members, members, owner, and admins.
@JsonKey(unknownEnumValue: NIMChatroomMemberType.unknown), final
nickname → String?
Nickname field in a chat room, reserved field that can be retrieved from NimUserInfo or submitted by the user when entering a chat room.
final
notifyTargetTags → String?
Tags for notification recipients
final
roomId → String
Chat room ID
final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
tags → List<String>?
The record update time for permanent members, used for querying the member list User tags
final
tempMuteDuration → int?
Duration for the being temporarily muted in seconds
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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