コード例 #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
ファイル: CWindow.cs プロジェクト: Ald0s/facebook-autoreplier
        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();
 }