Files
@ a2b385e88f06
Branch filter:
Location: libtransport.git/backends/twitter/Requests/DirectMessageRequest.h - annotation
a2b385e88f06
756 B
text/plain
Multi-Threaded Request
2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c a2b385e88f06 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c a2b385e88f06 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c a2b385e88f06 a2b385e88f06 a2b385e88f06 a2b385e88f06 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c 2b47d32a916c | #ifndef DIRECT_MESSAGE
#define DIRECT_MESSAGE
#include "../ThreadPool.h"
#include "../libtwitcurl/twitcurl.h"
#include "transport/networkplugin.h"
#include "transport/logging.h"
#include <string>
#include <iostream>
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->clone();
data = _data;
user = _user;
username = _username;
np = _np;
}
~DirectMessageRequest() {
delete twitObj;
}
void run();
void finalize();
};
#endif
|