Exemplo n.º 1
0
        internal List <Account> FetchAccounts()
        {
            ThrowIfNotInitialized();
            SayInfoLine("Fetching accounts for your institution...");
            Controller.StartBeeper();
            var accounts = Plaid.GetAccounts().Result;

            SayInfoLineIfDebug("Fetched {0} accounts.", accounts.Length);
            Controller.StopBeeper();
            return(accounts.ToList());
        }
Exemplo n.º 2
0
 public FNHome(Controller controller) : base("Finance", new SnipsNLUEngine(Path.Combine("Engines", "fn")), controller)
 {
     Plaid       = new Plaid(controller);
     Accounts    = Items["ACCOUNTS"] = new Items("ACCOUNTS", typeof(Account), ListAccounts, DescribeAccount);
     Features    = Menus["FEATURES"] = new Menu("FEATURES", GetFeaturesMenuItem, "Accounts", "Transfer money");
     Initialized = NLUEngine.Initialized;
     if (!Initialized)
     {
         SayErrorLine("NLU engine for package {0} did not initialize. Exiting.", this.Name);
         Controller.Exit(ExitResult.UNKNOWN_ERROR);
     }
 }