Files
htwkalender-pwa/service/ical/icalModel.go
2023-08-24 19:53:46 +02:00

25 lines
413 B
Go

package ical
import (
"htwk-planner/model"
"time"
)
// FeedModel is an iCal feed
type FeedModel struct {
Content string
ExpiresAt time.Time
}
// Entry is a time entry
type Entry struct {
DateStart time.Time `json:"dateStart"`
DateEnd time.Time `json:"dateEnd"`
Description string `json:"description"`
}
// Entries is a collection of entries
type Entries []*Entry
type Events []*model.Event