2020-01-22 05:01:43 +01:00
|
|
|
package model
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
2020-02-01 03:09:23 +01: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-22 05:01:43 +01:00
|
|
|
}
|
2020-03-29 00:22:55 +01: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"}
|