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(); }
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(); }
public Whitelist(CWhitelist _whitelist) { InitializeComponent(); this.whitelist = _whitelist; }
public CAutoReplier() { this.whitelist = new CWhitelist(); this.insults = new CInsultStorage(); }