public Collection<User> loadUsers(Collection<Integer> usersIdsList) throws QBResponseException { Collection<QBUser> usersList = (Collection<QBUser>) QBUsers.getUsersByIDs(usersIdsList, null); Collection<User> usersListResult = FriendUtils.createUsersList(usersList); if (usersList != null) { DatabaseManager.saveUsers(context, usersListResult); } return usersListResult; }
public User loadUser(int userId) throws QBResponseException { QBUser user = QBUsers.getUser(userId); User resultUser = null; if (user != null) { resultUser = FriendUtils.createUser(user); DatabaseManager.saveUser(context, resultUser); } return resultUser; }