tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::session Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::session:
td::td_api::Object td::TlObject

Public Member Functions

 session ()
 
 session (int64 id_, bool is_current_, bool is_password_pending_, bool is_unconfirmed_, bool can_accept_secret_chats_, bool can_accept_calls_, object_ptr< SessionType > &&type_, int32 api_id_, string const &application_name_, string const &application_version_, bool is_official_application_, string const &device_model_, string const &platform_, string const &system_version_, int32 log_in_date_, int32 last_active_date_, string const &ip_address_, string const &location_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

int64 id_
 Session identifier.
 
bool is_current_
 True, if this session is the current session.
 
bool is_password_pending_
 True, if a 2-step verification password is needed to complete authorization of the session.
 
bool is_unconfirmed_
 True, if the session wasn&#x27;t confirmed from another session.
 
bool can_accept_secret_chats_
 True, if incoming secret chats can be accepted by the session.
 
bool can_accept_calls_
 True, if incoming calls can be accepted by the session.
 
object_ptr< SessionTypetype_
 Session type based on the system and application version, which can be used to display a corresponding icon.
 
int32 api_id_
 Telegram API identifier, as provided by the application.
 
string application_name_
 Name of the application, as provided by the application.
 
string application_version_
 The version of the application, as provided by the application.
 
bool is_official_application_
 True, if the application is an official application or uses the api_id of an official application.
 
string device_model_
 Model of the device the application has been run or is running on, as provided by the application.
 
string platform_
 Operating system the application has been run or is running on, as provided by the application.
 
string system_version_
 Version of the operating system the application has been run or is running on, as provided by the application.
 
int32 log_in_date_
 Point in time (Unix timestamp) when the user has logged in.
 
int32 last_active_date_
 Point in time (Unix timestamp) when the session was last used.
 
string ip_address_
 IP address from which the session was created, in human-readable format.
 
string location_
 A human-readable description of the location from which the session was created, based on the IP address.
 

Static Public Attributes

static const std::int32_t ID = 158702140
 Identifier uniquely determining a type of the object.
 

Detailed Description

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.

Definition at line 62334 of file td_api.h.

Constructor & Destructor Documentation

◆ session() [1/2]

td::td_api::session::session ( )

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.

◆ session() [2/2]

td::td_api::session::session ( int64  id_,
bool  is_current_,
bool  is_password_pending_,
bool  is_unconfirmed_,
bool  can_accept_secret_chats_,
bool  can_accept_calls_,
object_ptr< SessionType > &&  type_,
int32  api_id_,
string const &  application_name_,
string const &  application_version_,
bool  is_official_application_,
string const &  device_model_,
string const &  platform_,
string const &  system_version_,
int32  log_in_date_,
int32  last_active_date_,
string const &  ip_address_,
string const &  location_ 
)

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.

Parameters
[in]id_Session identifier.
[in]is_current_True, if this session is the current session.
[in]is_password_pending_True, if a 2-step verification password is needed to complete authorization of the session.
[in]is_unconfirmed_True, if the session wasn&#x27;t confirmed from another session.
[in]can_accept_secret_chats_True, if incoming secret chats can be accepted by the session.
[in]can_accept_calls_True, if incoming calls can be accepted by the session.
[in]type_Session type based on the system and application version, which can be used to display a corresponding icon.
[in]api_id_Telegram API identifier, as provided by the application.
[in]application_name_Name of the application, as provided by the application.
[in]application_version_The version of the application, as provided by the application.
[in]is_official_application_True, if the application is an official application or uses the api_id of an official application.
[in]device_model_Model of the device the application has been run or is running on, as provided by the application.
[in]platform_Operating system the application has been run or is running on, as provided by the application.
[in]system_version_Version of the operating system the application has been run or is running on, as provided by the application.
[in]log_in_date_Point in time (Unix timestamp) when the user has logged in.
[in]last_active_date_Point in time (Unix timestamp) when the session was last used.
[in]ip_address_IP address from which the session was created, in human-readable format.
[in]location_A human-readable description of the location from which the session was created, based on the IP address.

Member Function Documentation

◆ store()

void td::td_api::session::store ( TlStorerToString &  s,
const char *  field_name 
) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.

Member Data Documentation

◆ api_id_

int32 td::td_api::session::api_id_

Telegram API identifier, as provided by the application.

Definition at line 62359 of file td_api.h.

◆ application_name_

string td::td_api::session::application_name_

Name of the application, as provided by the application.

Definition at line 62361 of file td_api.h.

◆ application_version_

string td::td_api::session::application_version_

The version of the application, as provided by the application.

Definition at line 62363 of file td_api.h.

◆ can_accept_calls_

bool td::td_api::session::can_accept_calls_

True, if incoming calls can be accepted by the session.

Definition at line 62355 of file td_api.h.

◆ can_accept_secret_chats_

bool td::td_api::session::can_accept_secret_chats_

True, if incoming secret chats can be accepted by the session.

Definition at line 62353 of file td_api.h.

◆ device_model_

string td::td_api::session::device_model_

Model of the device the application has been run or is running on, as provided by the application.

Definition at line 62367 of file td_api.h.

◆ ID

const std::int32_t td::td_api::session::ID = 158702140
static

Identifier uniquely determining a type of the object.

Definition at line 62411 of file td_api.h.

◆ id_

int64 td::td_api::session::id_

Session identifier.

Definition at line 62345 of file td_api.h.

◆ ip_address_

string td::td_api::session::ip_address_

IP address from which the session was created, in human-readable format.

Definition at line 62377 of file td_api.h.

◆ is_current_

bool td::td_api::session::is_current_

True, if this session is the current session.

Definition at line 62347 of file td_api.h.

◆ is_official_application_

bool td::td_api::session::is_official_application_

True, if the application is an official application or uses the api_id of an official application.

Definition at line 62365 of file td_api.h.

◆ is_password_pending_

bool td::td_api::session::is_password_pending_

True, if a 2-step verification password is needed to complete authorization of the session.

Definition at line 62349 of file td_api.h.

◆ is_unconfirmed_

bool td::td_api::session::is_unconfirmed_

True, if the session wasn&#x27;t confirmed from another session.

Definition at line 62351 of file td_api.h.

◆ last_active_date_

int32 td::td_api::session::last_active_date_

Point in time (Unix timestamp) when the session was last used.

Definition at line 62375 of file td_api.h.

◆ location_

string td::td_api::session::location_

A human-readable description of the location from which the session was created, based on the IP address.

Definition at line 62379 of file td_api.h.

◆ log_in_date_

int32 td::td_api::session::log_in_date_

Point in time (Unix timestamp) when the user has logged in.

Definition at line 62373 of file td_api.h.

◆ platform_

string td::td_api::session::platform_

Operating system the application has been run or is running on, as provided by the application.

Definition at line 62369 of file td_api.h.

◆ system_version_

string td::td_api::session::system_version_

Version of the operating system the application has been run or is running on, as provided by the application.

Definition at line 62371 of file td_api.h.

◆ type_

object_ptr<SessionType> td::td_api::session::type_

Session type based on the system and application version, which can be used to display a corresponding icon.

Definition at line 62357 of file td_api.h.


The documentation for this class was generated from the following file: