package de.thpeetz.kontor.admin.services;

import de.thpeetz.kontor.mailclient.data.MailAccount;
import de.thpeetz.kontor.admin.repository.MailAccountRepository;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

import org.springframework.stereotype.Service;

@Slf4j
@Service
public class MailService {

    private final MailAccountRepository mailAccountRepository;

    public MailService(MailAccountRepository mailAccountRepository) {
        this.mailAccountRepository = mailAccountRepository;
    }

    public List<MailAccount> findAllMailAccounts() {
        return mailAccountRepository.findAll();
    }
}
