コード例 #1
0
        private void StartAutoReplier(string email, string password)
        {
            // Open facebook and wait. This call is blocking.
            auto = new CAutoReplier();
            auto.OpenFacebook();

            Console.Clear();

            string login = auto.Login(email, password);

            if (login != null)
            {
                WriteError(login);
                return;
            }

            WriteSuccess("Facebook took our login!");

            string access = auto.GoToMessages();

            if (access != null)
            {
                WriteError(access);
                return;
            }
        }
コード例 #2
0
ファイル: Menu.cs プロジェクト: Ald0s/facebook-autoreplier
        public Menu()
        {
            InitializeComponent();

            autoreplier = new CAutoReplier();
            this.settings = new CSettings();

            SetStatus("Waiting for login...", Color.DarkGray);
        }
コード例 #3
0
        public CChatMaster(CAutoReplier _autoreplier, IWebDriver _driver)
        {
            this.replier = _autoreplier;
            this.driver = _driver;
            this.windows = new Dictionary<string, CWindow>();
            this.process = new CProcess();

            thrWorker = new Thread(() =>
                WatchChats());
            thrWorker.Start();
        }
コード例 #4
0
ファイル: Program.cs プロジェクト: Ald0s/facebook-autoreplier
        private static void Main(string[] args)
        {
            Console.Write("Email: ");
            string email = Console.ReadLine();

            Console.Write("Password: ");
            string password = Console.ReadLine();
            Console.Clear();

            LoginInfo_t info;
            info.sEmailAddress = email;
            info.sPassword = password;

            CAutoReplier replier = new CAutoReplier();
            replier.StartAutoReplier(info);
        }
コード例 #5
0
 public CAutoRandomiser(CAutoReplier _replier)
 {
     this.replier = _replier;
 }