All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
29 lines
823 B
Go
29 lines
823 B
Go
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"`
|
|
}
|