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 SessionType type,
  7. required int apiId,
  8. required String applicationName,
  9. required String applicationVersion,
  10. required bool isOfficialApplication,
  11. required String deviceModel,
  12. required String platform,
  13. required String systemVersion,
  14. required int logInDate,
  15. required int lastActiveDate,
  16. required String ip,
  17. required String country,
  18. required String region,
  19. dynamic extra,
  20. 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,
});