public static class TdApi.SetPassword extends TdApi.Function<TdApi.PasswordState>
Returns PasswordState
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
newHint
New password hint; may be empty.
|
java.lang.String |
newPassword
New 2-step verification password of the user; may be empty to remove the password.
|
java.lang.String |
newRecoveryEmailAddress
New recovery email address; may be empty.
|
java.lang.String |
oldPassword
Previous 2-step verification password of the user.
|
boolean |
setRecoveryEmailAddress
Pass true to change also the recovery email address.
|
| Constructor and Description |
|---|
SetPassword()
Default constructor for a function, which changes the 2-step verification password for the current user.
|
SetPassword(java.lang.String oldPassword,
java.lang.String newPassword,
java.lang.String newHint,
boolean setRecoveryEmailAddress,
java.lang.String newRecoveryEmailAddress)
Creates a function, which changes the 2-step verification password for the current user.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String oldPassword
public java.lang.String newPassword
public java.lang.String newHint
public boolean setRecoveryEmailAddress
public java.lang.String newRecoveryEmailAddress
public static final int CONSTRUCTOR
public SetPassword()
Returns PasswordState
public SetPassword(java.lang.String oldPassword,
java.lang.String newPassword,
java.lang.String newHint,
boolean setRecoveryEmailAddress,
java.lang.String newRecoveryEmailAddress)
Returns PasswordState
oldPassword - Previous 2-step verification password of the user.newPassword - New 2-step verification password of the user; may be empty to remove the password.newHint - New password hint; may be empty.setRecoveryEmailAddress - Pass true to change also the recovery email address.newRecoveryEmailAddress - New recovery email address; may be empty.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object