public String convertPeriod(Period timeframe) { console.getOut().println("timeframe passed = "+ timeframe+" "+timeframe.name());
public String convertPeriod(Period timeframe) { String rc = null; if (period == Period.ONE_MIN) rc = "1"; if (period == Period.FIVE_MINS) rc = "5"; if (period == Period.FIFTEEN_MINS) rc = "15"; if (period == Period.THIRTY_MINS) rc = "30"; if (period == Period.ONE_HOUR) rc = "60"; if (period == Period.FOUR_HOURS) rc = "240"; if (period == Period.DAILY) rc = "1440"; if (period == Period.WEEKLY) rc = "10080"; if (period == Period.MONTHLY) rc = "43200"; return (rc); }