blob: 1cfc5bfff331854320e19e88cd8ee52887137d0a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef TIMELINE_H_FE90F0DC
#define TIMELINE_H_FE90F0DC
#include <functional>
#include <list>
#include <string>
#include <mastodonpp/mastodonpp.hpp>
#include <json.hpp>
class timeline {
public:
explicit timeline(mastodonpp::API::endpoint_type endpoint);
std::list<nlohmann::json> poll(mastodonpp::Connection& connection);
private:
mastodonpp::API::endpoint_type endpoint_;
bool hasSince_ = false;
std::string sinceId_;
};
#endif /* end of include guard: TIMELINE_H_FE90F0DC */
|