about summary refs log tree commit diff stats
path: root/timeline.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-11-15 17:44:56 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2022-11-15 17:44:56 -0500
commit12b25928d0ec2b18dda075b8c3b37b8a7e6f1172 (patch)
treecb61f94bff879401288d19655200b20433871155 /timeline.h
parente6f5d46db4245a27ac9dba90dcbb08caf9ee8a97 (diff)
downloadrawr-ebooks-12b25928d0ec2b18dda075b8c3b37b8a7e6f1172.tar.gz
rawr-ebooks-12b25928d0ec2b18dda075b8c3b37b8a7e6f1172.tar.bz2
rawr-ebooks-12b25928d0ec2b18dda075b8c3b37b8a7e6f1172.zip
Bot now posts to Mastodon instead of Twitter
Diffstat (limited to 'timeline.h')
-rw-r--r--timeline.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/timeline.h b/timeline.h new file mode 100644 index 0000000..1cfc5bf --- /dev/null +++ b/timeline.h
@@ -0,0 +1,24 @@
1#ifndef TIMELINE_H_FE90F0DC
2#define TIMELINE_H_FE90F0DC
3
4#include <functional>
5#include <list>
6#include <string>
7#include <mastodonpp/mastodonpp.hpp>
8#include <json.hpp>
9
10class timeline {
11public:
12
13 explicit timeline(mastodonpp::API::endpoint_type endpoint);
14
15 std::list<nlohmann::json> poll(mastodonpp::Connection& connection);
16
17private:
18
19 mastodonpp::API::endpoint_type endpoint_;
20 bool hasSince_ = false;
21 std::string sinceId_;
22};
23
24#endif /* end of include guard: TIMELINE_H_FE90F0DC */