about summary refs log tree commit diff stats
path: root/src/timeline.h
blob: 60ce78dbebdbae9b1d94526d2089523c2b6d004e (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
25
26
27
28
29
30
31
#ifndef TIMELINE_H_D359681C
#define TIMELINE_H_D359681C

#include <functional>
#include <list>
#include <string>
#include "auth.h"
#include "tweet.h"

namespace twitter {

  class timeline {
  public:

    timeline(
      const auth& tauth,
      std::string url);

    std::list<tweet> poll();

  private:

    const auth& auth_;
    std::string url_;
    bool hasSince_ = false;
    tweet_id sinceId_;
  };

}

#endif /* end of include guard: TIMELINE_H_D359681C */