summary refs log tree commit diff stats
path: root/timeline.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-11-16 12:58:44 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2022-11-16 12:58:44 -0500
commit04bd93a63692977c947542f8ff88cca2b9662c97 (patch)
tree44ca4932dc1c65eb79cb9f60a7a8311c5ebc267d /timeline.h
parentd16ccf85c75f34c142736b6e1b7dc491898a1932 (diff)
downloadfather-04bd93a63692977c947542f8ff88cca2b9662c97.tar.gz
father-04bd93a63692977c947542f8ff88cca2b9662c97.tar.bz2
father-04bd93a63692977c947542f8ff88cca2b9662c97.zip
Bot now uses 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 */