TDLib
Loading...
Searching...
No Matches
address Class Referencefinal

Inherits Object.

Description

Describes an address.

Public Member Functions

 address ()
 address (string const &country_code_, string const &state_, string const &city_, string const &street_line1_, string const &street_line2_, string const &postal_code_)
void store (TlStorerToString &s, const char *field_name) const final
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

string city_
 City.
string country_code_
 A two-letter ISO 3166-1 alpha-2 country code.
string postal_code_
 Address postal code.
string state_
 State, if applicable.
string street_line1_
 First line of the address.
string street_line2_
 Second line of the address.

Static Public Attributes

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

Constructor & Destructor Documentation

◆ address() [1/2]

address ( )

Describes an address.

◆ address() [2/2]

address ( string const & country_code_,
string const & state_,
string const & city_,
string const & street_line1_,
string const & street_line2_,
string const & postal_code_ )

Describes an address.

Parameters
[in]country_code_A two-letter ISO 3166-1 alpha-2 country code.
[in]state_State, if applicable.
[in]city_City.
[in]street_line1_First line of the address.
[in]street_line2_Second line of the address.
[in]postal_code_Address postal code.

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: