I am trying to get tweets by using linqtotwitter with c# and there is a task to get 10 last tweets without video content. firstly I have retrieved last 10 statuses like this:
var srch = Enumerable.SingleOrDefault((from search in
twitterContext.Search
where search.Type == SearchType.Search &&
search.Query == hashTag &&
search.Count == 10
select search));
and secondly I am trying to exclude tweets with video content:
var result = srch.Statuses.ToList()
.Where(item => item.Entities.MediaEntities.
Where(innerItems => innerItems.VideoInfo.Duration == 0)); // shows error
status
containsentities
collection, where each entity
contains mediaentities
collection, where each mediaEntity
has videoInfo
property.
But there is some difficulty to compose a correct linq query to a such complex structure like statuses
collection.