45 lines
1.4 KiB
C#
45 lines
1.4 KiB
C#
// Auto-generated JSON mapping
|
|
// ReSharper disable All
|
|
|
|
namespace zotanpw.Controllers.Travelynx;
|
|
|
|
public class TravelynxWebhookRequest {
|
|
public string? Reason { get; set; }
|
|
public Status? Status { get; set; }
|
|
}
|
|
|
|
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; }
|
|
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 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 class Train {
|
|
public string? Type { get; set; }
|
|
public string? Line { get; set; }
|
|
public string? No { get; set; }
|
|
public string? Id { get; set; }
|
|
}
|