UserModel.fromTUIUserInfo constructor
UserModel.fromTUIUserInfo(
- TUIUserInfo userInfo
Implementation
UserModel.fromTUIUserInfo(TUIUserInfo userInfo) {
userId.value = userInfo.userId;
userName.value = userInfo.userName;
userAvatarURL.value = userInfo.avatarUrl;
userRole.value = userInfo.userRole;
hasVideoStream.value = userInfo.hasVideoStream!;
hasAudioStream.value = userInfo.hasAudioStream!;
hasScreenStream.value = userInfo.hasScreenStream!;
}