using Jugenddienst_Stunden.Models; using System.Collections.ObjectModel; namespace Jugenddienst_Stunden.Types; /// /// Represents a day time entry for an employee. /// public class DayTime { public int? id { get; set; } public int EmployeeId { get; set; } public DateTime day { get; set; } public int wday { get; set; } public TimeOnly begin { get; set; } public TimeOnly end { get; set; } public string description { get; set; } public string? free { get; set; } public bool? approved { get; set; } public int? type { get; set; } public int? projekt { get; set; } public int? gemeinde { get; set; } public TimeOnly night { get; set; } public Dictionary total { get; set; } public TimeOnly end_print { get; set; } public TimeSpan TimeSpanVon { get; set; } public TimeSpan TimeSpanBis { get; set; } public Collection Projekte { get; set; } public Collection Gemeinden { get; set; } public Collection Freistellungen { get; set; } /// /// Gets the active Gemeinde based on the gemeinde ID. /// public Gemeinde GemeindeAktiv { get; set; } /// /// Gets the active Projekt based on the projekt ID. /// public Projekt ProjektAktiv { get; set; } public Freistellung FreistellungAktiv { get; set; } }