Add new agnostic challonge provider
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using ChallongeCSharpDriver.Core.Results;
|
||||
using LaDOSE.Entity;
|
||||
using LaDOSE.Entity.Challonge;
|
||||
|
||||
namespace LaDOSE.Business.Interface
|
||||
@@ -17,6 +18,8 @@ namespace LaDOSE.Business.Interface
|
||||
Task<List<ChallongeParticipent>> GetParticipents(int idTournament);
|
||||
Task<ChallongeTournament> GetTournament(int idTournament);
|
||||
Task<ChallongeTournament> GetTournament(string urlTournament);
|
||||
|
||||
Task<List<Event>> GetEvents(List<int> idTournaments);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,21 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using LaDOSE.Entity;
|
||||
using LaDOSE.Entity.Challonge;
|
||||
using LaDOSE.Entity;
|
||||
using LaDOSE.Entity.Wordpress;
|
||||
|
||||
namespace LaDOSE.Business.Interface
|
||||
{
|
||||
public interface IEventService : IBaseService<Event>
|
||||
{
|
||||
Task<List<ChallongeTournament>> GetTournaments(DateTime? start, DateTime? end);
|
||||
|
||||
Task<TournamentsResult> GetTournamentsResult(List<int> ids);
|
||||
Task<TournamentsResult> GetSmashResult(string tournamentSlug);
|
||||
|
||||
Task<TournamentsResult> GetSmashResult2(string tournamentSlug);
|
||||
|
||||
Event GetBySlug(string tournamentSlug);
|
||||
Event GetByName(string name);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using LaDOSE.Entity;
|
||||
using LaDOSE.Entity.Challonge;
|
||||
|
||||
namespace LaDOSE.Business.Interface
|
||||
{
|
||||
public interface IExternalProviderService
|
||||
{
|
||||
Task<List<ChallongeTournament>> GetTournaments(DateTime? start, DateTime? end);
|
||||
|
||||
Task<TournamentsResult> GetTournamentsResult(List<int> ids);
|
||||
Task<TournamentsResult> GetSmashResult(string tournamentSlug);
|
||||
|
||||
Task<TournamentsResult> GetSmashResult2(string tournamentSlug);
|
||||
|
||||
|
||||
Task<List<Event>> GetChallongeEvents(List<int> ids);
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ namespace LaDOSE.Business.Interface
|
||||
{
|
||||
public interface IGameService : IBaseService<Game>
|
||||
{
|
||||
|
||||
public int? GetIdByName(string name);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,12 @@
|
||||
using LaDOSE.Business.Provider.SmashProvider;
|
||||
using LaDOSE.Entity;
|
||||
using LaDOSE.Entity.Challonge;
|
||||
|
||||
namespace LaDOSE.Business.Interface
|
||||
{
|
||||
public interface IPlayerService : IBaseService<Player>
|
||||
{
|
||||
int GetBySmash(ParticipantType participantUser);
|
||||
int GetIdBySmash(ParticipantType participantUser);
|
||||
int GetIdByName(ChallongeParticipent challongeParticipent);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user