List of usage examples for twitter4j User getScreenName
String getScreenName();
From source file:net.lacolaco.smileessence.viewmodel.StatusViewModel.java
License:Open Source License
public StatusViewModel(Status status, Account account) { if (status.isRetweet()) { retweetedStatus = new StatusViewModel(status.getRetweetedStatus(), account); }/* www . j a va 2s . com*/ id = status.getId(); text = TwitterUtils.replaceURLEntities(status.getText(), status.getURLEntities(), false); createdAt = status.getCreatedAt(); source = status.getSource(); mentions = status.getUserMentionEntities(); hashtags = status.getHashtagEntities(); media = status.getMediaEntities(); urls = status.getURLEntities(); symbols = status.getSymbolEntities(); User user = status.getUser(); UserCache.getInstance().put(user); userID = user.getId(); screenName = user.getScreenName(); name = user.getName(); iconURL = user.getProfileImageURLHttps(); isProtected = user.isProtected(); setMention(isMention(account.screenName)); setMyStatus(isMyStatus(account.userID)); setRetweetOfMe(isRetweetOfMe(account.userID)); }
From source file:net.lacolaco.smileessence.viewmodel.UserViewModel.java
License:Open Source License
public UserViewModel(User user) { id = user.getId();//ww w . j a v a 2s. c o m screenName = user.getScreenName(); name = user.getName(); description = user.getDescription(); location = user.getLocation(); url = user.getURL(); iconURL = user.getBiggerProfileImageURL(); bannerURL = user.getProfileBannerURL(); statusesCount = user.getStatusesCount(); friendsCount = user.getFriendsCount(); followersCount = user.getFollowersCount(); favoritesCount = user.getFavouritesCount(); isProtected = user.isProtected(); isVerified = user.isVerified(); }
From source file:net.nitram509.controller.TwitterCallbackHttpController.java
License:Open Source License
private UserProfile retrieveUserProfileDetails(Twitter twitter, AccessToken accessToken) throws TwitterException { final long twitterId = twitter.getId(); User twitterUser = twitter.users().showUser(twitterId); UserProfile userProfile = new UserProfile(new UserId(twitterId)); userProfile.setName(twitterUser.getName()); userProfile.setScreenName(twitterUser.getScreenName()); userProfile.setProfileImageUrlHttps(twitterUser.getProfileImageURLHttps()); userProfile.setProfileImageUrl(twitterUser.getProfileImageURL()); userProfile.setUrl(twitterUser.getURL()); userProfile.setAccessToken(accessToken.getToken()); userProfile.setAccessTokenSecret(accessToken.getTokenSecret()); return userProfile; }
From source file:net.nokok.twitduke.core.twitter.PrintUserStreamListener.java
License:Open Source License
@Override public void onBlock(User source, User blockedUser) { System.out.println("onBlock: " + source.getScreenName() + "," + blockedUser.getScreenName()); }
From source file:net.nokok.twitduke.core.twitter.PrintUserStreamListener.java
License:Open Source License
@Override public void onFavorite(User source, User target, Status favoritedStatus) { System.out.println("onFavorite: " + source.getScreenName() + "," + target.getScreenName() + "," + favoritedStatus.getText()); }
From source file:net.nokok.twitduke.core.twitter.PrintUserStreamListener.java
License:Open Source License
@Override public void onFollow(User source, User followedUser) { System.out.println("onFollow: " + source.getScreenName() + "," + followedUser.getScreenName()); }
From source file:net.nokok.twitduke.core.twitter.PrintUserStreamListener.java
License:Open Source License
@Override public void onUnblock(User source, User unblockedUser) { System.out.println("onUnblock: " + source.getScreenName() + "," + unblockedUser.getScreenName()); }
From source file:net.nokok.twitduke.core.twitter.PrintUserStreamListener.java
License:Open Source License
@Override public void onUnfavorite(User source, User target, Status unfavoritedStatus) { System.out.println("onUnfavorite: " + source.getScreenName() + "," + target.getScreenName() + "," + unfavoritedStatus.getText()); }
From source file:net.nokok.twitduke.core.twitter.PrintUserStreamListener.java
License:Open Source License
@Override public void onUnfollow(User source, User unfollowedUser) { System.out.println("onUnfollow: " + source.getScreenName() + "," + unfollowedUser.getScreenName()); }
From source file:net.nokok.twitduke.core.twitter.TwitterNotificationListener.java
License:Open Source License
/** * {@code Optional.}/* www. ja v a 2 s . co m*/ * * @param source * @param target * @param favoritedStatus */ @Override public void onFavorite(User source, User target, Status favoritedStatus) { new NotificationFrame(source.getScreenName() + "???????", favoritedStatus.getText(), stringToURL(source.getProfileImageURLHttps())); }