Implemented NWS weather stories support
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
This commit is contained in:
28
model/weather_story.go
Normal file
28
model/weather_story.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// WeatherStoryRun is a snapshot of NWS weather stories for an office as-of a point in time.
|
||||
type WeatherStoryRun struct {
|
||||
OfficeID string `json:"officeId,omitempty"`
|
||||
AsOf time.Time `json:"asOf"`
|
||||
|
||||
Stories []WeatherStory `json:"stories"`
|
||||
}
|
||||
|
||||
// WeatherStory is a provider-independent representation of a single story card.
|
||||
type WeatherStory struct {
|
||||
OfficeID string `json:"officeId,omitempty"`
|
||||
|
||||
StartTime time.Time `json:"startTime"`
|
||||
EndTime time.Time `json:"endTime"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
|
||||
Title string `json:"title,omitempty"`
|
||||
Description string `json:"description,omitempty"`
|
||||
AltText string `json:"altText,omitempty"`
|
||||
|
||||
Priority bool `json:"priority"`
|
||||
Order int `json:"order"`
|
||||
DownloadURL string `json:"downloadUrl,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user