summary refs log tree commit diff stats
path: root/timeline.h
diff options
context:
space:
mode:
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 */