quintodrome/domain/playlist.go

23 lines
415 B
Go
Raw Normal View History

package domain
type Playlist struct {
ID string
Name string
2016-03-24 09:28:20 -08:00
Comment string
FullPath string
2016-03-21 08:26:55 -08:00
Duration int
Owner string
Public bool
Tracks []string
}
type PlaylistRepository interface {
BaseRepository
Put(m *Playlist) error
Get(id string) (*Playlist, error)
GetAll(options QueryOptions) (Playlists, error)
PurgeInactive(active Playlists) ([]string, error)
}
type Playlists []Playlist