public AdvertisingPageViewModel(IBeaconManagementService beaconManagementService)
        {
            _beaconManagementService = beaconManagementService;

            SelectedProtocol = Beacon.BeaconTypeEnum.iBeacon;
            _beaconManagementService.SetAdvertisingPayload(SelectedProtocol);
            _beaconManagementService.StartAdvertising();
        }
示例#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;
        }
        public CloudPageViewModel(IBeaconManagementService beaconManagementService, IAzureEventHubService azureEventHubService)
        {
            _beaconManagementService = beaconManagementService;
            _azureEventHubService    = azureEventHubService;
            BeaconsList = _beaconManagementService.GetBeaconsList();
            StatusLabel = _beaconManagementService.GetStatusLabel();

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