Start of the Structure of event not tied to Challonge or smash.

Lads und Canzer \o>
This commit is contained in:
2022-03-20 02:59:48 +01:00
parent ab02d292da
commit 87c9883245
22 changed files with 709 additions and 445 deletions

View File

@@ -1,12 +1,21 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using LaDOSE.Entity;
using LaDOSE.Entity.Challonge;
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);
}
}

View File

@@ -6,5 +6,6 @@ namespace LaDOSE.Business.Interface
public interface IGameService : IBaseService<Game>
{
}
}

View File

@@ -0,0 +1,10 @@
using LaDOSE.Business.Provider.SmashProvider;
using LaDOSE.Entity;
namespace LaDOSE.Business.Interface
{
public interface IPlayerService : IBaseService<Player>
{
int GetBySmash(PlayerType playerUser);
}
}

View File

@@ -1,9 +0,0 @@
using LaDOSE.Entity;
namespace LaDOSE.Business.Interface
{
//public interface ISeasonService : IBaseService<Season>
//{
//}
}

View File

@@ -2,14 +2,19 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using LaDOSE.Business.Provider.SmashProvider;
using LaDOSE.Entity;
using LaDOSE.Entity.Challonge;
namespace LaDOSE.Business.Interface
{
public interface ISmashProvider
{
Task<List<ChallongeTournament>> GetTournaments(DateTime? start, DateTime? end);
Task<ResponseType> GetTournament(string sludge);
Task<Event> GetEvent(string slug);
Task<List<Tournament>> GetResults(ref List<Tournament> tournaments);
Task<Event> ParseEvent(string slug);
Task<TournamentResponse> GetTournament(string sludge);
}
}

View File

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