Esempio n. 1
0
        public PersonnelViewModel(INavigation navigation) : base(navigation)
        {
            rivERWebService = new RivERWebService();
            personnel       = new Personnel();
            requests        = new ObservableCollection <Request>();

            Commands.Add("AcknowledgeCommand", new Command <Request>(OnAcknowledgeCommand));

            GetPersonnelVacantAsync();
        }
Esempio n. 2
0
        public RoomsViewModel(INavigation navigation) : base(navigation)
        {
            rivERWebService      = new RivERWebService();
            beaconRangingService = DependencyService.Get <IBeaconRangingService>();
            currentRoom          = new Room();

            personnel = new Personnel();
            requests  = new ObservableCollection <Request>();

            Commands.Add("AcknowledgeCommand", new Command <Request>(OnAcknowledgeCommand));

            beaconRangingService.DidRangeBeacons += Beacon_DidRangeBeacons;

            beaconRangingService.StartMonitoring("B9407F30-F5F8-466E-AFF9-25556B57FE6D", "ER-Rooms");
            //beaconRangingService.StartMonitoring("487C659C-1FE2-4D2A-A289-130BBD7E534F", "ER-Rooms");

            GetPersonnelVacantAsync();
        }