Example usage for twitter4j User getFriendsCount

List of usage examples for twitter4j User getFriendsCount

Introduction

In this page you can find the example usage for twitter4j User getFriendsCount.

Prototype

int getFriendsCount();

Source Link

Document

Returns the number of users the user follows (AKA "followings")

Usage

From source file:Utils.ConvertUsers.java

License:Open Source License

public TwitterUser convertOne(User user) {

    TwitterUser twitterUser;/*from  w w  w.  ja v a  2 s . co  m*/

    twitterUser = new TwitterUser();
    twitterUser.setCreated_at(user.getCreatedAt());
    twitterUser.setDescription(user.getDescription());
    twitterUser.setFollowers_count(user.getFollowersCount());
    twitterUser.setLang(user.getLang());
    twitterUser.setLocation(user.getLocation());
    twitterUser.setName(user.getName());
    twitterUser.setProfile_image_url(user.getProfileImageURL());
    twitterUser.setScreen_name(user.getScreenName());
    twitterUser.setIdTwitter(user.getId());
    twitterUser.setFriends_count(user.getFriendsCount());
    twitterUser.setProfile_banner_url(user.getProfileBannerURL());

    return twitterUser;
}