Exemplo n.º 1
0
        public IMarketItemQuery SendQueryBuySellRequest(int id)
        {
            QueryBuySell item = new QueryBuySell(id);


            MarketItemQuery response = new MarketItemQuery(item);

            return(response);
        }
Exemplo n.º 2
0
        public MarketItemQuery(QueryBuySell item)
        {
            SimpleHTTPClient client   = new SimpleHTTPClient();
            MarketItemQuery  response = client.SendPostRequest <QueryBuySell, MarketItemQuery>(
                Url,
                User,
                token,
                item);

            this.price  = response.price;
            this.amount = response.amount;
            this.type   = response.type;
        }