TDLib
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
unconfirmedSession Class Referencefinal

Inherits Object.

Description

Contains information about an unconfirmed session.

Public Member Functions

void store (TlStorerToString &s, const char *field_name) const final
 
 unconfirmedSession ()
 
 unconfirmedSession (object_ptr< SessionType > &&type_, int32 date_, string const &device_model_, string const &location_)
 
- Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
 
TlObject & operator= (TlObject &&)=default
 
virtual void store (TlStorerCalcLength &s) const
 
virtual void store (TlStorerUnsafe &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

int32 date_
 Point in time (Unix timestamp) when the user has logged in or the business bot was connected.
 
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.
 
object_ptr< SessionType > type_
 Session type.
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ unconfirmedSession() [1/2]

Contains information about an unconfirmed session.

◆ unconfirmedSession() [2/2]

unconfirmedSession ( object_ptr< SessionType > &&  type_,
int32  date_,
string const &  device_model_,
string const &  location_ 
)

Contains information about an unconfirmed session.

Parameters
[in]type_Session type.
[in]date_Point in time (Unix timestamp) when the user has logged in or the business bot was connected.
[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

◆ store()

void 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 TlObject.


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