Пример #1
0
        public CChatMaster(CAutoReplier _autoreplier, IWebDriver _driver)
        {
            this.replier = _autoreplier;
            this.driver = _driver;
            this.whitelist = new CWhitelist();
            this.windows = new Dictionary<string, CWindow>();
            this.process = new CProcess();

            thrWorker = new Thread(() =>
                WatchChats());
            thrWorker.Start();
        }
Пример #2
0
        public CWindow(CChatMaster _master, CWhitelist _wlist, IWebElement _base)
        {
            this.chatMaster = _master;
            this.elemWindowBase = _base;
            this.whitelist = _wlist;
            this.permaData = new CPermaData();

            IWebElement elemTitlebar = elemWindowBase.FindElement(By.ClassName("titlebarText"));
            while (true) {
                GetName(elemTitlebar);
                if (!string.IsNullOrWhiteSpace(sChatName)) {
                    break;
                }
            }

            GetProfileLink(elemTitlebar);
            GetTextArea();

            this.bShouldStop = false;
            this.thrWatcher = new Thread(() => WatchChat());
            this.thrWatcher.Start();
        }
Пример #3
0
 public Whitelist(CWhitelist _whitelist)
 {
     InitializeComponent();
     this.whitelist = _whitelist;
 }
Пример #4
0
 public CAutoReplier()
 {
     this.whitelist = new CWhitelist();
     this.insults = new CInsultStorage();
 }