Package org.drinkless.tdlib
Class TdApi.SetPassword
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.SetPassword
-
- Enclosing class:
- TdApi
public static class TdApi.SetPassword extends TdApi.Function
Changes the password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed.Returns
PasswordState
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringnewHintNew password hint; may be empty.StringnewPasswordNew password of the user; may be empty to remove the password.StringnewRecoveryEmailAddressNew recovery email address; may be empty.StringoldPasswordPrevious password of the user.booleansetRecoveryEmailAddressPass true if the recovery email address must be changed.
-
Constructor Summary
Constructors Constructor Description SetPassword()Default constructor for a function, which changes the password for the current user.SetPassword(String oldPassword, String newPassword, String newHint, boolean setRecoveryEmailAddress, String newRecoveryEmailAddress)Creates a function, which changes the password for the current user.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
oldPassword
public String oldPassword
Previous password of the user.
-
newPassword
public String newPassword
New password of the user; may be empty to remove the password.
-
newHint
public String newHint
New password hint; may be empty.
-
setRecoveryEmailAddress
public boolean setRecoveryEmailAddress
Pass true if the recovery email address must be changed.
-
newRecoveryEmailAddress
public String newRecoveryEmailAddress
New recovery email address; may be empty.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SetPassword
public SetPassword()
Default constructor for a function, which changes the password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed.Returns
PasswordState
-
SetPassword
public SetPassword(String oldPassword, String newPassword, String newHint, boolean setRecoveryEmailAddress, String newRecoveryEmailAddress)
Creates a function, which changes the password for the current user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed.Returns
PasswordState- Parameters:
oldPassword- Previous password of the user.newPassword- New password of the user; may be empty to remove the password.newHint- New password hint; may be empty.setRecoveryEmailAddress- Pass true if the recovery email address must be changed.newRecoveryEmailAddress- New recovery email address; may be empty.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-