| 47 | } |
| 48 | |
| 49 | export class AlbumTrackCollection extends TrackCollection { |
| 50 | constructor(public album: SpotifyApi.AlbumObjectSimplified, |
| 51 | tracks: SpotifyApi.TrackObjectSimplified[] |
| 52 | ) { |
| 53 | super([], 0); |
| 54 | this.contextUri = album.uri; |
| 55 | this.trackCount = tracks.length; |
| 56 | this.tracks = tracks.map((albumItem) => { |
| 57 | const fullTrack = albumItem as SpotifyApi.TrackObjectFull; |
| 58 | fullTrack.album = album; |
| 59 | return fullTrack; |
| 60 | }); |
| 61 | } |
| 62 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…