Created
October 14, 2017 10:45
-
-
Save MarcBruins/155fba896fbc9c36d62d8fa6ec425411 to your computer and use it in GitHub Desktop.
MonkeysViewModel.cs
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
using MvvmCross.Core.ViewModels; | |
namespace MonkeyList.Core.ViewModels | |
{ | |
public class MonkeysViewModel : MvxViewModel | |
{ | |
public MvxObservableCollection<Monkey> Monkeys => new MvxObservableCollection<Monkey>(); | |
public MonkeysViewModel() | |
{ | |
Monkeys.Add(new Monkey | |
{ | |
Name = "Baboon", | |
Location = "Africa & Asia", | |
Details = "Baboons are African and Arabian Old World monkeys belonging to the genus Papio, part of the subfamily Cercopithecinae.", | |
Image = "http://upload.wikimedia.org/wikipedia/commons/thumb/f/fc/Papio_anubis_%28Serengeti%2C_2009%29.jpg/200px-Papio_anubis_%28Serengeti%2C_2009%29.jpg" | |
}); | |
Monkeys.Add(new Monkey | |
{ | |
Name = "Capuchin Monkey", | |
Location = "Central & South America", | |
Details = "The capuchin monkeys are New World monkeys of the subfamily Cebinae. Prior to 2011, the subfamily contained only a single genus, Cebus.", | |
Image = "http://upload.wikimedia.org/wikipedia/commons/thumb/4/40/Capuchin_Costa_Rica.jpg/200px-Capuchin_Costa_Rica.jpg" | |
}); | |
Monkeys.Add(new Monkey | |
{ | |
Name = "Blue Monkey", | |
Location = "Central and East Africa", | |
Details = "The blue monkey or diademed monkey is a species of Old World monkey native to Central and East Africa, ranging from the upper Congo River basin east to the East African Rift and south to northern Angola and Zambia", | |
Image = "http://upload.wikimedia.org/wikipedia/commons/thumb/8/83/BlueMonkey.jpg/220px-BlueMonkey.jpg" | |
}); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment