Example usage for twitter4j TwitterMethod SENT_DIRECT_MESSAGES

List of usage examples for twitter4j TwitterMethod SENT_DIRECT_MESSAGES

Introduction

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

Prototype

TwitterMethod SENT_DIRECT_MESSAGES

To view the source code for twitter4j TwitterMethod SENT_DIRECT_MESSAGES.

Click Source Link

Usage

From source file:com.marpies.ane.twitter.functions.GetSentDirectMessagesFunction.java

License:Apache License

@Override
public void onException(TwitterException te, TwitterMethod method) {
    if (method == TwitterMethod.SENT_DIRECT_MESSAGES) {
        AIR.log("SENT DIRECT MESSAGES QUERY ERROR " + te.getMessage());
        AIR.dispatchEvent(AIRTwitterEvent.DIRECT_MESSAGES_QUERY_ERROR,
                StringUtils.getEventErrorJSON(mCallbackID, te.getMessage()));
    }//  w w w  .  j  av  a  2s  .  c om
}