Example #1
0
        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));
        }
Example #2
0
 public JObject ComputeDataAnalytics(GameFinderContext gameFinderContext)
 {
     return(new JObject());
 }
Example #3
0
 public GamesController(GameFinderContext db)
 {
     _db = db;
 }