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
|
|
|
}
|
2020-03-28 15:22:55 -08: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"}
|