protected override IObservable <IDatabaseTimeEntry> CallInteractor(ITimeEntryPrototype prototype) { var suggestion = new Suggestion(new MockTimeEntry { WorkspaceId = prototype.WorkspaceId, ProjectId = prototype.ProjectId, TaskId = prototype.TaskId, Billable = prototype.IsBillable, Start = prototype.StartTime, Duration = prototype.Duration?.Ticks, Description = prototype.Description, TagIds = prototype.TagIds }); return(InteractorFactory.StartSuggestion(suggestion).Execute()); }
protected abstract IObservable <IDatabaseTimeEntry> CallInteractor(ITimeEntryPrototype prototype);
protected override IObservable <IDatabaseTimeEntry> CallInteractor(ITimeEntryPrototype prototype) => InteractorFactory.CreateTimeEntry(prototype, prototype.Duration.HasValue ? TimeEntryStartOrigin.Manual : TimeEntryStartOrigin.Timer).Execute();
protected override IObservable <IDatabaseTimeEntry> CallInteractor(ITimeEntryPrototype prototype) => InteractorFactory.ContinueTimeEntry(prototype, ContinueTimeEntryMode.SingleTimeEntryContinueButton).Execute();