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