Files
Jugenddienst-Stunden/Jugenddienst Stunden/Types/DayTime.cs
2024-10-13 16:34:46 +02:00

45 lines
1.4 KiB
C#

using Jugenddienst_Stunden.Models;
using System.Collections.ObjectModel;
namespace Jugenddienst_Stunden.Types;
/// <summary>
/// Represents a day time entry for an employee.
/// </summary>
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<string, TimeOnly>? total { get; set; }
public TimeOnly? end_print { get; set; }
public TimeSpan? TimeSpanVon { get; set; }
public TimeSpan? TimeSpanBis { get; set; }
public Collection<Projekt>? Projekte { get; set; }
public Collection<Gemeinde>? Gemeinden { get; set; }
public Collection<Freistellung>? Freistellungen { get; set; }
/// <summary>
/// Gets the active Gemeinde based on the gemeinde ID.
/// </summary>
public Gemeinde? GemeindeAktiv { get; set; }
/// <summary>
/// Gets the active Projekt based on the projekt ID.
/// </summary>
public Projekt? ProjektAktiv { get; set; }
/// <summary>
/// Gets the active Freistellung based on the Freistellung ID
/// </summary>
public Freistellung? FreistellungAktiv { get; set; }
}