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

Inherits Object.

Description

Contains the user's personal details.

Public Fields

string first_name_
 First name of the user written in English; 1-255 characters.
 
string middle_name_
 Middle name of the user written in English; 0-255 characters.
 
string last_name_
 Last name of the user written in English; 1-255 characters.
 
string native_first_name_
 Native first name of the user; 1-255 characters.
 
string native_middle_name_
 Native middle name of the user; 0-255 characters.
 
string native_last_name_
 Native last name of the user; 1-255 characters.
 
object_ptr< datebirthdate_
 Birthdate of the user.
 
string gender_
 Gender of the user, "male" or "female".
 
string country_code_
 A two-letter ISO 3166-1 alpha-2 country code of the user's country.
 
string residence_country_code_
 A two-letter ISO 3166-1 alpha-2 country code of the user's residence country.
 

Public Instance Methods

 personalDetails ()
 
 personalDetails (string const &first_name_, string const &middle_name_, string const &last_name_, string const &native_first_name_, string const &native_middle_name_, string const &native_last_name_, object_ptr< date > &&birthdate_, string const &gender_, string const &country_code_, string const &residence_country_code_)
 
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 = -1061656137
 Identifier uniquely determining a type of the object.
 

Constructor & Destructor Documentation

◆ personalDetails() [1/2]

Contains the user's personal details.

◆ personalDetails() [2/2]

personalDetails ( string const &  first_name_,
string const &  middle_name_,
string const &  last_name_,
string const &  native_first_name_,
string const &  native_middle_name_,
string const &  native_last_name_,
object_ptr< date > &&  birthdate_,
string const &  gender_,
string const &  country_code_,
string const &  residence_country_code_ 
)

Contains the user's personal details.

Parameters
[in]first_name_First name of the user written in English; 1-255 characters.
[in]middle_name_Middle name of the user written in English; 0-255 characters.
[in]last_name_Last name of the user written in English; 1-255 characters.
[in]native_first_name_Native first name of the user; 1-255 characters.
[in]native_middle_name_Native middle name of the user; 0-255 characters.
[in]native_last_name_Native last name of the user; 1-255 characters.
[in]birthdate_Birthdate of the user.
[in]gender_Gender of the user, "male" or "female".
[in]country_code_A two-letter ISO 3166-1 alpha-2 country code of the user's country.
[in]residence_country_code_A two-letter ISO 3166-1 alpha-2 country code of the user's residence country.

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: