public ResponderListViewModel(IResponderService responderService)
        {
            _responderService = responderService;

            FilterClearRespondersCommand   = GetFilterRespondersCommand(DepartmentType.None);
            FilterPoliceRespondersCommand  = GetFilterRespondersCommand(DepartmentType.Police);
            FilterFireRespondersCommand    = GetFilterRespondersCommand(DepartmentType.Fire);
            FilterMedicalRespondersCommand = GetFilterRespondersCommand(DepartmentType.Ambulance);
        }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="respondentService"></param>
 /// <param name="respondentGroupService"></param>
 /// <param name="unitOfWork"></param>
 /// <param name="userManager"></param>
 public ResponderController(IResponderService respondentService,
                            IRespondentGroupService respondentGroupService,
                            IUnitOfWork unitOfWork,
                            UserManager <ApplicationUser> userManager)
 {
     this._respondentService      = respondentService;
     this._userManager            = userManager;
     this._respondentGroupService = respondentGroupService;
     this._unitOfWork             = unitOfWork;
 }
Ejemplo n.º 3
0
        public MainViewModel(
            IResponderService responderService, IAuthenticationService authenticationService,
            IIncidentsService incidentsService, IHeatmapService heatmapService)
        {
            _responderService = responderService;
            _heatmapService   = heatmapService;

            IncidentToggleButtonChecked  = true;
            ResponderToggleButtonChecked = false;

            _incidentListViewModel   = new IncidentListViewModel(incidentsService);
            _responderListViewModel  = new ResponderListViewModel(_responderService);
            _incidentDetailViewModel = new IncidentDetailViewModel();

            MessagingCenter.Subscribe <IncidentModel>(this, MessengerKeys.NavigateToCurrentIncident, (incident) => ForceNavigation = true);
        }