go-types/pkg/upstreamApi/vstp.go

63 lines
3.2 KiB
Go
Raw Normal View History

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 11:09:30 +01:00
ScheduleID string `json:"schedule_id"`
TransactionType string `json:"transaction_type"`
ScheduleStartDate string `json:"schedule_start_date"`
ScheduleEndDate string `json:"schedule_end_date"`
ScheduleDaysRun string `json:"schedule_days_runs"`
ApplicableTimetable string `json:"applicable_timetable"`
CIFBankHolidayRun string `json:"CIF_bank_holiday_running"`
CIFTrainUID string `json:"CIF_train_uid"`
TrainStatus string `json:"train_status"`
CIFSTPIndicator string `json:"CIF_stp_indicator"`
ScheduleSegment []ScheduleSegment `json:"schedule_segment"`
2023-07-18 12:39:36 +01:00
}
type ScheduleSegment struct {
2023-07-19 20:27:27 +01:00
SignallingID string `json:"signalling_id"`
UICCode string `json:"uic_code"`
ATOCCode string `json:"atoc_code"`
CIFTrainCategory string `json:"CIF_train_category"`
CIFHeadcode string `json:"CIF_headcode"`
CIFCourseIndicator string `json:"CIF_course_indicator"`
CIFTrainServiceCode string `json:"CIF_train_service_code"`
CIFBusinessSector string `json:"CIF_business_sector"`
CIFPowerType string `json:"CIF_power_type"`
CIFTimingLoad string `json:"CIF_timing_load"`
CIFSpeed string `json:"CIF_speed"`
CIFOperatingCharacteristics string `json:"CIF_operating_characteristics"`
CIFTrainClass string `json:"CIF_train_class"`
CIFSleepers string `json:"CIF_sleepers"`
CIFReservations string `json:"CIF_reservations"`
CIFConnectionIndicator string `json:"CIF_connection_indicator"`
CIFCateringCode string `json:"CIF_catering_code"`
CIFServiceBranding string `json:"CIF_service_branding"`
CIFTractionClass string `json:"CIF_traction_class"`
ScheduleLocation []ScheduleLocation `json:"schedule_location"`
2023-07-18 12:39:36 +01:00
}
type ScheduleLocation struct {
2023-07-19 20:27:27 +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"`
CIFPath string `json:"CIF_path"`
CIFActivity string `json:"CIF_activity"`
2023-07-18 12:39:36 +01:00
CIFEngineeringAllowance string `json:"CIF_engineering_allowance"`
CIFPathingAllowance string `json:"CIF_pathing_allowance"`
CIFPerformanceAllowance string `json:"CIF_performance_allowance"`
2023-07-19 20:27:27 +01:00
Location struct {
2023-07-18 12:39:36 +01:00
Tiploc struct {
TiplocID string `json:"tiploc_id"`
} `json:"location"`
} `json:"location"`
2023-07-19 20:27:27 +01:00
}