quintodrome/model/annotation.go

14 lines
436 B
Go
Raw Normal View History

2020-01-21 19:01:43 -09:00
package model
import "time"
2020-01-31 17:09:23 -09:00
type AnnotatedRepository interface {
IncPlayCount(itemID string, ts time.Time) error
SetStar(starred bool, itemIDs ...string) error
SetRating(rating int, itemID string) error
2020-01-21 19:01:43 -09:00
}
// While I can't find a better way to make these fields optional in the models, I keep this list here
// to be used in other packages
var AnnotationFields = []string{"playCount", "playDate", "rating", "starred", "starredAt"}