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 |
loginEmailAddressPattern
Pattern of the email address set up for logging in.
|
java.lang.String |
passwordHint
Hint for the password; may be empty.
|
int |
pendingResetDate
If not 0, point in time (Unix timestamp) after which the 2-step verification 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,
java.lang.String loginEmailAddressPattern,
int pendingResetDate)
Represents the current state of 2-step verification.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic boolean hasPassword
public java.lang.String passwordHint
public boolean hasRecoveryEmailAddress
public boolean hasPassportData
public TdApi.EmailAddressAuthenticationCodeInfo recoveryEmailAddressCodeInfo
public java.lang.String loginEmailAddressPattern
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,
java.lang.String loginEmailAddressPattern,
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.loginEmailAddressPattern - Pattern of the email address set up for logging in.pendingResetDate - If not 0, point in time (Unix timestamp) after which the 2-step verification password can be reset immediately using resetPassword.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object