this.response = response;
}
public void update() throws ModelException
{
TradeKingForeman foreman = new TradeKingForeman();
if (fields != null)
{
try
{
response = foreman.makeAPICall(MarketBuilder.getQuotes(ResponseFormat.XML, new String[] { symbol.getSymbol() }, fields));
}
catch (ForemanException e)
{
throw new ModelException("Make API Call", e);
}
}
else
{
try
{
response = foreman.makeAPICall(MarketBuilder.getQuotes(ResponseFormat.XML, symbol.getSymbol()));
}
catch (ForemanException e)
{
throw new ModelException("Make API Call", e);
}