Пример #1
0
 public GeofenceTask()
 {
     _toastNotifier    = ToastNotificationManager.CreateToastNotifier();
     _geofenceService  = new GeofenceService();
     _alarmsRepository = new GenericRepository <Alarm>();
     _logger           = new DatabseLogger(new GenericRepository <Log>());
     _alarmsToUpdate   = new HashSet <Alarm>();
 }
Пример #2
0
 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>();
 }
Пример #3
0
 public UserRepository(IAuthenticationContext authenticationContext,
                       UsersContext usersContext,
                       ISettingsRepository settingsRepository,
                       IGeofenceService geofenceService)
 {
     _authenticationContext = authenticationContext;
     _usersContext          = usersContext;
     _settingsRepository    = settingsRepository;
     _geofenceService       = geofenceService;
 }
Пример #4
0
 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();
            }
        }
        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();
            }
        }