Class: TD::Types::Session
- Defined in:
- lib/tdlib/types/session.rb
Overview
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.
Instance Attribute Summary collapse
-
#api_id ⇒ Integer
Telegram API identifier, as provided by the application.
-
#application_name ⇒ String
Name of the application, as provided by the application.
-
#application_version ⇒ String
The version of the application, as provided by the application.
-
#country ⇒ String
A two-letter country code for the country from which the session was created, based on the IP address.
-
#device_model ⇒ String
Model of the device the application has been run or is running on, as provided by the application.
-
#id ⇒ Integer
Session identifier.
-
#ip ⇒ String
IP address from which the session was created, in human-readable format.
-
#is_current ⇒ Boolean
True, if this session is the current session.
-
#is_official_application ⇒ Boolean
True, if the application is an official application or uses the api_id of an official application.
-
#is_password_pending ⇒ Boolean
True, if a password is needed to complete authorization of the session.
-
#last_active_date ⇒ Integer
Point in time (Unix timestamp) when the session was last used.
-
#log_in_date ⇒ Integer
Point in time (Unix timestamp) when the user has logged in.
-
#platform ⇒ String
Operating system the application has been run or is running on, as provided by the application.
-
#region ⇒ String
Region code from which the session was created, based on the IP address.
-
#system_version ⇒ String
Version of the operating system the application has been run or is running on, as provided by the application.
Method Summary
Methods inherited from Base
Instance Attribute Details
#api_id ⇒ Integer
Telegram API identifier, as provided by the application.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def api_id @api_id end |
#application_name ⇒ String
Name of the application, as provided by the application.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def application_name @application_name end |
#application_version ⇒ String
The version of the application, as provided by the application.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def application_version @application_version end |
#country ⇒ String
A two-letter country code for the country from which the session was created, based on the IP address.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def country @country end |
#device_model ⇒ String
Model of the device the application has been run or is running on, as provided by the application.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def device_model @device_model end |
#id ⇒ Integer
Session identifier.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def id @id end |
#ip ⇒ String
IP address from which the session was created, in human-readable format.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def ip @ip end |
#is_current ⇒ Boolean
True, if this session is the current session.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def is_current @is_current end |
#is_official_application ⇒ Boolean
True, if the application is an official application or uses the api_id of an official application.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def is_official_application @is_official_application end |
#is_password_pending ⇒ Boolean
True, if a password is needed to complete authorization of the session.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def is_password_pending @is_password_pending end |
#last_active_date ⇒ Integer
Point in time (Unix timestamp) when the session was last used.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def last_active_date @last_active_date end |
#log_in_date ⇒ Integer
Point in time (Unix timestamp) when the user has logged in.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def log_in_date @log_in_date end |
#platform ⇒ String
Operating system the application has been run or is running on, as provided by the application.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def platform @platform end |
#region ⇒ String
Region code from which the session was created, based on the IP address.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def region @region end |
#system_version ⇒ String
Version of the operating system the application has been run or is running on, as provided by the application.
25 26 27 |
# File 'lib/tdlib/types/session.rb', line 25 def system_version @system_version end |