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; }