From 12349b5f754691336df41697725c2b4f91060fb1 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 24 Nov 2022 16:24:45 +0100 Subject: [PATCH] Fix travelynx api --- zotan.pw-web/Travelynx/WebhookRequest.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/zotan.pw-web/Travelynx/WebhookRequest.cs b/zotan.pw-web/Travelynx/WebhookRequest.cs index 4adece8..25b13cb 100644 --- a/zotan.pw-web/Travelynx/WebhookRequest.cs +++ b/zotan.pw-web/Travelynx/WebhookRequest.cs @@ -12,25 +12,25 @@ public class Status { public Station? ToStation { get; set; } public List? IntermediateStops { get; set; } public Train? Train { get; set; } - public long ActionTime { get; set; } + public long? ActionTime { get; set; } } public class Station { public string? Name { get; set; } public string? Ds100 { get; set; } - public long Uic { get; set; } - public double Latitude { get; set; } - public double Longitude { get; set; } - public long ScheduledTime { get; set; } - public long RealTime { get; set; } + public long? Uic { get; set; } + public double? Latitude { get; set; } + public double? Longitude { get; set; } + public long? ScheduledTime { get; set; } + public long? RealTime { get; set; } } public class IntermediateStop { public string? Name { get; set; } - public long ScheduledArrival { get; set; } - public long RealArrival { get; set; } - public long ScheduledDeparture { get; set; } - public long RealDeparture { get; set; } + public long? ScheduledArrival { get; set; } + public long? RealArrival { get; set; } + public long? ScheduledDeparture { get; set; } + public long? RealDeparture { get; set; } } public class Train { @@ -38,4 +38,4 @@ public class Train { public string? Line { get; set; } public string? No { get; set; } public string? Id { get; set; } -} \ No newline at end of file +}