Usernames class

Describes usernames assigned to a user, a supergroup, or a channel.

Inheritance
Available Extensions

Constructors

Usernames({required List<String> active_usernames, required List<String> disabled_usernames, required String editable_username, int? extra, int? clientId})
Describes usernames assigned to a user, a supergroup, or a channel

Properties

active_usernames List<String>
List of active usernames; the first one must be shown as the primary username. The order of active usernames can be changed with reorderActiveUsernames, reorderBotActiveUsernames or reorderSupergroupActiveUsernames.
read / write
clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
disabled_usernames List<String>
List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive.
read / write
editable_username String
The active username, which can be changed with setUsername or setSupergroupUsername.
read / write
extra int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Object to Map serializer
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) Usernames?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"usernames"