diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-05-22 19:21:00 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-05-22 19:21:00 -0400 |
commit | 62f6aae6c313b2a2a493c5147ec831a66eba01ff (patch) | |
tree | a69adb7516ed3c54f3291dae14a582ecb9d0d5b2 /src/tweet.h | |
parent | cdea9154ff180e95dfbdd8e0647922ca8afa3d46 (diff) | |
download | libtwittercpp-62f6aae6c313b2a2a493c5147ec831a66eba01ff.tar.gz libtwittercpp-62f6aae6c313b2a2a493c5147ec831a66eba01ff.tar.bz2 libtwittercpp-62f6aae6c313b2a2a493c5147ec831a66eba01ff.zip |
Added utility function to generate tweet reply prefill
Diffstat (limited to 'src/tweet.h')
-rw-r--r-- | src/tweet.h | 4 |
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 | ||
7 | namespace twitter { | 9 | namespace 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 | }; |