yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
Public Member Functions | Private Attributes | List of all members
yatbcpp::Contact Class Reference

#include "Contact.h"

Public Member Functions

 Contact (std::string phone_number, std::string first_name)
 
 Contact (const Contact &Contact)
 
void setLast_name (const std::optional< std::string > &last_name)
 
void setUser_id (const std::optional< std::int32_t > &user_id)
 
const std::string & getPhone_number () const
 
const std::string & getFirst_name () const
 
const std::optional< std::string > & getLast_name () const
 
const std::optional< std::int32_t > & getUser_id () const
 

Private Attributes

std::string phone_number
 
std::string first_name
 
std::optional< std::string > last_name
 
std::optional< std::int32_t > user_id
 

Detailed Description

See also https://core.telegram.org/bots/api#contact

Definition at line 9 of file Contact.h.

Constructor & Destructor Documentation

◆ Contact() [1/2]

Contact::Contact ( std::string  phone_number,
std::string  first_name 
)

Definition at line 12 of file Contact.cc.

◆ Contact() [2/2]

Contact::Contact ( const Contact Contact)

Definition at line 18 of file Contact.cc.

Member Function Documentation

◆ getFirst_name()

const string & Contact::getFirst_name ( ) const

Definition at line 47 of file Contact.cc.

◆ getLast_name()

const optional< string > & Contact::getLast_name ( ) const

Definition at line 51 of file Contact.cc.

◆ getPhone_number()

const string & Contact::getPhone_number ( ) const

Definition at line 43 of file Contact.cc.

◆ getUser_id()

const optional< int32_t > & Contact::getUser_id ( ) const

Definition at line 55 of file Contact.cc.

◆ setLast_name()

void Contact::setLast_name ( const std::optional< std::string > &  last_name)

Definition at line 30 of file Contact.cc.

◆ setUser_id()

void Contact::setUser_id ( const std::optional< std::int32_t > &  user_id)

Definition at line 34 of file Contact.cc.

Member Data Documentation

◆ first_name

std::string yatbcpp::Contact::first_name
private

Definition at line 29 of file Contact.h.

◆ last_name

std::optional<std::string> yatbcpp::Contact::last_name
private

Definition at line 30 of file Contact.h.

◆ phone_number

std::string yatbcpp::Contact::phone_number
private

Definition at line 28 of file Contact.h.

◆ user_id

std::optional<std::int32_t > yatbcpp::Contact::user_id
private

Definition at line 31 of file Contact.h.


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