Introduced NowPlayingRepository. Don't do anything for now

This commit is contained in:
Deluan 2016-03-16 20:27:48 -04:00
parent b660a70688
commit 4748ce142f
7 changed files with 76 additions and 4 deletions

View file

@ -13,13 +13,14 @@ type Scrobbler interface {
Register(id string, playDate time.Time, submit bool) (*domain.MediaFile, error)
}
func NewScrobbler(itunes itunesbridge.ItunesControl, mr domain.MediaFileRepository) Scrobbler {
return scrobbler{itunes, mr}
func NewScrobbler(itunes itunesbridge.ItunesControl, mr domain.MediaFileRepository, npr NowPlayingRepository) Scrobbler {
return scrobbler{itunes, mr, npr}
}
type scrobbler struct {
itunes itunesbridge.ItunesControl
mfRepo domain.MediaFileRepository
npRepo NowPlayingRepository
}
func (s scrobbler) Register(id string, playDate time.Time, submit bool) (*domain.MediaFile, error) {