common/dataTypes.ts
Torben Pi Jensen 6a3eb21439 More stuff
2023-11-09 19:36:18 +01:00

18 lines
386 B
TypeScript

export enum SongType {
YouTube,
Spotify
}
export class Song {
constructor(public type: SongType, public title: string, public songId: string, public image: string) {
}
}
export class PlayingSong extends Song {
constructor(type: SongType, title: string, songId: string, image: string, public position: number) {
super(type, title, songId, image);
}
}