public async Task <List <Models.MediaElement> > SearchForMediaElements(string searchterm) { _query.size = 100; _query.future = false; _query.addFieldAndQuery("title", "topic", searchterm); var result = await sendQuery(); return(MediathekViewWebResult.ToMediaElements(result)); }
public async Task <List <Models.MediaElement> > GetLatestMediaElements() { _query.size = 1000; _query.sortBy = "timestamp"; _query.sortOrder = "desc"; _query.future = false; var result = await sendQuery(); return(MediathekViewWebResult.ToMediaElements(result)); }