public JsonWrapper(Tweet t) { twitterPrefix = Res.twitterPrefix; id = t.getID(); text = t.getMessage(); created_at = t.getDate(); retweeted = "" + t.getRetweeted(); favorited = "" + t.getFavorited(); User user; if ((user = t.getUser()) != null) { name = user.getName(); screen_name = user.getScreenName(); pictureUrl = user.getProfileImageURL(); } else { name = t.getFromUserName(); screen_name = t.getFromUser(); pictureUrl = t.getProfileImageURL(); } }