Package it.tdlight.jni
Class TdApi.SetRecoveryEmailAddress
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.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 int
CONSTRUCTOR
String
newRecoveryEmailAddress
New recovery email address.String
password
Password of the current user. -
Constructor Summary
Constructors Constructor Description SetRecoveryEmailAddress()
Changes the 2-step verification recovery email address of the user.SetRecoveryEmailAddress(DataInput input)
SetRecoveryEmailAddress(String password, String newRecoveryEmailAddress)
Changes the 2-step verification recovery email address of the user. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
password
Password of the current user. -
newRecoveryEmailAddress
New recovery email address. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
SetRecoveryEmailAddress
public SetRecoveryEmailAddress()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
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
- String Password of the current user.newRecoveryEmailAddress
- String New recovery email address.
-
SetRecoveryEmailAddress
- 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()
-