public static ChartLastCommand createChartLastCommand(ChartLastInfoRecord info, bool prettyPrint) { JSONObject args = new JSONObject(); args.Add("info", info.toJSONObject()); return new ChartLastCommand(args, prettyPrint); }
public static ChartLastResponse executeChartLastCommand(SyncAPIConnector connector, ChartLastInfoRecord info, bool prettyPrint) { return new ChartLastResponse(connector.executeCommand(createChartLastCommand(info, prettyPrint)).ToString()); }