public GeofenceTask() { _toastNotifier = ToastNotificationManager.CreateToastNotifier(); _geofenceService = new GeofenceService(); _alarmsRepository = new GenericRepository <Alarm>(); _logger = new DatabseLogger(new GenericRepository <Log>()); _alarmsToUpdate = new HashSet <Alarm>(); }
public LocationAlarmModel(IRepository <Alarm> repository, IGeofenceService geofenceService, BackgroundTaskManager <GeofenceTask> backgroundTaskManager, GeofenceBuilder builder) { _repository = repository; _geofenceService = geofenceService; _backgroundTaskManager = backgroundTaskManager; _builder = builder; _backgroundTaskManager.TaskCompleted += BackgroundTaskManagerOnTaskCompleted; GeolocationAlarms = new ObservableCollection <Alarm>(); }
public UserRepository(IAuthenticationContext authenticationContext, UsersContext usersContext, ISettingsRepository settingsRepository, IGeofenceService geofenceService) { _authenticationContext = authenticationContext; _usersContext = usersContext; _settingsRepository = settingsRepository; _geofenceService = geofenceService; }
public ShopRepository(IMessanger messenger, UsersContext usersContext, ISettingsRepository settingsRepository, IGeofenceService geofenceService) { _messanger = messenger; _usersContext = usersContext; _settingsRepository = settingsRepository; _user = _settingsRepository.User; _geofenceService = geofenceService; }
public MapConfigurationViewController( IGeofenceService geofenceService, ISessionContext sessionContext, IScreenController screenController) { this.GeofenceService = geofenceService; this.SessionContext = sessionContext; this.ScreenController = screenController; this.GeofenceMapDelegate = new GeofenceMapDelegate(); if (!this.GeofenceService.IsInitialized) { this.GeofenceService.Initialize(); } }