예제 #1
0
파일: FNHome.cs 프로젝트: allisterb/Victor
        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());
        }
예제 #2
0
파일: FNHome.cs 프로젝트: allisterb/Victor
 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);
     }
 }