Files
@ 67f274fe41e2
Branch filter:
Location: libtransport.git/backends/twitter/Requests/DestroyFriendRequest.h - annotation
67f274fe41e2
869 B
text/plain
spectrum2_manager server: Allow registering and unregistering Spectrum 2 transport users
d7b1567e7588 d7b1567e7588 d7b1567e7588 78e71f9345c7 d7b1567e7588 d7b1567e7588 78e71f9345c7 d7b1567e7588 d7b1567e7588 d7b1567e7588 bdb8aed78f63 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 c236c464ffac bdb8aed78f63 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 c236c464ffac d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 d7b1567e7588 | #ifndef DESTROY_FRIEND
#define DESTROY_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 DestroyFriendRequest : public Thread
{
twitCurl *twitObj;
std::string user;
std::string frnd;
std::string replyMsg;
boost::function< void (std::string&, User&, Error&) > callBack;
User friendInfo;
bool success;
public:
DestroyFriendRequest(twitCurl *obj, const std::string &_user, const std::string & _frnd,
boost::function< void (std::string&, User&, Error&) > cb) {
twitObj = obj->clone();
user = _user;
frnd = _frnd;
callBack = cb;
}
~DestroyFriendRequest() {
delete twitObj;
}
void run();
void finalize();
};
#endif
|