forked from matthieugrieger/mumbledj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathservice.go
39 lines (36 loc) · 762 Bytes
/
service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* MumbleDJ
* By Matthieu Grieger
* service.go
* Copyright (c) 2014, 2015 Matthieu Grieger (MIT License)
*/
package main
// Song interface. Each service will implement these
// functions in their Song types.
type Song interface {
Download() error
Play()
Delete() error
AddSkip(string) error
RemoveSkip(string) error
SkipReached(int) bool
Submitter() string
Title() string
ID() string
Filename() string
Duration() string
Thumbnail() string
Playlist() Playlist
DontSkip() bool
SetDontSkip(bool)
}
// Playlist interface. Each service will implement these
// functions in their Playlist types.
type Playlist interface {
AddSkip(string) error
RemoveSkip(string) error
DeleteSkippers()
SkipReached(int) bool
ID() string
Title() string
}