Example usage for twitter4j TwitterMethod SEND_DIRECT_MESSAGE

List of usage examples for twitter4j TwitterMethod SEND_DIRECT_MESSAGE

Introduction

In this page you can find the example usage for twitter4j TwitterMethod SEND_DIRECT_MESSAGE.

Prototype

TwitterMethod SEND_DIRECT_MESSAGE

To view the source code for twitter4j TwitterMethod SEND_DIRECT_MESSAGE.

Click Source Link

Usage

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
}