]>
Commit | Line | Data |
---|---|---|
a968bff7 BB |
1 | /// Looks for lyrics on the internet |
2 | class LyricsEngine { | |
3 | ||
4 | let track: Track | |
5 | ||
6 | var lyrics: String? { | |
7 | get { | |
8 | if track.artist == "test" && track.name == "test" { | |
9 | return "Doo doo doo" | |
10 | } | |
11 | ||
12 | return nil | |
13 | } | |
14 | } | |
15 | ||
16 | init(withTrack targetTrack: Track) { | |
17 | ||
18 | track = targetTrack | |
19 | } | |
20 | } |