public AdvertisingPageViewModel(IBeaconManagementService beaconManagementService)
        {
            _beaconManagementService = beaconManagementService;

            SelectedProtocol = Beacon.BeaconTypeEnum.iBeacon;
            _beaconManagementService.SetAdvertisingPayload(SelectedProtocol);
            _beaconManagementService.StartAdvertising();
        }
Exemplo n.º 2
0
        public AdvertisingPageViewModel(IBeaconManagementService beaconManagementService)
        {
            _beaconManagementService = beaconManagementService;

            SelectedProtocol = Beacon.BeaconTypeEnum.iBeacon;
            _beaconManagementService.SetAdvertisingPayload(SelectedProtocol);
            _beaconManagementService.StartAdvertising();
        }
        public NotificationsPageViewModel(IBeaconManagementService beaconManagementService, INotificationsService notificationsService)
        {
            _beaconManagementService = beaconManagementService;
            _notificationsService    = notificationsService;
            BeaconsList = _beaconManagementService.GetBeaconsList();
            StatusLabel = _beaconManagementService.GetStatusLabel();

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

            _watcher           = _beaconManagementService.GetWatcher();
            _watcher.Received += Watcher_Received;
        }
Exemplo n.º 5
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;
        }
Exemplo n.º 7
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();
        }
Exemplo n.º 8
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();
        }
Exemplo n.º 9
0
 public MainPageViewModel(IBeaconManagementService beaconManagementService)
 {
     _beaconManagementService = beaconManagementService;
     BeaconsList = _beaconManagementService.GetBeaconsList();
     StatusLabel = _beaconManagementService.GetStatusLabel();
 }
Exemplo n.º 10
0
 public MainPageViewModel(IBeaconManagementService beaconManagementService)
 {
     _beaconManagementService = beaconManagementService;
     BeaconsList = _beaconManagementService.GetBeaconsList();
     StatusLabel = _beaconManagementService.GetStatusLabel();
 }