Package org.drinkless.tdlib
Class TdApi.SetRecoveryEmailAddress
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.SetRecoveryEmailAddress
-
- Enclosing class:
- TdApi
public static class TdApi.SetRecoveryEmailAddress extends TdApi.Function
Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If newRecoveryEmailAddress is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation.Returns
PasswordState
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.StringnewRecoveryEmailAddressNew recovery email address.StringpasswordPassword of the current user.
-
Constructor Summary
Constructors Constructor Description SetRecoveryEmailAddress()Default constructor for a function, which changes the 2-step verification recovery email address of the user.SetRecoveryEmailAddress(String password, String newRecoveryEmailAddress)Creates a function, which changes the 2-step verification recovery email address of the 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
-
password
public String password
Password of the current user.
-
newRecoveryEmailAddress
public String newRecoveryEmailAddress
New recovery email address.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SetRecoveryEmailAddress
public SetRecoveryEmailAddress()
Default constructor for a function, which changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If newRecoveryEmailAddress is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation.Returns
PasswordState
-
SetRecoveryEmailAddress
public SetRecoveryEmailAddress(String password, String newRecoveryEmailAddress)
Creates a function, which changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If newRecoveryEmailAddress is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation.Returns
PasswordState- Parameters:
password- Password of the current user.newRecoveryEmailAddress- New recovery email address.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-