private void GetLastGames(object sender, ResponseEventArgs e) { GetLastGamesResponse response = e.Response as GetLastGamesResponse; if (response != null) { if (response.Games != null) { var lastGames = response.Games; foreach (var game in lastGames) { _lastGames.Add(game); } } } }
public void GetStatisticLastGamesCallBack(GetLastGamesResponse response) { syncContext.Post(new SendOrPostCallback(OnBroadcast <GetLastGamesResponse>), response); }