public MapViewModel(IBeaconWatcher beaconWatcher, IBeaconGeolocator beaconGeolocator, IMapServiceClient mapServiceClient)
        {
            _beaconWatcher    = beaconWatcher;
            _beaconGeolocator = beaconGeolocator;
            _mapServiceClient = mapServiceClient;

            _compass = Compass.GetDefault();

            _compassTimer = new DispatcherTimer()
            {
                Interval = TimeSpan.FromMilliseconds(30)
            };
            _compassTimer.Tick += _compassTimer_Tick;
        }
Ejemplo n.º 2
0
 public MsieaBeaconGeolocator(IMapServiceClient mapServiceClient)
 {
     _mapServiceClient = mapServiceClient;
 }