From d783c17151a98466e304b1e5f33bfca0be885fd8 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 1 Dec 2016 08:49:01 -0500 Subject: Added a convenience overload to client::replyToTweet --- src/client.cpp | 5 +++++ src/client.h | 1 + 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/client.cpp b/src/client.cpp index e16e30b..ccfd9a3 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -376,6 +376,11 @@ namespace twitter { .perform()); } + tweet client::replyToTweet(std::string msg, const tweet& in_response_to, std::list media_ids) const + { + return replyToTweet(msg, in_response_to.getID(), media_ids); + } + long client::uploadMedia(std::string media_type, const char* data, long data_length) const try { curl::curl_form form; diff --git a/src/client.h b/src/client.h index 2230dbb..c920f82 100644 --- a/src/client.h +++ b/src/client.h @@ -29,6 +29,7 @@ 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; + tweet replyToTweet(std::string msg, const tweet& in_response_to, std::list media_ids = {}) const; std::set getFriends(user_id id) const; std::set getFriends(const user& u) const; -- cgit 1.4.1