Пример #1
0
 public LikerTask(string targetLogin, int likesCount,
                  AccountContainer accountContainer, MainWorker mainWorker)
 {
     this.mainWorker       = mainWorker;
     LikesCount            = likesCount;
     TargetLogin           = targetLogin;
     UriList               = new Dictionary <string, bool>();
     this.accountContainer = accountContainer;
     isStop = false;
 }
Пример #2
0
        public int LoadAccounts(string filename)
        {
            var accsLines = File.ReadAllLines(filename);

            foreach (var acc in accsLines)
            {
                AccountContainer.AddAccount(new Account(acc.Split(':')[0], acc.Split(':')[1]));
            }

            return(AccountContainer.Accounts.Count);
        }
Пример #3
0
 public int LoginInAccs()
 {
     AccountContainer.LoginInAccounts();
     return(AccountContainer.LoggedInAccounts);
 }
Пример #4
0
 public MainWorker()
 {
     AccountContainer = new AccountContainer();
 }