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