go-types/pkg/upstreamApi/vstp.go

47 lines
1.9 KiB
Go
Raw Normal View History

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