Esempio n. 1
0
        public List <TweetModel> GetValueSets(params TweetModel[] content)
        {
            var controller = new TweetController();
            var viewModels = controller.GetAllTweets();

            List <TweetModel> FetchTweets = new List <TweetModel>();

            foreach (var tweet in viewModels)
            {
                FetchTweets.Add(new TweetModel()
                {
                    Username       = tweet.Username,
                    Avatar         = tweet.Avatar,
                    Content        = tweet.Content,
                    ScreenName     = tweet.ScreenName,
                    TweetedOn      = tweet.TweetedOn,
                    NumberOfTweets = FetchTweets.Count(),
                    ReplyToTweet   = tweet.ReplyToTweet,
                    Url            = tweet.Url
                });
            }
            ;

            return(FetchTweets);
        }