Files
Jugenddienst-Stunden/Jugenddienst Stunden/Types/Hours.cs
2025-12-25 19:19:17 +01:00

73 lines
2.3 KiB
C#

using CommunityToolkit.Mvvm.ComponentModel;
using System.Collections.ObjectModel;
namespace Jugenddienst_Stunden.Types;
public partial class Hours : ObservableObject {
/// <summary>
/// Total time in seconds for the current context.
/// "zeit" is used by the API to represent the current recorded time value.
/// </summary>
public int? zeit { get; set; }
/// <summary>
/// Nominal working time expectation (e.g. seconds per day or month depending on API semantics).
/// Represents the expected amount of time to be worked.
/// </summary>
public int? nominal { get; set; }
/// <summary>
/// List of nominal day records returned by the API.
/// May be null when the API does not provide per-day nominal data.
/// </summary>
public List<NominalDay>? Nominal_day_api;
/// <summary>
/// List of nominal week records returned by the API.
/// May be null when the API does not provide per-week nominal data.
/// </summary>
public List<NominalWeek>? Nominal_week_api;
/// <summary>
/// Total time in seconds reported by the API for the current period. Nullable if not provided.
/// </summary>
public double? zeit_total { get; set; }
/// <summary>
/// Daily total time values returned by the API.
/// Each entry represents a day with its associated time value.
/// </summary>
public List<TimeDay> zeit_total_daily_api;
/// <summary>
/// Collection of daytime entries representing individual recorded time slots or events.
/// Nullable when the API returns no detailed daytime information.
/// </summary>
public List<DayTime>? daytime;
//public List<string> wochensumme;
[ObservableProperty] public double overtime_month;
[ObservableProperty] public double overtime;
//public List<string> overtime_day;
[ObservableProperty] public double zeitausgleich;
public double zeitausgleich_month;
public double? holiday { get; set; }
public double krankheit;
public double weiterbildung;
public double bereitschaft;
public double bereitschaft_month;
//public Operator operator_api;
public DateTime Today;
public DateTime Date;
public DateTime MinDate;
public DateTime MaxDate;
public Collection<Projekt> Projekte { get; set; }
public Collection<Gemeinde> Gemeinden { get; set; }
public Collection<Freistellung> Freistellungen { get; set; }
public int EmployeeId { get; set; }
}