Example #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();
        }
        public KeywordUserDetails(string keyword)
        {
            temp = GetTweets.GetTweetsForKeyowrds(keyword);

            userCount             = temp.Count();
            _GetMostFollowedUsers = new List <_KeywordUserDetails>();

            GetMostFollowedUsers(keyword);
        }
        public GetMostDetails(IUser user, DateTime fromDate, DateTime toDate)
        {
            temp = GetTweets.GetTweetsForKeyowrds(user);

            _GetMostRetweetedTweets = new List <_MostDetails>();
            _GetMostFavouriteTweets = new List <_MostDetails>();

            GetMostRetweetedTweets(fromDate, toDate);
            GetMostFavouriteTweets(fromDate, toDate);
        }
        public KeywordTweetsDetails(string keyword)
        {
            temp = GetTweets.GetTweetsForKeyowrds(keyword);

            _GetRecentTweets        = new List <_MostDetails>();
            _GetMostRetweetedTweets = new List <_MostDetails>();
            _GetMostFavouriteTweets = new List <_MostDetails>();

            GetRecentTweets();
            GetMostRetweetedTweets();
            GetMostFavouriteTweets();
        }
Example #5
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);
        }