2019-02-09 12:30:49 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
import (
|
2023-06-15 02:46:09 +00:00
|
|
|
"time"
|
2019-02-09 12:30:49 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type SceneMarker struct {
|
2023-06-15 02:46:09 +00:00
|
|
|
ID int `json:"id"`
|
|
|
|
Title string `json:"title"`
|
|
|
|
Seconds float64 `json:"seconds"`
|
|
|
|
PrimaryTagID int `json:"primary_tag_id"`
|
|
|
|
SceneID int `json:"scene_id"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
2019-02-09 12:30:49 +00:00
|
|
|
}
|
2021-01-18 01:23:20 +00:00
|
|
|
|
|
|
|
type SceneMarkers []*SceneMarker
|
|
|
|
|
|
|
|
func (m *SceneMarkers) Append(o interface{}) {
|
|
|
|
*m = append(*m, o.(*SceneMarker))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *SceneMarkers) New() interface{} {
|
|
|
|
return &SceneMarker{}
|
|
|
|
}
|