private static void FilterActiveGamesByGamePreferences(ClientInfo clientInfo, JObject jsonObject) { var gamePolicy = jsonObject["gamePolicy"]; var limitPolicy = jsonObject["gamePolicyLimit"]; var buyInPolicy = jsonObject["buyInPolicy"]; var startingChips = jsonObject["startingChips"]; var minimalBet = jsonObject["minimalBet"]; var minimalPlayers = jsonObject["minimalPlayers"]; var maximalPlayers = jsonObject["maximalPlayers"]; var spectateAllowed = jsonObject["spectateAllowed"]; var isLeague = jsonObject["isLeague"]; var filterActiveGamesByGamePreferencesResponse = sl.filterActiveGamesByGamePreferences( (string)gamePolicy, (int?)limitPolicy, (int?)buyInPolicy, (int?)startingChips, (int?)minimalBet, (int?)minimalPlayers, (int?)maximalPlayers, (bool?)spectateAllowed, (bool?)isLeague); SendMessage(clientInfo, filterActiveGamesByGamePreferencesResponse); return; }