}
return userDTO;
}
private UserDTO getUserDTOFromUser(User user) {
UserDTO friend = new UserDTO();
friend.setLogin(user.getLogin());
friend.setUsername(user.getUsername());
friend.setAvatar(user.getAvatar());
friend.setFirstName(user.getFirstName());
friend.setLastName(user.getLastName());
friend.setJobTitle(user.getJobTitle());
friend.setPhoneNumber(user.getPhoneNumber());
friend.setAttachmentsSize(user.getAttachmentsSize());
friend.setStatusCount(user.getStatusCount());
friend.setFriendsCount(user.getFriendsCount());
friend.setFollowersCount(user.getFollowersCount());
friend.setActivated(user.getActivated());
return friend;
}