Freistellungen via API

This commit is contained in:
2024-09-26 17:23:29 +02:00
parent a4e373083f
commit 2049a3a981
6 changed files with 67 additions and 33 deletions

View File

@@ -25,6 +25,7 @@ namespace Jugenddienst_Stunden.Types {
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.
@@ -35,5 +36,7 @@ namespace Jugenddienst_Stunden.Types {
/// Gets the active Projekt based on the projekt ID.
/// </summary>
public Projekt ProjektAktiv { get; set; }
public Freistellung FreistellungAktiv { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Jugenddienst_Stunden.Types {
public class Freistellung {
public string Identifier { get; set; }
public string Name { get; set; }
}
}

View File

@@ -41,6 +41,7 @@ namespace Jugenddienst_Stunden.Types
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; }
}