-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.go
66 lines (56 loc) · 2.34 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package main
type goLuasStatusDirectionModel struct {
Message string `json:"message"`
ForecastsEnabled string `json:"forecastsEnabled"`
OperatingNormally string `json:"operatingNormally"`
}
type goLuasStatusModel struct {
Inbound goLuasStatusDirectionModel `json:"inbound"`
Outbound goLuasStatusDirectionModel `json:"outbound"`
}
type goLuasTramModel struct {
Direction string `json:"direction"`
DueMinutes string `json:"dueMinutes"`
Destination string `json:"destination"`
}
type goLuasForecastModel struct {
Message string `json:"message"`
Status goLuasStatusModel `json:"status"`
Trams []goLuasTramModel `json:"trams"`
}
type rpaTramModel struct {
DueMins string `xml:"dueMins,attr" json:"dueMins"`
Destination string `xml:"destination,attr" json:"destination"`
}
type rpaDirectionModel struct {
Name string `xml:"name,attr" json:"name"`
StatusMessage string `xml:"statusMessage,attr" json:"statusMessage"`
ForecastsEnabled string `xml:"forecastsEnabled,attr" json:"forecastsEnabled"`
OperatingNormally string `xml:"operatingNormally,attr" json:"operatingNormally"`
Trams []rpaTramModel `xml:"tram" json:"tram"`
}
type rpaForecastModel struct {
Created string `xml:"created,attr" json:"created"`
Stop string `xml:"stop,attr" json:"stop"`
StopAbv string `xml:"stopAbv,attr" json:"stopAbv"`
Message string `xml:"message" json:"message"`
Directions []rpaDirectionModel `xml:"direction" json:"direction"`
}
type stopModel struct {
Car int8 `json:"car"`
Coordinates map[string]string `json:"coordinates"`
Cycle int8 `json:"cycle"`
DisplayIrishName string `json:"displayIrishName"`
DisplayName string `json:"displayName"`
Line string `json:"line"`
ShortName string `json:"shortName"`
}
type rpaFareCalcResultModel struct {
Peak string `xml:"peak,attr" json:"peak"`
Offpeak string `xml:"offpeak,attr" json:"offpeak"`
ZonesTravelled string `xml:"zonesTravelled,attr" json:"zonesTravelled"`
}
type rpaFareCalcModel struct {
Created string `xml:"created,attr" json:"created"`
Result rpaFareCalcResultModel `xml:"result" json:"result"`
}