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