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); } }
public cTwitterHelper(cConfigurationHelper vConfigHelper) { configHelper = vConfigHelper; }
public cQuestion(cConfigurationHelper vConfigHelper) { configHelper = vConfigHelper; }