Session class

Implemented types

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. id Session identifier . isCurrent True, if this session is the current session. isPasswordPending True, if a password is needed to complete authorization of the session. apiId Telegram API identifier, as provided by the application . applicationName Name of the application, as provided by the application. applicationVersion The version of the application, as provided by the application . isOfficialApplication True, if the application is an official application or uses the api_id of an official application. deviceModel Model of the device the application has been run or is running on, as provided by the application . platform Operating system the application has been run or is running on, as provided by the application. systemVersion Version of the operating system the application has been run or is running on, as provided by the application . logInDate Point in time (Unix timestamp) when the user has logged in. lastActiveDate Point in time (Unix timestamp) when the session was last used . ip IP address from which the session was created, in human-readable format. country A two-letter country code for the country from which the session was created, based on the IP address . region Region code from which the session was created, based on the IP address
Session.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

apiId int
read / write
applicationName String
read / write
applicationVersion String
read / write
country String
read / write
deviceModel String
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
read / write
ip String
read / write
isCurrent bool
read / write
isOfficialApplication bool
read / write
isPasswordPending bool
read / write
lastActiveDate int
read / write
logInDate int
read / write
platform String
read / write
region String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
systemVersion String
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
Returns a string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
"session"