Example usage for twitter4j TwitterMethod CREATE_FRIENDSHIP

List of usage examples for twitter4j TwitterMethod CREATE_FRIENDSHIP

Introduction

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

Prototype

TwitterMethod CREATE_FRIENDSHIP

To view the source code for twitter4j TwitterMethod CREATE_FRIENDSHIP.

Click Source Link

Usage

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

License:Apache License

@Override
public void onException(TwitterException te, TwitterMethod method) {
    if (method == TwitterMethod.CREATE_FRIENDSHIP) {
        AIR.log("Error trying to follow user: " + te.getMessage());
        AIR.dispatchEvent(AIRTwitterEvent.USER_QUERY_ERROR,
                StringUtils.getEventErrorJSON(mCallbackID, te.getMessage()));
    }/*from  w w w. j ava 2  s .c  om*/
}