private async Task startTimeEntry(Suggestion suggestion) { onboardingStorage.SetTimeEntryContinued(); await interactorFactory .StartSuggestion(suggestion) .Execute(); }
private IObservable <Unit> continueTimeEntry(TimeEntryViewModel timeEntry) { return(interactorFactory .ContinueTimeEntry(timeEntry) .Execute() .Do(_ => onboardingStorage.SetTimeEntryContinued()) .SelectUnit()); }
private async Task startTimeEntry(Suggestion suggestion) { areStartButtonsEnabled = false; StartTimeEntryCommand.RaiseCanExecuteChanged(); onboardingStorage.SetTimeEntryContinued(); await interactorFactory .StartSuggestion(suggestion) .Execute() .Do(_ => { areStartButtonsEnabled = true; StartTimeEntryCommand.RaiseCanExecuteChanged(); }); }
private async Task continueTimeEntry(TimeEntryViewModel timeEntryViewModel) { areContineButtonsEnabled = false; ContinueTimeEntryCommand.RaiseCanExecuteChanged(); onboardingStorage.SetTimeEntryContinued(); await interactorFactory .ContinueTimeEntry(timeEntryViewModel) .Execute() .Do(_ => { areContineButtonsEnabled = true; ContinueTimeEntryCommand.RaiseCanExecuteChanged(); }); }
private IObservable <IThreadSafeTimeEntry> startTimeEntry(Suggestion suggestion) { onboardingStorage.SetTimeEntryContinued(); var timeEntry = interactorFactory .StartSuggestion(suggestion) .Execute() .SubscribeOn(schedulerProvider.BackgroundScheduler); analyticsService.SuggestionStarted.Track(suggestion.ProviderType); if (suggestion.ProviderType == SuggestionProviderType.Calendar) { trackCalendarOffset(suggestion); } return(timeEntry); }