diff options
Diffstat (limited to 'src/twitter.h')
| -rw-r--r-- | src/twitter.h | 36 |
1 files changed, 36 insertions, 0 deletions
| diff --git a/src/twitter.h b/src/twitter.h new file mode 100644 index 0000000..39618c9 --- /dev/null +++ b/src/twitter.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | #ifndef TWITTER_H_AC7A7666 | ||
| 2 | #define TWITTER_H_AC7A7666 | ||
| 3 | |||
| 4 | namespace twitter { | ||
| 5 | |||
| 6 | enum class response { | ||
| 7 | ok, | ||
| 8 | curl_error, | ||
| 9 | bad_auth, | ||
| 10 | limited, | ||
| 11 | server_error, | ||
| 12 | server_unavailable, | ||
| 13 | server_overloaded, | ||
| 14 | server_timeout, | ||
| 15 | suspended, | ||
| 16 | bad_token, | ||
| 17 | duplicate_status, | ||
| 18 | suspected_spam, | ||
| 19 | write_restricted, | ||
| 20 | bad_length, | ||
| 21 | unknown_error | ||
| 22 | }; | ||
| 23 | |||
| 24 | class tweet; | ||
| 25 | |||
| 26 | }; | ||
| 27 | |||
| 28 | #include <json.hpp> | ||
| 29 | |||
| 30 | using nlohmann::json; | ||
| 31 | |||
| 32 | #include "auth.h" | ||
| 33 | #include "client.h" | ||
| 34 | #include "tweet.h" | ||
| 35 | |||
| 36 | #endif /* end of include guard: TWITTER_H_AC7A7666 */ | ||
