From 0ccac89815ee92c69fefc148cfb272faf7309136 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 20 May 2016 15:34:44 -0400 Subject: Started implementing user streams You can now start a user stream and end it yourself. If it disconnects abnormally, it will reconnect with a backoff as described by Twitter. Some data structures have some fields parsed now; tweets have IDs, text, and authors. Users have IDs, screen names, and names. Notifications from the stream are parsed completely. The ability to follow and unfollow users has also been added, as well as the ability to get a list of friends and followers, and to reply to a tweet. --- src/direct_message.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/direct_message.h (limited to 'src/direct_message.h') diff --git a/src/direct_message.h b/src/direct_message.h new file mode 100644 index 0000000..4b5e285 --- /dev/null +++ b/src/direct_message.h @@ -0,0 +1,15 @@ +#ifndef DIRECT_MESSAGE_H_2B2AE3F8 +#define DIRECT_MESSAGE_H_2B2AE3F8 + +#include + +namespace twitter { + + class direct_message { + public: + direct_message(std::string data); + }; + +}; + +#endif /* end of include guard: DIRECT_MESSAGE_H_2B2AE3F8 */ -- cgit 1.4.1