30 lines
852 B
C#
30 lines
852 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace timetracker.Shared
|
|
{
|
|
public class DashboardStatsVm
|
|
{
|
|
public TimeSpan? EarliestStart { get; set; }
|
|
public TimeSpan? LatestEnd { get; set; }
|
|
public TimeSpan AverageBreak { get; set; }
|
|
public int CurrentStreak { get; set; }
|
|
public int LongestStreak { get; set; }
|
|
}
|
|
|
|
public class DashboardChartDataVm
|
|
{
|
|
public List<MonthlyOvertimeVm> MonthlyOvertime { get; set; } = new();
|
|
public int WorkDaysCount { get; set; }
|
|
public int VacationDaysCount { get; set; }
|
|
public int SickDaysCount { get; set; }
|
|
public int PublicHolidaysCount { get; set; }
|
|
}
|
|
|
|
public class MonthlyOvertimeVm
|
|
{
|
|
public string MonthName { get; set; } = "";
|
|
public double OvertimeHours { get; set; }
|
|
}
|
|
}
|