Exemple #1
0
        internal MiBand(IDevice miBand)
        {
            this.device = miBand;

            Vibration = new VibrationService(this);
            Activity  = new ActivityService(this);
            HeartRate = new HeartRateService(this);
        }
Exemple #2
0
 static ServiceLocator()
 {
     Vibration            = new VibrationService();
     ApplicationContext   = new ApplicationContext();
     NavigationService    = new NavigationService();
     AuthorizationService = new AuthorizationServiceStub();
     EmployeeInfoStore    = new EmployeeInfoStoreStub();
     BankInfoStore        = new BankInfoStore();
     ApplicationInfoStore = new ApplicationInfoStore();
     TipsClient           = new TipsClientStub();
     //Api = new ApiClient("http://35.233.209.216:8081/", "test 0.0", "dev 0.0");
     Api = new ApiClient("http://localhost:5000/", "test 0.0", "dev 0.0");
 }
        protected void InitServices()
        {
            var locationManager = (LocationManager)GetSystemService(LocationService);

            _locationService = new LocationService(locationManager);
            _locationService.Init();

            var vibrator = (Vibrator)GetSystemService(VibratorService);

            _vibrationService = new VibrationService(vibrator);
            _vibrationService.Init();

            GPSLoggingService.Instance.Init();
        }
Exemple #4
0
 public void vibrar()
 {
     VibrationService.Vibrate(50);
 }