Session constructor

const Session({
  1. required int id,
  2. required bool isCurrent,
  3. required bool isPasswordPending,
  4. required bool canAcceptSecretChats,
  5. required bool canAcceptCalls,
  6. required int apiId,
  7. required String applicationName,
  8. required String applicationVersion,
  9. required bool isOfficialApplication,
  10. required String deviceModel,
  11. required String platform,
  12. required String systemVersion,
  13. required int logInDate,
  14. required int lastActiveDate,
  15. required String ip,
  16. required String country,
  17. required String region,
  18. dynamic extra,
  19. 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.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,
});