public NotificationsPageViewModel(IBeaconManagementService beaconManagementService, INotificationsService notificationsService)
        {
            _beaconManagementService = beaconManagementService;
            _notificationsService    = notificationsService;
            BeaconsList = _beaconManagementService.GetBeaconsList();
            StatusLabel = _beaconManagementService.GetStatusLabel();

            _watcher           = _beaconManagementService.GetWatcher();
            _watcher.Received += Watcher_Received;
        }
Esempio n. 2
0
        public CloudPageViewModel(IBeaconManagementService beaconManagementService, IAzureEventHubService azureEventHubService)
        {
            _beaconManagementService = beaconManagementService;
            _azureEventHubService    = azureEventHubService;
            BeaconsList = _beaconManagementService.GetBeaconsList();
            StatusLabel = _beaconManagementService.GetStatusLabel();

            _watcher           = _beaconManagementService.GetWatcher();
            _watcher.Received += Watcher_Received;
        }
Esempio n. 3
0
        public CloudPageViewModel(IBeaconManagementService beaconManagementService, IAzureEventHubService azureEventHubService)
        {
            _beaconManagementService = beaconManagementService;
            _azureEventHubService = azureEventHubService;
            BeaconsList = _beaconManagementService.GetBeaconsList();
            StatusLabel = _beaconManagementService.GetStatusLabel();

            _watcher = _beaconManagementService.GetWatcher();
            _watcher.Received += Watcher_Received;
        }
        public NotificationsPageViewModel(IBeaconManagementService beaconManagementService, INotificationsService notificationsService)
        {
            _beaconManagementService = beaconManagementService;
            _notificationsService = notificationsService;
            BeaconsList = _beaconManagementService.GetBeaconsList();
            StatusLabel = _beaconManagementService.GetStatusLabel();

            _watcher = _beaconManagementService.GetWatcher();
            _watcher.Received += Watcher_Received;
        }
Esempio n. 5
0
        public RadarPageViewModel(IBeaconManagementService beaconManagementService)
        {
            _beaconManagementService = beaconManagementService;
            BeaconsList = _beaconManagementService.GetBeaconsList();
            StatusLabel = _beaconManagementService.GetStatusLabel();

            _dispatcherTimer = new DispatcherTimer();
            _dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, 500);
            _dispatcherTimer.Tick += UpdateRadarList;
            _dispatcherTimer.Start();
        }
Esempio n. 6
0
        public RadarPageViewModel(IBeaconManagementService beaconManagementService)
        {
            _beaconManagementService = beaconManagementService;
            BeaconsList = _beaconManagementService.GetBeaconsList();
            StatusLabel = _beaconManagementService.GetStatusLabel();

            _dispatcherTimer          = new DispatcherTimer();
            _dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, 500);
            _dispatcherTimer.Tick    += UpdateRadarList;
            _dispatcherTimer.Start();
        }
Esempio n. 7
0
 public MainPageViewModel(IBeaconManagementService beaconManagementService)
 {
     _beaconManagementService = beaconManagementService;
     BeaconsList = _beaconManagementService.GetBeaconsList();
     StatusLabel = _beaconManagementService.GetStatusLabel();
 }
Esempio n. 8
0
 public MainPageViewModel(IBeaconManagementService beaconManagementService)
 {
     _beaconManagementService = beaconManagementService;
     BeaconsList = _beaconManagementService.GetBeaconsList();
     StatusLabel = _beaconManagementService.GetStatusLabel();
 }