using PokemonSleep.Web.Models;
using PokemonSleep.Web.Service.IService;
using PokemonSleep.Web.Utility;

namespace PokemonSleep.Web.Service
{
    public class PokemonSubskillService : IPokemonSubskillService
    {
        private readonly IBaseService _baseService;
        public PokemonSubskillService(IBaseService baseService)
        {
            _baseService = baseService;
        }

        public async Task<ResponseDto?> GetAllPokemonSubskillsAsync()
        {
            return await _baseService.SendAsync(new RequestDto()
            {
                ApiType = StaticDetails.ApiType.GET,
                Url = StaticDetails.PokemonSleepAPIBase + "/api/subskill"
            });
        }
    }
}
