From 04bd93a63692977c947542f8ff88cca2b9662c97 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 16 Nov 2022 12:58:44 -0500 Subject: Bot now uses Mastodon instead of Twitter --- timeline.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 timeline.h (limited to 'timeline.h') diff --git a/timeline.h b/timeline.h new file mode 100644 index 0000000..1cfc5bf --- /dev/null +++ b/timeline.h @@ -0,0 +1,24 @@ +#ifndef TIMELINE_H_FE90F0DC +#define TIMELINE_H_FE90F0DC + +#include +#include +#include +#include +#include + +class timeline { +public: + + explicit timeline(mastodonpp::API::endpoint_type endpoint); + + std::list poll(mastodonpp::Connection& connection); + +private: + + mastodonpp::API::endpoint_type endpoint_; + bool hasSince_ = false; + std::string sinceId_; +}; + +#endif /* end of include guard: TIMELINE_H_FE90F0DC */ -- cgit 1.4.1