Esempio n. 1
0
 protected static void tranFriend() {
   // TODO Auto-generated method stub
   if (userList != null) {
     list = new ArrayList<Friend>();
     for (User user : userList) {
       Friend friend = new Friend();
       friend.setId(user.getId());
       friend.setName(user.getName());
       friend.setPhone(user.getAccount());
       friend.setImgs(user.getImg());
       list.add(friend);
     }
   }
 }
Esempio n. 2
0
  @Override
  public UserInfo getUserInfo(final String uId) {

    list = RongYunFrindsManager.getAllFriends();
    if (list == null) {

    } else {
      for (Friend friend : list) {
        if (friend.getPhone() == uId) {
          info = new UserInfo(friend.getPhone(), friend.getName(), Uri.parse(friend.getImgs()));
        }
      }
    }
    return info;
  }