NIMChatroomEnterRequest class Null safety

Request for joining a chat room

Annotations
  • @JsonSerializable()

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})
NIMChatroomEnterRequest.fromMap(Map<String, dynamic> map)
factory

Properties

avatar String?
final
desktopIndependentModeConfig NIMChatroomIndependentModeConfigDesktop?
Windows & macOS standalone mode configuration
@JsonKey(toJson: _chatRoomIndependentModeConfigDesktopToJson, fromJson: _chatRoomIndependentModeConfigDesktopFromJson), final
extension Map<String, dynamic>?
  • you can get the value from NIMChatroomMember.extension.
  • you can get the value from NIMChatroomMessage.extension.senderExtension when receiving messages in a chat room.
  • @JsonKey(fromJson: castPlatformMapToDartMap), final
    hashCode int
    The hash code for this object.
    read-only, inherited
    independentModeConfig NIMChatroomIndependentModeConfig?
    Chat room standalone mode configuration
    @JsonKey(toJson: _chatRoomIndependentModeConfigToJson, fromJson: _chatRoomIndependentModeConfigFromJson), final
    nickname String?
    Optional field. if unspecified, the data of NimUserInfo will be used
    final
    notifyExtension Map<String, dynamic>?
    Extension field for notification when a user joins a chat room. 2,000 characters are allowed.
    @JsonKey(fromJson: castPlatformMapToDartMap), final
    notifyTargetTags String?
    Target tags for login and logout notifications are tag expressions. For more information, see TagCalculator and TagPattern
    final
    retryCount int?
    Retry count for joining a chat room
    final
    roomId String
    Chat room ID
    final
    runtimeType Type
    A representation of the runtime type of the object.
    read-only, inherited
    tags List<String>?
    Login tags. You can specify multuple tags. For example, "tag1", "tag2"
    final

    Methods

    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a non-existent 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