示例#1
0
  public ClientUser from(User tweetUser) {
    ClientUser cu = new ClientUser();
    cu.setTwitterName(tweetUser.getScreenName());
    cu.setTwitterId(tweetUser.getId());
    cu.setPicurl(tweetUser.getProfileImageURL().toString());

    return cu;
  }
示例#2
0
 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;
 }