void SharedInstance_TweetsFetched(object sender, Models.TwitterLazy.TweetEventArgs e) { lstTweets = e.ListaTweets; InvokeOnMainThread(() => { if (refreshControl.Refreshing) { refreshControl.EndRefreshing(); } TwitterTableView.ReloadData(); }); }
public UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath) { var cell = TwitterTableView.DequeueReusableCell(nameof(TweetTableViewCell), indexPath) as TweetTableViewCell; cell.UserImage = lstTweets[indexPath.Row].UserImage; cell.UserName = lstTweets[indexPath.Row].Name; cell.FavoriteCount = $"Favoritos: {lstTweets[indexPath.Row].FavoriteCount.ToString()}"; cell.RetweetCount = $"Retweets: {lstTweets[indexPath.Row].RetweetedCount.ToString()}"; cell.TweetDescription = lstTweets[indexPath.Row].Text; return(cell); }
//Eventos que tren los tweets void Linq2TwitterManager_GetTweets(object sender, TraerTweetsEventArgs e) { Lostweets = e.Tweets; InvokeOnMainThread(() => TwitterTableView.ReloadData()); }