java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.PasswordState
- Enclosing class:
- TdApi
Represents the current state of 2-step verification.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
boolean
True, if some Telegram Passport elements were saved.boolean
True, if a 2-step verification password is set.boolean
True, if a recovery email is set.Hint for the password; may be empty.int
If not 0, point in time (Unix timestamp) after which the password can be reset immediately using resetPassword.Information about the recovery email address to which the confirmation email was sent; may be null. -
Constructor Summary
ConstructorDescriptionRepresents the current state of 2-step verification.PasswordState
(boolean hasPassword, String passwordHint, boolean hasRecoveryEmailAddress, boolean hasPassportData, TdApi.EmailAddressAuthenticationCodeInfo recoveryEmailAddressCodeInfo, int pendingResetDate) Represents the current state of 2-step verification.PasswordState
(DataInput input) Represents the current state of 2-step verification. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
hasPassword
public boolean hasPasswordTrue, if a 2-step verification password is set. -
passwordHint
Hint for the password; may be empty. -
hasRecoveryEmailAddress
public boolean hasRecoveryEmailAddressTrue, if a recovery email is set. -
hasPassportData
public boolean hasPassportDataTrue, if some Telegram Passport elements were saved. -
recoveryEmailAddressCodeInfo
Information about the recovery email address to which the confirmation email was sent; may be null. -
pendingResetDate
public int pendingResetDateIf not 0, point in time (Unix timestamp) after which the password can be reset immediately using resetPassword. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
PasswordState
public PasswordState()Represents the current state of 2-step verification. -
PasswordState
public PasswordState(boolean hasPassword, String passwordHint, boolean hasRecoveryEmailAddress, boolean hasPassportData, TdApi.EmailAddressAuthenticationCodeInfo recoveryEmailAddressCodeInfo, int pendingResetDate) Represents the current state of 2-step verification.- Parameters:
hasPassword
- boolean True, if a 2-step verification password is set.passwordHint
- String Hint for the password; may be empty.hasRecoveryEmailAddress
- boolean True, if a recovery email is set.hasPassportData
- boolean True, if some Telegram Passport elements were saved.recoveryEmailAddressCodeInfo
- EmailAddressAuthenticationCodeInfo Information about the recovery email address to which the confirmation email was sent; may be null.pendingResetDate
- int If not 0, point in time (Unix timestamp) after which the password can be reset immediately using resetPassword.
-
PasswordState
Represents the current state of 2-step verification.- 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()
-