Add new agnostic challonge provider

This commit is contained in:
2022-03-20 19:36:15 +01:00
parent 92b6d3e568
commit ee48b7d75c
17 changed files with 561 additions and 314 deletions

View File

@@ -15,12 +15,12 @@ namespace LaDOSE.Api.Controllers
public class TournamentController : Controller
{
private IEventService _service;
private IExternalProviderService _service;
private IMapper _mapper;
// GET
public TournamentController(IMapper mapper, IEventService service)
public TournamentController(IMapper mapper, IExternalProviderService service)
{
_mapper = mapper;
_service = service;
@@ -48,9 +48,11 @@ namespace LaDOSE.Api.Controllers
throw new Exception("Invalid arguments");
}
var tournamentsResult = await _service.GetTournamentsResult(ids);
var test = await _service.GetChallongeEvents(ids);
return _mapper.Map<TournamentsResultDTO>(tournamentsResult);
//var tournamentsResult = await _service.GetTournamentsResult(ids);
return _mapper.Map<TournamentsResultDTO>(new TournamentsResultDTO());
}