]>
Commit | Line | Data |
---|---|---|
1 | // Holds the name and artist of a track | |
2 | class Track { | |
3 | ||
4 | // The name of the track to search for | |
5 | let name: String | |
6 | ||
7 | // The name of the artist | |
8 | let artist: String | |
9 | ||
10 | init(withName trackName: String, andArtist trackArtist: String) { | |
11 | ||
12 | name = trackName | |
13 | artist = trackArtist | |
14 | } | |
15 | } |