Quick and Dirty Tournament Result / List

This commit is contained in:
2019-05-30 00:42:12 +02:00
parent 9b148fa571
commit 102a6af8e0
14 changed files with 407 additions and 37 deletions

View File

@@ -14,6 +14,7 @@ namespace LaDOSE.Business.Interface
Task<ParticipantResult> AddPlayer(int tournamentId, string userName);
Task<List<Tournament>> GetTournaments(DateTime? start, DateTime? end);
Task<List<Participent>> GetParticipents(int tournamentId);
Task<List<Participent>> GetParticipents(int idTournament);
Task<Tournament> GetTournament(int idTournament);
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using LaDOSE.Entity.Challonge;
namespace LaDOSE.Business.Interface
{
public interface ITournamentService
{
Task<List<Tournament>> GetTournaments(DateTime? start, DateTime? end);
Task<TournamentsResult> GetTournamentsResult(List<int> ids);
}
}

View File

@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Threading.Tasks;
using LaDOSE.Entity;
using LaDOSE.Entity.Challonge;
using LaDOSE.Entity.Wordpress;
namespace LaDOSE.Business.Interface
@@ -18,6 +16,7 @@ namespace LaDOSE.Business.Interface
Task<string> GetLastChallonge();
Task<List<Tournament>> GetTournaments(DateTime? start, DateTime? end);
}
}
}