public IMarketItemQuery SendQueryBuySellRequest(int id) { QueryBuySell item = new QueryBuySell(id); MarketItemQuery response = new MarketItemQuery(item); return(response); }
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; }