PasswordState class
Represents the current state of 2-step verification
Constructors
- PasswordState({String? extra, int? client_id, Bool? has_password, string? password_hint, Bool? has_recovery_email_address, Bool? has_passport_data, EmailAddressAuthenticationCodeInfo? recovery_email_address_code_info, string? login_email_address_pattern, int32? pending_reset_date})
-
PasswordState.fromMap(Map<
String, dynamic> map)
Properties
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- has_passport_data ↔ Bool?
-
True, if some Telegram Passport elements were saved
getter/setter pair
- has_password ↔ Bool?
-
True, if a 2-step verification password is set
getter/setter pair
- has_recovery_email_address ↔ Bool?
-
True, if a recovery email is set
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- login_email_address_pattern ↔ string?
-
Pattern of the email address set up for logging in
getter/setter pair
- password_hint ↔ string?
-
Hint for the password; may be empty
getter/setter pair
- pending_reset_date ↔ int32?
-
If not 0, point in time (Unix timestamp) after which the 2-step verification password can be reset immediately using resetPassword
getter/setter pair
- recovery_email_address_code_info ↔ EmailAddressAuthenticationCodeInfo?
-
Information about the recovery email address to which the confirmation email was sent; may be null
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited