List of usage examples for twitter4j TwitterMethod SEND_DIRECT_MESSAGE
TwitterMethod SEND_DIRECT_MESSAGE
To view the source code for twitter4j TwitterMethod SEND_DIRECT_MESSAGE.
Click Source Link
From source file:com.marpies.ane.twitter.functions.SendDirectMessageFunction.java
License:Apache License
@Override public void onException(TwitterException te, TwitterMethod method) { if (method == TwitterMethod.SEND_DIRECT_MESSAGE) { AIR.log("Error trying to send DM: " + te.getMessage()); AIR.dispatchEvent(AIRTwitterEvent.DIRECT_MESSAGE_QUERY_ERROR, StringUtils.getEventErrorJSON(mCallbackID, te.getMessage())); }//from w w w .j a v a 2 s.com }