public static class TdApi.PasswordState extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
hasPassportData
True, if some Telegram Passport elements were saved.
|
boolean |
hasPassword
True, if a 2-step verification password is set.
|
boolean |
hasRecoveryEmailAddress
True, if a recovery email is set.
|
java.lang.String |
passwordHint
Hint for the password; may be empty.
|
int |
pendingResetDate
If not 0, point in time (Unix timestamp) after which the password can be reset immediately using resetPassword.
|
TdApi.EmailAddressAuthenticationCodeInfo |
recoveryEmailAddressCodeInfo
Information about the recovery email address to which the confirmation email was sent; may be null.
|
Constructor and Description |
---|
PasswordState()
Represents the current state of 2-step verification.
|
PasswordState(boolean hasPassword,
java.lang.String passwordHint,
boolean hasRecoveryEmailAddress,
boolean hasPassportData,
TdApi.EmailAddressAuthenticationCodeInfo recoveryEmailAddressCodeInfo,
int pendingResetDate)
Represents the current state of 2-step verification.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public boolean hasPassword
public java.lang.String passwordHint
public boolean hasRecoveryEmailAddress
public boolean hasPassportData
@Nullable public TdApi.EmailAddressAuthenticationCodeInfo recoveryEmailAddressCodeInfo
public int pendingResetDate
public static final int CONSTRUCTOR
public PasswordState()
public PasswordState(boolean hasPassword, java.lang.String passwordHint, boolean hasRecoveryEmailAddress, boolean hasPassportData, TdApi.EmailAddressAuthenticationCodeInfo recoveryEmailAddressCodeInfo, int pendingResetDate)
hasPassword
- True, if a 2-step verification password is set.passwordHint
- Hint for the password; may be empty.hasRecoveryEmailAddress
- True, if a recovery email is set.hasPassportData
- True, 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
- If not 0, point in time (Unix timestamp) after which the password can be reset immediately using resetPassword.public int getConstructor()
getConstructor
in class TdApi.Object