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 ⇒ TD::Types::String
Name of the application, as provided by the application.
-
#application_version ⇒ TD::Types::String
The version of the application, as provided by the application.
-
#country ⇒ TD::Types::String
A two-letter country code for the country from which the session was created, based on the IP address.
-
#device_model ⇒ TD::Types::String
Model of the device the application has been run or is running on, as provided by the application.
-
#id ⇒ Integer
Session identifier.
-
#ip ⇒ TD::Types::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 ⇒ TD::Types::String
Operating system the application has been run or is running on, as provided by the application.
-
#region ⇒ TD::Types::String
Region code from which the session was created, based on the IP address.
-
#system_version ⇒ TD::Types::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 ⇒ TD::Types::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 ⇒ TD::Types::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 ⇒ TD::Types::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 ⇒ TD::Types::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 ⇒ TD::Types::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 ⇒ TD::Types::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 ⇒ TD::Types::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 ⇒ TD::Types::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 |