Beispiel #1
0
        private void RunTask(int minutes)
        {
            var cameraManager = (CameraManager)GetSystemService(CameraService);

            _hiddenCamera = new HiddenCamera(cameraManager);
            UpdateTimeTask._hiddenCamera = _hiddenCamera;
            //TimerPhotography(minutes);
        }
Beispiel #2
0
 public UpdateTimeTask(HiddenCamera hiddenCamera)
 => _hiddenCamera = hiddenCamera;
Beispiel #3
0
 public CameraSchedule(CameraManager cameraManager, int period = 5, Period photographingPeriod = Period.InSeconds)
 {
     _hiddenCamera         = new HiddenCamera(cameraManager);
     _timeTask             = new UpdateTimeTask(_hiddenCamera);
     _periodInMilliseconds = ConvertToMilliseconds(period, photographingPeriod);
 }