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-09 13:20:40 -07:00

29 lines
503 B
Go

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