private IEnumerable <DailyAppDuration> GetDailyApp() { var app = selectedApp; if (app == null) { return(null); } return(dailyAppDurationUseCase.Get(app.Name)); }
private IEnumerable <DailyScreenshotModel> GetDailyScreenshots() { var model = ScreenshotModel; if (model == null) { return(null); } return(dailyScreenshotModelUseCase.Get(model.AppName)); }
private IEnumerable <WindowSummary> GetWindowsSummary() { var model = selectedApp; if (model == null) { return(null); } return(windowSummaryUseCase.Get(model.AppName, selectedDate)); }
private IEnumerable <UsageOverview> GetSubContent() { var user = SelectedUser; if (user == null) { return(null); } return(usageOverviewUseCase.Get(user.Username)); }
private IEnumerable <DailyCategoryDuration> GetDailyCategories() { var category = SelectedCategory; if (category == null) { return(null); } return(dailyCategoryDurationUseCase.Get(category.Name)); }
private IEnumerable <AppSummary> GetAppSummary() { var app = SelectedApp; if (app == null) { return(null); } return(appSummaryUseCase.Get(app.Name, app.ApplicationID)); }
private IEnumerable <WindowSummary> GetWindowSummary() { var selectedApp = SelectedAppSummary; if (AppSummaryList.Result == null || selectedApp == null) { return(null); } var selectedDates = AppSummaryList.Result.Where(t => t.IsSelected).Select(t => t.DateTime); return(windowSummaryUseCase.Get(selectedApp.AppName, selectedDates)); }
private IEnumerable <WindowDurationOverview> GetWindowDuration() { var selectedApp = SelectedAppSummary; if (AppSummaryList.Result == null || selectedApp == null || WindowSummaryList.Result == null) { return(null); } var selectedWindows = WindowSummaryList.Result.Where(w => w.IsSelected).Select(w => w.Title).ToList(); if (selectedWindows.Count() == 0) { return(null); } var selectedDates = AppSummaryList.Result.Where(t => t.IsSelected).Select(t => t.DateTime); return(windowDurationUseCase.Get(selectedApp.AppName, selectedWindows, selectedDates)); }
private IEnumerable <CategoryDuration> GetCategories() { return(categoryDurationUseCase.Get(selectedDate)); }
private IEnumerable <UsageByTime> GetUsageSummary() { return(usageByTimeUseCase.Get(selectedDate)); }
private IEnumerable <AppSummary> GetAppsSummary() { return(appSummaryUseCase.Get(selectedDate)); }
private IEnumerable <LogSummary> GetLogSummary() { return(logSummaryUseCase.Get(selectedDate)); }