package org.apache.rave.portal.service.impl;

import org.apache.rave.model.PlayerSpeciality;
import org.apache.rave.portal.repository.PlayerSpecialityRepository;
import org.apache.rave.portal.service.PlayerSpecialityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by fhernandez on 17/09/14.
 */
@Service
public class DefaultPlayerSpecialityService implements PlayerSpecialityService {

    private final PlayerSpecialityRepository playerSpecialityRepository;

    @Autowired
    public DefaultPlayerSpecialityService(PlayerSpecialityRepository playerSpecialityRepository) {
        this.playerSpecialityRepository = playerSpecialityRepository;
    }

    @Override
    public List<PlayerSpeciality> getPlayerSpecialityByLang(String lang) {
        return playerSpecialityRepository.getPlayerSpecialityByLang(lang);
    }
}
