using System.Collections.Generic;
using System.Collections.ObjectModel;
using Cirrious.MvvmCross.ViewModels;
using CourseRoster.Core.Model;
using CourseRoster.Core.Services;

namespace CourseRoster.Core.ViewModels
{
    public class GuillermoGutierrezViewModel 
		: MvxViewModel
    {
        private readonly IRosterService _rosterService;
        public GuillermoGutierrezViewModel(IRosterService rosterService)
        {
            _rosterService = rosterService;
            AllClasses = _rosterService.GetAllCourses();
        }

        private List<Course> _allClasses; 
        public List<Course> AllClasses
        {
            get
            {
                return _allClasses;
            }
            set
            {
                _allClasses = value;
                RaisePropertyChanged(() => AllClasses);
            }
        }
    }
}