TDLib
Loading...
Searching...
No Matches
td::td_api::unconfirmedSession Class Referencefinal

Inherits td::td_api::Object.

Public Member Functions

 unconfirmedSession ()
 
 unconfirmedSession (int64 id_, int32 log_in_date_, string const &device_model_, string const &location_)
 
std::int32_t get_id () const final
 
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.
 
int32 log_in_date_
 Point in time (Unix timestamp) when the user has logged in.
 
string device_model_
 Model of the device that was used for the session creation, as provided by the application.
 
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 = -2062726663
 Identifier uniquely determining a type of the object.
 

Detailed Description

Contains information about an unconfirmed session.

Constructor & Destructor Documentation

◆ unconfirmedSession() [1/2]

td::td_api::unconfirmedSession::unconfirmedSession ( )

Contains information about an unconfirmed session.

◆ unconfirmedSession() [2/2]

td::td_api::unconfirmedSession::unconfirmedSession ( int64  id_,
int32  log_in_date_,
string const &  device_model_,
string const &  location_ 
)

Contains information about an unconfirmed session.

Parameters
[in]id_Session identifier.
[in]log_in_date_Point in time (Unix timestamp) when the user has logged in.
[in]device_model_Model of the device that was used for the session creation, as provided by the application.
[in]location_A human-readable description of the location from which the session was created, based on the IP address.

Member Function Documentation

◆ get_id()

std::int32_t td::td_api::unconfirmedSession::get_id ( ) const
inlinefinalvirtual

Returns identifier uniquely determining a type of the object.

Returns
this->ID.

Implements td::TlObject.

◆ store()

void td::td_api::unconfirmedSession::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.


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