From 1ee0fc61f681bcbf47703becb15cdd67b186ccc7 Mon Sep 17 00:00:00 2001 From: Daniel Pichler Date: Thu, 25 Dec 2025 19:19:17 +0100 Subject: [PATCH] HoursDto: Update --- Jugenddienst Stunden/Types/Hours.cs | 8 ++++---- Jugenddienst Stunden/ViewModels/StundenViewModel.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Jugenddienst Stunden/Types/Hours.cs b/Jugenddienst Stunden/Types/Hours.cs index a211b10..c5b824b 100644 --- a/Jugenddienst Stunden/Types/Hours.cs +++ b/Jugenddienst Stunden/Types/Hours.cs @@ -8,13 +8,13 @@ public partial class Hours : ObservableObject { /// Total time in seconds for the current context. /// "zeit" is used by the API to represent the current recorded time value. /// - public int zeit; + public int? zeit { get; set; } /// /// Nominal working time expectation (e.g. seconds per day or month depending on API semantics). /// Represents the expected amount of time to be worked. /// - public int nominal; + public int? nominal { get; set; } /// /// List of nominal day records returned by the API. @@ -31,7 +31,7 @@ public partial class Hours : ObservableObject { /// /// Total time in seconds reported by the API for the current period. Nullable if not provided. /// - public double? zeit_total; + public double? zeit_total { get; set; } /// /// Daily total time values returned by the API. @@ -54,7 +54,7 @@ public partial class Hours : ObservableObject { [ObservableProperty] public double zeitausgleich; public double zeitausgleich_month; - public double holiday; + public double? holiday { get; set; } public double krankheit; public double weiterbildung; public double bereitschaft; diff --git a/Jugenddienst Stunden/ViewModels/StundenViewModel.cs b/Jugenddienst Stunden/ViewModels/StundenViewModel.cs index bb8b4ef..ec69b57 100644 --- a/Jugenddienst Stunden/ViewModels/StundenViewModel.cs +++ b/Jugenddienst Stunden/ViewModels/StundenViewModel.cs @@ -136,7 +136,7 @@ public partial class StundenViewModel : ObservableObject, IQueryAttributable, IN /// /// Monatsübersicht: Resturlaub /// - public double Holiday { + public double? Holiday { get => Hours.holiday; }