diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-11-29 16:18:25 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-11-29 16:18:25 -0500 |
commit | 7c44fd17bb6be54a2ea4b60761e91053ca988977 (patch) | |
tree | 42f08e0db610617fd0629b117610bfa1a365acaf /src/client.h | |
parent | d90a1e74c77ba67f25a812609fd49d479bc464dd (diff) | |
download | libtwittercpp-7c44fd17bb6be54a2ea4b60761e91053ca988977.tar.gz libtwittercpp-7c44fd17bb6be54a2ea4b60761e91053ca988977.tar.bz2 libtwittercpp-7c44fd17bb6be54a2ea4b60761e91053ca988977.zip |
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.
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 { | |||
29 | long uploadMedia(std::string media_type, const char* data, long data_length) const; | 29 | long uploadMedia(std::string media_type, const char* data, long data_length) const; |
30 | 30 | ||
31 | tweet replyToTweet(std::string msg, tweet_id in_response_to, std::list<long> media_ids = {}) const; | 31 | tweet replyToTweet(std::string msg, tweet_id in_response_to, std::list<long> media_ids = {}) const; |
32 | |||
32 | std::set<user_id> getFriends(user_id id) const; | 33 | std::set<user_id> getFriends(user_id id) const; |
34 | std::set<user_id> getFriends(const user& u) const; | ||
35 | std::set<user_id> getFriends() const; | ||
36 | |||
33 | std::set<user_id> getFollowers(user_id id) const; | 37 | std::set<user_id> getFollowers(user_id id) const; |
38 | std::set<user_id> getFollowers(const user& u) const; | ||
39 | std::set<user_id> getFollowers() const; | ||
40 | |||
34 | void follow(user_id toFollow) const; | 41 | void follow(user_id toFollow) const; |
42 | void follow(const user& toFollow) const; | ||
43 | |||
35 | void unfollow(user_id toUnfollow) const; | 44 | void unfollow(user_id toUnfollow) const; |
45 | void unfollow(const user& toUnfollow) const; | ||
36 | 46 | ||
37 | const user& getUser() const; | 47 | const user& getUser() const; |
38 | 48 | ||