diff --git a/backends/twitter/TwitterPlugin.h b/backends/twitter/TwitterPlugin.h index 77351c3e1bdc4a955598ecc3e7edbdaf1bde787c..a4bd536cbe1d259f4776f358b0826678763e630e 100644 --- a/backends/twitter/TwitterPlugin.h +++ b/backends/twitter/TwitterPlugin.h @@ -83,6 +83,10 @@ class TwitterPlugin : public NetworkPlugin { void OAuthFlowComplete(const std::string user, twitCurl *obj); void pinExchangeComplete(const std::string user, const std::string OAuthAccessTokenKey, const std::string OAuthAccessTokenSecret); + + void updateUsersLastTweetID(const std::string user, const std::string ID); + + std::string getMostRecentTweetID(const std::string user); private: enum status {NEW, WAITING_FOR_PIN, CONNECTED, DISCONNECTED}; @@ -99,6 +103,7 @@ class TwitterPlugin : public NetworkPlugin { ThreadPool *tp; std::map sessions; std::map connectionState; + std::map mostRecentTweetID; std::set onlineUsers; };