2023-07-18 12:39:36 +01:00
|
|
|
package upstreamApi
|
|
|
|
|
2023-07-20 10:55:55 +01:00
|
|
|
type VstpMsg struct {
|
2023-07-20 20:02:35 +01:00
|
|
|
CIFMsg Schedule `json:"schedule"`
|
2023-07-20 10:55:55 +01:00
|
|
|
}
|
|
|
|
|
2023-07-18 12:39:36 +01:00
|
|
|
type Schedule struct {
|
2023-07-20 20:57:42 +01:00
|
|
|
TransactionType string `json:"transaction_type"`
|
|
|
|
ScheduleStartDate string `json:"schedule_start_date"`
|
|
|
|
ScheduleEndDate string `json:"schedule_end_date"`
|
|
|
|
ScheduleDaysRun string `json:"schedule_days_runs"`
|
|
|
|
CIFTrainUID string `json:"CIF_train_uid"`
|
|
|
|
CIFSTPIndicator string `json:"CIF_stp_indicator"`
|
|
|
|
ScheduleSegment []ScheduleSegment `json:"schedule_segment"`
|
2023-07-18 12:39:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type ScheduleSegment struct {
|
2023-07-20 20:57:42 +01:00
|
|
|
SignallingID string `json:"signalling_id"`
|
|
|
|
ATOCCode string `json:"atoc_code"`
|
|
|
|
CIFTrainCategory string `json:"CIF_train_category"`
|
|
|
|
CIFHeadcode string `json:"CIF_headcode"`
|
|
|
|
CIFPowerType string `json:"CIF_power_type"`
|
|
|
|
CIFSpeed string `json:"CIF_speed"`
|
2023-07-20 20:47:30 +01:00
|
|
|
ScheduleLocation []ScheduleLocation `json:"schedule_location"`
|
2023-07-18 12:39:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type ScheduleLocation struct {
|
2023-07-20 20:57:42 +01:00
|
|
|
ScheduledArrivalTime string `json:"scheduled_arrival_time"`
|
|
|
|
ScheduledDepartureTime string `json:"scheduled_departure_time"`
|
|
|
|
ScheduledPassTime string `json:"scheduled_pass_time"`
|
|
|
|
PublicArrivalTime string `json:"public_arrival_time"`
|
|
|
|
PublicDepartureTime string `json:"public_departure_time"`
|
|
|
|
CIFPlatform string `json:"CIF_platform"`
|
|
|
|
CIFLine string `json:"CIF_line"`
|
|
|
|
Tiploc LocationTiploc `json:"location"`
|
2023-07-20 20:47:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type LocationTiploc struct {
|
|
|
|
Tiploc struct {
|
|
|
|
TiplocId string `json:"tiploc_id"`
|
2023-07-20 20:57:42 +01:00
|
|
|
} `json:"tiploc"`
|
2023-07-19 20:27:27 +01:00
|
|
|
}
|