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 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 MainPageViewModel(IBeaconManagementService beaconManagementService) { _beaconManagementService = beaconManagementService; BeaconsList = _beaconManagementService.GetBeaconsList(); StatusLabel = _beaconManagementService.GetStatusLabel(); }