public DeleteOldEntriesState(ITimeService timeService, IObservableDataSource <IThreadSafeTimeEntry, IDatabaseTimeEntry> dataSource) { Ensure.Argument.IsNotNull(dataSource, nameof(dataSource)); Ensure.Argument.IsNotNull(timeService, nameof(timeService)); this.dataSource = dataSource; this.timeService = timeService; }
public DeleteUnnecessaryProjectPlaceholdersState(IDataSource <IThreadSafeProject, IDatabaseProject> projectsDataSource, IObservableDataSource <IThreadSafeTimeEntry, IDatabaseTimeEntry> timeEntriesDataSource) { Ensure.Argument.IsNotNull(projectsDataSource, nameof(projectsDataSource)); Ensure.Argument.IsNotNull(timeEntriesDataSource, nameof(timeEntriesDataSource)); this.projectsDataSource = projectsDataSource; this.timeEntriesDataSource = timeEntriesDataSource; }
public DeleteNonReferencedProjectGhostsState(IDataSource <IThreadSafeProject, IDatabaseProject> projectsDataSource, IObservableDataSource <IThreadSafeTimeEntry, IDatabaseTimeEntry> timeEntriesDataSource) { Ensure.Argument.IsNotNull(projectsDataSource, nameof(projectsDataSource)); Ensure.Argument.IsNotNull(timeEntriesDataSource, nameof(timeEntriesDataSource)); this.projectsDataSource = projectsDataSource; this.timeEntriesDataSource = timeEntriesDataSource; }
public static IObservable <Unit> ItemsChanged <TThreadsafe, TDatabase>(this IObservableDataSource <TThreadsafe, TDatabase> dataSource) where TDatabase : IDatabaseSyncable where TThreadsafe : IThreadSafeModel, TDatabase => Observable.Merge( dataSource.Created.SelectUnit(), dataSource.Updated.SelectUnit(), dataSource.Deleted.SelectUnit() );
public ObserveAllTimeEntriesVisibleToTheUserInteractor( IObservableDataSource <IThreadSafeTimeEntry, IDatabaseTimeEntry> timeEntries, IObservableDataSource <IThreadSafeWorkspace, IDatabaseWorkspace> workspaces) { Ensure.Argument.IsNotNull(timeEntries, nameof(timeEntries)); Ensure.Argument.IsNotNull(workspaces, nameof(workspaces)); this.timeEntries = timeEntries; this.workspaces = workspaces; }
public StopTimeEntryInteractor(ITimeService timeService, IObservableDataSource <IThreadSafeTimeEntry, IDatabaseTimeEntry> dataSource, DateTimeOffset stopTime) { Ensure.Argument.IsNotNull(stopTime, nameof(stopTime)); Ensure.Argument.IsNotNull(dataSource, nameof(dataSource)); Ensure.Argument.IsNotNull(timeService, nameof(timeService)); this.stopTime = stopTime; this.dataSource = dataSource; this.timeService = timeService; }
public DeleteTimeEntryInteractor( ITimeService timeService, IObservableDataSource <IThreadSafeTimeEntry, IDatabaseTimeEntry> dataSource, long id) { Ensure.Argument.IsNotNull(dataSource, nameof(dataSource)); this.id = id; this.dataSource = dataSource; this.timeService = timeService; }
public DeleteMultipleTimeEntriesInteractor( IObservableDataSource <IThreadSafeTimeEntry, IDatabaseTimeEntry> dataSource, IInteractorFactory interactorFactory, long[] ids) { Ensure.Argument.IsNotNull(dataSource, nameof(dataSource)); Ensure.Argument.IsNotNull(interactorFactory, nameof(interactorFactory)); this.ids = ids; this.dataSource = dataSource; this.interactorFactory = interactorFactory; }
public StopTimeEntryInteractor( ITimeService timeService, IObservableDataSource <IThreadSafeTimeEntry, IDatabaseTimeEntry> dataSource, DateTimeOffset stopTime, IAnalyticsService analyticsService, TimeEntryStopOrigin origin) { Ensure.Argument.IsNotNull(stopTime, nameof(stopTime)); Ensure.Argument.IsNotNull(dataSource, nameof(dataSource)); Ensure.Argument.IsNotNull(timeService, nameof(timeService)); Ensure.Argument.IsNotNull(analyticsService, nameof(analyticsService)); Ensure.Argument.IsNotNull(origin, nameof(origin)); this.stopTime = stopTime; this.dataSource = dataSource; this.timeService = timeService; this.analyticsService = analyticsService; this.origin = origin; }
public ObserveTimeEntriesVisibleToTheUserInteractor(IObservableDataSource <IThreadSafeTimeEntry, IDatabaseTimeEntry> dataSource) { this.dataSource = dataSource; }