TUIUserInfo class

4.3 User Information in the Room

Constructors

TUIUserInfo({required String userId, required String userName, required String avatarUrl, required TUIRole userRole, String? nameCard, bool? hasAudioStream, bool? hasVideoStream, bool? hasScreenStream, Map<String, String>? customInfo, bool? isMessageDisabled})
TUIUserInfo.fromJson(Map<String, dynamic> json)
TUIUserInfo.fromNewJson(Map<String, dynamic> json)

Properties

avatarUrl ↔ String
User Avatar URL
getter/setter pair
customInfo ↔ Map<String, String>?
Custom information of users in room
getter/setter pair
hasAudioStream ↔ bool?
Whether there is an audio stream, default value: false.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hasScreenStream ↔ bool?
Whether there is a screen sharing stream, default value: false.
getter/setter pair
hasVideoStream ↔ bool?
Whether there is a video stream, default value: false.
getter/setter pair
isMessageDisabled ↔ bool?
Whether message is disabled, default value: false.
getter/setter pair
level ↔ int
User level
getter/setter pair
nameCard ↔ String?
NameCard
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId ↔ String
User ID
getter/setter pair
userName ↔ String
User Name
getter/setter pair
userRole ↔ TUIRole
User Role Type, please refer to: TUIRole.
getter/setter pair

Methods

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

Operators

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