static void Main(string[] args) { //TelemetryConfiguration.Active.DisableTelemetry = true; cTwitterHelper twitterHelper = new cTwitterHelper(); cQuestion question = new cQuestion(); //get question from googledocs question.getQuestion(); //tweet question long questionTweetID = twitterHelper.sendTweet(question.questionText + " " + question.answer1 + ", " + question.answer2 + ", " + question.answer3 + ", or " + question.answer4 + "?" + " " + DateTime.Now.ToString()); //listen for responses twitterHelper.listenAndProcess(questionTweetID, question); }
static void Main(string[] args) { cConfigurationHelper configHelper = new cConfigurationHelper(); cTwitterHelper twitterHelper = new cTwitterHelper(configHelper); cQuestion question = new cQuestion(configHelper); //get question from googledocs question.getQuestion(); if (question.questionText != null) { //tweet question TextInfo myTI = new CultureInfo("en-US", false).TextInfo; long questionTweetID = twitterHelper.sendTweet(question.questionText + " " + myTI.ToTitleCase(question.answer1) + ", " + question.answer2 + ", " + question.answer3 + ", or " + question.answer4 + "?" + " " + DateTime.Now.ToString()); //listen for responses twitterHelper.listenAndProcess(questionTweetID, question); } }