/** * Called when the user's friends list has arrived * * @param users The user's friends (by Twitter definition) */ @Override public void gotFriendsList(PagableResponseList<User> users) { SoomlaUtils.LogDebug(TAG, "getContacts/onComplete " + users.size()); List<UserProfile> userProfiles = new ArrayList<UserProfile>(); for (User profile : users) { userProfiles.add(createUserProfile(profile)); } if (users.hasNext()) { lastContactCursor = users.getNextCursor(); } RefContactsListener.success(userProfiles, users.hasNext()); clearListener(ACTION_GET_CONTACTS); }