diff options
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client.h b/src/client.h index c1c6344..6963412 100644 --- a/src/client.h +++ b/src/client.h | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <set> | 11 | #include <set> |
12 | #include <ctime> | 12 | #include <ctime> |
13 | #include <chrono> | 13 | #include <chrono> |
14 | #include "configuration.h" | ||
14 | 15 | ||
15 | namespace OAuth { | 16 | namespace OAuth { |
16 | class Consumer; | 17 | class Consumer; |
@@ -79,7 +80,9 @@ namespace twitter { | |||
79 | response getFriends(std::set<user_id>& result); | 80 | response getFriends(std::set<user_id>& result); |
80 | response getFollowers(std::set<user_id>& result); | 81 | response getFollowers(std::set<user_id>& result); |
81 | 82 | ||
82 | const user& getUser() const; | 83 | response getUser(user& result); |
84 | |||
85 | configuration getConfiguration(); | ||
83 | 86 | ||
84 | // NOTE: stream setting function calls will fail silently when stream is running | 87 | // NOTE: stream setting function calls will fail silently when stream is running |
85 | void setUserStreamNotifyCallback(stream::notify_callback callback); | 88 | void setUserStreamNotifyCallback(stream::notify_callback callback); |
@@ -99,6 +102,9 @@ namespace twitter { | |||
99 | user _current_user; | 102 | user _current_user; |
100 | stream _user_stream{*this}; | 103 | stream _user_stream{*this}; |
101 | 104 | ||
105 | configuration _configuration; | ||
106 | time_t _last_configuration_update; | ||
107 | |||
102 | bool performGet(std::string url, long& response_code, std::string& result); | 108 | bool performGet(std::string url, long& response_code, std::string& result); |
103 | bool performPost(std::string url, std::string dataStr, long& response_code, std::string& result); | 109 | bool performPost(std::string url, std::string dataStr, long& response_code, std::string& result); |
104 | bool performMultiPost(std::string url, const curl_httppost* fields, long& response_code, std::string& result); | 110 | bool performMultiPost(std::string url, const curl_httppost* fields, long& response_code, std::string& result); |