AccountInfo class final
Contains basic information about another user who started a chat with the current user
Constructors
- AccountInfo({required int registrationMonth, required int registrationYear, required String phoneNumberCountryCode, required int lastNameChangeDate, required int lastPhotoChangeDate})
-
Contains basic information about another user who started a chat with the current user
const
-
AccountInfo.fromJson(Map<
String, dynamic> json) -
Parses a AccountInfo from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastNameChangeDate → int
-
Point in time (Unix timestamp) when the user changed name last time; 0 if unknown
final
- lastPhotoChangeDate → int
-
Point in time (Unix timestamp) when the user changed photo last time; 0 if unknown
final
- phoneNumberCountryCode → String
-
A two-letter ISO 3166-1 alpha-2 country code based on the phone number of the user; may be empty if unknown
final
- registrationMonth → int
-
Month when the user was registered in Telegram; 0-12; may be 0 if unknown
final
- registrationYear → int
-
Year when the user was registered in Telegram; 0-9999; may be 0 if unknown
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{int? registrationMonth, int? registrationYear, String? phoneNumberCountryCode, int? lastNameChangeDate, int? lastPhotoChangeDate}) → AccountInfo -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.