Session constructor
const
Session({
- required int id,
- required bool isCurrent,
- required bool isPasswordPending,
- required bool isUnconfirmed,
- 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 ipAddress,
- required String location,
- 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.isUnconfirmed,
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.ipAddress,
required this.location,
this.extra,
this.clientId,
});