This repository has been archived on 2019-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
mumbledj/services/base.go
2015-04-08 18:44:22 -07:00

29 lines
543 B
Go

/*
* MumbleDJ
* By Matthieu Grieger
* services/base.go
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
*/
package services
// Generic Song interface. Each service will implement these
// functions in their Song types.
type Song interface {
Download()
Play()
Delete()
AddSkip()
RemoveSkip()
SkipReached()
}
// Generic playlist interface. Each service will implement these
// functions in their Playlist types.
type Playlist interface {
AddSkip()
RemoveSkip()
DeleteSkippers()
SkipReached()
}