コード例 #1
0
            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());
            }
コード例 #2
0
 protected abstract IObservable <IDatabaseTimeEntry> CallInteractor(ITimeEntryPrototype prototype);
コード例 #3
0
 protected override IObservable <IDatabaseTimeEntry> CallInteractor(ITimeEntryPrototype prototype)
 => InteractorFactory.CreateTimeEntry(prototype, prototype.Duration.HasValue ? TimeEntryStartOrigin.Manual : TimeEntryStartOrigin.Timer).Execute();
コード例 #4
0
 protected override IObservable <IDatabaseTimeEntry> CallInteractor(ITimeEntryPrototype prototype)
 => InteractorFactory.ContinueTimeEntry(prototype, ContinueTimeEntryMode.SingleTimeEntryContinueButton).Execute();