2016-03-09 16:09:15 +01:00
|
|
|
package domain
|
|
|
|
|
|
|
|
type Playlist struct {
|
2020-01-10 05:33:01 +01:00
|
|
|
ID string
|
2016-03-10 01:48:43 +01:00
|
|
|
Name string
|
2016-03-24 18:28:20 +01:00
|
|
|
Comment string
|
2016-03-10 01:48:43 +01:00
|
|
|
FullPath string
|
2016-03-21 17:26:55 +01:00
|
|
|
Duration int
|
|
|
|
Owner string
|
|
|
|
Public bool
|
2016-03-10 01:48:43 +01:00
|
|
|
Tracks []string
|
2016-03-09 16:09:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type PlaylistRepository interface {
|
|
|
|
BaseRepository
|
|
|
|
Put(m *Playlist) error
|
|
|
|
Get(id string) (*Playlist, error)
|
2020-01-12 03:38:02 +01:00
|
|
|
GetAll(options ...QueryOptions) (Playlists, error)
|
2016-03-19 00:50:21 +01:00
|
|
|
PurgeInactive(active Playlists) ([]string, error)
|
2016-03-09 16:09:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Playlists []Playlist
|