2022-11-26 13:23:58 +01:00
|
|
|
// Auto-generated JSON mapping
|
|
|
|
// ReSharper disable All
|
2022-11-20 03:06:41 +01:00
|
|
|
|
2022-11-26 13:23:58 +01:00
|
|
|
namespace zotanpw.Controllers.Travelynx;
|
|
|
|
|
|
|
|
public class TravelynxWebhookRequest {
|
2022-11-20 22:26:21 +01:00
|
|
|
public string? Reason { get; set; }
|
|
|
|
public Status? Status { get; set; }
|
2022-11-20 17:00:51 +01:00
|
|
|
}
|
2022-11-20 03:06:41 +01:00
|
|
|
|
2022-11-20 17:00:51 +01:00
|
|
|
public class Status {
|
|
|
|
public bool Deprecated { get; set; }
|
|
|
|
public bool CheckedIn { get; set; }
|
|
|
|
public Station? FromStation { get; set; }
|
|
|
|
public Station? ToStation { get; set; }
|
|
|
|
public List<IntermediateStop>? IntermediateStops { get; set; }
|
|
|
|
public Train? Train { get; set; }
|
2022-11-24 16:24:45 +01:00
|
|
|
public long? ActionTime { get; set; }
|
2022-11-20 17:00:51 +01:00
|
|
|
}
|
2022-11-20 03:06:41 +01:00
|
|
|
|
2022-11-20 17:00:51 +01:00
|
|
|
public class Station {
|
|
|
|
public string? Name { get; set; }
|
|
|
|
public string? Ds100 { get; set; }
|
2022-11-24 16:24:45 +01:00
|
|
|
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; }
|
2022-11-20 17:00:51 +01:00
|
|
|
}
|
2022-11-20 03:06:41 +01:00
|
|
|
|
2022-11-20 17:00:51 +01:00
|
|
|
public class IntermediateStop {
|
|
|
|
public string? Name { get; set; }
|
2022-11-24 16:24:45 +01:00
|
|
|
public long? ScheduledArrival { get; set; }
|
|
|
|
public long? RealArrival { get; set; }
|
|
|
|
public long? ScheduledDeparture { get; set; }
|
|
|
|
public long? RealDeparture { get; set; }
|
2022-11-20 17:00:51 +01:00
|
|
|
}
|
2022-11-20 03:06:41 +01:00
|
|
|
|
2022-11-20 17:00:51 +01:00
|
|
|
public class Train {
|
|
|
|
public string? Type { get; set; }
|
|
|
|
public string? Line { get; set; }
|
|
|
|
public string? No { get; set; }
|
|
|
|
public string? Id { get; set; }
|
2022-11-24 16:24:45 +01:00
|
|
|
}
|