-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfeed_system_alerts.go
35 lines (33 loc) · 1.13 KB
/
feed_system_alerts.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
package gbfs
type (
// FeedSystemAlerts ...
FeedSystemAlerts struct {
FeedCommon
Data *FeedSystemAlertsData `json:"data"`
}
// FeedSystemAlertsData ...
FeedSystemAlertsData struct {
Alerts []*FeedSystemAlertsAlert `json:"alerts"`
}
// FeedSystemAlertsAlert ...
FeedSystemAlertsAlert struct {
AlertID *ID `json:"alert_id"`
Type *string `json:"type"`
Times []*FeedSystemAlertsAlertTime `json:"times,omitempty"`
StationIDs []*ID `json:"station_ids,omitempty"`
RegionIDs []*ID `json:"region_ids,omitempty"`
URL *string `json:"url,omitempty"`
Summary *string `json:"summary"`
Description *string `json:"description,omitempty"`
LastUpdated *Timestamp `json:"last_updated,omitempty"`
}
// FeedSystemAlertsAlertTime ...
FeedSystemAlertsAlertTime struct {
Start *Timestamp `json:"start"`
End *Timestamp `json:"end,omitempty"`
}
)
// Name ...
func (f *FeedSystemAlerts) Name() string {
return FeedNameSystemAlerts
}