//Este metodo itera los resultados y crea las entidades de dominio private List <SocialNetworkingItem> SocialNetworkingItemList(SearchResultsTwitter entity) { if (entity == null) { return(null); } List <SocialNetworkingItem> users = (from u in entity.Results select new SocialNetworkingItem { SocialNetworkName = Name, UserName = u.FromUser, ProfileImage = u.ProfileImageUrl, Content = u.Text, UrlPost = GetPostUrl(u.FromUser, u.IdString), UrlProfile = GetProfileUrl(u.FromUser), CreatedAt = DateTimeOffset.Parse(u.CreatedAt, System.Globalization.CultureInfo.GetCultureInfo("en-US")).UtcDateTime, Source = u.Source }).ToList(); return(users); }
//Este metodo itera los resultados y crea las entidades de dominio private List<SocialNetworkingItem> SocialNetworkingItemList(SearchResultsTwitter entity) { if (entity == null) return null; List<SocialNetworkingItem> users = (from u in entity.Results select new SocialNetworkingItem { SocialNetworkName = Name, UserName = u.FromUser, ProfileImage = u.ProfileImageUrl, Content = u.Text, UrlPost = GetPostUrl(u.FromUser, u.IdString), UrlProfile = GetProfileUrl(u.FromUser), CreatedAt = DateTimeOffset.Parse(u.CreatedAt, System.Globalization.CultureInfo.GetCultureInfo("en-US")).UtcDateTime, Source = u.Source }).ToList(); return users; }