protected boolean amIFollowing(User u) { return id == u.id || userRepository.follows(this, u); }
public void stopFollowing(User u) { if (!userRepository.follows(this, u)) { throw RingerException.RELATION_ALREADY_EXISTS; } userRepository.deleteRelation(this, u); }
public List<User> getFollowing(int offset, int number) { return userRepository.getFollowing(this, offset, number); }
public void startFollowing(User u) { if (amIFollowing(u) == true) { throw RingerException.RELATION_ALREADY_EXISTS; } userRepository.createRelation(this, u); }