diff options
Diffstat (limited to 'src/timeline.h')
| -rw-r--r-- | src/timeline.h | 31 |
1 files changed, 31 insertions, 0 deletions
| diff --git a/src/timeline.h b/src/timeline.h new file mode 100644 index 0000000..60ce78d --- /dev/null +++ b/src/timeline.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | #ifndef TIMELINE_H_D359681C | ||
| 2 | #define TIMELINE_H_D359681C | ||
| 3 | |||
| 4 | #include <functional> | ||
| 5 | #include <list> | ||
| 6 | #include <string> | ||
| 7 | #include "auth.h" | ||
| 8 | #include "tweet.h" | ||
| 9 | |||
| 10 | namespace twitter { | ||
| 11 | |||
| 12 | class timeline { | ||
| 13 | public: | ||
| 14 | |||
| 15 | timeline( | ||
| 16 | const auth& tauth, | ||
| 17 | std::string url); | ||
| 18 | |||
| 19 | std::list<tweet> poll(); | ||
| 20 | |||
| 21 | private: | ||
| 22 | |||
| 23 | const auth& auth_; | ||
| 24 | std::string url_; | ||
| 25 | bool hasSince_ = false; | ||
| 26 | tweet_id sinceId_; | ||
| 27 | }; | ||
| 28 | |||
| 29 | } | ||
| 30 | |||
| 31 | #endif /* end of include guard: TIMELINE_H_D359681C */ | ||
