public CommLogic(MailClient mClient, DoodleClient dClient, TwilioClient tClient, ResponseCallback callback) { mailClient = mClient; doodleClient = dClient; twilioClient = tClient; callbackFn = callback; // Start reading email from the appropriate IMap provider. // This creates its own long-running thread. imapReader = new ImapReader(mailClient.Imap, "INBOX", MessageCallback); }
private void StartTwilioClient(string twiMLCallbackUrl) { TwilioClient = new TwilioClient(twiMLCallbackUrl); }