Files
LaDOSE/LaDOSE.Src/LaDOSE.Service/Interface/IChallongeProvider.cs
2019-07-30 00:33:51 +02:00

21 lines
769 B
C#

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using ChallongeCSharpDriver.Core.Results;
using LaDOSE.Entity.Challonge;
namespace LaDOSE.Business.Interface
{
public interface IChallongeProvider
{
Task<string> GetLastTournament();
string GetLastTournamentMessage();
Task<TournamentResult> CreateTournament(string name, string url, DateTime? startAt);
Task<ParticipantResult> AddPlayer(int tournamentId, string userName);
Task<List<Tournament>> GetTournaments(DateTime? start, DateTime? end);
Task<List<Participent>> GetParticipents(int idTournament);
Task<Tournament> GetTournament(int idTournament);
Task<Tournament> GetTournament(string urlTournament);
}
}