feat: improve WebUntis sync and competency insights
CI / build-and-test (push) Canceled after 0s

This commit is contained in:
admin committed 2026-09-20 22:17:29 +02:00
1 parent cdb4637c65
commit f0c0479bcb
22 files changed
+1099 -76

No files matched your search

+37
View File
@@ -135,6 +135,43 @@ public sealed record UntisTimetablePeriod(
IReadOnlyList<UntisEntity> Rooms,
JsonElement Raw);
/// <summary>Eine Ressource innerhalb eines Eintrags des neuen WebUntis-Stundenplans. Bei
/// Vertretungen kann <see cref="UntisGridResourceChange.Removed"/> die ursprüngliche und
/// <see cref="UntisGridResourceChange.Current"/> die tatsächliche Belegung enthalten.</summary>
public sealed record UntisGridResource(
string Type,
string? Status,
string? ShortName,
string? LongName,
string? DisplayName);
public sealed record UntisGridResourceChange(
UntisGridResource? Current,
UntisGridResource? Removed);
/// <summary>Typisierter GridEntry aus der REST-Schnittstelle, mit der auch die WebUntis-Webseite
/// ihren Stundenplan aufbaut. Anders als der iCal-Export enthält sie explizite Typen wie
/// NORMAL_TEACHING_PERIOD, ADDITIONAL_PERIOD, BREAK_SUPERVISION und EXAM.</summary>
public sealed record UntisTimetableGridEntry(
IReadOnlyList<int> Ids,
DateTime Start,
DateTime End,
string Type,
string? Status,
string? StatusDetail,
string? Name,
string? LessonText,
string? LessonInfo,
string? SubstitutionText,
IReadOnlyList<UntisGridResourceChange> Resources,
JsonElement Raw)
{
public IReadOnlyList<UntisGridResource> CurrentResources => Resources
.Where(change => change.Current is not null).Select(change => change.Current!).ToList();
public IReadOnlyList<UntisGridResource> RemovedResources => Resources
.Where(change => change.Removed is not null).Select(change => change.Removed!).ToList();
}
public sealed record UntisLessonAbsence(
string StudentName,
int Date,