public IMarketResponse SendQueryMarketRequest(int commodity)
        {
            QueryMarketRequest QMReq          = new QueryMarketRequest(commodity); //create query market rquest
            MQCommodity        marketResponse = new MQCommodity();

            try
            {
                marketResponse = client.SendPostRequest <QueryMarketRequest, MQCommodity>(url, user, privateKey, QMReq);
                myLogger.Info("Sent Query Market Request{commodity:" + commodity + ", url:" + url + "}");
            }
            catch (Exception e)
            {
                return(catchMethod(e));
            }

            myHistory.Info("Sent Query Market Request-\r\ncommodity:" + commodity + "\nResponse: " + marketResponse.ToString());

            return(marketResponse);
        }
Beispiel #2
0
 public override string ToString()
 {
     return("ID: " + id.ToString() + ", " + info.ToString());
 }