Exemple #1
0
        public Graph(IUser user, DateTime fromDate, DateTime toDate)
        {
            this.user = user;
            temp      = GetTweets.GetTweetsForKeyowrds(user, true)
                        .Where(x => toDate.Date >= x.CreatedAt.Date && x.CreatedAt.Date >= fromDate.Date);

            _LineGraph_NoOfTweetsByDate     = new GraphData();
            _BarGraph_NoOfTweetsByDayOfWeek = new GraphData();
            _BarGraph_NoOfTweetsByHour      = new GraphData();

            temp = GetTweets.GetTweetsForConnection(user);

            _LineGraph_Mentions = new GraphData();
            _LineGraph_Retweets = new GraphData();

            feedData();

            LineGraph_NoOfTweetsByDate(fromDate, toDate);
            _LineGraph_NoOfTweetsByDate.Run();

            BarGraph_NoOfTweetsByDayOfWeek();
            _BarGraph_NoOfTweetsByDayOfWeek.Run();

            BarGraph_NoOfTweetsByHour();
            _BarGraph_NoOfTweetsByHour.Run();

            LineGraph_Mentions();
            _LineGraph_Mentions.Run();

            LineGraph_Retweets();
            _LineGraph_Retweets.Run();
        }
Exemple #2
0
        public GetUserDetails(IUser user, DateTime fromDate, DateTime toDate) : this(user)
        {
            temp = GetTweets.GetTweetsForKeyowrds(user);
            GetUserMostRetweet(user, fromDate, toDate);
            GetUserMostRepliesTo(user, fromDate, toDate);
            GetUserMostMention(user, fromDate, toDate);

            temp = GetTweets.GetTweetsForConnection(user);

            UsersWhoMentionedYouTheMost(user);
            MostFollowedUsersThatMentionedYou(user);
        }