LibTgBotPP
 All Classes Namespaces Files Functions Variables Typedefs Macros
Chat.h
Go to the documentation of this file.
1 #ifndef _TG_CHAT_H_
2 #define _TG_CHAT_H_
3 
4 #include <json/json.h>
5 #include <string>
6 
7 namespace Telegram {
8 
9  class Chat {
10  public:
11  Chat(Json::Value);
12 
13  Json::Int64 getId();
14  std::string getUsername();
15 
16  private:
17  Json::Int64 id;
18  std::string type;
19  std::string title;
20  std::string username;
21  std::string first_name;
22  std::string last_name;
23  };
24 }
25 
26 #endif
Chat(Json::Value)
Definition: Chat.cc:3
std::string last_name
Definition: Chat.h:22
Json::Int64 id
Definition: Chat.h:17
std::string first_name
Definition: Chat.h:21
std::string getUsername()
Definition: Chat.cc:18
std::string title
Definition: Chat.h:19
std::string username
Definition: Chat.h:20
std::string type
Definition: Chat.h:18
Json::Int64 getId()
Definition: Chat.cc:13