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

29 lines
519 B
Go
Raw Normal View History

2015-04-09 03:44:22 +02:00
/*
* 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.
2015-04-09 03:47:39 +02:00
type Song interface {
Download()
Play()
Delete()
AddSkip()
RemoveSkip()
SkipReached()
}
2015-04-09 03:44:22 +02:00
// Generic playlist interface. Each service will implement these
// functions in their Playlist types.
2015-04-09 03:47:39 +02:00
type Playlist interface {
AddSkip()
RemoveSkip()
DeleteSkippers()
SkipReached()
}