about summary refs log tree commit diff stats
path: root/src/tweet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tweet.h')
-rw-r--r--src/tweet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tweet.h b/src/tweet.h index fba1ced..34a9cd7 100644 --- a/src/tweet.h +++ b/src/tweet.h
@@ -3,6 +3,8 @@
3 3
4#include <string> 4#include <string>
5#include "user.h" 5#include "user.h"
6#include <vector>
7#include <utility>
6 8
7namespace twitter { 9namespace twitter {
8 10
@@ -17,6 +19,7 @@ namespace twitter {
17 std::string getText() const; 19 std::string getText() const;
18 const user& getAuthor() const; 20 const user& getAuthor() const;
19 bool isRetweet() const; 21 bool isRetweet() const;
22 std::vector<std::pair<user_id, std::string>> getMentions() const;
20 23
21 operator bool() const; 24 operator bool() const;
22 25
@@ -26,6 +29,7 @@ namespace twitter {
26 std::string _text; 29 std::string _text;
27 user _author; 30 user _author;
28 bool _retweeted; 31 bool _retweeted;
32 std::vector<std::pair<user_id, std::string>> _mentions;
29 }; 33 };
30 34
31}; 35};