async void getPianoRss() { HttpClient Client = new HttpClient(); entries = await Client.GetStringAsync(new Uri("http://www.pianoworks.com/rss/showallblogs.aspx")); xml = new XmlSerializer(typeof(rss)); posts = (rss)xml.Deserialize(new StringReader(entries)); rssPosts = new List <rssChannelItem>(posts.channel.item); }
async void getPianoRss() { HttpClient Client = new HttpClient(); entries = await Client.GetStringAsync(new Uri("http://www.pianoworks.com/rss/showallblogs.aspx")); xml = new XmlSerializer(typeof(rss)); posts = (rss)xml.Deserialize(new StringReader(entries)); rssPosts = new List<rssChannelItem>(posts.channel.item); }
async void GetRSSFeed() { HttpClient Client = new HttpClient(); entries = await Client.GetStringAsync(new Uri("http://www.bbc.co.uk/feeds/rss/music/latest_releases.xml")); xml = new XmlSerializer(typeof(rss)); posts = (rss)xml.Deserialize(new StringReader(entries)); rssPosts = new List <rssChannelItem>(posts.channel.item); }
async void GetRSSFeed() { HttpClient Client = new HttpClient(); entries = await Client.GetStringAsync(new Uri("http://www.bbc.co.uk/feeds/rss/music/latest_releases.xml")); xml = new XmlSerializer(typeof(rss)); posts = (rss)xml.Deserialize(new StringReader(entries)); rssPosts = new List<rssChannelItem>(posts.channel.item); }