public Task <GameFinderResult> FindGames(GameFinderContext gameFinderContext) { var results = new GameFinderResult(); foreach (var group in gameFinderContext.WaitingClient) { var game = new Game { Id = group.Options <GameFinderParameters>().GameId }; var team = new Team(); team.Groups.Add(group); game.Teams.Add(team); results.Games.Add(game); } return(Task.FromResult(results)); }
public JObject ComputeDataAnalytics(GameFinderContext gameFinderContext) { return(new JObject()); }
public GamesController(GameFinderContext db) { _db = db; }