Files
@ 6f9fbae0907a
Branch filter:
Location: libtransport.git/backends/twitter/Requests/CreateFriendRequest.h - annotation
6f9fbae0907a
919 B
text/plain
Twitter: remove user from database even when he logged out before sending #pin
d7b1567e7588 d7b1567e7588 d7b1567e7588 b3f59f9bb668 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 bdb8aed78f63 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 c236c464ffac 9e70a739b7c2 9e70a739b7c2 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 c236c464ffac d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 | #ifndef CREATE_FRIEND
#define CREATE_FRIEND
#include "transport/threadpool.h"
#include "../TwitterResponseParser.h"
#include "../libtwitcurl/twitcurl.h"
#include "transport/logging.h"
#include <string>
#include <boost/function.hpp>
#include <iostream>
#include <vector>
using namespace Transport;
class CreateFriendRequest : public Thread
{
twitCurl *twitObj;
std::string user;
std::string frnd;
std::string replyMsg;
boost::function< void (std::string&, User&, std::string &, Error&) > callBack;
User friendInfo;
std::string profileImg;
bool success;
public:
CreateFriendRequest(twitCurl *obj, const std::string &_user, const std::string & _frnd,
boost::function< void (std::string&, User&, std::string &, Error&) > cb) {
twitObj = obj->clone();
user = _user;
frnd = _frnd;
callBack = cb;
}
~CreateFriendRequest() {
delete twitObj;
}
void run();
void finalize();
};
#endif
|