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

@@ -250,7 +250,24 @@ namespace LaDOSE.REST
#endregion
#region Tournaments
public List<TournamentDTO> GetTournaments()
{
CheckToken();
var restRequest = new RestRequest("/api/Tournament/GetTournaments", Method.GET);
var restResponse = Client.Get<List<TournamentDTO>>(restRequest);
return restResponse.Data;
}
public TournamentsResultDTO GetResults(List<int> ids)
{
CheckToken();
return Post<List<int>,TournamentsResultDTO>("Api/Tournament/GetResults", ids);
}
#endregion
}
}