// System.out.println("当前用户的名字:" + user.getName());
// System.out.println("当前用户所发的微博数:" + user.getStatusesCount());
// System.out.println("当前用户关注数:" + user.getFriendsCount());
// System.out.println("当前用户粉丝数:" + user.getFollowersCount());
try {
User user = userManager.showUserById(uid); // default 'User' class provided by the SDK
this.uid = user.getId();
this.name = user.getName();
this.location = user.getLocation();
this.numberofFriends = user.getFriendsCount();
this.numberOfFollowers = user.getFollowersCount();
this.numberOfStatuses = user.getStatusesCount();
} catch (WeiboException e) {
e.printStackTrace();
}
}