From 7c44fd17bb6be54a2ea4b60761e91053ca988977 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 29 Nov 2016 16:18:25 -0500 Subject: Made tweets, users, and notifications into copyable objects Notifications are now also mutable. Users and tweets no longer have helper methods for interacting with the client. Fixed a bug (possibly introduced by a change to the Twitter API) that caused non-reply tweets to be marked as unknown notifications. --- src/client.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h index 37081ff..2230dbb 100644 --- a/src/client.h +++ b/src/client.h @@ -29,10 +29,20 @@ namespace twitter { long uploadMedia(std::string media_type, const char* data, long data_length) const; tweet replyToTweet(std::string msg, tweet_id in_response_to, std::list media_ids = {}) const; + std::set getFriends(user_id id) const; + std::set getFriends(const user& u) const; + std::set getFriends() const; + std::set getFollowers(user_id id) const; + std::set getFollowers(const user& u) const; + std::set getFollowers() const; + void follow(user_id toFollow) const; + void follow(const user& toFollow) const; + void unfollow(user_id toUnfollow) const; + void unfollow(const user& toUnfollow) const; const user& getUser() const; -- cgit 1.4.1