From 12b25928d0ec2b18dda075b8c3b37b8a7e6f1172 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 15 Nov 2022 17:44:56 -0500 Subject: Bot now posts to 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