List of usage examples for twitter4j User getName
String getName();
From source file:Utils.ConvertUsers.java
License:Open Source License
public Set<TwitterUser> convertAll(Set<User> users) { Set<TwitterUser> twitterUsers = new HashSet(); TwitterUser twitterUser;//from w w w . ja va 2 s .c o m for (User user : users) { 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()); twitterUsers.add(twitterUser); } return twitterUsers; }
From source file:Utils.ConvertUsers.java
License:Open Source License
public TwitterUser convertOne(User user) { TwitterUser twitterUser;//from w w w. j av a 2 s . c om 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; }