public static class TdApi.ToggleUsernameIsActive extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isActive
Pass true to activate the username; pass false to disable it.
|
java.lang.String |
username
The username to change.
|
| Constructor and Description |
|---|
ToggleUsernameIsActive()
Default constructor for a function, which changes active state for a username of the current user.
|
ToggleUsernameIsActive(java.lang.String username,
boolean isActive)
Creates a function, which changes active state for a username of the current user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String username
public boolean isActive
public static final int CONSTRUCTOR
public ToggleUsernameIsActive()
Returns Ok
public ToggleUsernameIsActive(java.lang.String username,
boolean isActive)
Returns Ok
username - The username to change.isActive - Pass true to activate the username; pass false to disable it.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object