Example #1
0
 protected void Application_Start()
 {
     GlobalConfiguration.Configure(WebApiConfig.Register);
     TweetStream.initializeStream();
     //TwitterConfig.StartStream();
     //Application["ApplicationTest"] = "Test of application state";
     UserInfo.topicDict  = new Dictionary <string, Dictionary <Microsoft.Bot.Connector.ChannelAccount, DateTime> >();
     UserInfo.topicDict2 = new Dictionary <string, Dictionary <BotUserChannel, DateTime> >();
 }
Example #2
0
        public ActionResult Index()
        {
            IndexViewModel vm = new IndexViewModel(TweetStream.GetTweets(), Scope.HappyWords(), Scope.AngryWords());

            return(View(vm));
        }