java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Usernames
- Enclosing class:
- TdApi
Describes usernames assigned to a
user, a supergroup, or a channel.
-
Field Summary
Modifier and TypeFieldDescriptionString[]
List of active usernames; the first one must be shown as the primary username.static final int
String[]
List of currently disabled usernames; the username can be activated with toggleUsernameIsActive/toggleSupergroupUsernameIsActive.The active username, which can be changed with setUsername/setSupergroupUsername. -
Constructor Summary
ConstructorDescriptionDescribes usernames assigned to a user, a supergroup, or a channel.Describes usernames assigned to a user, a supergroup, or a channel.Describes usernames assigned to a user, a supergroup, or a channel. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
activeUsernames
List of active usernames; the first one must be shown as the primary username. The order of active usernames can be changed with reorderActiveUsernames or reorderSupergroupActiveUsernames. -
disabledUsernames
List of currently disabled usernames; the username can be activated with toggleUsernameIsActive/toggleSupergroupUsernameIsActive. -
editableUsername
The active username, which can be changed with setUsername/setSupergroupUsername. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
Usernames
public Usernames()Describes usernames assigned to a user, a supergroup, or a channel. -
Usernames
Describes usernames assigned to a user, a supergroup, or a channel.- Parameters:
activeUsernames
- 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 or reorderSupergroupActiveUsernames.disabledUsernames
- String[] List of currently disabled usernames; the username can be activated with toggleUsernameIsActive/toggleSupergroupUsernameIsActive.editableUsername
- String The active username, which can be changed with setUsername/setSupergroupUsername.
-
Usernames
Describes usernames assigned to a user, a supergroup, or a channel.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-