HoursDto: Update

This commit is contained in:
2025-12-25 19:19:17 +01:00
parent c6fd58a290
commit 1ee0fc61f6
2 changed files with 5 additions and 5 deletions

View File

@@ -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.
/// </summary>
public int zeit;
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;
public int? nominal { get; set; }
/// <summary>
/// List of nominal day records returned by the API.
@@ -31,7 +31,7 @@ public partial class Hours : ObservableObject {
/// <summary>
/// Total time in seconds reported by the API for the current period. Nullable if not provided.
/// </summary>
public double? zeit_total;
public double? zeit_total { get; set; }
/// <summary>
/// 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;

View File

@@ -136,7 +136,7 @@ public partial class StundenViewModel : ObservableObject, IQueryAttributable, IN
/// <summary>
/// Monatsübersicht: Resturlaub
/// </summary>
public double Holiday {
public double? Holiday {
get => Hours.holiday;
}