Files
@ d3bae007bc49
Branch filter:
Location: libtransport.git/backends/twitter/Requests/RetweetRequest.cpp - annotation
d3bae007bc49
726 B
text/x-c++hdr
Removed debug stuff
6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 d93cc2ce66eb 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 c236c464ffac 6cc7c334f3c4 c236c464ffac c236c464ffac d93cc2ce66eb d93cc2ce66eb c236c464ffac 6cc7c334f3c4 c236c464ffac c236c464ffac d93cc2ce66eb d93cc2ce66eb d93cc2ce66eb d93cc2ce66eb d93cc2ce66eb 6cc7c334f3c4 6cc7c334f3c4 6cc7c334f3c4 | #include "RetweetRequest.h"
DEFINE_LOGGER(logger, "RetweetRequest")
void RetweetRequest::run()
{
LOG4CXX_INFO(logger, user << " Retweeting " << data);
success = twitObj->retweetById( data );
}
void RetweetRequest::finalize()
{
Error error;
if(!success) {
std::string curlerror;
twitObj->getLastCurlError(curlerror);
error.setMessage(curlerror);
LOG4CXX_ERROR(logger, user << " Curl error: " << curlerror);
callBack(user, error);
} else {
twitObj->getLastWebResponse(replyMsg);
error = getErrorMessage(replyMsg);
if(error.getMessage().length()) {
LOG4CXX_ERROR(logger, user << " - " << error.getMessage());
} else {
LOG4CXX_INFO(logger, user << " " << replyMsg);
}
callBack(user, error);
}
}
|