Example usage for twitter4j TwitterMethod DESTROY_FRIENDSHIP

List of usage examples for twitter4j TwitterMethod DESTROY_FRIENDSHIP

Introduction

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

Prototype

TwitterMethod DESTROY_FRIENDSHIP

To view the source code for twitter4j TwitterMethod DESTROY_FRIENDSHIP.

Click Source Link

Usage

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

License:Apache License

@Override
public void onException(TwitterException te, TwitterMethod method) {
    if (method == TwitterMethod.DESTROY_FRIENDSHIP) {
        AIR.log("Error trying to unfollow user: " + te.getMessage());
        AIR.dispatchEvent(AIRTwitterEvent.USER_QUERY_ERROR,
                StringUtils.getEventErrorJSON(mCallbackID, te.getMessage()));
    }//from   w  ww.  j  a  va2s  .com
}