yatbcpp  0.0.1
Yet another Telegram Bot CPP Library
ChatMember.cc
Go to the documentation of this file.
1 #include <string>
2 #include <optional>
3 #include "types/User.h"
4 #include "types/ChatMember.h"
5 
6 
7 using namespace yatbcpp;
8 using namespace std;
9 
11 // Constructor Section //
13 
15  user(user), status(status)
16 {
17 
18 }
19 
21  user(ChatMember.user), status(ChatMember.status)
22 
23 {
24  until_date = ChatMember.until_date;
25  can_be_edited = ChatMember.can_be_edited;
26  can_change_info = ChatMember.can_change_info;
38 }
39 
40 
42 // Setter Section //
44 
45 void ChatMember::setUntil_date(const optional<int32_t> &until_date) {
47 }
48 
49 void ChatMember::setCan_be_edited(const optional<bool> &can_be_edited) {
51 }
52 
53 void ChatMember::setCan_change_info(const optional<bool> &can_change_info) {
55 }
56 
59 }
60 
63 }
64 
67 }
68 
71 }
72 
75 }
76 
79 }
80 
83 }
84 
87 }
88 
91 }
92 
95 }
96 
99 }
100 
102 // Getter Section //
104 
105 const User &ChatMember::getUser() const {
106  return user;
107 }
108 
110  return status;
111 }
112 
113 const optional<int32_t> &ChatMember::getUntil_date() const {
114  return until_date;
115 }
116 
117 const optional<bool> &ChatMember::getCan_be_edited() const {
118  return can_be_edited;
119 }
120 
121 const optional<bool> &ChatMember::getCan_change_info() const {
122  return can_change_info;
123 }
124 
125 const optional<bool> &ChatMember::getCan_post_messages() const {
126  return can_post_messages;
127 }
128 
129 const optional<bool> &ChatMember::getCan_edit_messages() const {
130  return can_edit_messages;
131 }
132 
133 const optional<bool> &ChatMember::getCan_delete_messages() const {
134  return can_delete_messages;
135 }
136 
137 const optional<bool> &ChatMember::getCan_invite_users() const {
138  return can_invite_users;
139 }
140 
141 const optional<bool> &ChatMember::getCan_restrict_members() const {
142  return can_restrict_members;
143 }
144 
145 const optional<bool> &ChatMember::getCan_pin_messages() const {
146  return can_pin_messages;
147 }
148 
149 const optional<bool> &ChatMember::getCan_promote_members() const {
150  return can_promote_members;
151 }
152 
153 const optional<bool> &ChatMember::getCan_send_messages() const {
154  return can_send_messages;
155 }
156 
157 const optional<bool> &ChatMember::getCan_send_media_messages() const {
159 }
160 
161 const optional<bool> &ChatMember::getCan_send_other_messages() const {
163 }
164 
165 const optional<bool> &ChatMember::getCan_add_web_page_previews() const {
167 }
168 
void setCan_edit_messages(const std::optional< bool > &can_edit_messages)
Definition: ChatMember.cc:61
std::optional< bool > can_pin_messages
Definition: ChatMember.h:88
const std::optional< bool > & getCan_delete_messages() const
Definition: ChatMember.cc:133
const std::optional< bool > & getCan_edit_messages() const
Definition: ChatMember.cc:129
void setUntil_date(const std::optional< std::int32_t > &until_date)
Definition: ChatMember.cc:45
const std::optional< bool > & getCan_add_web_page_previews() const
Definition: ChatMember.cc:165
void setCan_promote_members(const std::optional< bool > &can_promote_members)
Definition: ChatMember.cc:81
const std::optional< std::int32_t > & getUntil_date() const
Definition: ChatMember.cc:113
void setCan_post_messages(const std::optional< bool > &can_post_messages)
Definition: ChatMember.cc:57
chatmember_status status
Definition: ChatMember.h:79
void setCan_pin_messages(const std::optional< bool > &can_pin_messages)
Definition: ChatMember.cc:77
std::optional< bool > can_restrict_members
Definition: ChatMember.h:87
const User & getUser() const
Definition: ChatMember.cc:105
void setCan_send_media_messages(const std::optional< bool > &can_send_media_messages)
Definition: ChatMember.cc:89
void setCan_be_edited(const std::optional< bool > &can_be_edited)
Definition: ChatMember.cc:49
std::optional< bool > can_add_web_page_previews
Definition: ChatMember.h:93
std::optional< bool > can_post_messages
Definition: ChatMember.h:83
const std::optional< bool > & getCan_be_edited() const
Definition: ChatMember.cc:117
std::optional< bool > can_change_info
Definition: ChatMember.h:82
Definition: Bot.h:27
const std::optional< bool > & getCan_restrict_members() const
Definition: ChatMember.cc:141
void setCan_restrict_members(const std::optional< bool > &can_restrict_members)
Definition: ChatMember.cc:73
ChatMember(User user, chatmember_status status)
Definition: ChatMember.cc:14
std::optional< bool > can_send_other_messages
Definition: ChatMember.h:92
const std::optional< bool > & getCan_promote_members() const
Definition: ChatMember.cc:149
const std::optional< bool > & getCan_post_messages() const
Definition: ChatMember.cc:125
void setCan_invite_users(const std::optional< bool > &can_invite_users)
Definition: ChatMember.cc:69
void setCan_add_web_page_previews(const std::optional< bool > &can_add_web_page_previews)
Definition: ChatMember.cc:97
std::optional< bool > can_be_edited
Definition: ChatMember.h:81
std::optional< bool > can_invite_users
Definition: ChatMember.h:86
const std::optional< bool > & getCan_send_media_messages() const
Definition: ChatMember.cc:157
std::optional< bool > can_delete_messages
Definition: ChatMember.h:85
void setCan_change_info(const std::optional< bool > &can_change_info)
Definition: ChatMember.cc:53
const std::optional< bool > & getCan_pin_messages() const
Definition: ChatMember.cc:145
std::optional< std::int32_t > until_date
Definition: ChatMember.h:80
void setCan_send_other_messages(const std::optional< bool > &can_send_other_messages)
Definition: ChatMember.cc:93
void setCan_send_messages(const std::optional< bool > &can_send_messages)
Definition: ChatMember.cc:85
std::optional< bool > can_promote_members
Definition: ChatMember.h:89
const std::optional< bool > & getCan_invite_users() const
Definition: ChatMember.cc:137
std::optional< bool > can_send_messages
Definition: ChatMember.h:90
const std::optional< bool > & getCan_send_messages() const
Definition: ChatMember.cc:153
void setCan_delete_messages(const std::optional< bool > &can_delete_messages)
Definition: ChatMember.cc:65
const std::optional< bool > & getCan_send_other_messages() const
Definition: ChatMember.cc:161
const chatmember_status & getStatus() const
Definition: ChatMember.cc:109
std::optional< bool > can_send_media_messages
Definition: ChatMember.h:91
const std::optional< bool > & getCan_change_info() const
Definition: ChatMember.cc:121
std::optional< bool > can_edit_messages
Definition: ChatMember.h:84