yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
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
void setLast_name(const std::optional< std::string > &last_name)
Definition: Contact.cc:30
std::optional< std::string > last_name
Definition: Contact.h:30
const std::string & getPhone_number() const
Definition: Contact.cc:43
void setUser_id(const std::optional< std::int32_t > &user_id)
Definition: Contact.cc:34
std::optional< std::int32_t > user_id
Definition: Contact.h:31
Definition: Bot.h:27
std::string first_name
Definition: Contact.h:29
const std::string & getFirst_name() const
Definition: Contact.cc:47
const std::optional< std::int32_t > & getUser_id() const
Definition: Contact.cc:55
Contact(std::string phone_number, std::string first_name)
Definition: Contact.cc:12
std::string phone_number
Definition: Contact.h:28
const std::optional< std::string > & getLast_name() const
Definition: Contact.cc:51