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

Inherits Object.

Description

Describes a user contact.

Public Fields

string phone_number_
 Phone number of the user.
 
string first_name_
 First name of the user; 1-255 characters in length.
 
string last_name_
 Last name of the user.
 
string vcard_
 Additional data about the user in a form of vCard; 0-2048 bytes in length.
 
int53 user_id_
 Identifier of the user, if known; 0 otherwise.
 

Public Instance Methods

 contact ()
 
 contact (string const &phone_number_, string const &first_name_, string const &last_name_, string const &vcard_, int53 user_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 = -1993844876
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ contact() [1/2]

contact ( )

Describes a user contact.

◆ contact() [2/2]

contact ( string const &  phone_number_,
string const &  first_name_,
string const &  last_name_,
string const &  vcard_,
int53  user_id_ 
)

Describes a user contact.

Parameters
[in]phone_number_Phone number of the user.
[in]first_name_First name of the user; 1-255 characters in length.
[in]last_name_Last name of the user.
[in]vcard_Additional data about the user in a form of vCard; 0-2048 bytes in length.
[in]user_id_Identifier of the user, if known; 0 otherwise.

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: