common/dataTypes.ts
Torben Pi Jensen 2d561d15cd More stuff
2023-11-09 20:09:25 +01:00

18 lines
409 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 length: number, public position: number) {
super(type, title, songId, image);
}
}