Created
March 8, 2016 17:01
-
-
Save nessamurmur/9cf03fed2eed32df5d8f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Dictionary<string, UIImage> GetImages(string directory) { | |
var images = new Dictionary<string, UIImage>(); | |
var paths = Directory.EnumerateFiles(directory, "*.png"); | |
foreach (var path in paths) { | |
images[path] = UIImage.FromFile(path); | |
} | |
return images; | |
} | |
public async Task<List<FeedItem>> GetFeedItems(DateTime date) { | |
var feed = "http://planet.xamarin.com/feed/"; | |
var response = await httpClient.GetStringAsync(feed); | |
var items = await ParseFeedAsync(response); | |
return items.Where(item => item.Published.Date == date).ToList(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment