public void GetAlbumPhotos(string account, string albumId, AlbumPhotosResultCallback callback) { WebClient client = new WebClient(); var url = String.Format(ALBUM_PHOTOS_BASED_FEED, account, albumId); client.DownloadStringCompleted += (o, args) => { var feed = GetFeed(args.Result); var albumPhotos = (from i in feed.Items select new PicasaMediaGroup { Title = GetMRSSValue(i.ElementExtensions, "title").Value, Description = GetMRSSValue(i.ElementExtensions, "description").Value, ContentUrl = GetMRSSValue(i.ElementExtensions, "content").Attribute("url").Value, ContentType = GetMRSSValue(i.ElementExtensions, "content").Attribute("type").Value }).ToList(); callback(albumPhotos); }; client.DownloadStringAsync(new Uri(url)); //StringRequest(String.Format(ALBUM_PHOTOS_BASED_FEED, account, albumId), "GET", null, (result) => //{ //}); }
public void GetAlbumPhotos(string account, string albumId, AlbumPhotosResultCallback callback) { WebClient client = new WebClient(); var url = String.Format(ALBUM_PHOTOS_BASED_FEED, account, albumId); client.DownloadStringCompleted += (o, args) => { var feed = GetFeed(args.Result); var albumPhotos = (from i in feed.Items select new PicasaMediaGroup { Title = GetMRSSValue(i.ElementExtensions, "title").Value, Description = GetMRSSValue(i.ElementExtensions, "description").Value, ContentUrl = GetMRSSValue(i.ElementExtensions, "content").Attribute("url").Value, ContentType = GetMRSSValue(i.ElementExtensions, "content").Attribute("type").Value }).ToList(); callback(albumPhotos); }; client.DownloadStringAsync(new Uri(url)); //StringRequest(String.Format(ALBUM_PHOTOS_BASED_FEED, account, albumId), "GET", null, (result) => //{ //}); }