Session class

Inheritance

Constructors

Session({int id, bool isCurrent, bool isPasswordPending, int apiId, String applicationName, String applicationVersion, bool isOfficialApplication, String deviceModel, String platform, String systemVersion, int logInDate, int lastActiveDate, String ip, String country, String region})
Contains information about one session in a Telegram application used by the current user. Sessions should be shown to the user in the returned order
Session.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

apiId int
apiId Telegram API identifier, as provided by the application
read / write
applicationName String
applicationName Name of the application, as provided by the application
read / write
applicationVersion String
applicationVersion The version of the application, as provided by the application
read / write
country String
country A two-letter country code for the country from which the session was created, based on the IP address
read / write
deviceModel String
deviceModel Model of the device the application has been run or is running on, as provided by the application
read / write
extra ↔ dynamic
callback sign
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
id Session identifier
read / write
ip String
ip IP address from which the session was created, in human-readable format
read / write
isCurrent bool
isCurrent True, if this session is the current session
read / write
isOfficialApplication bool
isOfficialApplication True, if the application is an official application or uses the api_id of an official application
read / write
isPasswordPending bool
isPasswordPending True, if a password is needed to complete authorization of the session
read / write
lastActiveDate int
lastActiveDate Point in time (Unix timestamp) when the session was last used
read / write
logInDate int
logInDate Point in time (Unix timestamp) when the user has logged in
read / write
platform String
platform Operating system the application has been run or is running on, as provided by the application
read / write
region String
region Region code from which the session was created, based on the IP address
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
systemVersion String
systemVersion Version of the operating system the application has been run or is running on, as provided by the application
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
'session'