Exemplo n.º 1
0
        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));
        }
Exemplo n.º 3
0
        private IEnumerable <WindowSummary> GetWindowsSummary()
        {
            var model = selectedApp;

            if (model == null)
            {
                return(null);
            }

            return(windowSummaryUseCase.Get(model.AppName, selectedDate));
        }
Exemplo n.º 4
0
        private IEnumerable <UsageOverview> GetSubContent()
        {
            var user = SelectedUser;

            if (user == null)
            {
                return(null);
            }

            return(usageOverviewUseCase.Get(user.Username));
        }
Exemplo n.º 5
0
        private IEnumerable <DailyCategoryDuration> GetDailyCategories()
        {
            var category = SelectedCategory;

            if (category == null)
            {
                return(null);
            }

            return(dailyCategoryDurationUseCase.Get(category.Name));
        }
Exemplo n.º 6
0
        private IEnumerable <AppSummary> GetAppSummary()
        {
            var app = SelectedApp;

            if (app == null)
            {
                return(null);
            }

            return(appSummaryUseCase.Get(app.Name, app.ApplicationID));
        }
Exemplo n.º 7
0
        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));
        }
Exemplo n.º 8
0
        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));
        }
Exemplo n.º 9
0
 private IEnumerable <CategoryDuration> GetCategories()
 {
     return(categoryDurationUseCase.Get(selectedDate));
 }
Exemplo n.º 10
0
 private IEnumerable <UsageByTime> GetUsageSummary()
 {
     return(usageByTimeUseCase.Get(selectedDate));
 }
Exemplo n.º 11
0
 private IEnumerable <AppSummary> GetAppsSummary()
 {
     return(appSummaryUseCase.Get(selectedDate));
 }
Exemplo n.º 12
0
 private IEnumerable <LogSummary> GetLogSummary()
 {
     return(logSummaryUseCase.Get(selectedDate));
 }