Session constructor
const
Session({
- required int id,
- required bool isCurrent,
- required bool isPasswordPending,
- required bool canAcceptSecretChats,
- required bool canAcceptCalls,
- required SessionType type,
- required int apiId,
- required String applicationName,
- required String applicationVersion,
- required bool isOfficialApplication,
- required String deviceModel,
- required String platform,
- required String systemVersion,
- required int logInDate,
- required int lastActiveDate,
- required String ip,
- required String country,
- required String region,
- dynamic extra,
- int? clientId,
Contains information about one session in a Telegram application used by the current user. Sessions must be shown to the user in the returned order
Implementation
const Session({
required this.id,
required this.isCurrent,
required this.isPasswordPending,
required this.canAcceptSecretChats,
required this.canAcceptCalls,
required this.type,
required this.apiId,
required this.applicationName,
required this.applicationVersion,
required this.isOfficialApplication,
required this.deviceModel,
required this.platform,
required this.systemVersion,
required this.logInDate,
required this.lastActiveDate,
required this.ip,
required this.country,
required this.region,
this.extra,
this.clientId,
});