public string hi() { ChaseProcessor cp = new ChaseHelper.ChaseProcessor(@"c:\a2\f.csv", @"c:\a2\bills.json"); cp.loadData(); cp.daysDiscrete(-30); string s = JsonConvert.SerializeObject(cp.dailySpendingList, Formatting.Indented); return(s); //[ cp.dailySpendingList.ToList() }
static void Main(string[] args) { string configFolder = args[0]; Dictionary <string, string> settings = Utils.Jsoner.dnr(configFolder); ChaseProcessor cp = new ChaseProcessor ( settings["baseFolder"], settings["csv"], settings["bills"] ); cp.loadData(); var cw = new ChaseWriter(cp); cw. //cp.getLatestBills(); Console.WriteLine(cp.sb.ToString()); Utils.Filer.writeAllText(@"c:\github\chaseFiles\" + Dater.TimeStamp() + "Bills.txt", cp.sb.ToString()); Console.WriteLine("any key for general report"); Console.ReadLine(); cp.sb = new System.Text.StringBuilder(); cp.runMainReport(true); Console.WriteLine(cp.sb.ToString()); Utils.Filer.writeAllText(@"c:\github\chaseFiles" + Dater.TimeStamp() + "Mainreport.txt", cp.sb.ToString()); }
public ChaseWriter(ChaseProcessor cp) { _cp = cp; }