private IEnumerable<ITweet> PesquisarTimeline(string userScreenName) { var userTimelineParameter = new UserTimelineParameters() { MaximumNumberOfTweetsToRetrieve = 200, ExcludeReplies = true, IncludeRTS = false, }; string aux = button1.Text; button1.Text = "Searching, please wait..."; var listOfTweets = Timeline.GetUserTimeline(userScreenName, userTimelineParameter); button1.Text = aux; foreach (var tweet in listOfTweets) { MessageBox.Show(String.Format("Usuário {0} (@{1}) tweetou:\n\"{2}\"\nTweet com tamanho de {3} caracters.", tweet.CreatedBy, tweet.CreatedBy.ScreenName, tweet.Text, tweet.CalculateLength(false))); } return listOfTweets; }
/// <summary> /// Returns part of users timeline /// </summary> /// <returns>Enumerable of Tweets</returns> public IEnumerable<ITweet> GetUserTweets() { // Create a parameter for queries with specific parameters IUserTimelineParameters parameters = new UserTimelineParameters() { }; var timelineParameter = Timeline.GetHomeTimeline(_tweetAmountToLoad); return timelineParameter; }