NIMChatroomEnterRequest class

加入聊天室请求

Annotations

Constructors

NIMChatroomEnterRequest({required String roomId, String? nickname, String? avatar, Map<String, dynamic>? extension, Map<String, dynamic>? notifyExtension, List<String>? tags, String? notifyTargetTags, int? retryCount, NIMChatroomIndependentModeConfig? independentModeConfig, NIMChatroomIndependentModeConfigDesktop? desktopIndependentModeConfig, int loginAuthType = 0})
NIMChatroomEnterRequest.fromMap(Map<String, dynamic> map)
factory

Properties

avatar String?
进入聊天室后展示的头像
final
desktopIndependentModeConfig NIMChatroomIndependentModeConfigDesktop?
Windows & macOS聊天室独立模式配置
final
extension Map<String, dynamic>?
进入聊天室后展示的扩展字段,长度限制4K。在设置后:
final
hashCode int
The hash code for this object.
no setterinherited
independentModeConfig NIMChatroomIndependentModeConfig?
聊天室独立模式配置
final
loginAuthType int
鉴权方式,0表示最初的loginToken的校验方式,1表示基于appSecret计算的token鉴权方式,2表示基于第三方回调的token鉴权方式,默认0 暂时只支持 0,不支持 1 和 2
final
nickname String?
进入聊天室后展示的昵称 可选字段,如果不填则直接使用NimUserInfo的数据
final
notifyExtension Map<String, dynamic>?
进入聊天室通知开发者扩展字段,长度限制2K。
final
notifyTargetTags String?
登录登出通知的目标标签,是一个标签表达式,见TagCalculator和TagPattern
final
retryCount int?
重试加入聊天室的次数
final
roomId String
聊天室ID
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags List<String>?
登录标签,可以设置多个, 例子:"tag1", "tag2"
final

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.
inherited

Operators

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