List of all members | Public Fields | Public Types | Public Instance Methods | Static Public Attributes
pingProxy Class Referencefinal

Inherits Function.

Description

Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.

Returns object_ptr<Seconds>.

Public Fields

int32 proxy_id_
 Proxy identifier. Use 0 to ping a Telegram server without a proxy.
 

Public Types

using ReturnType = object_ptr< seconds >
 Typedef for the type returned by the function.
 

Public Instance Methods

 pingProxy ()
 
 pingProxy (int32 proxy_id_)
 
void store (TlStorerToString &s, const char *field_name) const final
 
- Public Instance Methods inherited from 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
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ pingProxy() [1/2]

pingProxy ( )

Default constructor for a function, which computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.

Returns object_ptr<Seconds>.

◆ pingProxy() [2/2]

pingProxy ( int32  proxy_id_)
explicit

Creates a function, which computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization.

Returns object_ptr<Seconds>.

Parameters
[in]proxy_id_Proxy identifier. Use 0 to ping a Telegram server without a proxy.

Method 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: