package cz.cvut.fel.omo.hw.functions.utils;

import cz.cvut.fel.omo.hw.functions.data.model.Candidate;
import cz.cvut.fel.omo.hw.functions.data.model.Candidates;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.function.Function;
import lombok.RequiredArgsConstructor;
import lombok.extern.java.Log;

@Log
@RequiredArgsConstructor
public class CandidateUtilsImpl implements CandidateUtils {

    private final CompletableFuture<Candidates> candidates;

    @Override
    public Optional<String> getCandidateFullName(int id) {
        // TODO Homework
        return Optional.empty();
    }

    @Override
    public Optional<Integer> getCandidateAge(int id) {
        // TODO Homework
        return Optional.empty();
    }

    @Override
    public <T> Optional<T> getCandidateAttribute(int id, Function<Candidate, T> mappingFunction) {
        // TODO Homework
        return Optional.empty();
    }

    @Override
    public Optional<Candidate> getCandidate(int id) {
        // TODO Homework
        return Optional.empty();
    }
}
