AuthenticationCodeInfo class final

AuthenticationCodeInfo (authenticationCodeInfo) - basic class

Information about the authentication code that was sent.

  • phoneNumber: A phone number that is being authenticated.
  • type: The way the code was sent to the user.
  • nextType: The way the next code will be sent to the user; may be null (optional).
  • timeout: Timeout before the code can be re-sent, in seconds.
Inheritance

Constructors

AuthenticationCodeInfo({required String phoneNumber, required AuthenticationCodeType type, AuthenticationCodeType? nextType, required int timeout, dynamic extra, int? clientId})
AuthenticationCodeInfo (authenticationCodeInfo) - basic class
const
AuthenticationCodeInfo.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

clientId int?
clientId client identifier
final
currentObjectId String
TDLib object type for current class instance
no setteroverride
extra → dynamic
extra callback sign
final
hashCode int
The hash code for this object.
no setterinherited
nextType AuthenticationCodeType?
The way the next code will be sent to the user; may be null
final
phoneNumber String
A phone number that is being authenticated
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout int
Timeout before the code can be re-sent, in seconds
final
type AuthenticationCodeType
The way the code was sent to the user
final

Methods

copyWith({String? phoneNumber, AuthenticationCodeType? type, AuthenticationCodeType? nextType, int? timeout, dynamic extra, int? clientId}) AuthenticationCodeInfo
Copy model with modified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() 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