MCPcopy Create free account
hub / github.com/microsoft/TypeChat / AlbumTrackCollection

Class AlbumTrackCollection

typescript/examples/music/src/trackCollections.ts:49–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…