public FocusExternalDataService(ICalendarServiceClient calendarServiceClient, ITravelServiceClient travelServiceClient, IFocusStore focusStore) { _calendarServiceClient = calendarServiceClient; _travelServiceClient = travelServiceClient; _focusStore = focusStore; }
public FocusGeofenceService(IDigitLogger logger, ILocationStore locationStore, IFocusStore focusStore) { _logger = logger; _locationStore = locationStore; _focusStore = focusStore; }
public PushSyncService(IPushSyncStore pushSyncStore, IDigitPushServiceClient digitPushServiceClient, IFocusStore focusStore) { this.pushSyncStore = pushSyncStore; _digitPushServiceClient = digitPushServiceClient; _focusStore = focusStore; }
public PlannerService(IFocusCalendarSyncService focusCalendarSyncService, ITravelServiceClient travelServiceClient, IFocusStore focusStore) { _focusCalendarSyncService = focusCalendarSyncService; _travelServiceClient = travelServiceClient; _focusStore = focusStore; }
public FocusDirectionsService(IFocusStore focusStore, IFocusPatchService focusService, ITravelServiceClient travelServiceClient) { _focusStore = focusStore; _focusService = focusService; _travelServiceClient = travelServiceClient; }
public DeviceDataService(IFocusStore focusStore, IDeviceSyncStore deviceSyncStore, ICalendarServiceClient calendarServiceClient, ITravelServiceClient travelServiceClient) { _focusStore = focusStore; _deviceSyncStore = deviceSyncStore; _calendarServiceClient = calendarServiceClient; _travelServiceClient = travelServiceClient; }
public FocusService(IDigitLogger logger, IFocusCalendarSyncService focusCalendarSyncService, ILocationService locationService, IFocusUpdateService focusUpdateService, IFocusNotificationService focusNotificationService, IFocusStore focusStore) { this.logger = logger; this.focusCalendarSyncService = focusCalendarSyncService; this.locationService = locationService; this.focusUpdateService = focusUpdateService; _focusNotificationService = focusNotificationService; _focusStore = focusStore; }
public FocusNotificationService(IFocusStore focusStore, IDigitLogger logger, IButler butler, IOptions <DigitServiceOptions> optionsAccessor, IDigitPushServiceClient digitPushServiceClient, IFocusExternalDataService focusExternalDataService) { _focusStore = focusStore; _logger = logger; _butler = butler; _digitPushServiceClient = digitPushServiceClient; _focusExternalDataService = focusExternalDataService; options = optionsAccessor.Value; }
public static async Task <FocusItem> GetActiveItem(this IFocusStore focusStore, string userId) { FocusItem[] items = await focusStore.GetActiveAsync(userId); var query = items.Where(v => v.IndicateTime - DateTimeOffset.Now < FocusConstants.ItemActiveBeforeIndicateAlone); if (query.Count() == 1) { return(query.Single()); } return(items .Where(v => v.IndicateTime - DateTimeOffset.Now < FocusConstants.ItemActiveBeforeIndicateMultiple) .OrderByDescending(v => v.IndicateTime) .FirstOrDefault()); }
public FocusUpdateService(IFocusStore focusStore, ICalendarServiceClient calendarServiceClient, ITravelServiceClient travelServiceClient, IDigitLogger logger, IEnumerable <IFocusSubscriber> focusSubscribers, IFocusGeofenceService focusGeofenceService, IOptions <DigitServiceOptions> options) { this.focusStore = focusStore; this.calendarServiceClient = calendarServiceClient; this.travelServiceClient = travelServiceClient; this.logger = logger; this.focusSubscribers = focusSubscribers; _focusGeofenceService = focusGeofenceService; _options = options.Value; }
public FocusController(IFocusStore focusStore, IFocusService focusService) { this.focusStore = focusStore; this.focusService = focusService; }
public FocusCalendarSyncService(ICalendarServiceClient calendarServiceClient, IFocusStore focusStore) { this.calendarServiceClient = calendarServiceClient; this.focusStore = focusStore; }