diff --git a/backends/twitter/Requests/PINExchangeProcess.h b/backends/twitter/Requests/PINExchangeProcess.h new file mode 100644 index 0000000000000000000000000000000000000000..4aba98a1e45f5fb2820c17cd40bff69f367463cb --- /dev/null +++ b/backends/twitter/Requests/PINExchangeProcess.h @@ -0,0 +1,39 @@ +#ifndef PIN_EXCHANGE +#define PIN_EXCHANGE + +#include "../ThreadPool.h" +#include "../libtwitcurl/twitcurl.h" +#include "../TwitterPlugin.h" +#include "transport/networkplugin.h" +#include "transport/logging.h" + +#include +#include + +//class TwitterPlugin; +using namespace Transport; +class PINExchangeProcess : public Thread +{ + twitCurl *twitObj; + std::string data; + std::string user; + TwitterPlugin *np; + bool success; + + public: + PINExchangeProcess(TwitterPlugin *_np, twitCurl *obj, const std::string &_user, const std::string &_data) { + twitObj = obj; + data = _data; + user = _user; + np = _np; + } + + ~PINExchangeProcess() { + //delete twitObj; + } + + void run(); + void finalize(); +}; + +#endif