49 lines
1.7 KiB
C#
49 lines
1.7 KiB
C#
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using Jugenddienst_Stunden.Models;
|
|
using Newtonsoft.Json;
|
|
using System.Collections.ObjectModel;
|
|
|
|
namespace Jugenddienst_Stunden.Types
|
|
{
|
|
public class Hours : ObservableObject
|
|
{
|
|
public string zeit;
|
|
public string nominal;
|
|
//public Dictionary<DateOnly,NominalDay> nominal_day_api;
|
|
public List<NominalDay> nominal_day_api;
|
|
//public Dictionary<int,NominalWeek> nominal_week_api;
|
|
public List<NominalWeek> nominal_week_api;
|
|
//public List<string> time_line;
|
|
public string zeit_total;
|
|
|
|
//https://stackoverflow.com/questions/29449641/deserialize-json-when-a-value-can-be-an-object-or-an-empty-array/29450279#29450279
|
|
//[JsonConverter(typeof(JsonSingleOrEmptyArrayConverter<Hours>))]
|
|
//public Dictionary<int,decimal> zeit_total_daily;
|
|
|
|
public List<TimeDay> zeit_total_daily_api;
|
|
public List<DayTime> daytime;
|
|
//public List<string> wochensumme;
|
|
public string overtime_month;
|
|
public string overtime;
|
|
//public List<string> overtime_day;
|
|
public string zeitausgleich;
|
|
public string zeitausgleich_month;
|
|
public string holiday;
|
|
public string krankheit;
|
|
public string weiterbildung;
|
|
public string bereitschaft;
|
|
public string 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; }
|
|
|
|
}
|
|
}
|