yatbcpp
0.0.1
Yet another Telegram Bot CPP Library
inc
types
Contact.h
Go to the documentation of this file.
1
#ifndef YATBCPP_CONTACT_H
2
#define YATBCPP_CONTACT_H
3
4
#include <string>
5
#include <optional>
6
7
namespace
yatbcpp
{
9
class
Contact
{
10
public
:
11
Contact
(std::string
phone_number
, std::string
first_name
);
12
13
Contact
(
const
Contact
&
Contact
);
14
15
void
setLast_name
(
const
std::optional<std::string> &
last_name
);
16
17
void
setUser_id
(
const
std::optional<std::int32_t> &
user_id
);
18
19
const
std::string &
getPhone_number
()
const
;
20
21
const
std::string &
getFirst_name
()
const
;
22
23
const
std::optional<std::string> &
getLast_name
()
const
;
24
25
const
std::optional<std::int32_t> &
getUser_id
()
const
;
26
27
private
:
28
std::string
phone_number
;
29
std::string
first_name
;
30
std::optional<std::string>
last_name
;
31
std::optional<std::int32_t >
user_id
;
32
};
33
34
}
35
36
#endif //YATBCPP_CONTACT_H
yatbcpp::Contact::setLast_name
void setLast_name(const std::optional< std::string > &last_name)
Definition:
Contact.cc:30
yatbcpp::Contact::last_name
std::optional< std::string > last_name
Definition:
Contact.h:30
yatbcpp::Contact::getPhone_number
const std::string & getPhone_number() const
Definition:
Contact.cc:43
yatbcpp::Contact::setUser_id
void setUser_id(const std::optional< std::int32_t > &user_id)
Definition:
Contact.cc:34
yatbcpp::Contact::user_id
std::optional< std::int32_t > user_id
Definition:
Contact.h:31
yatbcpp
Definition:
Bot.h:27
yatbcpp::Contact
Definition:
Contact.h:9
yatbcpp::Contact::first_name
std::string first_name
Definition:
Contact.h:29
yatbcpp::Contact::getFirst_name
const std::string & getFirst_name() const
Definition:
Contact.cc:47
yatbcpp::Contact::getUser_id
const std::optional< std::int32_t > & getUser_id() const
Definition:
Contact.cc:55
yatbcpp::Contact::Contact
Contact(std::string phone_number, std::string first_name)
Definition:
Contact.cc:12
yatbcpp::Contact::phone_number
std::string phone_number
Definition:
Contact.h:28
yatbcpp::Contact::getLast_name
const std::optional< std::string > & getLast_name() const
Definition:
Contact.cc:51
Generated by
1.8.13