Ejemplo n.º 1
0
        public Exchange GetGems(int coins)
        {
            var request = new CoinsExchangeRequest
            {
                Quantity = coins
            };

            var response = this.serviceClient.Send<ExchangeDTO>(request);
            var exchange = this.exchangeConverter.Convert(response.Content, response);

            // Patch the quantity because it is not a property of the response object
            exchange.Send = coins;

            return exchange;
        }
Ejemplo n.º 2
0
        public Exchange GetGems(int coins)
        {
            var request = new CoinsExchangeRequest
            {
                Quantity = coins
            };

            var response = this.serviceClient.Send <ExchangeDTO>(request);
            var exchange = this.exchangeConverter.Convert(response.Content, response);

            // Patch the quantity because it is not a property of the response object
            exchange.Send = coins;

            return(exchange);
        }