Start of the Structure of event not tied to Challonge or smash.
Lads und Canzer \o>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -6,5 +6,6 @@ namespace LaDOSE.Business.Interface
|
||||
public interface IGameService : IBaseService<Game>
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
10
LaDOSE.Src/LaDOSE.Service/Interface/IPlayerService.cs
Normal file
10
LaDOSE.Src/LaDOSE.Service/Interface/IPlayerService.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
using LaDOSE.Entity;
|
||||
|
||||
namespace LaDOSE.Business.Interface
|
||||
{
|
||||
//public interface ISeasonService : IBaseService<Season>
|
||||
//{
|
||||
|
||||
//}
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user