Ejemplo n.º 1
0
        private static void FilterActiveGamesByPlayerName(ClientInfo clientInfo, JObject jsonObject)
        {
            var playerNameToken = jsonObject["playerName"];

            if ((playerNameToken == null) || (playerNameToken.Type != JTokenType.String) ||
                (String.IsNullOrWhiteSpace(playerNameToken.ToString())))
            {
                throw new ArgumentException("Error: Parameters Mismatch at Filter Active Games By Player Name");
            }

            var filterActiveGamesByPotSizeResponse = sl.filterActiveGamesByPlayerName((string)playerNameToken);

            SendMessage(clientInfo, filterActiveGamesByPotSizeResponse);
            return;
        }