diff --git a/backends/twitter/Requests/DirectMessageRequest.h b/backends/twitter/Requests/DirectMessageRequest.h new file mode 100644 index 0000000000000000000000000000000000000000..6159ed651aceba24ca0b3b36505e1dbb0bd07058 --- /dev/null +++ b/backends/twitter/Requests/DirectMessageRequest.h @@ -0,0 +1,35 @@ +#ifndef DIRECT_MESSAGE +#define DIRECT_MESSAGE + +#include "../ThreadPool.h" +#include "../libtwitcurl/twitcurl.h" +#include "transport/networkplugin.h" +#include "transport/logging.h" +#include +#include + +using namespace Transport; + +class DirectMessageRequest : public Thread +{ + twitCurl twitObj; + std::string data; + std::string user; + std::string username; + std::string replyMsg; + NetworkPlugin *np; + + public: + DirectMessageRequest(NetworkPlugin *_np, twitCurl *obj, const std::string &_user, const std::string & _username, const std::string &_data) { + twitObj = *obj; + data = _data; + user = _user; + username = _username; + np = _np; + } + + void run(); + void finalize(); +}; + +#endif