CreateTemporaryPassword class final

CreateTemporaryPassword (createTemporaryPassword) - TDLib function

Creates a new temporary password for processing payments.

  • password: The 2-step verification password of the current user.
  • validFor: Time during which the temporary password will be valid, in seconds; must be between 60 and 86400.

TemporaryPasswordState is returned on completion.

Inheritance

Constructors

CreateTemporaryPassword({required String password, required int validFor})
CreateTemporaryPassword (createTemporaryPassword) - TDLib function
const

Properties

currentObjectId → String
TDLib object type for current class instance
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
password → String
The 2-step verification password of the current user
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
validFor → int
Time during which the temporary password will be valid, in seconds; must be between 60 and 86400
final

Methods

copyWith({String? password, int? validFor}) → CreateTemporaryPassword
Copy model with modified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) → Map<String, dynamic>
Convert model to TDLib JSON format
override
toString() → String
Convert model to TDLib JSON format, encoded into String.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

defaultObjectId → const String
TDLib object type