Beispiel #1
0
        public ShoppingListViewModel()
        {
            var service = new FirebaseService();
            Task <IReadOnlyCollection <FirebaseObject <ShoppingItem> > > items = service.GetShoppingListItems();

            ShoppingItems = new ObservableCollection <ShoppingItem>();

            foreach (var firebaseObject in items.Result)
            {
                ShoppingItems.Add(firebaseObject.Object);
            }
        }