public ClientUser from(User tweetUser) { ClientUser cu = new ClientUser(); cu.setTwitterName(tweetUser.getScreenName()); cu.setTwitterId(tweetUser.getId()); cu.setPicurl(tweetUser.getProfileImageURL().toString()); return cu; }
public ClientUser from(TwitterUser tu, int level) { ClientUser cu = new ClientUser(); cu.setTwitterName(tu.getScreenName()); cu.setPicurl(tu.getPicUrl()); cu.setLevel(level); cu.setTwitterId(tu.getTwitterId()); return cu; }
public ClientUser from(AppUser appUser, String url) { ClientUser clientUser = new ClientUser(); clientUser.setGoogleName(appUser.getGoogleId()); clientUser.setTwitterName(appUser.getTwitterName()); clientUser.setTwitterId(appUser.getTwitterId()); clientUser.setXmppContact(appUser.isXmppContact()); clientUser.setGoogleLoginUrl(url); clientUser.setNotifyStarTweets(PrimitiveUtils.getValue(appUser.getNotifyStarTweets())); return clientUser; }